b3ea02fd0c9dc9bd790d929ce26a601d47bb2de3
[openwrt/staging/dedeckeh.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 art: 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 };
74
75 ath9k_eep {
76 compatible = "ath9k,eeprom";
77 ath,eep-flash = <&art 0x400>;
78 ath,mac-offset = <0x16>;
79 ath,mac-increment = <1>;
80 ath,pci-slot = <14>;
81 ath,eep-endian;
82 ath,arv-ath9k-fix;
83 };
84 };
85
86 gpio: pinmux@E100B10 {
87 pinctrl-names = "default";
88 pinctrl-0 = <&state_default>;
89
90 state_default: pinmux {
91 pci_in {
92 lantiq,groups = "req1";
93 lantiq,function = "pci";
94 lantiq,open-drain = <1>;
95 lantiq,pull = <2>;
96 lantiq,output = <0>;
97 };
98 pci_out {
99 lantiq,groups = "gnt1";
100 lantiq,function = "pci";
101 lantiq,output = <1>;
102 };
103 pci_rst {
104 lantiq,pins = "io21";
105 lantiq,pull = <2>;
106 lantiq,output = <1>;
107 };
108 relay {
109 lantiq,pins = "io31";
110 lantiq,output = <1>;
111 };
112 };
113 };
114
115 etop@E180000 {
116 phy-mode = "mii";
117 };
118
119 pci@E105400 {
120 status = "okay";
121 gpio-reset = <&gpio 21 0>;
122 };
123
124 ifxhcd@E101000 {
125 status = "okay";
126 gpios = <&gpio 14 0>;
127 lantiq,portmask = <0x3>;
128 };
129
130 };
131
132 gpio-keys-polled {
133 compatible = "gpio-keys-polled";
134 #address-cells = <1>;
135 #size-cells = <0>;
136 poll-interval = <100>;
137
138 wlan {
139 label = "wlan";
140 gpios = <&gpio 29 1>;
141 linux,code = <0x211>;
142 };
143 reset {
144 label = "reset";
145 gpios = <&gpio 30 1>;
146 linux,code = <0x198>;
147 };
148 };
149
150 gpio-leds {
151 compatible = "gpio-leds";
152
153 power_green: power-green {
154 label = "arv8539pw22:green:power";
155 gpios = <&gpio 24 1>;
156 default-state = "keep";
157 };
158 power_red: power-red {
159 label = "arv8539pw22:red:power";
160 gpios = <&gpio 4 1>;
161 };
162
163 dsl_green: dsl-green {
164 label = "arv8539pw22:green:dsl";
165 gpios = <&gpio 5 1>;
166 };
167
168 online_green: online-green {
169 label = "arv8539pw22:green:online";
170 gpios = <&gpio 6 1>;
171 };
172
173 wireless_green: wireless-green {
174 label = "arv8539pw22:green:wlan";
175 gpios = <&gpio 8 1>;
176 };
177 /*
178 telefonie green is missing
179 */
180 };
181 };
182