lantiq: copy target to kernel 5.4
[openwrt/staging/mkresin.git] / target / linux / lantiq / files-4.19 / arch / mips / boot / dts / lantiq / danube_arcadyan_arv7510pw22.dts
1 /dts-v1/;
2
3 #include "danube.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "arcadyan,arv7510pw22", "lantiq,xway", "lantiq,danube";
9 model = "Astoria Networks ARV7510PW22";
10
11 chosen {
12 bootargs = "console=ttyLTQ0,115200";
13 };
14
15 aliases {
16 led-boot = &power;
17 led-failsafe = &power;
18 led-running = &power;
19 led-upgrade = &power;
20
21 led-dsl = &internet;
22 led-usb = &umts;
23 led-wifi = &wlan;
24 };
25
26 memory@0 {
27 device_type = "memory";
28 reg = <0x0 0x4000000>;
29 };
30
31 keys {
32 compatible = "gpio-keys-polled";
33 poll-interval = <100>;
34
35 rfkill {
36 label = "rfkill";
37 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
38 linux,code = <KEY_RFKILL>;
39 };
40 restart {
41 label = "restart";
42 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_POWER>;
44 };
45 reset {
46 label = "reset";
47 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
48 linux,code = <KEY_RESTART>;
49 };
50 };
51
52 leds {
53 compatible = "gpio-leds";
54 power: power {
55 label = "power";
56 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
57 default-state = "keep";
58 };
59 internet: internet {
60 label = "internet";
61 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
62 };
63 wlan: wlan {
64 label = "wlan";
65 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
66 };
67 umts: 3g {
68 label = "3g";
69 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
70 };
71 message {
72 label = "message";
73 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
74 };
75 };
76 };
77
78 &gpio {
79 pinctrl-names = "default";
80 pinctrl-0 = <&state_default>;
81
82 state_default: pinmux {
83 exin {
84 lantiq,groups = "exin1";
85 lantiq,function = "exin";
86 lantiq,pull = <2>;
87 lantiq,output = <0>;
88 };
89 pci_rst {
90 lantiq,pins = "io21";
91 lantiq,pull = <2>;
92 lantiq,output = <1>;
93 };
94 pins_out {
95 lantiq,pins = "io2", "io4", "io8", "io9", "io10", "io15", "io20";
96 lantiq,output = <1>;
97 };
98 pins_in {
99 lantiq,pins = "io11", "io12", "io28";
100 lantiq,open-drain = <1>;
101 lantiq,pull = <2>;
102 lantiq,output = <0>;
103 };
104 };
105
106 usb_vbus: regulator-usb-vbus {
107 compatible = "regulator-fixed";
108
109 regulator-name = "USB_VBUS";
110
111 regulator-min-microvolt = <5000000>;
112 regulator-max-microvolt = <5000000>;
113
114 gpio = <&gpio 8 GPIO_ACTIVE_HIGH>;
115 enable-active-high;
116 };
117 };
118
119 &gsw {
120 /* Switch reset 19 */
121 phy-mode = "mii";
122 mtd-mac-address = <&boardconfig 0x16>;
123 };
124
125 &localbus {
126 flash@0 {
127 compatible = "lantiq,nor";
128 bank-width = <2>;
129 reg = <0 0x0 0x1000000>;
130
131 partitions {
132 compatible = "fixed-partitions";
133 #address-cells = <1>;
134 #size-cells = <1>;
135
136 partition@0 {
137 label = "uboot";
138 reg = <0x00000 0x40000>;
139 read-only;
140 };
141
142 partition@40000 {
143 label = "uboot_env";
144 reg = <0x40000 0x20000>;
145 read-only;
146 };
147
148 partition@60000 {
149 label = "firmware";
150 reg = <0x60000 0xf80000>;
151 };
152
153 boardconfig: partition@fe0000 {
154 label = "board_config";
155 reg = <0xfe0000 0x20000>;
156 read-only;
157 };
158 };
159 };
160 };
161
162 &pci0 {
163 status = "okay";
164
165 pinctrl-0 = <&pci_gnt1_pins>, <&pci_req1_pins>, <&pci_req2_pins>;
166 pinctrl-names = "default";
167
168 lantiq,external-clock;
169 interrupt-map = <
170 0x7000 0 0 1 &icu0 30
171 0x7800 0 0 1 &icu0 135
172 0x7800 0 0 2 &icu0 135
173 0x7800 0 0 3 &icu0 135
174 >;
175 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
176 req-mask = <0x3>;
177
178 wifi@1814,3592 {
179 compatible = "pci1814,3592";
180 reg = <0x7000 0 0 0 0>;
181 ralink,mtd-eeprom = <&boardconfig 0x410>;
182 ralink,mtd-eeprom-swap;
183 };
184 };
185
186 &usb_phy {
187 status = "okay";
188 };
189
190 &usb {
191 status = "okay";
192 vbus-supply = <&usb_vbus>;
193 };
194
195 &vmmc {
196 status = "okay";
197 gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
198 };