96a0487829590c43c1a7cada67175a8b25ba1b1e
[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 led-upgrade = &power_green;
20
21 led-dsl = &power_green;
22 led-internet = &online;
23 led-wifi = &wifi;
24 };
25
26 memory@0 {
27 device_type = "memory";
28 reg = <0x0 0x2000000>;
29 };
30
31 gpio-keys-polled {
32 compatible = "gpio-keys-polled";
33 #address-cells = <1>;
34 #size-cells = <0>;
35 poll-interval = <100>;
36
37 wps {
38 label = "wps";
39 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
40 linux,code = <KEY_WPS_BUTTON>;
41 };
42 reset {
43 label = "reset";
44 gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
45 linux,code = <KEY_RESTART>;
46 };
47 };
48
49 gpio-leds {
50 compatible = "gpio-leds";
51 power_green: power {
52 label = "arv7525pw:green:power";
53 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
54 default-state = "keep";
55 };
56 power_red: power1 {
57 label = "arv7525pw:red:power";
58 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
59 };
60 online: online {
61 label = "arv7525pw:green:online";
62 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
63 };
64 voice {
65 label = "arv7525pw:green:telefonie";
66 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
67 };
68 voice2 {
69 label = "arv7525pw:red:telefonie";
70 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
71 };
72 wifi: wifi {
73 label = "arv7525pw:green:wlan";
74 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
75 };
76 };
77 };
78
79 &gpio {
80 pinctrl-names = "default";
81 pinctrl-0 = <&state_default>;
82
83 state_default: pinmux {
84 exin {
85 lantiq,groups = "exin1";
86 lantiq,function = "exin";
87 };
88 pci {
89 lantiq,groups = "gnt1", "req1";
90 lantiq,function = "pci";
91 };
92 };
93 };
94
95 &gsw {
96 phy-mode = "mii";
97 mtd-mac-address = <&boardconfig 0x16>;
98 };
99
100 &localbus {
101 nor@0 {
102 compatible = "lantiq,nor";
103 bank-width = <2>;
104 reg = <0 0x0 0x2000000>;
105 #address-cells = <1>;
106 #size-cells = <1>;
107
108 partitions {
109 compatible = "fixed-partitions";
110 #address-cells = <1>;
111 #size-cells = <1>;
112
113 partition@0 {
114 label = "uboot";
115 reg = <0x00000 0x10000>;
116 read-only;
117 };
118
119 partition@10000 {
120 label = "uboot_env";
121 reg = <0x10000 0x10000>;
122 read-only;
123 };
124
125 partition@20000 {
126 label = "firmware";
127 reg = <0x20000 0x3d0000>;
128 };
129
130 boardconfig: partition@400000 {
131 label = "board_config";
132 reg = <0x3f0000 0x10000>;
133 read-only;
134 };
135 };
136 };
137 };
138
139 &pci0 {
140 status = "okay";
141 interrupt-map = <0x7000 0 0 1 &icu0 135 1>;
142
143 wifi@0,0 {
144 compatible = "pci0,0";
145 reg = <0x7000 0 0 0 0>;
146 ralink,mtd-eeprom = <&boardconfig 0x410>;
147 };
148 };
149
150 &vmmc {
151 status = "okay";
152 gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
153 };