lantiq: use the etop driver DT bindings only
[openwrt/openwrt.git] / target / linux / lantiq / dts / ARV7525PW.dts
1 /dts-v1/;
2
3 /include/ "danube.dtsi"
4
5 / {
6 model = "ARV7525PW - Speedport W303V Typ A";
7
8 chosen {
9 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
10
11 leds {
12 boot = &power_green;
13 failsafe = &power_red;
14 running = &power_green;
15
16 dsl = &power_green;
17 internet = &online;
18 wifi = &wifi;
19 };
20 };
21
22 memory@0 {
23 reg = <0x0 0x2000000>;
24 };
25
26 sram@1F000000 {
27 vmmc@107000 {
28 status = "okay";
29 gpios = <&gpio 31 0>;
30 };
31 };
32
33 fpi@10000000 {
34 localbus@0 {
35 nor-boot@0 {
36 compatible = "lantiq,nor";
37 bank-width = <2>;
38 reg = <0 0x0 0x2000000>;
39 #address-cells = <1>;
40 #size-cells = <1>;
41
42 partitions {
43 compatible = "fixed-partitions";
44 #address-cells = <1>;
45 #size-cells = <1>;
46
47 partition@0 {
48 label = "uboot";
49 reg = <0x00000 0x10000>;
50 read-only;
51 };
52
53 partition@10000 {
54 label = "uboot_env";
55 reg = <0x10000 0x10000>;
56 read-only;
57 };
58
59 partition@20000 {
60 label = "firmware";
61 reg = <0x20000 0x3d0000>;
62 };
63
64 boardconfig: partition@400000 {
65 label = "board_config";
66 reg = <0x3f0000 0x10000>;
67 read-only;
68 };
69 };
70 };
71
72 ralink_eep {
73 compatible = "ralink,eeprom";
74 ralink,eeprom = "RT2860.eeprom";
75 reg = <0 0x3f0410 0x110>;
76 };
77 };
78
79 gpio: pinmux@E100B10 {
80 pinctrl-names = "default";
81 pinctrl-0 = <&state_default>;
82
83 state_default: pinmux {
84 exin {
85 lantiq,groups = "exin1";
86 lantiq,function = "exin";
87 };
88 pci {
89 lantiq,groups = "gnt1", "req1";
90 lantiq,function = "pci";
91 };
92 };
93 };
94
95 etop@E180000 {
96 phy-mode = "mii";
97 mtd-mac-address = <&boardconfig 0x16>;
98 };
99
100 pci@E105400 {
101 status = "okay";
102 interrupt-map = <0x7000 0 0 1 &icu0 135 1>;
103 req-mask = <0x1>;
104 };
105
106 };
107
108 gpio-keys-polled {
109 compatible = "gpio-keys-polled";
110 #address-cells = <1>;
111 #size-cells = <0>;
112 poll-interval = <100>;
113
114 wps {
115 label = "wps";
116 gpios = <&gpio 29 1>;
117 linux,code = <0x211>;
118 };
119 reset {
120 label = "reset";
121 gpios = <&gpio 30 1>;
122 linux,code = <0x198>;
123 };
124 };
125
126 gpio-leds {
127 compatible = "gpio-leds";
128 power_green: power {
129 label = "arv7525pw:green:power";
130 gpios = <&gpio 3 1>;
131 default-state = "keep";
132 };
133 power_red: power1 {
134 label = "arv7525pw:red:power";
135 gpios = <&gpio 4 1>;
136 };
137 online: online {
138 label = "arv7525pw:green:online";
139 gpios = <&gpio 5 1>;
140 };
141 voice {
142 label = "arv7525pw:green:telefonie";
143 gpios = <&gpio 6 1>;
144 };
145 voice2 {
146 label = "arv7525pw:red:telefonie";
147 gpios = <&gpio 8 1>;
148 };
149 wifi: wifi {
150 label = "arv7525pw:green:wlan";
151 gpios = <&gpio 9 1>;
152 };
153 };
154 };