lantiq: kernel 4.14: update dts files
[openwrt/staging/wigyori.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 = "1&1 HomeServer";
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
20 led-internet = &info_green;
21 led-dsl = &power;
22 led-wifi = &wlan;
23 };
24
25 memory@0 {
26 reg = <0x0 0x4000000>;
27 };
28
29 gpio-keys-polled {
30 compatible = "gpio-keys-polled";
31 #address-cells = <1>;
32 #size-cells = <0>;
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 gpio-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 nor@0 {
108 compatible = "lantiq,nor";
109 bank-width = <2>;
110 reg = <0 0x0 0x1000000>;
111 #address-cells = <1>;
112 #size-cells = <1>;
113
114 partitions {
115 compatible = "fixed-partitions";
116 #address-cells = <1>;
117 #size-cells = <1>;
118
119 ath9k_cal: partition@0 {
120 label = "urlader";
121 reg = <0x00000 0x20000>;
122 read-only;
123 };
124
125 partition@20000 {
126 label = "firmware";
127 reg = <0x20000 0xf60000>;
128 };
129
130 partition@f80000 {
131 label = "tffs (1)";
132 reg = <0xf80000 0x40000>;
133 read-only;
134 };
135
136 partition@fc0000 {
137 label = "tffs (2)";
138 reg = <0xfc0000 0x40000>;
139 read-only;
140 };
141 };
142 };
143 };
144
145 &pci0 {
146 status = "okay";
147 req-mask = <0xf>;
148 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
149
150 wifi@0,0 {
151 compatible = "pci0,0";
152 reg = <0x7000 0 0 0 0>;
153 qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */
154 };
155 };
156
157 &usb_phy0 {
158 status = "okay";
159 };
160
161 &usb0 {
162 status = "okay";
163 };