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