9f9db82d8e580c61e1763eeb1d0ce10ddd327f28
[openwrt/openwrt.git] / target / linux / lantiq / dts / ARV8539PW22.dts
1 /dts-v1/;
2
3 /include/ "danube.dtsi"
4
5 / {
6 model = "ARV8539PW22 - Speedport W 504V Typ A";
7
8 chosen {
9 leds {
10 boot = &power_green;
11 failsafe = &power_red;
12 running = &power_green;
13
14 dsl = &dsl_green;
15 internet = &online_green;
16 wifi = &wireless_green;
17 };
18 };
19
20 memory@0 {
21 reg = <0x0 0x4000000>;
22 };
23
24 sram@1F000000 {
25 vmmc@107000 {
26 status = "okay";
27 gpios = <&gpio 31 0>;
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 partition@7F0000 {
63 label = "art";
64 reg = <0x7F0000 0x10000>; /* 64 KiB*/
65 read-only;
66 };
67 };
68 };
69
70 mac_addr {
71 compatible = "lantiq,eth-mac";
72 reg = <0 0x7f0016 0x6>;
73 mac-increment = <2>;
74 };
75
76 ath9k_eep {
77 compatible = "ath9k,eeprom";
78 reg = <0 0x7f0400 0x1000
79 0 0x7f0016 0x6>;
80 ath,mac-increment = <1>;
81 ath,pci-slot = <14>;
82 ath,eep-endian;
83 ath,arv-ath9k-fix;
84 };
85 };
86
87 gpio: pinmux@E100B10 {
88 pinctrl-names = "default";
89 pinctrl-0 = <&state_default>;
90
91 state_default: pinmux {
92 pci_in {
93 lantiq,groups = "req1";
94 lantiq,function = "pci";
95 lantiq,open-drain = <1>;
96 lantiq,pull = <2>;
97 lantiq,output = <0>;
98 };
99 pci_out {
100 lantiq,groups = "gnt1";
101 lantiq,function = "pci";
102 lantiq,output = <1>;
103 };
104 pci_rst {
105 lantiq,pins = "io21";
106 lantiq,pull = <2>;
107 lantiq,output = <1>;
108 };
109 relay {
110 lantiq,pins = "io31";
111 lantiq,output = <1>;
112 };
113 };
114 };
115
116 etop@E180000 {
117 phy-mode = "mii";
118 };
119
120 pci@E105400 {
121 status = "okay";
122 gpio-reset = <&gpio 21 0>;
123 };
124
125 ifxhcd@E101000 {
126 status = "okay";
127 gpios = <&gpio 14 0>;
128 lantiq,portmask = <0x3>;
129 };
130
131 };
132
133 gpio-keys-polled {
134 compatible = "gpio-keys-polled";
135 #address-cells = <1>;
136 #size-cells = <0>;
137 poll-interval = <100>;
138
139 wlan {
140 label = "wlan";
141 gpios = <&gpio 29 1>;
142 linux,code = <0x211>;
143 };
144 reset {
145 label = "reset";
146 gpios = <&gpio 30 1>;
147 linux,code = <0x198>;
148 };
149 };
150
151 gpio-leds {
152 compatible = "gpio-leds";
153
154 power_green: power-green {
155 label = "arv8539pw22:green:power";
156 gpios = <&gpio 24 1>;
157 default-state = "keep";
158 };
159 power_red: power-red {
160 label = "arv8539pw22:red:power";
161 gpios = <&gpio 4 1>;
162 };
163
164 dsl_green: dsl-green {
165 label = "arv8539pw22:green:dsl";
166 gpios = <&gpio 5 1>;
167 };
168
169 online_green: online-green {
170 label = "arv8539pw22:green:online";
171 gpios = <&gpio 6 1>;
172 };
173
174 wireless_green: wireless-green {
175 label = "arv8539pw22:green:wlan";
176 gpios = <&gpio 8 1>;
177 };
178 /*
179 telefonie green is missing
180 */
181 };
182 };
183