lantiq: Add support for linux 4.4
[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 partition@0 {
41 label = "uboot";
42 reg = <0x00000 0x30000>; /* 192 KiB */
43 read-only;
44 };
45
46 partition@30000 {
47 label = "uboot";
48 reg = <0x30000 0x10000>; /* 64 KiB */
49 read-only;
50 };
51
52 partition@40000 {
53 label = "firmware";
54 reg = <0x40000 0x7B0000>; /* 7872 KiB */
55 };
56
57 partition@7F0000 {
58 label = "art";
59 reg = <0x7F0000 0x10000>; /* 64 KiB*/
60 read-only;
61 };
62 };
63
64 mac_addr {
65 compatible = "lantiq,eth-mac";
66 reg = <0 0x7f0016 0x6>;
67 mac-increment = <2>;
68 };
69
70 ath9k_eep {
71 compatible = "ath9k,eeprom";
72 reg = <0 0x7f0400 0x1000
73 0 0x7f0016 0x6>;
74 ath,mac-increment = <1>;
75 ath,pci-slot = <14>;
76 ath,eep-endian;
77 ath,arv-ath9k-fix;
78 };
79 };
80
81 gpio: pinmux@E100B10 {
82 pinctrl-names = "default";
83 pinctrl-0 = <&state_default>;
84
85 state_default: pinmux {
86
87 pci_in {
88 lantiq,groups = "req1";
89 lantiq,function = "pci";
90 lantiq,open-drain = <1>;
91 lantiq,pull = <2>;
92 lantiq,output = <0>;
93 };
94 pci_out {
95 lantiq,groups = "gnt1";
96 lantiq,function = "pci";
97 lantiq,output = <1>;
98 };
99 pci_rst {
100 lantiq,pins = "io21";
101 lantiq,pull = <2>;
102 lantiq,output = <1>;
103 };
104 relay {
105 lantiq,pins = "io31";
106 lantiq,output = <1>;
107 };
108 };
109 };
110
111 etop@E180000 {
112 phy-mode = "mii";
113 };
114
115 pci@E105400 {
116 status = "okay";
117 gpio-reset = <&gpio 21 0>;
118 };
119
120 ifxhcd@E101000 {
121 status = "okay";
122 gpios = <&gpio 14 0>;
123 lantiq,portmask = <0x3>;
124 };
125
126 };
127
128 gpio-keys-polled {
129 compatible = "gpio-keys-polled";
130 #address-cells = <1>;
131 #size-cells = <0>;
132 poll-interval = <100>;
133
134 wlan {
135 label = "wlan";
136 gpios = <&gpio 29 1>;
137 linux,code = <0x211>;
138 };
139 reset {
140 label = "reset";
141 gpios = <&gpio 30 1>;
142 linux,code = <0x198>;
143 };
144 };
145
146 gpio-leds {
147 compatible = "gpio-leds";
148
149 power_green: power-green {
150 label = "arv8539pw22:green:power";
151 gpios = <&gpio 24 1>;
152 default-state = "keep";
153 };
154 power_red: power-red {
155 label = "arv8539pw22:red:power";
156 gpios = <&gpio 4 1>;
157 };
158
159 dsl_green: dsl-green {
160 label = "arv8539pw22:green:dsl";
161 gpios = <&gpio 5 1>;
162 };
163
164 online_green: online-green {
165 label = "arv8539pw22:green:online";
166 gpios = <&gpio 6 1>;
167 };
168
169 wireless_green: wireless-green {
170 label = "arv8539pw22:green:wlan";
171 gpios = <&gpio 8 1>;
172 };
173 /*
174 telefonie green is missing
175 */
176 };
177 };
178