467c5768e4ff642ccddeae21e60b847d8d9e7fa3
[openwrt/staging/stintel.git] / target / linux / lantiq / files / arch / mips / boot / dts / FRITZ7320.dts
1 /dts-v1/;
2
3 #include "ar9.dtsi"
4
5 #include <dt-bindings/input/input.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-internet = &info_green;
22 led-dsl = &power;
23 led-wifi = &wlan;
24 };
25
26 memory@0 {
27 device_type = "memory";
28 reg = <0x0 0x4000000>;
29 };
30
31 gpio-keys-polled {
32 compatible = "gpio-keys-polled";
33 #address-cells = <1>;
34 #size-cells = <0>;
35 poll-interval = <100>;
36
37 rfkill {
38 label = "rfkill";
39 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
40 linux,code = <KEY_RFKILL>;
41 };
42 dect {
43 label = "dect";
44 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
45 linux,code = <KEY_PHONE>;
46 };
47 };
48
49 gpio-leds {
50 compatible = "gpio-leds";
51 power: power {
52 label = "fritz7320:green:power";
53 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
54 default-state = "keep";
55 };
56 voice {
57 label = "fritz7320:green:fon";
58 gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
59 };
60 dect {
61 label = "fritz7320:green:dect";
62 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
63 };
64 wlan: wlan {
65 label = "fritz7320:green:wlan";
66 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
67 };
68 info_green: info_green {
69 label = "fritz7320:green:info";
70 gpios = <&gpio 35 GPIO_ACTIVE_LOW>;
71 };
72 info_red {
73 label = "fritz7320:red:info";
74 gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
75 };
76 };
77 };
78
79 &gpio {
80 pinctrl-names = "default";
81 pinctrl-0 = <&state_default>;
82
83 state_default: pinmux {
84 pci {
85 lantiq,groups = "gnt1", "req1", "req2", "req3", "req4", "gnt2", "gnt3", "gnt4";
86 lantiq,function = "pci";
87 };
88 pci-in {
89 lantiq,groups = "req1", "req2", "req3", "req4";
90 lantiq,output = <0>;
91 lantiq,open-drain = <1>;
92 lantiq,pull = <2>;
93 };
94 pci-out {
95 lantiq,groups = "gnt1", "gnt2", "gnt3", "gnt4";
96 lantiq,output = <1>;
97 lantiq,pull = <0>;
98 };
99 };
100 };
101
102 &gsw {
103 phy-mode = "mii";
104 mtd-mac-address = <&ath9k_cal 0xa91>;
105 mtd-mac-address-increment = <(-2)>;
106 };
107
108 &localbus {
109 nor@0 {
110 compatible = "lantiq,nor";
111 bank-width = <2>;
112 reg = <0 0x0 0x1000000>;
113 #address-cells = <1>;
114 #size-cells = <1>;
115
116 partitions {
117 compatible = "fixed-partitions";
118 #address-cells = <1>;
119 #size-cells = <1>;
120
121 ath9k_cal: partition@0 {
122 label = "urlader";
123 reg = <0x00000 0x20000>;
124 read-only;
125 };
126
127 partition@20000 {
128 label = "firmware";
129 reg = <0x20000 0xf60000>;
130 };
131
132 partition@f80000 {
133 label = "tffs (1)";
134 reg = <0xf80000 0x40000>;
135 read-only;
136 };
137
138 partition@fc0000 {
139 label = "tffs (2)";
140 reg = <0xfc0000 0x40000>;
141 read-only;
142 };
143 };
144 };
145 };
146
147 &pci0 {
148 status = "okay";
149 req-mask = <0xf>;
150 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
151
152 wifi@0,0 {
153 compatible = "pci0,0";
154 reg = <0x7000 0 0 0 0>;
155 qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */
156 };
157 };
158
159 &usb_phy0 {
160 status = "okay";
161 };
162
163 &usb_phy1 {
164 status = "okay";
165 };
166
167 &usb0 {
168 status = "okay";
169 };
170
171 &usb1 {
172 status = "okay";
173 };