bcdc2249fd0e58254154c36c9d1377bfaa4676ab
[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 keys {
32 compatible = "gpio-keys-polled";
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 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 flash@0 {
100 compatible = "lantiq,nor";
101 bank-width = <2>;
102 reg = <0 0x0 0x2000000>;
103
104 partitions {
105 compatible = "fixed-partitions";
106 #address-cells = <1>;
107 #size-cells = <1>;
108
109 partition@0 {
110 label = "uboot";
111 reg = <0x00000 0x10000>;
112 read-only;
113 };
114
115 partition@10000 {
116 label = "uboot_env";
117 reg = <0x10000 0x10000>;
118 read-only;
119 };
120
121 partition@20000 {
122 label = "firmware";
123 reg = <0x20000 0x3d0000>;
124 };
125
126 boardconfig: partition@400000 {
127 label = "board_config";
128 reg = <0x3f0000 0x10000>;
129 read-only;
130 };
131 };
132 };
133 };
134
135 &pci0 {
136 status = "okay";
137 interrupt-map = <0x7000 0 0 1 &icu0 135 1>;
138
139 wifi@0,0 {
140 compatible = "pci0,0";
141 reg = <0x7000 0 0 0 0>;
142 ralink,mtd-eeprom = <&boardconfig 0x410>;
143 };
144 };
145
146 &vmmc {
147 status = "okay";
148 gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
149 };