OpenWrt – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /dts-v1/; |
2 | |||
3 | #include "ar9.dtsi" |
||
4 | |||
5 | #include <dt-bindings/input/input.h> |
||
6 | |||
7 | / { |
||
8 | compatible = "avm,fritz7312", "lantiq,xway", "lantiq,ar9"; |
||
9 | model = "AVM FRITZ!Box 7312"; |
||
10 | |||
11 | chosen { |
||
12 | bootargs = "console=ttyLTQ0,115200"; |
||
13 | }; |
||
14 | |||
15 | aliases { |
||
16 | led-boot = &power; |
||
17 | led-failsafe = &power; |
||
18 | led-running = &power; |
||
19 | led-upgrade = &power; |
||
20 | |||
21 | led-internet = &info_green; |
||
22 | led-dsl = &power; |
||
23 | led-wifi = &wlan; |
||
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 | wlan { |
||
37 | label = "wlan"; |
||
38 | gpios = <&gpio 1 GPIO_ACTIVE_LOW>; |
||
39 | linux,code = <KEY_RFKILL>; |
||
40 | }; |
||
41 | dect { |
||
42 | label = "dect"; |
||
43 | gpios = <&gpio 2 GPIO_ACTIVE_LOW>; |
||
44 | linux,code = <KEY_PHONE>; |
||
45 | }; |
||
46 | }; |
||
47 | |||
48 | gpio-leds { |
||
49 | compatible = "gpio-leds"; |
||
50 | |||
51 | power: power { |
||
52 | label = "fritz7312:green:power"; |
||
53 | gpios = <&gpio 44 GPIO_ACTIVE_LOW>; |
||
54 | default-state = "keep"; |
||
55 | }; |
||
56 | voice { |
||
57 | label = "fritz7312:green:fon"; |
||
58 | gpios = <&gpio 47 GPIO_ACTIVE_LOW>; |
||
59 | }; |
||
60 | dect { |
||
61 | label = "fritz7312:green:dect"; |
||
62 | gpios = <&gpio 38 GPIO_ACTIVE_LOW>; |
||
63 | }; |
||
64 | wlan: wlan { |
||
65 | label = "fritz7312:green:wlan"; |
||
66 | gpios = <&gpio 37 GPIO_ACTIVE_LOW>; |
||
67 | }; |
||
68 | info_green: info_green { |
||
69 | label = "fritz7312:green:info"; |
||
70 | gpios = <&gpio 35 GPIO_ACTIVE_LOW>; |
||
71 | }; |
||
72 | }; |
||
73 | }; |
||
74 | |||
75 | &gpio { |
||
76 | pinctrl-names = "default"; |
||
77 | pinctrl-0 = <&state_default>; |
||
78 | |||
79 | state_default: pinmux { |
||
80 | pci { |
||
81 | lantiq,groups = "gnt1", "req1", "req2", "req4", "gnt2", "gnt3", "gnt4"; |
||
82 | lantiq,function = "pci"; |
||
83 | }; |
||
84 | pci-in { |
||
85 | lantiq,groups = "req1", "req2", "req4"; |
||
86 | lantiq,output = <0>; |
||
87 | lantiq,open-drain = <1>; |
||
88 | lantiq,pull = <2>; |
||
89 | }; |
||
90 | pci-out { |
||
91 | lantiq,groups = "gnt1", "gnt2", "gnt3", "gnt4"; |
||
92 | lantiq,output = <1>; |
||
93 | lantiq,pull = <0>; |
||
94 | }; |
||
95 | ar8030-intr { |
||
96 | lantiq,groups = "exin3"; |
||
97 | lantiq,function = "exin"; |
||
98 | lantiq,pull = <2>; |
||
99 | lantiq,output = <0>; |
||
100 | }; |
||
101 | ar8030-clk { |
||
102 | lantiq,groups = "clkout2"; |
||
103 | lantiq,output = <1>; |
||
104 | lantiq,open-drain; |
||
105 | }; |
||
106 | ar8030-rst { |
||
107 | lantiq,pins = "io34"; |
||
108 | lantiq,output = <1>; |
||
109 | lantiq,pull = <2>; |
||
110 | lantiq,open-drain; |
||
111 | }; |
||
112 | }; |
||
113 | }; |
||
114 | |||
115 | &gsw { |
||
116 | phy-mode = "rmii"; |
||
117 | phy-handle = <&phy0>; |
||
118 | mtd-mac-address = <&ath9k_cal 0xa91>; |
||
119 | mtd-mac-address-increment = <(-2)>; |
||
120 | |||
121 | mdio-bus { |
||
122 | #address-cells = <1>; |
||
123 | #size-cells = <0>; |
||
124 | reg = <0>; |
||
125 | |||
126 | phy0: ethernet-phy@0 { |
||
127 | reg = <0>; |
||
128 | reset-gpios = <&gpio 34 GPIO_ACTIVE_LOW>; |
||
129 | }; |
||
130 | }; |
||
131 | }; |
||
132 | |||
133 | &localbus { |
||
134 | nor@0 { |
||
135 | compatible = "lantiq,nor"; |
||
136 | bank-width = <2>; |
||
137 | reg = <0 0x0 0x1000000>; |
||
138 | #address-cells = <1>; |
||
139 | #size-cells = <1>; |
||
140 | |||
141 | partitions { |
||
142 | compatible = "fixed-partitions"; |
||
143 | #address-cells = <1>; |
||
144 | #size-cells = <1>; |
||
145 | |||
146 | ath9k_cal: partition@0 { |
||
147 | label = "urlader"; |
||
148 | reg = <0x00000 0x20000>; |
||
149 | read-only; |
||
150 | }; |
||
151 | |||
152 | partition@20000 { |
||
153 | label = "firmware"; |
||
154 | reg = <0x20000 0xf60000>; |
||
155 | }; |
||
156 | |||
157 | partition@f80000 { |
||
158 | label = "tffs (1)"; |
||
159 | reg = <0xf80000 0x40000>; |
||
160 | read-only; |
||
161 | }; |
||
162 | |||
163 | partition@fc0000 { |
||
164 | label = "tffs (2)"; |
||
165 | reg = <0xfc0000 0x40000>; |
||
166 | read-only; |
||
167 | }; |
||
168 | }; |
||
169 | }; |
||
170 | }; |
||
171 | |||
172 | &pci0 { |
||
173 | status = "okay"; |
||
174 | req-mask = <0xf>; |
||
175 | gpio-reset = <&gpio 21 GPIO_ACTIVE_LOW>; |
||
176 | |||
177 | wifi@0,0 { |
||
178 | compatible = "pci0,0"; |
||
179 | reg = <0x7000 0 0 0 0>; |
||
180 | qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */ |
||
181 | }; |
||
182 | }; |