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