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