lantiq: cleanup dts files
[openwrt/openwrt.git] / target / linux / lantiq / dts / ARV4518PWR01.dtsi
1 #include "danube.dtsi"
2
3 / {
4 chosen {
5 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
6 };
7
8 aliases {
9 led-boot = &power;
10 led-failsafe = &power;
11 led-running = &power;
12
13 led-dsl = &dsl;
14 led-internet = &online;
15 led-usb = &usb;
16 led-wifi = &wifi;
17 };
18
19 memory@0 {
20 reg = <0x0 0x4000000>;
21 };
22
23 sram@1F000000 {
24 vmmc@107000 {
25 status = "okay";
26 gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
27 };
28 };
29
30 fpi@10000000 {
31 localbus@0 {
32 nor-boot@0 {
33 compatible = "lantiq,nor";
34 bank-width = <2>;
35 reg = <0 0x0 0x2000000>;
36 #address-cells = <1>;
37 #size-cells = <1>;
38
39 partitions {
40 compatible = "fixed-partitions";
41 #address-cells = <1>;
42 #size-cells = <1>;
43
44 partition@0 {
45 label = "uboot";
46 reg = <0x00000 0x10000>; /* 64 KB */
47 read-only;
48 };
49
50 partition@10000 {
51 label = "uboot_env";
52 reg = <0x10000 0x10000>; /* 64 KB */
53 read-only;
54 };
55
56 partition@20000 {
57 label = "firmware";
58 reg = <0x20000 0x3d0000>;
59 };
60
61 boardconfig: partition@400000 {
62 label = "boardconfig";
63 reg = <0x3f0000 0x10000>;
64 read-only;
65 };
66 };
67 };
68
69 gpiomm: gpiomm@4000000 {
70 compatible = "lantiq,gpio-mm";
71 reg = <1 0x0 0x10 >;
72 #address-cells = <1>;
73 #size-cells = <1>;
74 #gpio-cells = <2>;
75 gpio-controller;
76 lantiq,shadow = <0x0>;
77 };
78
79 ath5k_eep {
80 compatible = "ath5k,eeprom";
81 ath,eep-flash = <&boardconfig 0x400>;
82 ath,mac-offset = <0x16>;
83 ath,mac-increment = <1>;
84 ath,eep-swap;
85 };
86 };
87
88 gpio: pinmux@E100B10 {
89 pinctrl-names = "default";
90 pinctrl-0 = <&state_default>;
91
92 state_default: pinmux {
93 ebu {
94 lantiq,groups = "ebu cs1";
95 lantiq,function = "ebu";
96 };
97 pci_in {
98 lantiq,groups = "req1", "req2";
99 lantiq,function = "pci";
100 lantiq,open-drain = <1>;
101 lantiq,pull = <2>;
102 lantiq,output = <0>;
103 };
104 pci_out {
105 lantiq,groups = "gnt1", "gnt2";
106 lantiq,function = "pci";
107 lantiq,pull = <0>;
108 lantiq,output = <1>;
109 };
110 };
111 };
112
113 etop@E180000 {
114 phy-mode = "mii";
115 mtd-mac-address = <&boardconfig 0x16>;
116 };
117
118 ifxhcd@E101000 {
119 status = "okay";
120 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
121 };
122
123 pci@E105400 {
124 status = "okay";
125 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
126 req-mask = <0xf>;
127 };
128 };
129
130 gpio-keys-polled {
131 compatible = "gpio-keys-polled";
132 #address-cells = <1>;
133 #size-cells = <0>;
134 poll-interval = <100>;
135
136 rfkill {
137 label = "rfkill";
138 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
139 linux,code = <KEY_RFKILL>;
140 };
141 reset {
142 label = "reset";
143 gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
144 linux,code = <KEY_RESTART>;
145 };
146 };
147
148 gpio-leds {
149 compatible = "gpio-leds";
150 power: power {
151 label = "power";
152 gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
153 default-state = "keep";
154 };
155 dsl: dsl {
156 label = "dsl";
157 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
158 };
159 online: online {
160 label = "online";
161 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
162 };
163 wifi: wifi {
164 label = "wifi";
165 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
166 };
167 wps {
168 label = "wps";
169 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
170 };
171 dsl2 {
172 label = "dsl2";
173 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
174 };
175 usb: usb {
176 label = "usb";
177 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
178 };
179 voice {
180 label = "voice";
181 gpios = <&gpiomm 0 GPIO_ACTIVE_LOW>;
182 };
183 fxs1 {
184 label = "fxs1";
185 gpios = <&gpiomm 1 GPIO_ACTIVE_LOW>;
186 };
187 fxs2 {
188 label = "fxs2";
189 gpios = <&gpiomm 2 GPIO_ACTIVE_LOW>;
190 };
191 fxo {
192 label = "fxo";
193 gpios = <&gpiomm 3 GPIO_ACTIVE_LOW>;
194 };
195 };
196 };