3af34d6d4e74cd18d40c3d9546efdd2aa6069eb5
[openwrt/openwrt.git] / target / linux / lantiq / files-4.19 / arch / mips / boot / dts / lantiq / danube_arcadyan_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 device_type = "memory";
28 reg = <0x0 0x4000000>;
29 };
30
31 keys {
32 compatible = "gpio-keys-polled";
33 poll-interval = <100>;
34
35 rfkill {
36 label = "rfkill";
37 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
38 linux,code = <KEY_RFKILL>;
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 wlan: wlan {
50 label = "green:wlan";
51 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
52 };
53 power: power {
54 label = "green:power";
55 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
56 default-state = "keep";
57 };
58 dsl: dsl {
59 label = "green:dsl";
60 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
61 };
62 internet: internet {
63 label = "green:internet";
64 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
65 };
66 power_red: power_red {
67 label = "red:power";
68 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
69 };
70 internet_red {
71 label = "red:internet";
72 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
73 };
74 info {
75 label = "green:info";
76 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
77 };
78 telefon {
79 label = "green:telefon";
80 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
81 };
82 info_red {
83 label = "red:info";
84 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
85 };
86 };
87 };
88
89 &gpio {
90 pinctrl-names = "default";
91 pinctrl-0 = <&state_default>;
92
93 state_default: pinmux {
94 pci_rst {
95 lantiq,pins = "io21";
96 lantiq,pull = <2>;
97 lantiq,output = <1>;
98 };
99 };
100 };
101
102 /* GPIO 19: switch reset */
103 &gsw {
104 phy-mode = "rmii";
105 mtd-mac-address = <&boardconfig 0x16>;
106 };
107
108 &localbus {
109 flash@0 {
110 compatible = "lantiq,nor";
111 bank-width = <2>;
112 reg = <0 0x0 0x800000>;
113
114 partitions {
115 compatible = "fixed-partitions";
116 #address-cells = <1>;
117 #size-cells = <1>;
118
119 partition@0 {
120 label = "uboot";
121 reg = <0x00000 0x40000>;
122 read-only;
123 };
124
125 partition@40000 {
126 label = "u-boot-env";
127 reg = <0x40000 0x10000>;
128 read-only;
129 };
130
131 partition@50000 {
132 label = "firmware";
133 reg = <0x50000 0x7a0000>;
134 };
135
136 boardconfig: partition@7f0000 {
137 label = "board_config";
138 reg = <0x7f0000 0x10000>;
139 read-only;
140 };
141 };
142 };
143 };
144
145 &pci0 {
146 status = "okay";
147
148 pinctrl-0 = <&pci_gnt1_pins>, <&pci_req1_pins>;
149 pinctrl-names = "default";
150
151 lantiq,external-clock;
152 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
153
154 wifi@1814,3592 {
155 compatible = "pci1814,3592";
156 reg = <0x7000 0 0 0 0>;
157 ralink,mtd-eeprom = <&boardconfig 0x410>;
158 ralink,mtd-eeprom-swap;
159 mtd-mac-address = <&boardconfig 0x16>;
160 mtd-mac-address-increment = <1>;
161 };
162 };