f0b288c6ba97fd0a792e17559f2b651826d9a2d8
[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 mtd-mac-address = <&boardconfig 0x16>;
104 };
105
106 &localbus {
107 flash@0 {
108 compatible = "lantiq,nor";
109 bank-width = <2>;
110 reg = <0 0x0 0x800000>;
111
112 partitions {
113 compatible = "fixed-partitions";
114 #address-cells = <1>;
115 #size-cells = <1>;
116
117 partition@0 {
118 label = "uboot";
119 reg = <0x00000 0x40000>;
120 read-only;
121 };
122
123 partition@40000 {
124 label = "u-boot-env";
125 reg = <0x40000 0x10000>;
126 read-only;
127 };
128
129 partition@50000 {
130 label = "firmware";
131 reg = <0x50000 0x7a0000>;
132 };
133
134 boardconfig: partition@7f0000 {
135 label = "board_config";
136 reg = <0x7f0000 0x10000>;
137 read-only;
138 };
139 };
140 };
141 };
142
143 &pci0 {
144 status = "okay";
145
146 pinctrl-0 = <&pci_gnt1_pins>, <&pci_req1_pins>;
147 pinctrl-names = "default";
148
149 lantiq,external-clock;
150 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
151
152 wifi@1814,3592 {
153 compatible = "pci1814,3592";
154 reg = <0x7000 0 0 0 0>;
155 ralink,mtd-eeprom = <&boardconfig 0x410>;
156 ralink,mtd-eeprom-swap;
157 mtd-mac-address = <&boardconfig 0x16>;
158 mac-address-increment = <1>;
159 };
160 };