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