OpenWrt – Blame information for rev 2
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | // SPDX-License-Identifier: GPL-2.0-or-later OR MIT |
2 | /dts-v1/; |
||
3 | |||
4 | #include <dt-bindings/gpio/gpio.h> |
||
5 | #include <dt-bindings/input/input.h> |
||
6 | |||
7 | #include "ar9344.dtsi" |
||
8 | |||
9 | / { |
||
10 | model = "Winchannel WB2000"; |
||
11 | compatible = "winchannel,wb2000", "qca,ar9344"; |
||
12 | |||
13 | chosen { |
||
14 | bootargs = "console=ttyS0,115200n8"; |
||
15 | }; |
||
16 | |||
17 | aliases { |
||
18 | led-boot = &led_system; |
||
19 | led-failsafe = &led_system; |
||
20 | led-running = &led_system; |
||
21 | led-upgrade = &led_system; |
||
22 | }; |
||
23 | |||
24 | i2c { |
||
25 | compatible = "i2c-gpio"; |
||
26 | gpios = <&gpio 17 GPIO_ACTIVE_HIGH |
||
27 | &gpio 16 GPIO_ACTIVE_HIGH |
||
28 | >; |
||
29 | #address-cells = <1>; |
||
30 | #size-cells = <0>; |
||
31 | |||
32 | rtc@68 { |
||
33 | compatible = "dallas,ds1339"; |
||
34 | reg = <0x68>; |
||
35 | }; |
||
36 | }; |
||
37 | |||
38 | leds { |
||
39 | compatible = "gpio-leds"; |
||
40 | |||
41 | wlan2g { |
||
42 | label = "wb2000:green:2g"; |
||
43 | gpios = <&gpio 20 GPIO_ACTIVE_HIGH>; |
||
44 | linux,default-trigger = "phy0tpt"; |
||
45 | }; |
||
46 | |||
47 | usb { |
||
48 | label = "wb2000:green:usb"; |
||
49 | gpios = <&gpio 21 GPIO_ACTIVE_HIGH>; |
||
50 | trigger-sources = <&hub_port1>, <&hub_port2>; |
||
51 | linux,default-trigger = "usbport"; |
||
52 | }; |
||
53 | |||
54 | led_system: system { |
||
55 | label = "wb2000:green:system"; |
||
56 | gpios = <&gpio 22 GPIO_ACTIVE_LOW>; |
||
57 | default-state = "on"; |
||
58 | }; |
||
59 | }; |
||
60 | |||
61 | keys { |
||
62 | compatible = "gpio-keys-polled"; |
||
63 | poll-interval = <50>; |
||
64 | |||
65 | reset { |
||
66 | linux,code = <KEY_RESTART>; |
||
67 | gpios = <&gpio 3 GPIO_ACTIVE_LOW>; |
||
68 | debounce-interval = <60>; |
||
69 | }; |
||
70 | }; |
||
71 | |||
72 | ath9k-leds { |
||
73 | compatible = "gpio-leds"; |
||
74 | |||
75 | wlan { |
||
76 | label = "wb2000:green:5g"; |
||
77 | gpios = <&ath9k 6 GPIO_ACTIVE_LOW>; |
||
78 | linux,default-trigger = "phy1tpt"; |
||
79 | }; |
||
80 | }; |
||
81 | }; |
||
82 | |||
83 | &ref { |
||
84 | clock-frequency = <40000000>; |
||
85 | }; |
||
86 | |||
87 | &uart { |
||
88 | status = "okay"; |
||
89 | }; |
||
90 | |||
91 | &spi { |
||
92 | num-cs = <1>; |
||
93 | |||
94 | status = "okay"; |
||
95 | |||
96 | flash@0 { |
||
97 | compatible = "jedec,spi-nor"; |
||
98 | reg = <0>; |
||
99 | spi-max-frequency = <25000000>; |
||
100 | |||
101 | partitions { |
||
102 | compatible = "fixed-partitions"; |
||
103 | #address-cells = <1>; |
||
104 | #size-cells = <1>; |
||
105 | |||
106 | partition@0 { |
||
107 | label = "u-boot"; |
||
108 | reg = <0x0 0x40000>; |
||
109 | read-only; |
||
110 | }; |
||
111 | |||
112 | partition@40000 { |
||
113 | label = "u-boot-env"; |
||
114 | reg = <0x40000 0x10000>; |
||
115 | read-only; |
||
116 | }; |
||
117 | |||
118 | partition@50000 { |
||
119 | label = "firmware"; |
||
120 | reg = <0x50000 0xf80000>; |
||
121 | compatible = "denx,uimage"; |
||
122 | }; |
||
123 | |||
124 | partition@fd0000 { |
||
125 | label = "nvram"; |
||
126 | reg = <0xfd0000 0x10000>; |
||
127 | read-only; |
||
128 | }; |
||
129 | |||
130 | art: partition@fe0000 { |
||
131 | label = "art"; |
||
132 | reg = <0xfe0000 0x10000>; |
||
133 | read-only; |
||
134 | }; |
||
135 | |||
136 | addr: partition@ff0000 { |
||
137 | label = "addr"; |
||
138 | reg = <0xff0000 0x10000>; |
||
139 | read-only; |
||
140 | }; |
||
141 | }; |
||
142 | }; |
||
143 | }; |
||
144 | |||
145 | &pcie { |
||
146 | status = "okay"; |
||
147 | |||
148 | ath9k: wifi@0,0 { |
||
149 | compatible = "pci168c,0030"; |
||
150 | reg = <0x0000 0 0 0 0>; |
||
151 | qca,no-eeprom; |
||
152 | mtd-mac-address = <&addr 0x0>; |
||
153 | mtd-mac-address-increment = <0x10>; |
||
154 | #gpio-cells = <2>; |
||
155 | gpio-controller; |
||
156 | }; |
||
157 | }; |
||
158 | |||
159 | &usb { |
||
160 | #address-cells = <1>; |
||
161 | #size-cells = <0>; |
||
162 | status = "okay"; |
||
163 | |||
164 | port@1 { |
||
165 | #address-cells = <1>; |
||
166 | #size-cells = <0>; |
||
167 | reg = <1>; |
||
168 | #trigger-source-cells = <0>; |
||
169 | |||
170 | hub_port1: port@1 { |
||
171 | reg = <1>; |
||
172 | #trigger-source-cells = <0>; |
||
173 | }; |
||
174 | |||
175 | hub_port2: port@2 { |
||
176 | reg = <2>; |
||
177 | #trigger-source-cells = <0>; |
||
178 | }; |
||
179 | }; |
||
180 | }; |
||
181 | |||
182 | &usb_phy { |
||
183 | status = "okay"; |
||
184 | }; |
||
185 | |||
186 | &wmac { |
||
187 | status = "okay"; |
||
188 | |||
189 | mtd-cal-data = <&art 0x1000>; |
||
190 | mtd-mac-address = <&addr 0x0>; |
||
191 | }; |
||
192 | |||
193 | &mdio0 { |
||
194 | status = "okay"; |
||
195 | |||
196 | phy-mask = <0x10>; |
||
197 | |||
198 | phy4: ethernet-phy@4 { |
||
199 | reg = <4>; |
||
200 | }; |
||
201 | }; |
||
202 | |||
203 | ð0 { |
||
204 | status = "okay"; |
||
205 | |||
206 | pll-data = <0xe000000 0x04000101 0x04001313>; |
||
207 | |||
208 | mtd-mac-address = <&addr 0x0>; |
||
209 | mtd-mac-address-increment = <0x21>; |
||
210 | |||
211 | phy-mode = "rgmii-rxid"; |
||
212 | phy-handle = <&phy4>; |
||
213 | |||
214 | gmac-config { |
||
215 | device = <&gmac>; |
||
216 | rgmii-gmac0 = <1>; |
||
217 | rxd-delay = <1>; |
||
218 | rxdv-delay = <1>; |
||
219 | }; |
||
220 | }; |