5f38936577ef6ddf88f6a3be266c7efaec1e5b42
[openwrt/staging/jow.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 mtd-mac-address = <&ath9k_cal 0xa91>;
101 mtd-mac-address-increment = <(-2)>;
102 };
103
104 &gpio {
105 pinctrl-names = "default";
106 pinctrl-0 = <&state_default>;
107
108 state_default: pinmux {
109 usb0_vbus {
110 lantiq,pins = "io50";
111 lantiq,pull = <0>;
112 lantiq,open-drain = <0>;
113 lantiq,output = <1>;
114 };
115 usb1_vbus {
116 lantiq,pins = "io51";
117 lantiq,pull = <0>;
118 lantiq,open-drain = <0>;
119 lantiq,output = <1>;
120 };
121 };
122 };
123
124 &localbus {
125 flash@0 {
126 compatible = "lantiq,nor";
127 bank-width = <2>;
128 reg = <0 0x0 0x1000000>;
129
130 partitions {
131 compatible = "fixed-partitions";
132 #address-cells = <1>;
133 #size-cells = <1>;
134
135 ath9k_cal: partition@0 {
136 label = "urlader";
137 reg = <0x00000 0x20000>;
138 read-only;
139 };
140
141 partition@20000 {
142 label = "firmware";
143 reg = <0x20000 0xf60000>;
144 };
145
146 partition@f80000 {
147 label = "tffs (1)";
148 reg = <0xf80000 0x40000>;
149 read-only;
150 };
151
152 partition@fc0000 {
153 label = "tffs (2)";
154 reg = <0xfc0000 0x40000>;
155 read-only;
156 };
157 };
158 };
159 };
160
161 &pci0 {
162 status = "okay";
163
164 pinctrl-0 = <&pci_gnt1_pins>, <&pci_gnt2_pins>,
165 <&pci_gnt3_pins>, <&pci_gnt4_pins>,
166 <&pci_req1_pins>, <&pci_req2_pins>,
167 <&pci_req3_pins>, <&pci_req4_pins>;
168
169 req-mask = <0xf>;
170 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
171
172 wifi@0,0 {
173 compatible = "pci0,0";
174 reg = <0x7000 0 0 0 0>;
175 qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */
176 };
177 };
178
179 &usb_phy0 {
180 status = "okay";
181 };
182
183 &usb_phy1 {
184 status = "okay";
185 };
186
187 &usb0 {
188 status = "okay";
189 vbus-supply = <&usb0_vbus>;
190 };
191
192 &usb1 {
193 status = "okay";
194 vbus-supply = <&usb1_vbus>;
195 };