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