OpenWrt – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /dts-v1/; |
2 | |||
3 | #include "danube.dtsi" |
||
4 | |||
5 | #include <dt-bindings/input/input.h> |
||
6 | |||
7 | / { |
||
8 | compatible = "arcadyan,arv7518pw", "lantiq,xway", "lantiq,danube"; |
||
9 | model = "Astoria Networks ARV7518PW"; |
||
10 | |||
11 | chosen { |
||
12 | bootargs = "console=ttyLTQ0,115200"; |
||
13 | }; |
||
14 | |||
15 | aliases { |
||
16 | led-boot = &power_green; |
||
17 | led-failsafe = &power_red; |
||
18 | led-running = &power_green; |
||
19 | led-upgrade = &power_green; |
||
20 | |||
21 | led-dsl = &dsl; |
||
22 | led-internet = &online_green; |
||
23 | led-usb = &led_usb; |
||
24 | led-wifi = &wifi; |
||
25 | }; |
||
26 | |||
27 | memory@0 { |
||
28 | reg = <0x0 0x4000000>; |
||
29 | }; |
||
30 | |||
31 | gpio-keys-polled { |
||
32 | compatible = "gpio-keys-polled"; |
||
33 | #address-cells = <1>; |
||
34 | #size-cells = <0>; |
||
35 | poll-interval = <100>; |
||
36 | |||
37 | rfkill { |
||
38 | label = "rfkill"; |
||
39 | gpios = <&gpio 28 GPIO_ACTIVE_LOW>; |
||
40 | linux,code = <KEY_RFKILL>; |
||
41 | }; |
||
42 | reset { |
||
43 | label = "reset"; |
||
44 | gpios = <&gpio 30 GPIO_ACTIVE_LOW>; |
||
45 | linux,code = <KEY_RESTART>; |
||
46 | }; |
||
47 | }; |
||
48 | |||
49 | gpio-leds { |
||
50 | compatible = "gpio-leds"; |
||
51 | power_green: power { |
||
52 | label = "arv7518pw:green:power"; |
||
53 | gpios = <&gpio 2 GPIO_ACTIVE_LOW>; |
||
54 | default-state = "keep"; |
||
55 | }; |
||
56 | dsl: dsl { |
||
57 | label = "arv7518pw:green:dsl"; |
||
58 | gpios = <&gpio 4 GPIO_ACTIVE_LOW>; |
||
59 | }; |
||
60 | online_green: online { |
||
61 | label = "arv7518pw:green:internet"; |
||
62 | gpios = <&gpio 5 GPIO_ACTIVE_LOW>; |
||
63 | }; |
||
64 | wifi: wifi { |
||
65 | label = "arv7518pw:green:wlan"; |
||
66 | gpios = <&gpio 6 GPIO_ACTIVE_LOW>; |
||
67 | }; |
||
68 | power_red: power2 { |
||
69 | label = "arv7518pw:red:power"; |
||
70 | gpios = <&gpio 7 GPIO_ACTIVE_LOW>; |
||
71 | }; |
||
72 | online2 { |
||
73 | label = "arv7518pw:red:internet"; |
||
74 | gpios = <&gpio 8 GPIO_ACTIVE_LOW>; |
||
75 | }; |
||
76 | led_usb: usb { |
||
77 | label = "arv7518pw:green:usb"; |
||
78 | gpios = <&gpio 19 GPIO_ACTIVE_LOW>; |
||
79 | }; |
||
80 | voice { |
||
81 | label = "arv7518pw:green:voip"; |
||
82 | gpios = <&gpiomm 0 GPIO_ACTIVE_LOW>; |
||
83 | }; |
||
84 | fxs1 { |
||
85 | label = "arv7518pw:green:phone1"; |
||
86 | gpios = <&gpiomm 1 GPIO_ACTIVE_LOW>; |
||
87 | }; |
||
88 | fxs2 { |
||
89 | label = "arv7518pw:green:phone2"; |
||
90 | gpios = <&gpiomm 2 GPIO_ACTIVE_LOW>; |
||
91 | }; |
||
92 | unlabeled { |
||
93 | label = "arv7518pw:amber:unlabeled"; |
||
94 | gpios = <&gpiomm 3 GPIO_ACTIVE_LOW>; |
||
95 | }; |
||
96 | wps { |
||
97 | label = "arv7518pw:amber:wps"; |
||
98 | gpios = <&gpiomm 4 GPIO_ACTIVE_LOW>; |
||
99 | }; |
||
100 | wps2 { |
||
101 | label = "arv7518pw:green:wps"; |
||
102 | gpios = <&gpiomm 5 GPIO_ACTIVE_LOW>; |
||
103 | }; |
||
104 | wps3 { |
||
105 | label = "arv7518pw:red:wps"; |
||
106 | gpios = <&gpiomm 6 GPIO_ACTIVE_LOW>; |
||
107 | }; |
||
108 | }; |
||
109 | }; |
||
110 | |||
111 | &gpio { |
||
112 | pinctrl-names = "default"; |
||
113 | pinctrl-0 = <&state_default>; |
||
114 | |||
115 | state_default: pinmux { |
||
116 | ebu { |
||
117 | lantiq,groups = "ebu cs1"; |
||
118 | lantiq,function = "ebu"; |
||
119 | }; |
||
120 | pci_in { |
||
121 | lantiq,groups = "req1"; |
||
122 | lantiq,function = "pci"; |
||
123 | lantiq,open-drain = <1>; |
||
124 | lantiq,pull = <2>; |
||
125 | lantiq,output = <0>; |
||
126 | }; |
||
127 | pci_out { |
||
128 | lantiq,groups = "gnt1"; |
||
129 | lantiq,function = "pci"; |
||
130 | lantiq,pull = <0>; |
||
131 | lantiq,output = <1>; |
||
132 | }; |
||
133 | pci_rst { |
||
134 | lantiq,pins = "io21"; |
||
135 | lantiq,pull = <2>; |
||
136 | lantiq,output = <1>; |
||
137 | }; |
||
138 | leds { |
||
139 | lantiq,pins = "io2", "io4", "io5", "io6", "io7", "io8", "io19"; |
||
140 | lantiq,output = <1>; |
||
141 | }; |
||
142 | keys { |
||
143 | lantiq,pins = "io28", "io30"; |
||
144 | lantiq,output = <0>; |
||
145 | lantiq,pull = <2>; |
||
146 | lantiq,open-drain = <1>; |
||
147 | }; |
||
148 | }; |
||
149 | |||
150 | usb_vbus: regulator-usb-vbus { |
||
151 | compatible = "regulator-fixed"; |
||
152 | |||
153 | regulator-name = "USB_VBUS"; |
||
154 | |||
155 | regulator-min-microvolt = <5000000>; |
||
156 | regulator-max-microvolt = <5000000>; |
||
157 | |||
158 | gpio = <&gpio 14 GPIO_ACTIVE_HIGH>; |
||
159 | enable-active-high; |
||
160 | }; |
||
161 | }; |
||
162 | |||
163 | &gpiomm { |
||
164 | status = "okay"; |
||
165 | lantiq,shadow = <0x0>; |
||
166 | }; |
||
167 | |||
168 | /* |
||
169 | #define SWITCH_RESET 13 |
||
170 | */ |
||
171 | &gsw { |
||
172 | phy-mode = "mii"; |
||
173 | mtd-mac-address = <&boardconfig 0x16>; |
||
174 | }; |
||
175 | |||
176 | &localbus { |
||
177 | nor@0 { |
||
178 | compatible = "lantiq,nor"; |
||
179 | bank-width = <2>; |
||
180 | reg = <0 0x0 0x2000000>; |
||
181 | #address-cells = <1>; |
||
182 | #size-cells = <1>; |
||
183 | |||
184 | partitions { |
||
185 | compatible = "fixed-partitions"; |
||
186 | #address-cells = <1>; |
||
187 | #size-cells = <1>; |
||
188 | |||
189 | partition@0 { |
||
190 | label = "uboot"; |
||
191 | reg = <0x00000 0x10000>; |
||
192 | read-only; |
||
193 | }; |
||
194 | |||
195 | partition@10000 { |
||
196 | label = "uboot_env"; |
||
197 | reg = <0x10000 0x10000>; |
||
198 | }; |
||
199 | |||
200 | partition@20000 { |
||
201 | label = "firmware"; |
||
202 | reg = <0x20000 0x7d0000>; |
||
203 | }; |
||
204 | |||
205 | boardconfig: partition@400000 { |
||
206 | label = "boardconfig"; |
||
207 | reg = <0x7f0000 0x10000>; |
||
208 | read-only; |
||
209 | }; |
||
210 | }; |
||
211 | }; |
||
212 | }; |
||
213 | |||
214 | &pci0 { |
||
215 | status = "okay"; |
||
216 | gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>; |
||
217 | lantiq,external-clock; |
||
218 | req-mask = <0xf>; |
||
219 | |||
220 | wifi@168c,0029 { |
||
221 | compatible = "pci168c,0029"; |
||
222 | reg = <0x7000 0 0 0 0>; |
||
223 | qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */ |
||
224 | mtd-mac-address = <&boardconfig 0x16>; |
||
225 | mtd-mac-address-increment = <1>; |
||
226 | }; |
||
227 | }; |
||
228 | |||
229 | &usb_phy { |
||
230 | status = "okay"; |
||
231 | }; |
||
232 | |||
233 | &usb { |
||
234 | status = "okay"; |
||
235 | vbus-supply = <&usb_vbus>; |
||
236 | }; |
||
237 | |||
238 | &vmmc { |
||
239 | status = "okay"; |
||
240 | }; |