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