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