OpenWrt – Blame information for rev 3
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | #include "ar9.dtsi" |
2 | |||
3 | #include <dt-bindings/input/input.h> |
||
4 | |||
5 | / { |
||
6 | chosen { |
||
7 | bootargs = "root= console=ttyLTQ0,115200"; |
||
8 | }; |
||
9 | |||
10 | aliases { |
||
11 | led-boot = &power_green; |
||
12 | led-failsafe = &power_red; |
||
13 | led-running = &power_green; |
||
14 | |||
15 | led-dsl = &dsl; |
||
16 | led-internet = &internet; |
||
17 | led-usb = &led_usb; |
||
18 | led-wifi = &wifi_green; |
||
19 | }; |
||
20 | |||
21 | memory@0 { |
||
22 | reg = <0x0 0x4000000>; |
||
23 | }; |
||
24 | |||
25 | rtl8366rb { |
||
26 | compatible = "realtek,rtl8366rb"; |
||
27 | gpio-sda = <&gpio 35 GPIO_ACTIVE_HIGH>; |
||
28 | gpio-sck = <&gpio 37 GPIO_ACTIVE_HIGH>; |
||
29 | |||
30 | realtek,initvals = < |
||
31 | 0x0000 0x0830 |
||
32 | 0x0400 0x8130 |
||
33 | 0x000A 0x83ED |
||
34 | 0x0F51 0x0017 |
||
35 | 0x02F5 0x0048 |
||
36 | 0x02FA 0xFFDF |
||
37 | 0x02FB 0xFFE0 |
||
38 | 0x0450 0x0000 |
||
39 | 0x0401 0x0000 |
||
40 | 0x0431 0x0960 |
||
41 | >; |
||
42 | }; |
||
43 | |||
44 | gpio-keys-polled { |
||
45 | compatible = "gpio-keys-polled"; |
||
46 | #address-cells = <1>; |
||
47 | #size-cells = <0>; |
||
48 | poll-interval = <100>; |
||
49 | |||
50 | rfkill { |
||
51 | label = "rfkill"; |
||
52 | gpios = <&gpio 36 GPIO_ACTIVE_LOW>; |
||
53 | linux,code = <KEY_RFKILL>; |
||
54 | }; |
||
55 | wps { |
||
56 | label = "wps"; |
||
57 | gpios = <&gpio 54 GPIO_ACTIVE_LOW>; |
||
58 | linux,code = <KEY_WPS_BUTTON>; |
||
59 | }; |
||
60 | reset { |
||
61 | label = "reset"; |
||
62 | gpios = <&gpio 53 GPIO_ACTIVE_LOW>; |
||
63 | linux,code = <KEY_RESTART>; |
||
64 | }; |
||
65 | }; |
||
66 | |||
67 | gpio-leds { |
||
68 | compatible = "gpio-leds"; |
||
69 | internet: internet { |
||
70 | label = "dgn3500:green:internet"; |
||
71 | gpios = <&gpio 2 GPIO_ACTIVE_LOW>; |
||
72 | }; |
||
73 | internet2 { |
||
74 | label = "dgn3500:red:internet"; |
||
75 | gpios = <&gpio 30 GPIO_ACTIVE_LOW>; |
||
76 | }; |
||
77 | dsl: dsl { |
||
78 | label = "dgn3500:green:dsl"; |
||
79 | gpios = <&gpio 4 GPIO_ACTIVE_LOW>; |
||
80 | }; |
||
81 | led_usb: usb { |
||
82 | label = "dgn3500:green:usb"; |
||
83 | gpios = <&gpio 22 GPIO_ACTIVE_LOW>; |
||
84 | }; |
||
85 | power_green: power { |
||
86 | label = "dgn3500:green:power"; |
||
87 | gpios = <&gpio 34 GPIO_ACTIVE_LOW>; |
||
88 | default-state = "keep"; |
||
89 | }; |
||
90 | power_red: power2 { |
||
91 | label = "dgn3500:red:power"; |
||
92 | gpios = <&gpio 39 GPIO_ACTIVE_LOW>; |
||
93 | }; |
||
94 | wifi_green: wifi { |
||
95 | label = "dgn3500:green:wireless"; |
||
96 | gpios = <&gpio 14 GPIO_ACTIVE_LOW>; |
||
97 | }; |
||
98 | wifi2 { |
||
99 | label = "dgn3500:amber:wireless"; |
||
100 | gpios = <&gpio 51 GPIO_ACTIVE_LOW>; |
||
101 | }; |
||
102 | wps { |
||
103 | label = "dgn3500:green:wps"; |
||
104 | gpios = <&gpio 52 GPIO_ACTIVE_LOW>; |
||
105 | }; |
||
106 | }; |
||
107 | }; |
||
108 | |||
109 | &gpio { |
||
110 | pinctrl-names = "default"; |
||
111 | pinctrl-0 = <&state_default>; |
||
112 | |||
113 | state_default: pinmux { |
||
114 | exin { |
||
115 | lantiq,groups = "exin1"; |
||
116 | lantiq,function = "exin"; |
||
117 | }; |
||
118 | pci { |
||
119 | lantiq,groups = "gnt1", "req1"; |
||
120 | lantiq,function = "pci"; |
||
121 | }; |
||
122 | pci-in { |
||
123 | lantiq,groups = "req1"; |
||
124 | lantiq,output = <0>; |
||
125 | lantiq,open-drain = <1>; |
||
126 | lantiq,pull = <2>; |
||
127 | }; |
||
128 | pci-out { |
||
129 | lantiq,groups = "gnt1"; |
||
130 | lantiq,output = <1>; |
||
131 | lantiq,pull = <0>; |
||
132 | }; |
||
133 | }; |
||
134 | pins_spi_default: pins_spi_default { |
||
135 | spi_in { |
||
136 | lantiq,groups = "spi_di"; |
||
137 | lantiq,function = "spi"; |
||
138 | }; |
||
139 | spi_out { |
||
140 | lantiq,groups = "spi_do", "spi_clk", |
||
141 | "spi_cs4"; |
||
142 | lantiq,function = "spi"; |
||
143 | lantiq,output = <1>; |
||
144 | }; |
||
145 | }; |
||
146 | }; |
||
147 | |||
148 | &gsw { |
||
149 | phy-mode = "mii"; |
||
150 | }; |
||
151 | |||
152 | &pci0 { |
||
153 | status = "okay"; |
||
154 | gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>; |
||
155 | |||
156 | wifi@168c,0029 { |
||
157 | compatible = "pci168c,0029"; |
||
158 | reg = <0x7000 0 0 0 0>; |
||
159 | qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */ |
||
160 | }; |
||
161 | }; |
||
162 | |||
163 | &spi { |
||
164 | status = "okay"; |
||
165 | |||
166 | pinctrl-names = "default"; |
||
167 | pinctrl-0 = <&pins_spi_default>; |
||
168 | |||
169 | m25p80@4 { |
||
170 | #address-cells = <1>; |
||
171 | #size-cells = <1>; |
||
172 | compatible = "jedec,spi-nor"; |
||
173 | reg = <4 0>; |
||
174 | spi-max-frequency = <20000000>; |
||
175 | |||
176 | partitions { |
||
177 | compatible = "fixed-partitions"; |
||
178 | #address-cells = <1>; |
||
179 | #size-cells = <1>; |
||
180 | |||
181 | partition@0 { |
||
182 | reg = <0x0 0x10000>; |
||
183 | label = "uboot"; |
||
184 | read-only; |
||
185 | }; |
||
186 | |||
187 | partition@10000 { |
||
188 | reg = <0x10000 0x10000>; |
||
189 | label = "uboot-env"; |
||
190 | read-only; |
||
191 | }; |
||
192 | |||
193 | ath9k_cal: partition@20000 { |
||
194 | reg = <0x20000 0x10000>; |
||
195 | label = "calibration"; |
||
196 | read-only; |
||
197 | }; |
||
198 | |||
199 | partition@50000 { |
||
200 | reg = <0x50000 0xfa0000>; |
||
201 | label = "firmware"; |
||
202 | }; |
||
203 | }; |
||
204 | }; |
||
205 | }; |
||
206 | |||
207 | &usb_phy0 { |
||
208 | status = "okay"; |
||
209 | }; |
||
210 | |||
211 | &usb0 { |
||
212 | status = "okay"; |
||
213 | }; |