ramips: fix dtc warnings
[openwrt/openwrt.git] / target / linux / ramips / dts / ki_rb.dts
1 /dts-v1/;
2
3 #include "mt7628an.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "zyxel,keenetic-extra-ii", "mediatek,mt7628an-soc";
10 model = "ZyXEL Keenetic Extra II";
11
12 aliases {
13 led-status = &led_power;
14 };
15
16 memory@0 {
17 device_type = "memory";
18 reg = <0x0 0x8000000>;
19 };
20
21 chosen {
22 bootargs = "console=ttyS0,57600n8";
23 };
24
25 gpio-keys-polled {
26 compatible = "gpio-keys-polled";
27 poll-interval = <20>;
28
29 reset {
30 label = "reset";
31 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_RESTART>;
33 };
34
35 wps {
36 label = "wps";
37 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
38 linux,code = <KEY_WPS_BUTTON>;
39 };
40
41 fn {
42 label = "fn";
43 gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
44 linux,code = <BTN_0>;
45 };
46 };
47
48 gpio-leds {
49 compatible = "gpio-leds";
50
51 led_power: power {
52 label = "keenetic-extra-ii:green:power";
53 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
54 default-state = "keep";
55 };
56
57 internet {
58 label = "keenetic-extra-ii:green:internet";
59 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
60 };
61
62 wifi {
63 label = "keenetic-extra-ii:green:wifi";
64 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
65 };
66
67 usb {
68 label = "keenetic-extra-ii:green:usb";
69 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
70 };
71 };
72
73 gpio_export {
74 compatible = "gpio-export";
75 #size-cells = <0>;
76
77 usbpower {
78 gpio-export,name = "usbpower";
79 gpio-export,output = <1>;
80 gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
81 };
82 };
83 };
84
85 &spi0 {
86 status = "okay";
87
88 m25p80@0 {
89 #address-cells = <1>;
90 #size-cells = <1>;
91 compatible = "jedec,spi-nor";
92 reg = <0>;
93 spi-max-frequency = <10000000>;
94 m25p,chunked-io = <32>;
95
96 partition@0 {
97 label = "u-boot";
98 reg = <0x0 0x30000>;
99 read-only;
100 };
101
102 partition@30000 {
103 label = "u-config";
104 reg = <0x30000 0x10000>;
105 read-only;
106 };
107
108 factory: partition@40000 {
109 label = "rf-eeprom";
110 reg = <0x40000 0x10000>;
111 read-only;
112 };
113
114 partition@50000 {
115 label = "firmware";
116 reg = <0x50000 0xe90000>;
117 };
118
119 partition@ee0000 {
120 label = "config_1";
121 reg = <0xee0000 0x10000>;
122 read-only;
123 };
124
125 partition@ef0000 {
126 label = "storage";
127 reg = <0xef0000 0x100000>;
128 read-only;
129 };
130
131 partition@ff0000 {
132 label = "dump";
133 reg = <0xff0000 0x10000>;
134 read-only;
135 };
136
137 partition@1000000 {
138 label = "u-state";
139 reg = <0x1000000 0x30000>;
140 read-only;
141 };
142
143 partition@1030000 {
144 label = "u-config_res";
145 reg = <0x1030000 0x10000>;
146 read-only;
147 };
148
149 partition@1040000 {
150 label = "rf-eeprom_res";
151 reg = <0x1040000 0x10000>;
152 read-only;
153 };
154
155 partition@1050000 {
156 label = "firmware_2";
157 reg = <0x1050000 0xe90000>;
158 read-only;
159 };
160
161 partition@1ee0000 {
162 label = "config_2";
163 reg = <0x1ee0000 0x10000>;
164 read-only;
165 };
166 };
167 };
168
169 &ehci {
170 status = "okay";
171 };
172
173 &ohci {
174 status = "okay";
175 };
176
177 &ethernet {
178 mtd-mac-address = <&factory 0x4>;
179 mediatek,portmap = "wllll";
180 };
181
182 &wmac {
183 status = "okay";
184 mediatek,mtd-eeprom = <&factory 0x0>;
185 };
186
187 &pcie {
188 status = "okay";
189 };
190
191 &pcie0 {
192 mt76@0,0 {
193 reg = <0x0000 0 0 0 0>;
194 mediatek,mtd-eeprom = <&factory 0x8000>;
195 ieee80211-freq-limit = <5000000 6000000>;
196 mtd-mac-address = <&factory 0x8004>;
197 };
198 };
199
200 &pinctrl {
201 state_default: pinctrl0 {
202 gpio {
203 ralink,group = "gpio", "i2s", "refclk", "spi cs1", "uart1", "wled_an";
204 ralink,function = "gpio";
205 };
206 };
207 };