lantiq: kernel 4.14: cleanup dts files
[openwrt/openwrt.git] / target / linux / lantiq / files-4.14 / arch / mips / boot / dts / ARV8539PW22.dts
1 /dts-v1/;
2
3 #include "danube.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "arcadyan,arv8539pw22", "lantiq,xway", "lantiq,danube";
9 model = "Speedport W 504V Typ A";
10
11 chosen {
12 bootargs = "console=ttyLTQ0,115200";
13 };
14
15 aliases {
16 led-boot = &power_green;
17 led-failsafe = &power_red;
18 led-running = &power_green;
19
20 led-dsl = &dsl_green;
21 led-internet = &online_green;
22 led-wifi = &wireless_green;
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 wlan {
36 label = "wlan";
37 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
38 linux,code = <KEY_WPS_BUTTON>;
39 };
40 reset {
41 label = "reset";
42 gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_RESTART>;
44 };
45 /* key DECT is missing */
46 };
47
48 gpio-leds {
49 compatible = "gpio-leds";
50
51 power_green: power-green {
52 label = "arv8539pw22:green:power";
53 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
54 default-state = "keep";
55 };
56 power_red: power-red {
57 label = "arv8539pw22:red:power";
58 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
59 };
60
61 dsl_green: dsl-green {
62 label = "arv8539pw22:green:dsl";
63 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
64 };
65
66 online_green: online-green {
67 label = "arv8539pw22:green:online";
68 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
69 };
70
71 wireless_green: wireless-green {
72 label = "arv8539pw22:green:wlan";
73 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
74 };
75 /*
76 telefonie green is missing
77 */
78 };
79 };
80
81 &gpio {
82 pinctrl-names = "default";
83 pinctrl-0 = <&state_default>;
84
85 state_default: pinmux {
86 pci_in {
87 lantiq,groups = "req1";
88 lantiq,function = "pci";
89 lantiq,open-drain = <1>;
90 lantiq,pull = <2>;
91 lantiq,output = <0>;
92 };
93 pci_out {
94 lantiq,groups = "gnt1";
95 lantiq,function = "pci";
96 lantiq,output = <1>;
97 };
98 pci_rst {
99 lantiq,pins = "io21";
100 lantiq,pull = <2>;
101 lantiq,output = <1>;
102 };
103 relay {
104 lantiq,pins = "io31";
105 lantiq,output = <1>;
106 };
107 };
108 };
109
110 &gsw {
111 phy-mode = "mii";
112 mtd-mac-address = <&art 0x16>;
113 };
114
115 &localbus {
116 nor@0 {
117 compatible = "lantiq,nor";
118 bank-width = <2>;
119 reg = <0 0x0 0x800000>;
120 #address-cells = <1>;
121 #size-cells = <1>;
122
123 partitions {
124 compatible = "fixed-partitions";
125 #address-cells = <1>;
126 #size-cells = <1>;
127
128 partition@0 {
129 label = "uboot";
130 reg = <0x00000 0x30000>; /* 192 KiB */
131 read-only;
132 };
133
134 partition@30000 {
135 label = "uboot";
136 reg = <0x30000 0x10000>; /* 64 KiB */
137 read-only;
138 };
139
140 partition@40000 {
141 label = "firmware";
142 reg = <0x40000 0x7B0000>; /* 7872 KiB */
143 };
144
145 art: partition@7F0000 {
146 label = "art";
147 reg = <0x7F0000 0x10000>; /* 64 KiB*/
148 read-only;
149 };
150 };
151 };
152 };
153
154 &pci0 {
155 status = "okay";
156 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
157
158 wifi@168c,0029 {
159 compatible = "pci168c,0029";
160 reg = <0x7000 0 0 0 0>;
161 qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */
162 mtd-mac-address = <&art 0x16>;
163 mtd-mac-address-increment = <1>;
164 };
165 };
166
167 &usb {
168 status = "okay";
169 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
170 lantiq,portmask = <0x3>;
171 };
172
173 &vmmc {
174 status = "okay";
175 gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
176 };