7365cbe5cf6838e11f30b2272b1c8130f53d9dc3
[openwrt/openwrt.git] / target / linux / lantiq / dts / ARV8539PW22.dts
1 /dts-v1/;
2
3 #include "danube.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 model = "ARV8539PW22 - Speedport W 504V Typ A";
9
10 aliases {
11 led-boot = &power_green;
12 led-failsafe = &power_red;
13 led-running = &power_green;
14
15 led-dsl = &dsl_green;
16 led-internet = &online_green;
17 led-wifi = &wireless_green;
18 };
19
20 memory@0 {
21 reg = <0x0 0x4000000>;
22 };
23
24 sram@1F000000 {
25 vmmc@107000 {
26 status = "okay";
27 gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
28 };
29 };
30
31 fpi@10000000 {
32 localbus@0 {
33 nor-boot@0 {
34 compatible = "lantiq,nor";
35 bank-width = <2>;
36 reg = <0 0x0 0x800000>;
37 #address-cells = <1>;
38 #size-cells = <1>;
39
40 partitions {
41 compatible = "fixed-partitions";
42 #address-cells = <1>;
43 #size-cells = <1>;
44
45 partition@0 {
46 label = "uboot";
47 reg = <0x00000 0x30000>; /* 192 KiB */
48 read-only;
49 };
50
51 partition@30000 {
52 label = "uboot";
53 reg = <0x30000 0x10000>; /* 64 KiB */
54 read-only;
55 };
56
57 partition@40000 {
58 label = "firmware";
59 reg = <0x40000 0x7B0000>; /* 7872 KiB */
60 };
61
62 art: partition@7F0000 {
63 label = "art";
64 reg = <0x7F0000 0x10000>; /* 64 KiB*/
65 read-only;
66 };
67 };
68 };
69
70 ath9k_eep {
71 compatible = "ath9k,eeprom";
72 ath,eep-flash = <&art 0x400>;
73 ath,mac-offset = <0x16>;
74 ath,mac-increment = <1>;
75 ath,pci-slot = <14>;
76 ath,eep-endian;
77 };
78 };
79
80 gpio: pinmux@E100B10 {
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 etop@E180000 {
110 phy-mode = "mii";
111 mtd-mac-address = <&art 0x16>;
112 };
113
114 pci@E105400 {
115 status = "okay";
116 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
117 };
118
119 ifxhcd@E101000 {
120 status = "okay";
121 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
122 lantiq,portmask = <0x3>;
123 };
124 };
125
126 gpio-keys-polled {
127 compatible = "gpio-keys-polled";
128 #address-cells = <1>;
129 #size-cells = <0>;
130 poll-interval = <100>;
131
132 wlan {
133 label = "wlan";
134 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
135 linux,code = <KEY_WPS_BUTTON>;
136 };
137 reset {
138 label = "reset";
139 gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
140 linux,code = <KEY_RESTART>;
141 };
142 /* key DECT is missing */
143 };
144
145 gpio-leds {
146 compatible = "gpio-leds";
147
148 power_green: power-green {
149 label = "arv8539pw22:green:power";
150 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
151 default-state = "keep";
152 };
153 power_red: power-red {
154 label = "arv8539pw22:red:power";
155 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
156 };
157
158 dsl_green: dsl-green {
159 label = "arv8539pw22:green:dsl";
160 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
161 };
162
163 online_green: online-green {
164 label = "arv8539pw22:green:online";
165 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
166 };
167
168 wireless_green: wireless-green {
169 label = "arv8539pw22:green:wlan";
170 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
171 };
172 /*
173 telefonie green is missing
174 */
175 };
176 };
177