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