lantiq: Add support for Arcadyan ARV8539PW22 (Speedport W 504V)
[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 memory@0 {
9 reg = <0x0 0x4000000>;
10 };
11
12 sram@1F000000 {
13 vmmc@107000 {
14 status = "okay";
15 gpios = <&gpio 31 0>;
16 };
17 };
18
19 fpi@10000000 {
20 localbus@0 {
21 nor-boot@0 {
22 compatible = "lantiq,nor";
23 bank-width = <2>;
24 reg = <0 0x0 0x800000>;
25 #address-cells = <1>;
26 #size-cells = <1>;
27
28 partition@0 {
29 label = "uboot";
30 reg = <0x00000 0x30000>; /* 192 KiB */
31 read-only;
32 };
33
34 partition@30000 {
35 label = "uboot";
36 reg = <0x30000 0x10000>; /* 64 KiB */
37 read-only;
38 };
39
40 partition@40000 {
41 label = "firmware";
42 reg = <0x40000 0x7B0000>; /* 7872 KiB */
43 };
44
45 partition@7F0000 {
46 label = "art";
47 reg = <0x7F0000 0x10000>; /* 64 KiB*/
48 read-only;
49 };
50 };
51
52 mac_addr {
53 compatible = "lantiq,eth-mac";
54 reg = <0 0x7f0016 0x6>;
55 mac-increment = <2>;
56 };
57
58 ath9k_eep {
59 compatible = "ath9k,eeprom";
60 reg = <0 0x7f0400 0x1000
61 0 0x7f0016 0x6>;
62 ath,mac-increment = <1>;
63 ath,pci-slot = <14>;
64 ath,eep-endian;
65 ath,arv-ath9k-fix;
66 };
67 };
68
69 gpio: pinmux@E100B10 {
70 pinctrl-names = "default";
71 pinctrl-0 = <&state_default>;
72
73 state_default: pinmux {
74
75 pci_in {
76 lantiq,groups = "req1";
77 lantiq,function = "pci";
78 lantiq,open-drain = <1>;
79 lantiq,pull = <2>;
80 lantiq,output = <0>;
81 };
82 pci_out {
83 lantiq,groups = "gnt1";
84 lantiq,function = "pci";
85 lantiq,output = <1>;
86 };
87 pci_rst {
88 lantiq,pins = "io21";
89 lantiq,pull = <2>;
90 lantiq,output = <1>;
91 };
92 relay {
93 lantiq,pins = "io31";
94 lantiq,output = <1>;
95 };
96 };
97 };
98
99 etop@E180000 {
100 phy-mode = "mii";
101 };
102
103 pci@E105400 {
104 status = "okay";
105 gpio-reset = <&gpio 21 0>;
106 };
107
108 ifxhcd@E101000 {
109 status = "okay";
110 gpios = <&gpio 14 0>;
111 lantiq,portmask = <0x3>;
112 };
113
114 };
115
116 gpio-keys-polled {
117 compatible = "gpio-keys-polled";
118 #address-cells = <1>;
119 #size-cells = <0>;
120 poll-interval = <100>;
121
122 wlan {
123 label = "wlan";
124 gpios = <&gpio 29 1>;
125 linux,code = <0x211>;
126 };
127 reset {
128 label = "reset";
129 gpios = <&gpio 30 1>;
130 linux,code = <0x198>;
131 };
132 };
133
134 gpio-leds {
135 compatible = "gpio-leds";
136
137 power-green {
138 label = "power";
139 gpios = <&gpio 24 1>;
140 };
141 power-red {
142 label = "soc:red:power";
143 gpios = <&gpio 4 1>;
144 };
145
146 dsl-green {
147 label = "soc:green:dsl";
148 gpios = <&gpio 5 1>;
149 };
150
151 online-green {
152 label = "soc:green:online";
153 gpios = <&gpio 6 1>;
154 };
155
156 wireless-green {
157 label = "soc:green:wireless";
158 gpios = <&gpio 8 1>;
159 };
160 };
161 };
162