lantiq: move dts-v1 statement to top-level DTSI files
[openwrt/staging/mkresin.git] / target / linux / lantiq / files-5.4 / arch / mips / boot / dts / lantiq / danube_arcadyan_arv8539pw22.dts
1 #include "danube.dtsi"
2
3 #include <dt-bindings/input/input.h>
4
5 / {
6 compatible = "arcadyan,arv8539pw22", "lantiq,xway", "lantiq,danube";
7 model = "Speedport W 504V Typ A";
8
9 chosen {
10 bootargs = "console=ttyLTQ0,115200";
11 };
12
13 aliases {
14 led-boot = &power_green;
15 led-failsafe = &power_red;
16 led-running = &power_green;
17 led-upgrade = &power_green;
18
19 led-dsl = &dsl_green;
20 led-internet = &online_green;
21 led-wifi = &wireless_green;
22 };
23
24 memory@0 {
25 device_type = "memory";
26 reg = <0x0 0x4000000>;
27 };
28
29 keys {
30 compatible = "gpio-keys-polled";
31 poll-interval = <100>;
32
33 wlan {
34 label = "wlan";
35 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_WPS_BUTTON>;
37 };
38 reset {
39 label = "reset";
40 gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
41 linux,code = <KEY_RESTART>;
42 };
43 /* key DECT is missing */
44 };
45
46 leds {
47 compatible = "gpio-leds";
48
49 power_green: power-green {
50 label = "arv8539pw22:green:power";
51 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
52 default-state = "keep";
53 };
54 power_red: power-red {
55 label = "arv8539pw22:red:power";
56 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
57 };
58
59 dsl_green: dsl-green {
60 label = "arv8539pw22:green:dsl";
61 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
62 };
63
64 online_green: online-green {
65 label = "arv8539pw22:green:online";
66 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
67 };
68
69 wireless_green: wireless-green {
70 label = "arv8539pw22:green:wlan";
71 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
72 };
73 /*
74 telefonie green is missing
75 */
76 };
77
78 usb_vbus: regulator-usb-vbus {
79 compatible = "regulator-fixed";
80
81 regulator-name = "USB_VBUS";
82
83 regulator-min-microvolt = <5000000>;
84 regulator-max-microvolt = <5000000>;
85
86 gpio = <&gpio 14 GPIO_ACTIVE_HIGH>;
87 enable-active-high;
88 };
89 };
90
91 &gpio {
92 pinctrl-names = "default";
93 pinctrl-0 = <&state_default>;
94
95 state_default: pinmux {
96 pci_rst {
97 lantiq,pins = "io21";
98 lantiq,pull = <2>;
99 lantiq,output = <1>;
100 };
101 relay {
102 lantiq,pins = "io31";
103 lantiq,output = <1>;
104 };
105 };
106 };
107
108 &gsw {
109 phy-mode = "mii";
110 mtd-mac-address = <&art 0x16>;
111 };
112
113 &localbus {
114 flash@0 {
115 compatible = "lantiq,nor";
116 bank-width = <2>;
117 reg = <0 0x0 0x800000>;
118
119 partitions {
120 compatible = "fixed-partitions";
121 #address-cells = <1>;
122 #size-cells = <1>;
123
124 partition@0 {
125 label = "uboot";
126 reg = <0x00000 0x30000>; /* 192 KiB */
127 read-only;
128 };
129
130 partition@30000 {
131 label = "uboot";
132 reg = <0x30000 0x10000>; /* 64 KiB */
133 read-only;
134 };
135
136 partition@40000 {
137 label = "firmware";
138 reg = <0x40000 0x7b0000>; /* 7872 KiB */
139 };
140
141 art: partition@7f0000 {
142 label = "art";
143 reg = <0x7f0000 0x10000>; /* 64 KiB*/
144 read-only;
145 };
146 };
147 };
148 };
149
150 &pci0 {
151 status = "okay";
152
153 pinctrl-0 = <&pci_gnt1_pins>, <&pci_req1_pins>;
154 pinctrl-names = "default";
155
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_phy {
168 status = "okay";
169 };
170
171 &usb {
172 status = "okay";
173 vbus-supply = <&usb_vbus>;
174 };
175
176 &vmmc {
177 status = "okay";
178 gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
179 };