d4b470561264400219868456fbf63a7b2cae5381
[openwrt/staging/mkresin.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 led-upgrade = &power_green;
20
21 led-dsl = &dsl_green;
22 led-internet = &online_green;
23 led-wifi = &wireless_green;
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 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 usb_vbus: regulator-usb-vbus {
81 compatible = "regulator-fixed";
82
83 regulator-name = "USB_VBUS";
84
85 regulator-min-microvolt = <5000000>;
86 regulator-max-microvolt = <5000000>;
87
88 gpio = <&gpio 14 GPIO_ACTIVE_HIGH>;
89 enable-active-high;
90 };
91 };
92
93 &gpio {
94 pinctrl-names = "default";
95 pinctrl-0 = <&state_default>;
96
97 state_default: pinmux {
98 pci_in {
99 lantiq,groups = "req1";
100 lantiq,function = "pci";
101 lantiq,open-drain = <1>;
102 lantiq,pull = <2>;
103 lantiq,output = <0>;
104 };
105 pci_out {
106 lantiq,groups = "gnt1";
107 lantiq,function = "pci";
108 lantiq,output = <1>;
109 };
110 pci_rst {
111 lantiq,pins = "io21";
112 lantiq,pull = <2>;
113 lantiq,output = <1>;
114 };
115 relay {
116 lantiq,pins = "io31";
117 lantiq,output = <1>;
118 };
119 };
120 };
121
122 &gsw {
123 phy-mode = "mii";
124 mtd-mac-address = <&art 0x16>;
125 };
126
127 &localbus {
128 nor@0 {
129 compatible = "lantiq,nor";
130 bank-width = <2>;
131 reg = <0 0x0 0x800000>;
132
133 partitions {
134 compatible = "fixed-partitions";
135 #address-cells = <1>;
136 #size-cells = <1>;
137
138 partition@0 {
139 label = "uboot";
140 reg = <0x00000 0x30000>; /* 192 KiB */
141 read-only;
142 };
143
144 partition@30000 {
145 label = "uboot";
146 reg = <0x30000 0x10000>; /* 64 KiB */
147 read-only;
148 };
149
150 partition@40000 {
151 label = "firmware";
152 reg = <0x40000 0x7B0000>; /* 7872 KiB */
153 };
154
155 art: partition@7F0000 {
156 label = "art";
157 reg = <0x7F0000 0x10000>; /* 64 KiB*/
158 read-only;
159 };
160 };
161 };
162 };
163
164 &pci0 {
165 status = "okay";
166 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
167
168 wifi@168c,0029 {
169 compatible = "pci168c,0029";
170 reg = <0x7000 0 0 0 0>;
171 qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */
172 mtd-mac-address = <&art 0x16>;
173 mtd-mac-address-increment = <1>;
174 };
175 };
176
177 &usb_phy {
178 status = "okay";
179 };
180
181 &usb {
182 status = "okay";
183 vbus-supply = <&usb_vbus>;
184 };
185
186 &vmmc {
187 status = "okay";
188 gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
189 };