0e75952b25530ebf73b821005425e6cbe66388a8
[oweals/openwrt.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                 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         gpio-leds {
48                 compatible = "gpio-leds";
49                 wlan: wlan {
50                         label = "arv7506pw11:green:wlan";
51                         gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
52                 };
53                 power: power {
54                         label = "arv7506pw11:green:power";
55                         gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
56                         default-state = "keep";
57                 };
58                 dsl: dsl {
59                         label = "arv7506pw11:green:dsl";
60                         gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
61                 };
62                 internet: internet {
63                         label = "arv7506pw11:green:internet";
64                         gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
65                 };
66                 power_red: power_red {
67                         label = "arv7506pw11:red:power";
68                         gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
69                 };
70                 internet_red {
71                         label = "arv7506pw11:red:internet";
72                         gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
73                 };
74                 info {
75                         label = "arv7506pw11:green:info";
76                         gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
77                 };
78                 telefon {
79                         label = "arv7506pw11:green:telefon";
80                         gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
81                 };
82                 info_red {
83                         label = "arv7506pw11: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 {
95                         lantiq,groups = "gnt1";
96                         lantiq,function = "pci";
97                         lantiq,output = <1>;
98                 };
99                 pci_rst {
100                         lantiq,pins = "io21";
101                         lantiq,pull = <2>;
102                         lantiq,output = <1>;
103                 };
104         };
105 };
106
107 /* GPIO 19: switch reset */
108 &gsw {
109         phy-mode = "rmii";
110         mtd-mac-address = <&boardconfig 0x16>;
111 };
112
113 &localbus {
114         nor@0 {
115                 compatible = "lantiq,nor";
116                 bank-width = <2>;
117                 reg = <0 0x0 0x800000>;
118
119                 partitions {
120                         compatible = "fixed-partitions";
121                         #address-cells = <1>;
122                         #size-cells = <1>;
123
124                         partition@0 {
125                                 label = "uboot";
126                                 reg = <0x00000 0x40000>;
127                                 read-only;
128                         };
129
130                         partition@40000 {
131                                 label = "uboot_env";
132                                 reg = <0x40000 0x10000>;
133                                 read-only;
134                         };
135
136                         partition@50000 {
137                                 label = "firmware";
138                                 reg = <0x50000 0x7a0000>;
139                         };
140
141                         boardconfig: partition@7f0000 {
142                                 label = "board_config";
143                                 reg = <0x7f0000 0x10000>;
144                                 read-only;
145                         };
146                 };
147         };
148 };
149
150 &pci0 {
151         status = "okay";
152         lantiq,external-clock;
153         gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
154
155         wifi@1814,3592 {
156                 compatible = "pci1814,3592";
157                 reg = <0x7000 0 0 0 0>;
158                 ralink,mtd-eeprom = <&boardconfig 0x410>;
159                 ralink,mtd-eeprom-swap;
160                 mtd-mac-address = <&boardconfig 0x16>;
161                 mtd-mac-address-increment = <1>;
162         };
163 };