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