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