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