OpenWrt – Blame information for rev 2
?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,arv752dpw", "lantiq,xway", "lantiq,danube"; |
||
9 | model = "Arcor 802"; |
||
10 | |||
11 | chosen { |
||
12 | bootargs = "console=ttyLTQ0,115200"; |
||
13 | }; |
||
14 | |||
15 | aliases { |
||
16 | led-boot = &power_red; |
||
17 | led-failsafe = &power_blue; |
||
18 | led-running = &power_red; |
||
19 | led-upgrade = &power_red; |
||
20 | |||
21 | led-dsl = &internet_red; |
||
22 | led-usb = &umts; |
||
23 | led-wifi = &wifi; |
||
24 | }; |
||
25 | |||
26 | memory@0 { |
||
27 | reg = <0x0 0x4000000>; |
||
28 | }; |
||
29 | |||
30 | gpio-keys-polled { |
||
31 | compatible = "gpio-keys-polled"; |
||
32 | #address-cells = <1>; |
||
33 | #size-cells = <0>; |
||
34 | poll-interval = <100>; |
||
35 | |||
36 | wps { |
||
37 | label = "wps"; |
||
38 | gpios = <&gpio 11 GPIO_ACTIVE_LOW>; |
||
39 | linux,code = <KEY_WPS_BUTTON>; |
||
40 | }; |
||
41 | restart { |
||
42 | label = "restart"; |
||
43 | gpios = <&gpio 12 GPIO_ACTIVE_LOW>; |
||
44 | linux,code = <KEY_POWER>; |
||
45 | }; |
||
46 | dsl { |
||
47 | label = "dsl"; |
||
48 | gpios = <&gpio 13 GPIO_ACTIVE_LOW>; |
||
49 | linux,code = <BTN_0>; |
||
50 | }; |
||
51 | reset { |
||
52 | label = "reset"; |
||
53 | gpios = <&gpio 30 GPIO_ACTIVE_LOW>; |
||
54 | linux,code = <KEY_RESTART>; |
||
55 | }; |
||
56 | }; |
||
57 | |||
58 | gpio-leds { |
||
59 | compatible = "gpio-leds"; |
||
60 | power_blue: power1 { |
||
61 | label = "arv752dpw:blue:power"; |
||
62 | gpios = <&gpio 3 GPIO_ACTIVE_LOW>; |
||
63 | }; |
||
64 | internet_red: internet { |
||
65 | label = "arv752dpw:red:internet"; |
||
66 | gpios = <&gpio 4 GPIO_ACTIVE_LOW>; |
||
67 | }; |
||
68 | message { |
||
69 | label = "arv752dpw:red:message"; |
||
70 | gpios = <&gpio 5 GPIO_ACTIVE_LOW>; |
||
71 | }; |
||
72 | power_red: power { |
||
73 | label = "arv752dpw:red:power"; |
||
74 | gpios = <&gpio 6 GPIO_ACTIVE_LOW>; |
||
75 | default-state = "keep"; |
||
76 | }; |
||
77 | voice1 { |
||
78 | label = "arv752dpw:red:voice"; |
||
79 | gpios = <&gpio 8 GPIO_ACTIVE_LOW>; |
||
80 | }; |
||
81 | umts: umts { |
||
82 | label = "arv752dpw:red:umts"; |
||
83 | gpios = <&gpiomm 3 GPIO_ACTIVE_LOW>; |
||
84 | }; |
||
85 | wifi: wifi { |
||
86 | label = "arv752dpw:red:wifi"; |
||
87 | gpios = <&gpiomm 4 GPIO_ACTIVE_LOW>; |
||
88 | }; |
||
89 | fxs1 { |
||
90 | label = "arv752dpw:green:tae-n"; |
||
91 | gpios = <&gpiomm 5 GPIO_ACTIVE_LOW>; |
||
92 | }; |
||
93 | fxs2 { |
||
94 | label = "arv752dpw:green:tae-u"; |
||
95 | gpios = <&gpiomm 6 GPIO_ACTIVE_LOW>; |
||
96 | }; |
||
97 | fxo { |
||
98 | label = "arv752dpw:green:isdn"; |
||
99 | gpios = <&gpiomm 7 GPIO_ACTIVE_LOW>; |
||
100 | }; |
||
101 | internet2 { |
||
102 | label = "arv752dpw:blue:internet"; |
||
103 | gpios = <&gpiomm 8 GPIO_ACTIVE_LOW>; |
||
104 | }; |
||
105 | voice2 { |
||
106 | label = "arv752dpw:blue:voice"; |
||
107 | gpios = <&gpiomm 9 GPIO_ACTIVE_LOW>; |
||
108 | }; |
||
109 | }; |
||
110 | }; |
||
111 | |||
112 | &gpio { |
||
113 | pinctrl-names = "default"; |
||
114 | pinctrl-0 = <&state_default>; |
||
115 | |||
116 | state_default: pinmux { |
||
117 | ebu { |
||
118 | lantiq,groups = "ebu cs1"; |
||
119 | lantiq,function = "ebu"; |
||
120 | }; |
||
121 | exin { |
||
122 | lantiq,groups = "exin1"; |
||
123 | lantiq,function = "exin"; |
||
124 | lantiq,pull = <2>; |
||
125 | lantiq,output = <0>; |
||
126 | }; |
||
127 | pci_in { |
||
128 | lantiq,groups = "req2", "req1"; |
||
129 | lantiq,function = "pci"; |
||
130 | lantiq,open-drain = <1>; |
||
131 | lantiq,pull = <2>; |
||
132 | lantiq,output = <0>; |
||
133 | }; |
||
134 | pci_out { |
||
135 | lantiq,groups = "gnt1"; |
||
136 | lantiq,function = "pci"; |
||
137 | lantiq,output = <1>; |
||
138 | }; |
||
139 | pci_rst { |
||
140 | lantiq,pins = "io21"; |
||
141 | lantiq,pull = <2>; |
||
142 | lantiq,output = <1>; |
||
143 | }; |
||
144 | leds { |
||
145 | lantiq,pins = "io3", "io5", "io6", "io8"; |
||
146 | lantiq,output = <1>; |
||
147 | lantiq,pull = <0>; |
||
148 | }; |
||
149 | keys { |
||
150 | lantiq,pins = "io11", "io12", "io13", "io28"; |
||
151 | lantiq,output = <0>; |
||
152 | lantiq,pull = <2>; |
||
153 | lantiq,open-drain = <1>; |
||
154 | }; |
||
155 | }; |
||
156 | |||
157 | usb_vbus: regulator-usb-vbus { |
||
158 | compatible = "regulator-fixed"; |
||
159 | |||
160 | regulator-name = "USB_VBUS"; |
||
161 | |||
162 | regulator-min-microvolt = <5000000>; |
||
163 | regulator-max-microvolt = <5000000>; |
||
164 | |||
165 | gpio = <&gpiomm 0 GPIO_ACTIVE_HIGH>; |
||
166 | enable-active-high; |
||
167 | }; |
||
168 | }; |
||
169 | |||
170 | &gpiomm { |
||
171 | status = "okay"; |
||
172 | lantiq,shadow = <0x3>; |
||
173 | }; |
||
174 | |||
175 | &gsw { |
||
176 | phy-mode = "rmii"; |
||
177 | mtd-mac-address = <&boardconfig 0x16>; |
||
178 | }; |
||
179 | |||
180 | &localbus { |
||
181 | nor@0 { |
||
182 | compatible = "lantiq,nor"; |
||
183 | bank-width = <2>; |
||
184 | reg = <0 0x0 0x800000>; |
||
185 | #address-cells = <1>; |
||
186 | #size-cells = <1>; |
||
187 | |||
188 | partitions { |
||
189 | compatible = "fixed-partitions"; |
||
190 | #address-cells = <1>; |
||
191 | #size-cells = <1>; |
||
192 | |||
193 | partition@0 { |
||
194 | label = "uboot"; |
||
195 | reg = <0x00000 0x10000>; |
||
196 | read-only; |
||
197 | }; |
||
198 | |||
199 | partition@10000 { |
||
200 | label = "uboot_env"; |
||
201 | reg = <0x10000 0x10000>; |
||
202 | read-only; |
||
203 | }; |
||
204 | |||
205 | partition@20000 { |
||
206 | label = "firmware"; |
||
207 | reg = <0x20000 0x7d0000>; |
||
208 | }; |
||
209 | |||
210 | boardconfig: partition@7f0000 { |
||
211 | label = "board_config"; |
||
212 | reg = <0x7f0000 0x10000>; |
||
213 | read-only; |
||
214 | }; |
||
215 | }; |
||
216 | }; |
||
217 | }; |
||
218 | |||
219 | &pci0 { |
||
220 | status = "okay"; |
||
221 | lantiq,external-clock; |
||
222 | gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>; |
||
223 | interrupt-map = <0x7000 0 0 1 &icu0 135>; |
||
224 | req-mask = <0x3>; |
||
225 | |||
226 | wifi@1814,0601 { |
||
227 | compatible = "pci1814,0601"; |
||
228 | reg = <0x7000 0 0 0 0>; |
||
229 | ralink,mtd-eeprom = <&boardconfig 0x410>; |
||
230 | ralink,mtd-eeprom-swap; |
||
231 | }; |
||
232 | }; |
||
233 | |||
234 | &usb_phy { |
||
235 | status = "okay"; |
||
236 | }; |
||
237 | |||
238 | &usb { |
||
239 | status = "okay"; |
||
240 | vbus-supply = <&usb_vbus>; |
||
241 | }; |
||
242 | |||
243 | &vmmc { |
||
244 | status = "okay"; |
||
245 | gpios = <&gpiomm 1 GPIO_ACTIVE_HIGH>; |
||
246 | }; |