lantiq: copy target to kernel 5.4
[openwrt/staging/chunkeey.git] / target / linux / lantiq / files-4.19 / arch / mips / boot / dts / lantiq / danube_arcadyan_arv4525pw.dts
1 /dts-v1/;
2
3 #include "danube.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "arcadyan,arv4525pw", "lantiq,xway", "lantiq,danube";
9 model = "Speedport W501V Typ A";
10
11 chosen {
12 bootargs = "console=ttyLTQ0,115200";
13 };
14
15 aliases {
16 /* we dont have a power led, lets use the online led */
17 led-boot = &online;
18 led-failsafe = &online;
19
20 led-dsl = &dsl;
21 led-internet = &online;
22 led-wifi = &wifi;
23 };
24
25 memory@0 {
26 device_type = "memory";
27 reg = <0x0 0x2000000>;
28 };
29
30 ath5k_eep {
31 compatible = "ath5k,eeprom";
32 ath,eep-flash = <&boardconfig 0x400>;
33 ath,mac-offset = <0x0>;
34 ath,eep-swap;
35 };
36
37 keys {
38 compatible = "gpio-keys-polled";
39 poll-interval = <100>;
40
41 wps {
42 label = "wps";
43 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
44 linux,code = <KEY_WPS_BUTTON>;
45 };
46 reset {
47 label = "reset";
48 gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
49 linux,code = <KEY_RESTART>;
50 };
51 };
52
53 leds {
54 compatible = "gpio-leds";
55 fxo {
56 label = "arv4525pw:green:festnetz";
57 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
58 };
59 fxs {
60 label = "arv4525pw:green:internet";
61 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
62 };
63 dsl: dsl {
64 label = "arv4525pw:green:t-dsl";
65 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
66 };
67 wifi: wifi {
68 label = "arv4525pw:green:wlan";
69 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
70 };
71 online: online {
72 label = "arv4525pw:green:online";
73 gpios = <&gpio 9 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_rst {
84 lantiq,pins = "io21";
85 lantiq,pull = <2>;
86 lantiq,output = <1>;
87 };
88 relay {
89 lantiq,pins = "io31";
90 lantiq,output = <1>;
91 };
92 };
93 };
94
95 /* #define ARV4525PW_PHYRESET 13 */
96 &gsw {
97 phy-mode = "mii";
98 mtd-mac-address = <&boardconfig 0x16>;
99 };
100
101 &localbus {
102 flash@0 {
103 compatible = "lantiq,nor";
104 bank-width = <2>;
105 reg = <0 0x0 0x2000000>;
106
107 partitions {
108 compatible = "fixed-partitions";
109 #address-cells = <1>;
110 #size-cells = <1>;
111
112 partition@0 {
113 label = "uboot";
114 reg = <0x00000 0x10000>;
115 read-only;
116 };
117
118 partition@10000 {
119 label = "uboot_env";
120 reg = <0x10000 0x10000>;
121 read-only;
122 };
123
124 partition@20000 {
125 label = "firmware";
126 reg = <0x20000 0x3d0000>;
127 };
128
129 boardconfig: partition@400000 {
130 label = "boardconfig";
131 reg = <0x3f0000 0x10000>;
132 read-only;
133 };
134 };
135 };
136 };
137
138 &pci0 {
139 status = "okay";
140
141 pinctrl-0 = <&pci_gnt1_pins>, <&pci_req1_pins>;
142 pinctrl-names = "default";
143
144 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
145 };
146
147 /* #define ARV4525PW_RELAY 31 */
148 &vmmc {
149 status = "okay";
150 gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
151 };