octeontx: drop target
[openwrt/openwrt.git] / target / linux / lantiq / files / arch / mips / boot / dts / lantiq / ar9_avm_fritz7320.dts
1 #include "ar9.dtsi"
2
3 #include <dt-bindings/input/input.h>
4 #include <dt-bindings/leds/common.h>
5 #include <dt-bindings/mtd/partitions/uimage.h>
6
7 / {
8 compatible = "avm,fritz7320", "lantiq,xway", "lantiq,ar9";
9 model = "AVM FRITZ!Box 7320";
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-dsl = &info_green;
22 led-wifi = &wlan;
23 };
24
25 memory@0 {
26 device_type = "memory";
27 reg = <0x0 0x4000000>;
28 };
29
30 keys {
31 compatible = "gpio-keys-polled";
32 poll-interval = <100>;
33
34 rfkill {
35 label = "rfkill";
36 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_RFKILL>;
38 };
39 dect {
40 label = "dect";
41 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_PHONE>;
43 };
44 };
45
46 leds {
47 compatible = "gpio-leds";
48 power: power {
49 function = LED_FUNCTION_POWER;
50 color = <LED_COLOR_ID_GREEN>;
51 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
52 default-state = "keep";
53 };
54 voice {
55 label = "green:fon";
56 gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
57 };
58 dect {
59 label = "green:dect";
60 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
61 };
62 wlan: wlan {
63 function = LED_FUNCTION_WLAN;
64 color = <LED_COLOR_ID_GREEN>;
65 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
66 };
67 info_green: info_green {
68 label = "green:info";
69 gpios = <&gpio 35 GPIO_ACTIVE_LOW>;
70 };
71 info_red {
72 label = "red:info";
73 gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
74 };
75 };
76
77 usb0_vbus: regulator-usb0-vbus {
78 compatible = "regulator-fixed";
79
80 regulator-name = "USB0_VBUS";
81
82 regulator-min-microvolt = <5000000>;
83 regulator-max-microvolt = <5000000>;
84
85 gpio = <&gpio 50 GPIO_ACTIVE_HIGH>;
86 enable-active-high;
87 };
88
89 usb1_vbus: regulator-usb1-vbus {
90 compatible = "regulator-fixed";
91
92 regulator-name = "USB1_VBUS";
93
94 regulator-min-microvolt = <5000000>;
95 regulator-max-microvolt = <5000000>;
96
97 gpio = <&gpio 51 GPIO_ACTIVE_HIGH>;
98 enable-active-high;
99 };
100 };
101
102 &gsw {
103 phy-mode = "mii";
104 phy-handle = <&phy0>;
105 nvmem-cells = <&macaddr_ath9k_cal_a91 (-2)>;
106 nvmem-cell-names = "mac-address";
107
108 mdio-bus {
109 #address-cells = <1>;
110 #size-cells = <0>;
111
112 phy0: ethernet-phy@0 {
113 reg = <0>;
114 reset-gpios = <&gpio 36 GPIO_ACTIVE_LOW>;
115 };
116 };
117 };
118
119 &gpio {
120 pinctrl-names = "default";
121 pinctrl-0 = <&state_default>;
122
123 state_default: pinmux {
124 phy-rst {
125 lantiq,pins = "io36";
126 lantiq,pull = <0>;
127 lantiq,open-drain;
128 lantiq,output = <1>;
129 };
130 usb0_vbus {
131 lantiq,pins = "io50";
132 lantiq,pull = <0>;
133 lantiq,open-drain = <0>;
134 lantiq,output = <1>;
135 };
136 usb1_vbus {
137 lantiq,pins = "io51";
138 lantiq,pull = <0>;
139 lantiq,open-drain = <0>;
140 lantiq,output = <1>;
141 };
142 };
143 };
144
145 &localbus {
146 flash@0 {
147 compatible = "lantiq,nor";
148 bank-width = <2>;
149 reg = <0 0x0 0x1000000>;
150
151 partitions {
152 compatible = "fixed-partitions";
153 #address-cells = <1>;
154 #size-cells = <1>;
155
156 ath9k_cal: partition@0 {
157 label = "urlader";
158 reg = <0x00000 0x20000>;
159 read-only;
160
161 nvmem-layout {
162 compatible = "fixed-layout";
163 #address-cells = <1>;
164 #size-cells = <1>;
165
166 macaddr_ath9k_cal_a91: macaddr@a91 {
167 compatible = "mac-base";
168 reg = <0xa91 0x6>;
169 #nvmem-cell-cells = <1>;
170 };
171 };
172 };
173
174 partition@20000 {
175 compatible = "openwrt,uimage", "denx,uimage";
176 label = "firmware";
177 reg = <0x20000 0xf60000>;
178 openwrt,ih-magic = <IH_MAGIC_OKLI>;
179 openwrt,offset = <0x11000>;
180 };
181
182 partition@f80000 {
183 label = "tffs (1)";
184 reg = <0xf80000 0x40000>;
185 read-only;
186 };
187
188 partition@fc0000 {
189 label = "tffs (2)";
190 reg = <0xfc0000 0x40000>;
191 read-only;
192 };
193 };
194 };
195 };
196
197 &pci0 {
198 status = "okay";
199
200 pinctrl-0 = <&pci_gnt1_pins>, <&pci_gnt2_pins>,
201 <&pci_gnt3_pins>, <&pci_gnt4_pins>,
202 <&pci_req1_pins>, <&pci_req2_pins>,
203 <&pci_req3_pins>, <&pci_req4_pins>;
204
205 req-mask = <0xf>;
206 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
207
208 wifi@0,0 {
209 compatible = "pci0,0";
210 reg = <0x7000 0 0 0 0>;
211 qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */
212 };
213 };
214
215 &usb_phy0 {
216 status = "okay";
217 };
218
219 &usb_phy1 {
220 status = "okay";
221 };
222
223 &usb0 {
224 status = "okay";
225 vbus-supply = <&usb0_vbus>;
226 };
227
228 &usb1 {
229 status = "okay";
230 vbus-supply = <&usb1_vbus>;
231 };