lantiq: kernel 4.14: cleanup dts files
[openwrt/openwrt.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 reg = <0x0 0x2000000>;
27 };
28
29 ath5k_eep {
30 compatible = "ath5k,eeprom";
31 ath,eep-flash = <&boardconfig 0x400>;
32 ath,mac-offset = <0x0>;
33 ath,eep-swap;
34 };
35
36 gpio-keys-polled {
37 compatible = "gpio-keys-polled";
38 #address-cells = <1>;
39 #size-cells = <0>;
40 poll-interval = <100>;
41
42 wps {
43 label = "wps";
44 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
45 linux,code = <KEY_WPS_BUTTON>;
46 };
47 reset {
48 label = "reset";
49 gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
50 linux,code = <KEY_RESTART>;
51 };
52 };
53
54 gpio-leds {
55 compatible = "gpio-leds";
56 fxo {
57 label = "arv4525pw:green:festnetz";
58 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
59 };
60 fxs {
61 label = "arv4525pw:green:internet";
62 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
63 };
64 dsl: dsl {
65 label = "arv4525pw:green:t-dsl";
66 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
67 };
68 wifi: wifi {
69 label = "arv4525pw:green:wlan";
70 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
71 };
72 online: online {
73 label = "arv4525pw:green:online";
74 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
75 };
76 };
77 };
78
79 &gpio {
80 pinctrl-names = "default";
81 pinctrl-0 = <&state_default>;
82
83 state_default: pinmux {
84 pci_in {
85 lantiq,groups = "req1";
86 lantiq,function = "pci";
87 lantiq,open-drain = <1>;
88 lantiq,pull = <2>;
89 lantiq,output = <0>;
90 };
91 pci_out {
92 lantiq,groups = "gnt1";
93 lantiq,function = "pci";
94 lantiq,output = <1>;
95 };
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 /* #define ARV4525PW_PHYRESET 13 */
109 &gsw {
110 phy-mode = "mii";
111 mtd-mac-address = <&boardconfig 0x16>;
112 };
113
114 &localbus {
115 nor@0 {
116 compatible = "lantiq,nor";
117 bank-width = <2>;
118 reg = <0 0x0 0x2000000>;
119 #address-cells = <1>;
120 #size-cells = <1>;
121
122 partitions {
123 compatible = "fixed-partitions";
124 #address-cells = <1>;
125 #size-cells = <1>;
126
127 partition@0 {
128 label = "uboot";
129 reg = <0x00000 0x10000>;
130 read-only;
131 };
132
133 partition@10000 {
134 label = "uboot_env";
135 reg = <0x10000 0x10000>;
136 read-only;
137 };
138
139 partition@20000 {
140 label = "firmware";
141 reg = <0x20000 0x3d0000>;
142 };
143
144 boardconfig: partition@400000 {
145 label = "boardconfig";
146 reg = <0x3f0000 0x10000>;
147 read-only;
148 };
149 };
150 };
151 };
152
153 &pci0 {
154 status = "okay";
155 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
156 };
157
158 /* #define ARV4525PW_RELAY 31 */
159 &vmmc {
160 status = "okay";
161 gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
162 };