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