lantiq: add support for upgrade led
[openwrt/staging/wigyori.git] / target / linux / lantiq / files-4.14 / arch / mips / boot / dts / ARV7506PW11.dts
1 /dts-v1/;
2
3 #include "danube.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "arcadyan,arv7506pw11", "lantiq,xway", "lantiq,danube";
9 model = "Alice/O2 IAD 4421";
10
11 chosen {
12 bootargs = "console=ttyLTQ0,115200";
13 };
14
15 aliases {
16 led-boot = &power;
17 led-failsafe = &power_red;
18 led-running = &power;
19 led-upgrade = &power;
20
21 led-dsl = &dsl;
22 led-internet = &internet;
23 led-wifi = &wlan;
24 };
25
26 memory@0 {
27 reg = <0x0 0x4000000>;
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 rfkill {
37 label = "rfkill";
38 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
39 linux,code = <KEY_RFKILL>;
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 wlan: wlan {
51 label = "arv7506pw11:green:wlan";
52 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
53 };
54 power: power {
55 label = "arv7506pw11:green:power";
56 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
57 default-state = "keep";
58 };
59 dsl: dsl {
60 label = "arv7506pw11:green:dsl";
61 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
62 };
63 internet: internet {
64 label = "arv7506pw11:green:internet";
65 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
66 };
67 power_red: power_red {
68 label = "arv7506pw11:red:power";
69 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
70 };
71 internet_red {
72 label = "arv7506pw11:red:internet";
73 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
74 };
75 info {
76 label = "arv7506pw11:green:info";
77 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
78 };
79 telefon {
80 label = "arv7506pw11:green:telefon";
81 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
82 };
83 info_red {
84 label = "arv7506pw11:red:info";
85 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
86 };
87 };
88 };
89
90 &gpio {
91 pinctrl-names = "default";
92 pinctrl-0 = <&state_default>;
93
94 state_default: pinmux {
95 pci {
96 lantiq,groups = "gnt1";
97 lantiq,function = "pci";
98 lantiq,output = <1>;
99 };
100 pci_rst {
101 lantiq,pins = "io21";
102 lantiq,pull = <2>;
103 lantiq,output = <1>;
104 };
105 };
106 };
107
108 /* GPIO 19: switch reset */
109 &gsw {
110 phy-mode = "rmii";
111 mtd-mac-address = <&boardconfig 0x16>;
112 };
113
114 &localbus {
115 nor@0 {
116 compatible = "lantiq,nor";
117 bank-width = <2>;
118 reg = <0 0x0 0x800000>;
119
120 partitions {
121 compatible = "fixed-partitions";
122 #address-cells = <1>;
123 #size-cells = <1>;
124
125 partition@0 {
126 label = "uboot";
127 reg = <0x00000 0x40000>;
128 read-only;
129 };
130
131 partition@40000 {
132 label = "uboot_env";
133 reg = <0x40000 0x10000>;
134 read-only;
135 };
136
137 partition@50000 {
138 label = "firmware";
139 reg = <0x50000 0x7a0000>;
140 };
141
142 boardconfig: partition@7f0000 {
143 label = "board_config";
144 reg = <0x7f0000 0x10000>;
145 read-only;
146 };
147 };
148 };
149 };
150
151 &pci0 {
152 status = "okay";
153 lantiq,external-clock;
154 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
155
156 wifi@1814,3592 {
157 compatible = "pci1814,3592";
158 reg = <0x7000 0 0 0 0>;
159 ralink,mtd-eeprom = <&boardconfig 0x410>;
160 ralink,mtd-eeprom-swap;
161 mtd-mac-address = <&boardconfig 0x16>;
162 mtd-mac-address-increment = <1>;
163 };
164 };