a8df0e11da1e20c50e4c30a90f021356fff100ee
[openwrt/staging/mkresin.git] / target / linux / lantiq / files-4.14 / arch / mips / boot / dts / 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 gpio-keys-polled {
38 compatible = "gpio-keys-polled";
39 #address-cells = <1>;
40 #size-cells = <0>;
41 poll-interval = <100>;
42
43 wps {
44 label = "wps";
45 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
46 linux,code = <KEY_WPS_BUTTON>;
47 };
48 reset {
49 label = "reset";
50 gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
51 linux,code = <KEY_RESTART>;
52 };
53 };
54
55 gpio-leds {
56 compatible = "gpio-leds";
57 fxo {
58 label = "arv4525pw:green:festnetz";
59 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
60 };
61 fxs {
62 label = "arv4525pw:green:internet";
63 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
64 };
65 dsl: dsl {
66 label = "arv4525pw:green:t-dsl";
67 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
68 };
69 wifi: wifi {
70 label = "arv4525pw:green:wlan";
71 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
72 };
73 online: online {
74 label = "arv4525pw:green:online";
75 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
76 };
77 };
78 };
79
80 &gpio {
81 pinctrl-names = "default";
82 pinctrl-0 = <&state_default>;
83
84 state_default: pinmux {
85 pci_in {
86 lantiq,groups = "req1";
87 lantiq,function = "pci";
88 lantiq,open-drain = <1>;
89 lantiq,pull = <2>;
90 lantiq,output = <0>;
91 };
92 pci_out {
93 lantiq,groups = "gnt1";
94 lantiq,function = "pci";
95 lantiq,output = <1>;
96 };
97 pci_rst {
98 lantiq,pins = "io21";
99 lantiq,pull = <2>;
100 lantiq,output = <1>;
101 };
102 relay {
103 lantiq,pins = "io31";
104 lantiq,output = <1>;
105 };
106 };
107 };
108
109 /* #define ARV4525PW_PHYRESET 13 */
110 &gsw {
111 phy-mode = "mii";
112 mtd-mac-address = <&boardconfig 0x16>;
113 };
114
115 &localbus {
116 nor@0 {
117 compatible = "lantiq,nor";
118 bank-width = <2>;
119 reg = <0 0x0 0x2000000>;
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 0x10000>;
131 read-only;
132 };
133
134 partition@10000 {
135 label = "uboot_env";
136 reg = <0x10000 0x10000>;
137 read-only;
138 };
139
140 partition@20000 {
141 label = "firmware";
142 reg = <0x20000 0x3d0000>;
143 };
144
145 boardconfig: partition@400000 {
146 label = "boardconfig";
147 reg = <0x3f0000 0x10000>;
148 read-only;
149 };
150 };
151 };
152 };
153
154 &pci0 {
155 status = "okay";
156 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
157 };
158
159 /* #define ARV4525PW_RELAY 31 */
160 &vmmc {
161 status = "okay";
162 gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
163 };