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