lantiq: kernel 4.14: cleanup dts files
[openwrt/staging/mkresin.git] / target / linux / lantiq / files-4.14 / arch / mips / boot / dts / ARV7525PW.dts
1 /dts-v1/;
2
3 #include "danube.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "arcadyan,arv7525pw", "lantiq,xway", "lantiq,danube";
9 model = "Speedport W303V Typ A";
10
11 chosen {
12 bootargs = "console=ttyLTQ0,115200";
13 };
14
15 aliases {
16 led-boot = &power_green;
17 led-failsafe = &power_red;
18 led-running = &power_green;
19
20 led-dsl = &power_green;
21 led-internet = &online;
22 led-wifi = &wifi;
23 };
24
25 memory@0 {
26 reg = <0x0 0x2000000>;
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 wps {
36 label = "wps";
37 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
38 linux,code = <KEY_WPS_BUTTON>;
39 };
40 reset {
41 label = "reset";
42 gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_RESTART>;
44 };
45 };
46
47 gpio-leds {
48 compatible = "gpio-leds";
49 power_green: power {
50 label = "arv7525pw:green:power";
51 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
52 default-state = "keep";
53 };
54 power_red: power1 {
55 label = "arv7525pw:red:power";
56 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
57 };
58 online: online {
59 label = "arv7525pw:green:online";
60 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
61 };
62 voice {
63 label = "arv7525pw:green:telefonie";
64 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
65 };
66 voice2 {
67 label = "arv7525pw:red:telefonie";
68 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
69 };
70 wifi: wifi {
71 label = "arv7525pw:green:wlan";
72 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
73 };
74 };
75 };
76
77 &gpio {
78 pinctrl-names = "default";
79 pinctrl-0 = <&state_default>;
80
81 state_default: pinmux {
82 exin {
83 lantiq,groups = "exin1";
84 lantiq,function = "exin";
85 };
86 pci {
87 lantiq,groups = "gnt1", "req1";
88 lantiq,function = "pci";
89 };
90 };
91 };
92
93 &gsw {
94 phy-mode = "mii";
95 mtd-mac-address = <&boardconfig 0x16>;
96 };
97
98 &localbus {
99 nor@0 {
100 compatible = "lantiq,nor";
101 bank-width = <2>;
102 reg = <0 0x0 0x2000000>;
103 #address-cells = <1>;
104 #size-cells = <1>;
105
106 partitions {
107 compatible = "fixed-partitions";
108 #address-cells = <1>;
109 #size-cells = <1>;
110
111 partition@0 {
112 label = "uboot";
113 reg = <0x00000 0x10000>;
114 read-only;
115 };
116
117 partition@10000 {
118 label = "uboot_env";
119 reg = <0x10000 0x10000>;
120 read-only;
121 };
122
123 partition@20000 {
124 label = "firmware";
125 reg = <0x20000 0x3d0000>;
126 };
127
128 boardconfig: partition@400000 {
129 label = "board_config";
130 reg = <0x3f0000 0x10000>;
131 read-only;
132 };
133 };
134 };
135 };
136
137 &pci0 {
138 status = "okay";
139 interrupt-map = <0x7000 0 0 1 &icu0 135 1>;
140
141 wifi@0,0 {
142 compatible = "pci0,0";
143 reg = <0x7000 0 0 0 0>;
144 ralink,mtd-eeprom = <&boardconfig 0x410>;
145 };
146 };
147
148 &vmmc {
149 status = "okay";
150 gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
151 };