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