lantiq: use the etop driver DT bindings only
[oweals/openwrt.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         chosen {
9                 leds {
10                         boot = &power;
11                         failsafe = &power_red;
12                         running = &power;
13
14                         dsl = &dsl;
15                         internet = &internet;
16                         wifi = &wlan;
17                 };
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                 pci@E105400 {
87                         status = "okay";
88                         gpio-reset = <&gpio 21 0>;
89                 };
90         };
91
92         ralink_eep {
93                 compatible = "ralink,eeprom";
94                 ralink,eeprom = "RT2860.eeprom";
95         };
96
97         gpio-keys-polled {
98                 compatible = "gpio-keys-polled";
99                 #address-cells = <1>;
100                 #size-cells = <0>;
101                 poll-interval = <100>;
102
103                 rfkill {
104                         label = "rfkill";
105                         gpios = <&gpio 11 1>;
106                         linux,code = <0xf7>;
107                 };
108                 reset {
109                         label = "reset";
110                         gpios = <&gpio 30 1>;
111                         linux,code = <0x198>;
112                 };
113         };
114
115         gpio-leds {
116                 compatible = "gpio-leds";
117                 wlan: wlan {
118                         label = "arv7506pw11:green:wlan";
119                         gpios = <&gpio 2 1>;
120                 };
121                 power: power {
122                         label = "arv7506pw11:green:power";
123                         gpios = <&gpio 3 1>;
124                         default-state = "keep";
125                 };
126                 dsl: dsl {
127                         label = "arv7506pw11:green:dsl";
128                         gpios = <&gpio 4 1>;
129                 };
130                 internet: internet {
131                         label = "arv7506pw11:green:internet";
132                         gpios = <&gpio 5 1>;
133                 };
134                 power_red: power_red {
135                         label = "arv7506pw11:red:power";
136                         gpios = <&gpio 6 1>;
137                 };
138                 internet_red {
139                         label = "arv7506pw11:red:internet";
140                         gpios = <&gpio 7 1>;
141                 };
142                 info {
143                         label = "arv7506pw11:green:info";
144                         gpios = <&gpio 8 1>;
145                 };
146                 telefon {
147                         label = "arv7506pw11:green:telefon";
148                         gpios = <&gpio 9 1>;
149                 };
150                 info_red {
151                         label = "arv7506pw11:red:info";
152                         gpios = <&gpio 20 1>;
153                 };
154         };
155 };