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