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