7837a4ca3da9c783e2573f76a7cf272dc06dde3a
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3662_asus_rt-n56u.dts
1 #include "rt3883.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "asus,rt-n56u", "ralink,rt3662-soc", "ralink,rt3883-soc";
8 model = "Asus RT-N56U";
9
10 aliases {
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
15 };
16
17 flash@1c000000 {
18 compatible = "cfi-flash";
19 reg = <0x1c000000 0x800000>;
20 bank-width = <2>;
21
22 partitions {
23 compatible = "fixed-partitions";
24 #address-cells = <1>;
25 #size-cells = <1>;
26
27 partition@0 {
28 reg = <0x0 0x0030000>;
29 label = "u-boot";
30 read-only;
31 };
32
33 partition@30000 {
34 reg = <0x00030000 0x00010000>;
35 label = "u-boot-env";
36 read-only;
37 };
38
39 factory: partition@40000 {
40 reg = <0x00040000 0x00010000>;
41 label = "factory";
42 read-only;
43
44 nvmem-layout {
45 compatible = "fixed-layout";
46 #address-cells = <1>;
47 #size-cells = <1>;
48
49 eeprom_factory_0: eeprom@0 {
50 reg = <0x0 0x200>;
51 };
52
53 eeprom_factory_8000: eeprom@8000 {
54 reg = <0x8000 0x200>;
55 };
56
57 macaddr_factory_4: macaddr@4 {
58 reg = <0x4 0x6>;
59 };
60 };
61 };
62
63 partition@50000 {
64 compatible = "denx,uimage";
65 reg = <0x00050000 0x007b0000>;
66 label = "firmware";
67 };
68 };
69 };
70
71 rtl8367 {
72 compatible = "realtek,rtl8367";
73 gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
74 gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
75 realtek,extif1 = <1 0 1 1 1 1 1 1 2>;
76 };
77
78 keys {
79 compatible = "gpio-keys-polled";
80 poll-interval = <100>;
81
82 reset {
83 label = "reset";
84 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
85 linux,code = <KEY_RESTART>;
86 };
87
88 wps {
89 label = "wps";
90 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
91 linux,code = <KEY_WPS_BUTTON>;
92 };
93 };
94
95 leds {
96 compatible = "gpio-leds";
97
98 led_power: power {
99 label = "blue:power";
100 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
101 };
102
103 lan {
104 label = "blue:lan";
105 gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
106 };
107
108 wan {
109 label = "blue:wan";
110 gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
111 };
112
113 usb {
114 label = "blue:usb";
115 gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
116 };
117 };
118 };
119
120 &gpio1 {
121 status = "okay";
122 };
123
124 &state_default {
125 gpio {
126 groups = "spi", "i2c", "jtag", "uartf";
127 function = "gpio";
128 };
129 };
130
131 &ethernet {
132 nvmem-cells = <&macaddr_factory_4>;
133 nvmem-cell-names = "mac-address";
134
135 port@0 {
136 mediatek,fixed-link = <1000 1 1 1>;
137 };
138 };
139
140 &pci {
141 status = "okay";
142 };
143
144 &pci1 {
145 status = "okay";
146
147 wifi@0,0 {
148 compatible = "pci1814,3091";
149 reg = <0x10000 0 0 0 0>;
150 nvmem-cells = <&eeprom_factory_8000>;
151 nvmem-cell-names = "eeprom";
152 };
153 };
154
155 &wmac {
156 ralink,2ghz = <0>;
157 nvmem-cells = <&eeprom_factory_0>;
158 nvmem-cell-names = "eeprom";
159 };
160
161 &ehci {
162 status = "okay";
163 };
164
165 &ohci {
166 status = "okay";
167 };