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