9fbac6fa1298aaae313a56eefb34c6b951b64468
[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
74 &gsw {
75 phy-mode = "mii";
76 mtd-mac-address = <&ath9k_cal 0xa91>;
77 mtd-mac-address-increment = <(-2)>;
78 };
79
80 &localbus {
81 flash@0 {
82 compatible = "lantiq,nor";
83 bank-width = <2>;
84 reg = <0 0x0 0x1000000>;
85
86 partitions {
87 compatible = "fixed-partitions";
88 #address-cells = <1>;
89 #size-cells = <1>;
90
91 ath9k_cal: partition@0 {
92 label = "urlader";
93 reg = <0x00000 0x20000>;
94 read-only;
95 };
96
97 partition@20000 {
98 label = "firmware";
99 reg = <0x20000 0xf60000>;
100 };
101
102 partition@f80000 {
103 label = "tffs (1)";
104 reg = <0xf80000 0x40000>;
105 read-only;
106 };
107
108 partition@fc0000 {
109 label = "tffs (2)";
110 reg = <0xfc0000 0x40000>;
111 read-only;
112 };
113 };
114 };
115 };
116
117 &pci0 {
118 status = "okay";
119
120 pinctrl-0 = <&pci_gnt1_pins>, <&pci_gnt2_pins>,
121 <&pci_gnt3_pins>, <&pci_gnt4_pins>,
122 <&pci_req1_pins>, <&pci_req2_pins>,
123 <&pci_req3_pins>, <&pci_req4_pins>;
124
125 req-mask = <0xf>;
126 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
127
128 wifi@0,0 {
129 compatible = "pci0,0";
130 reg = <0x7000 0 0 0 0>;
131 qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */
132 };
133 };
134
135 &usb_phy0 {
136 status = "okay";
137 };
138
139 &usb_phy1 {
140 status = "okay";
141 };
142
143 &usb0 {
144 status = "okay";
145 };
146
147 &usb1 {
148 status = "okay";
149 };