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