OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
1 | #include "vr9.dtsi" |
1 | #include "vr9.dtsi" |
|
2 | |
2 | |
|
3 | #include <dt-bindings/input/input.h> |
3 | #include <dt-bindings/input/input.h> |
|
4 | #include <dt-bindings/mips/lantiq_rcu_gphy.h> |
4 | #include <dt-bindings/mips/lantiq_rcu_gphy.h> |
|
5 | |
5 | |
|
6 | / { |
6 | / { |
|
7 | compatible = "zyxel,p-2812hnu", "lantiq,xway", "lantiq,vr9"; |
7 | compatible = "zyxel,p-2812hnu", "lantiq,xway", "lantiq,vr9"; |
|
8 | |
8 | |
|
9 | chosen { |
9 | chosen { |
|
10 | bootargs = "console=ttyLTQ0,115200"; |
10 | bootargs = "console=ttyLTQ0,115200"; |
|
11 | }; |
11 | }; |
|
12 | |
12 | |
|
13 | aliases { |
13 | aliases { |
|
14 | led-boot = &power_green; |
14 | led-boot = &power_green; |
|
15 | led-failsafe = &power_red; |
15 | led-failsafe = &power_red; |
|
16 | led-running = &power_green; |
16 | led-running = &power_green; |
|
17 | led-upgrade = &power_green; |
- | ||
18 | |
17 | |
|
19 | led-dsl = &dsl_green; |
18 | led-dsl = &dsl_green; |
|
20 | led-internet = &internet_green; |
19 | led-internet = &internet_green; |
|
21 | led-wifi = &wireless_green; |
20 | led-wifi = &wireless_green; |
|
22 | }; |
21 | }; |
|
23 | |
22 | |
|
24 | memory@0 { |
23 | memory@0 { |
|
25 | reg = <0x0 0x8000000>; |
24 | reg = <0x0 0x8000000>; |
|
26 | }; |
25 | }; |
|
27 | |
26 | |
|
28 | gpio-keys-polled { |
27 | gpio-keys-polled { |
|
29 | compatible = "gpio-keys-polled"; |
28 | compatible = "gpio-keys-polled"; |
|
30 | #address-cells = <1>; |
29 | #address-cells = <1>; |
|
31 | #size-cells = <0>; |
30 | #size-cells = <0>; |
|
32 | poll-interval = <100>; |
31 | poll-interval = <100>; |
|
33 | |
32 | |
|
34 | reset { |
33 | reset { |
|
35 | label = "reset"; |
34 | label = "reset"; |
|
36 | gpios = <&gpio 39 GPIO_ACTIVE_LOW>; |
35 | gpios = <&gpio 39 GPIO_ACTIVE_LOW>; |
|
37 | linux,code = <KEY_RESTART>; |
36 | linux,code = <KEY_RESTART>; |
|
38 | }; |
37 | }; |
|
39 | |
38 | |
|
40 | rfkill { |
39 | rfkill { |
|
41 | label = "rfkill"; |
40 | label = "rfkill"; |
|
42 | gpios = <&gpio 1 GPIO_ACTIVE_LOW>; |
41 | gpios = <&gpio 1 GPIO_ACTIVE_LOW>; |
|
43 | linux,code = <KEY_RFKILL>; |
42 | linux,code = <KEY_RFKILL>; |
|
44 | }; |
43 | }; |
|
45 | }; |
44 | }; |
|
46 | |
45 | |
|
47 | gpio-leds { |
46 | gpio-leds { |
|
48 | compatible = "gpio-leds"; |
47 | compatible = "gpio-leds"; |
|
49 | |
48 | |
|
50 | internet_red { |
49 | internet_red { |
|
51 | label = "p2812hnufx:red:internet"; |
50 | label = "p2812hnufx:red:internet"; |
|
52 | gpios = <&stp 16 GPIO_ACTIVE_LOW>; |
51 | gpios = <&stp 16 GPIO_ACTIVE_LOW>; |
|
53 | }; |
52 | }; |
|
54 | internet_green: internet_green { |
53 | internet_green: internet_green { |
|
55 | label = "p2812hnufx:green:internet"; |
54 | label = "p2812hnufx:green:internet"; |
|
56 | gpios = <&stp 17 GPIO_ACTIVE_LOW>; |
55 | gpios = <&stp 17 GPIO_ACTIVE_LOW>; |
|
57 | }; |
56 | }; |
|
58 | dsl_green: dsl_green { |
57 | dsl_green: dsl_green { |
|
59 | label = "p2812hnufx:green:dsl"; |
58 | label = "p2812hnufx:green:dsl"; |
|
60 | gpios = <&stp 18 GPIO_ACTIVE_LOW>; |
59 | gpios = <&stp 18 GPIO_ACTIVE_LOW>; |
|
61 | }; |
60 | }; |
|
62 | dsl_orange { |
61 | dsl_orange { |
|
63 | label = "p2812hnufx:orange:dsl"; |
62 | label = "p2812hnufx:orange:dsl"; |
|
64 | gpios = <&stp 19 GPIO_ACTIVE_LOW>; |
63 | gpios = <&stp 19 GPIO_ACTIVE_LOW>; |
|
65 | }; |
64 | }; |
|
66 | wireless_orange { |
65 | wireless_orange { |
|
67 | label = "p2812hnufx:orange:wlan"; |
66 | label = "p2812hnufx:orange:wlan"; |
|
68 | gpios = <&stp 20 GPIO_ACTIVE_LOW>; |
67 | gpios = <&stp 20 GPIO_ACTIVE_LOW>; |
|
69 | }; |
68 | }; |
|
70 | wireless_green: wireless_green { |
69 | wireless_green: wireless_green { |
|
71 | label = "p2812hnufx:green:wlan"; |
70 | label = "p2812hnufx:green:wlan"; |
|
72 | gpios = <&stp 21 GPIO_ACTIVE_LOW>; |
71 | gpios = <&stp 21 GPIO_ACTIVE_LOW>; |
|
73 | }; |
72 | }; |
|
74 | power_red: power { |
73 | power_red: power { |
|
75 | label = "p2812hnufx:red:power"; |
74 | label = "p2812hnufx:red:power"; |
|
76 | gpios = <&stp 22 GPIO_ACTIVE_LOW>; |
75 | gpios = <&stp 22 GPIO_ACTIVE_LOW>; |
|
77 | }; |
76 | }; |
|
78 | power_green: power2 { |
77 | power_green: power2 { |
|
79 | label = "p2812hnufx:green:power"; |
78 | label = "p2812hnufx:green:power"; |
|
80 | gpios = <&stp 23 GPIO_ACTIVE_LOW>; |
79 | gpios = <&stp 23 GPIO_ACTIVE_LOW>; |
|
81 | default-state = "keep"; |
80 | default-state = "keep"; |
|
82 | }; |
81 | }; |
|
83 | phone1 { |
82 | phone1 { |
|
84 | label = "p2812hnufx:green:phone"; |
83 | label = "p2812hnufx:green:phone"; |
|
85 | gpios = <&gpio 11 GPIO_ACTIVE_LOW>; |
84 | gpios = <&gpio 11 GPIO_ACTIVE_LOW>; |
|
86 | }; |
85 | }; |
|
87 | phone1warn { |
86 | phone1warn { |
|
88 | label = "p2812hnufx:orange:phone"; |
87 | label = "p2812hnufx:orange:phone"; |
|
89 | gpios = <&gpio 12 GPIO_ACTIVE_LOW>; |
88 | gpios = <&gpio 12 GPIO_ACTIVE_LOW>; |
|
90 | }; |
89 | }; |
|
91 | phone2warn { |
90 | phone2warn { |
|
92 | label = "p2812hnufx:orange:phone2"; |
91 | label = "p2812hnufx:orange:phone2"; |
|
93 | gpios = <&gpio 26 GPIO_ACTIVE_LOW>; |
92 | gpios = <&gpio 26 GPIO_ACTIVE_LOW>; |
|
94 | }; |
93 | }; |
|
95 | phone2 { |
94 | phone2 { |
|
96 | label = "p2812hnufx:green:phone2"; |
95 | label = "p2812hnufx:green:phone2"; |
|
97 | gpios = <&gpio 28 GPIO_ACTIVE_LOW>; |
96 | gpios = <&gpio 28 GPIO_ACTIVE_LOW>; |
|
98 | }; |
97 | }; |
|
99 | }; |
98 | }; |
|
100 | |
99 | |
|
101 | usb_vbus: regulator-usb-vbus { |
100 | usb_vbus: regulator-usb-vbus { |
|
102 | compatible = "regulator-fixed"; |
101 | compatible = "regulator-fixed"; |
|
103 | |
102 | |
|
104 | regulator-name = "USB_VBUS"; |
103 | regulator-name = "USB_VBUS"; |
|
105 | |
104 | |
|
106 | regulator-min-microvolt = <5000000>; |
105 | regulator-min-microvolt = <5000000>; |
|
107 | regulator-max-microvolt = <5000000>; |
106 | regulator-max-microvolt = <5000000>; |
|
108 | |
107 | |
|
109 | gpio = <&gpio 33 GPIO_ACTIVE_HIGH>; |
108 | gpio = <&gpio 33 GPIO_ACTIVE_HIGH>; |
|
110 | enable-active-high; |
109 | enable-active-high; |
|
111 | }; |
110 | }; |
|
112 | }; |
111 | }; |
|
113 | |
112 | |
|
114 | ð0 { |
113 | ð0 { |
|
115 | lan: interface@0 { |
114 | lan: interface@0 { |
|
116 | compatible = "lantiq,xrx200-pdi"; |
115 | compatible = "lantiq,xrx200-pdi"; |
|
117 | #address-cells = <1>; |
116 | #address-cells = <1>; |
|
118 | #size-cells = <0>; |
117 | #size-cells = <0>; |
|
119 | reg = <0>; |
118 | reg = <0>; |
|
120 | mac-address = [ 00 11 22 33 44 55 ]; |
119 | mac-address = [ 00 11 22 33 44 55 ]; |
|
121 | lantiq,switch; |
120 | lantiq,switch; |
|
122 | |
121 | |
|
123 | ethernet@0 { |
122 | ethernet@0 { |
|
124 | compatible = "lantiq,xrx200-pdi-port"; |
123 | compatible = "lantiq,xrx200-pdi-port"; |
|
125 | reg = <0>; |
124 | reg = <0>; |
|
126 | phy-mode = "rgmii"; |
125 | phy-mode = "rgmii"; |
|
127 | phy-handle = <&phy0>; |
126 | phy-handle = <&phy0>; |
|
128 | }; |
127 | }; |
|
129 | ethernet@1 { |
128 | ethernet@1 { |
|
130 | compatible = "lantiq,xrx200-pdi-port"; |
129 | compatible = "lantiq,xrx200-pdi-port"; |
|
131 | reg = <1>; |
130 | reg = <1>; |
|
132 | phy-mode = "rgmii"; |
131 | phy-mode = "rgmii"; |
|
133 | phy-handle = <&phy1>; |
132 | phy-handle = <&phy1>; |
|
134 | }; |
133 | }; |
|
135 | ethernet@2 { |
134 | ethernet@2 { |
|
136 | compatible = "lantiq,xrx200-pdi-port"; |
135 | compatible = "lantiq,xrx200-pdi-port"; |
|
137 | reg = <2>; |
136 | reg = <2>; |
|
138 | phy-mode = "gmii"; |
137 | phy-mode = "gmii"; |
|
139 | phy-handle = <&phy11>; |
138 | phy-handle = <&phy11>; |
|
140 | }; |
139 | }; |
|
141 | ethernet@4 { |
140 | ethernet@4 { |
|
142 | compatible = "lantiq,xrx200-pdi-port"; |
141 | compatible = "lantiq,xrx200-pdi-port"; |
|
143 | reg = <4>; |
142 | reg = <4>; |
|
144 | phy-mode = "gmii"; |
143 | phy-mode = "gmii"; |
|
145 | phy-handle = <&phy13>; |
144 | phy-handle = <&phy13>; |
|
146 | }; |
145 | }; |
|
147 | ethernet@5 { |
146 | ethernet@5 { |
|
148 | compatible = "lantiq,xrx200-pdi-port"; |
147 | compatible = "lantiq,xrx200-pdi-port"; |
|
149 | reg = <5>; |
148 | reg = <5>; |
|
150 | phy-mode = "rgmii"; |
149 | phy-mode = "rgmii"; |
|
151 | phy-handle = <&phy5>; |
150 | phy-handle = <&phy5>; |
|
152 | }; |
151 | }; |
|
153 | }; |
152 | }; |
|
154 | |
153 | |
|
155 | mdio@0 { |
154 | mdio@0 { |
|
156 | #address-cells = <1>; |
155 | #address-cells = <1>; |
|
157 | #size-cells = <0>; |
156 | #size-cells = <0>; |
|
158 | compatible = "lantiq,xrx200-mdio"; |
157 | compatible = "lantiq,xrx200-mdio"; |
|
159 | reg = <0>; |
158 | reg = <0>; |
|
160 | |
159 | |
|
161 | phy0: ethernet-phy@0 { |
160 | phy0: ethernet-phy@0 { |
|
162 | reg = <0x0>; |
161 | reg = <0x0>; |
|
163 | compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22"; |
162 | compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22"; |
|
164 | }; |
163 | }; |
|
165 | phy1: ethernet-phy@1 { |
164 | phy1: ethernet-phy@1 { |
|
166 | reg = <0x1>; |
165 | reg = <0x1>; |
|
167 | compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22"; |
166 | compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22"; |
|
168 | }; |
167 | }; |
|
169 | phy5: ethernet-phy@5 { |
168 | phy5: ethernet-phy@5 { |
|
170 | reg = <0x5>; |
169 | reg = <0x5>; |
|
171 | compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22"; |
170 | compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22"; |
|
172 | }; |
171 | }; |
|
173 | phy11: ethernet-phy@11 { |
172 | phy11: ethernet-phy@11 { |
|
174 | reg = <0x11>; |
173 | reg = <0x11>; |
|
175 | compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22"; |
174 | compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22"; |
|
176 | }; |
175 | }; |
|
177 | phy13: ethernet-phy@13 { |
176 | phy13: ethernet-phy@13 { |
|
178 | reg = <0x13>; |
177 | reg = <0x13>; |
|
179 | compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22"; |
178 | compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22"; |
|
180 | }; |
179 | }; |
|
181 | }; |
180 | }; |
|
182 | }; |
181 | }; |
|
183 | |
182 | |
|
184 | &gphy0 { |
183 | &gphy0 { |
|
185 | lantiq,gphy-mode = <GPHY_MODE_GE>; |
184 | lantiq,gphy-mode = <GPHY_MODE_GE>; |
|
186 | }; |
185 | }; |
|
187 | |
186 | |
|
188 | &gphy1 { |
187 | &gphy1 { |
|
189 | lantiq,gphy-mode = <GPHY_MODE_GE>; |
188 | lantiq,gphy-mode = <GPHY_MODE_GE>; |
|
190 | }; |
189 | }; |
|
191 | |
190 | |
|
192 | &gpio { |
191 | &gpio { |
|
193 | pinctrl-names = "default"; |
192 | pinctrl-names = "default"; |
|
194 | pinctrl-0 = <&state_default>; |
193 | pinctrl-0 = <&state_default>; |
|
195 | |
194 | |
|
196 | state_default: pinmux { |
195 | state_default: pinmux { |
|
197 | exin3 { |
196 | exin3 { |
|
198 | lantiq,groups = "exin3"; |
197 | lantiq,groups = "exin3"; |
|
199 | lantiq,function = "exin"; |
198 | lantiq,function = "exin"; |
|
200 | }; |
199 | }; |
|
201 | mdio { |
200 | mdio { |
|
202 | lantiq,groups = "mdio"; |
201 | lantiq,groups = "mdio"; |
|
203 | lantiq,function = "mdio"; |
202 | lantiq,function = "mdio"; |
|
204 | }; |
203 | }; |
|
205 | gphy-leds { |
204 | gphy-leds { |
|
206 | lantiq,groups = "gphy0 led1", "gphy1 led1", |
205 | lantiq,groups = "gphy0 led1", "gphy1 led1", |
|
207 | "gphy0 led2", "gphy1 led2"; |
206 | "gphy0 led2", "gphy1 led2"; |
|
208 | lantiq,function = "gphy"; |
207 | lantiq,function = "gphy"; |
|
209 | lantiq,pull = <2>; |
208 | lantiq,pull = <2>; |
|
210 | lantiq,open-drain = <0>; |
209 | lantiq,open-drain = <0>; |
|
211 | lantiq,output = <1>; |
210 | lantiq,output = <1>; |
|
212 | }; |
211 | }; |
|
213 | stp { |
212 | stp { |
|
214 | lantiq,groups = "stp"; |
213 | lantiq,groups = "stp"; |
|
215 | lantiq,function = "stp"; |
214 | lantiq,function = "stp"; |
|
216 | lantiq,pull = <2>; |
215 | lantiq,pull = <2>; |
|
217 | lantiq,open-drain = <0>; |
216 | lantiq,open-drain = <0>; |
|
218 | lantiq,output = <1>; |
217 | lantiq,output = <1>; |
|
219 | }; |
218 | }; |
|
220 | pci-in { |
219 | pci-in { |
|
221 | lantiq,groups = "req1"; |
220 | lantiq,groups = "req1"; |
|
222 | lantiq,function = "pci"; |
221 | lantiq,function = "pci"; |
|
223 | lantiq,output = <0>; |
222 | lantiq,output = <0>; |
|
224 | lantiq,open-drain = <1>; |
223 | lantiq,open-drain = <1>; |
|
225 | lantiq,pull = <2>; |
224 | lantiq,pull = <2>; |
|
226 | }; |
225 | }; |
|
227 | pci-out { |
226 | pci-out { |
|
228 | lantiq,groups = "gnt1"; |
227 | lantiq,groups = "gnt1"; |
|
229 | lantiq,function = "pci"; |
228 | lantiq,function = "pci"; |
|
230 | lantiq,output = <1>; |
229 | lantiq,output = <1>; |
|
231 | lantiq,open-drain = <0>; |
230 | lantiq,open-drain = <0>; |
|
232 | lantiq,pull = <0>; |
231 | lantiq,pull = <0>; |
|
233 | }; |
232 | }; |
|
234 | pci_rst { |
233 | pci_rst { |
|
235 | lantiq,pins = "io21"; |
234 | lantiq,pins = "io21"; |
|
236 | lantiq,output = <1>; |
235 | lantiq,output = <1>; |
|
237 | lantiq,open-drain = <0>; |
236 | lantiq,open-drain = <0>; |
|
238 | lantiq,pull = <2>; |
237 | lantiq,pull = <2>; |
|
239 | }; |
238 | }; |
|
240 | pcie-rst { |
239 | pcie-rst { |
|
241 | lantiq,pins = "io38"; |
240 | lantiq,pins = "io38"; |
|
242 | lantiq,pull = <0>; |
241 | lantiq,pull = <0>; |
|
243 | lantiq,output = <1>; |
242 | lantiq,output = <1>; |
|
244 | }; |
243 | }; |
|
245 | ifxhcd-rst { |
244 | ifxhcd-rst { |
|
246 | lantiq,pins = "io33"; |
245 | lantiq,pins = "io33"; |
|
247 | lantiq,pull = <0>; |
246 | lantiq,pull = <0>; |
|
248 | lantiq,open-drain = <0>; |
247 | lantiq,open-drain = <0>; |
|
249 | lantiq,output = <1>; |
248 | lantiq,output = <1>; |
|
250 | }; |
249 | }; |
|
251 | nand_out { |
250 | nand_out { |
|
252 | lantiq,groups = "nand cle", "nand ale"; |
251 | lantiq,groups = "nand cle", "nand ale"; |
|
253 | lantiq,function = "ebu"; |
252 | lantiq,function = "ebu"; |
|
254 | lantiq,output = <1>; |
253 | lantiq,output = <1>; |
|
255 | lantiq,open-drain = <0>; |
254 | lantiq,open-drain = <0>; |
|
256 | lantiq,pull = <0>; |
255 | lantiq,pull = <0>; |
|
257 | }; |
256 | }; |
|
258 | nand_cs1 { |
257 | nand_cs1 { |
|
259 | lantiq,groups = "nand cs1"; |
258 | lantiq,groups = "nand cs1"; |
|
260 | lantiq,function = "ebu"; |
259 | lantiq,function = "ebu"; |
|
261 | lantiq,open-drain = <0>; |
260 | lantiq,open-drain = <0>; |
|
262 | lantiq,pull = <0>; |
261 | lantiq,pull = <0>; |
|
263 | }; |
262 | }; |
|
264 | }; |
263 | }; |
|
265 | }; |
264 | }; |
|
266 | |
265 | |
|
267 | &pci0 { |
266 | &pci0 { |
|
268 | status = "okay"; |
267 | status = "okay"; |
|
269 | gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>; |
268 | gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>; |
|
270 | }; |
269 | }; |
|
271 | |
270 | |
|
272 | &stp { |
271 | &stp { |
|
273 | status = "okay"; |
272 | status = "okay"; |
|
274 | |
273 | |
|
275 | lantiq,shadow = <0xffffff>; |
274 | lantiq,shadow = <0xffffff>; |
|
276 | lantiq,groups = <0x7>; |
275 | lantiq,groups = <0x7>; |
|
277 | lantiq,dsl = <0x0>; |
276 | lantiq,dsl = <0x0>; |
|
278 | lantiq,phy1 = <0x0>; |
277 | lantiq,phy1 = <0x0>; |
|
279 | lantiq,phy2 = <0x0>; |
278 | lantiq,phy2 = <0x0>; |
|
280 | }; |
279 | }; |
|
281 | |
280 | |
|
282 | &usb_phy0 { |
281 | &usb_phy0 { |
|
283 | status = "okay"; |
282 | status = "okay"; |
|
- | 283 | phy-supply = <&usb_vbus>; |
||
284 | }; |
284 | }; |
|
285 | |
285 | |
|
286 | &usb_phy1 { |
286 | &usb_phy1 { |
|
287 | status = "okay"; |
287 | status = "okay"; |
|
- | 288 | phy-supply = <&usb_vbus>; |
||
288 | }; |
289 | }; |
|
289 | |
290 | |
|
290 | &usb0 { |
291 | &usb0 { |
|
291 | status = "okay"; |
292 | status = "okay"; |
|
292 | vbus-supply = <&usb_vbus>; |
- | ||
293 | }; |
293 | }; |
|
294 | |
294 | |
|
295 | &usb1 { |
295 | &usb1 { |
|
296 | status = "okay"; |
296 | status = "okay"; |
|
297 | vbus-supply = <&usb_vbus>; |
- | ||
298 | }; |
297 | }; |
|
299 | |
298 | |