lantiq: kernel 4.14: cleanup dts files
[openwrt/staging/mkresin.git] / target / linux / lantiq / files-4.14 / arch / mips / boot / dts / 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
20 led-dsl = &internet;
21 led-usb = &umts;
22 led-wifi = &wlan;
23 };
24
25 memory@0 {
26 reg = <0x0 0x4000000>;
27 };
28
29 gpio-keys-polled {
30 compatible = "gpio-keys-polled";
31 #address-cells = <1>;
32 #size-cells = <0>;
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 gpio-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_in {
90 lantiq,groups = "req1", "req2";
91 lantiq,function = "pci";
92 lantiq,open-drain = <1>;
93 lantiq,pull = <2>;
94 lantiq,output = <0>;
95 };
96 pci_out {
97 lantiq,groups = "gnt1";
98 lantiq,function = "pci";
99 lantiq,output = <1>;
100 };
101 pci_rst {
102 lantiq,pins = "io21";
103 lantiq,pull = <2>;
104 lantiq,output = <1>;
105 };
106 pins_out {
107 lantiq,pins = "io2", "io4", "io8", "io9", "io10", "io15", "io20";
108 lantiq,output = <1>;
109 };
110 pins_in {
111 lantiq,pins = "io11", "io12", "io28";
112 lantiq,open-drain = <1>;
113 lantiq,pull = <2>;
114 lantiq,output = <0>;
115 };
116 };
117 };
118
119 &gsw {
120 /* Switch reset 19 */
121 phy-mode = "mii";
122 mtd-mac-address = <&boardconfig 0x16>;
123 };
124
125 &localbus {
126 nor@0 {
127 compatible = "lantiq,nor";
128 bank-width = <2>;
129 reg = <0 0x0 0x1000000>;
130 #address-cells = <1>;
131 #size-cells = <1>;
132
133 partitions {
134 compatible = "fixed-partitions";
135 #address-cells = <1>;
136 #size-cells = <1>;
137
138 partition@0 {
139 label = "uboot";
140 reg = <0x00000 0x40000>;
141 read-only;
142 };
143
144 partition@40000 {
145 label = "uboot_env";
146 reg = <0x40000 0x20000>;
147 read-only;
148 };
149
150 partition@60000 {
151 label = "firmware";
152 reg = <0x60000 0xf80000>;
153 };
154
155 boardconfig: partition@fe0000 {
156 label = "board_config";
157 reg = <0xfe0000 0x20000>;
158 read-only;
159 };
160 };
161 };
162 };
163
164 &pci0 {
165 status = "okay";
166 lantiq,external-clock;
167 interrupt-map = <
168 0x7000 0 0 1 &icu0 30
169 0x7800 0 0 1 &icu0 135
170 0x7800 0 0 2 &icu0 135
171 0x7800 0 0 3 &icu0 135
172 >;
173 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
174 req-mask = <0x3>;
175
176 wifi@1814,3592 {
177 compatible = "pci1814,3592";
178 reg = <0x7000 0 0 0 0>;
179 ralink,mtd-eeprom = <&boardconfig 0x410>;
180 ralink,mtd-eeprom-swap;
181 };
182 };
183
184 &usb {
185 status = "okay";
186 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
187 };
188
189 &vmmc {
190 status = "okay";
191 gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
192 };