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