lantiq: add compatible strings to dts files
[openwrt/openwrt.git] / target / linux / lantiq / dts / P2601HNFX.dts
1 /dts-v1/;
2
3 #include "ar9.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "zyxel,p-2601hn", "lantiq,xway", "lantiq,danube";
9 model = "P2601HNFX - ZyXEL P-2601HN-Fx";
10
11 chosen {
12 bootargs = "console=ttyLTQ0,115200";
13 };
14
15 aliases {
16 led-boot = &power_green;
17 led-failsafe = &power_red;
18 led-running = &power_green;
19
20 led-dsl = &dsl;
21 led-internet = &online;
22 led-wifi = &wifi;
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 0x2000000>;
35 #address-cells = <1>;
36 #size-cells = <1>;
37
38 partitions {
39 compatible = "fixed-partitions";
40 #address-cells = <1>;
41 #size-cells = <1>;
42
43 partition@0 {
44 label = "uboot";
45 reg = <0x00000 0x40000>;
46 read-only;
47 };
48
49 partition@40000 {
50 label = "uboot_env";
51 reg = <0x40000 0x20000>;
52 read-only;
53 };
54
55 partition@60000 {
56 label = "firmware";
57 reg = <0x60000 0xfa0000>;
58 };
59 };
60 };
61 };
62
63 gpio: pinmux@E100B10 {
64 pinctrl-names = "default";
65 pinctrl-0 = <&state_default>;
66
67 state_default: pinmux {
68 stp {
69 lantiq,groups = "stp";
70 lantiq,function = "stp";
71 lantiq,pull = <2>;
72 lantiq,open-drain = <0>;
73 lantiq,output = <1>;
74 };
75 exin {
76 lantiq,groups = "exin1";
77 lantiq,function = "exin";
78 };
79 pci {
80 lantiq,groups = "gnt1";
81 lantiq,function = "pci";
82 };
83 conf_out {
84 lantiq,pins = "io4", "io5", "io6";
85 lantiq,open-drain;
86 lantiq,pull = <0>;
87 };
88 mdio {
89 lantiq,groups = "mdio";
90 lantiq,function = "mdio";
91 };
92 };
93 };
94
95 etop@E180000 {
96 phy-mode = "rmii";
97 };
98
99 ifxhcd@E101000 {
100 status = "okay";
101 gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
102 };
103
104 stp: stp@E100BB0 {
105 #gpio-cells = <2>;
106 compatible = "lantiq,gpio-stp-xway";
107 gpio-controller;
108 reg = <0xE100BB0 0x40>;
109
110 lantiq,shadow = <0xfff>;
111 lantiq,groups = <0x3>;
112 };
113 };
114
115 gpio-keys-polled {
116 compatible = "gpio-keys-polled";
117 #address-cells = <1>;
118 #size-cells = <0>;
119 poll-interval = <100>;
120
121 reset {
122 label = "reset";
123 gpios = <&gpio 53 GPIO_ACTIVE_LOW>;
124 linux,code = <KEY_RESTART>;
125 };
126 rfkill {
127 label = "rfkill";
128 gpios = <&gpio 54 GPIO_ACTIVE_LOW>;
129 linux,code = <KEY_RFKILL>;
130 };
131 };
132
133 gpio-leds {
134 compatible = "gpio-leds";
135
136 power_green: power {
137 label = "p2601hnfx:green:power";
138 gpios = <&stp 11 GPIO_ACTIVE_LOW>;
139 default-state = "keep";
140 };
141 power_red: power2 {
142 label = "p2601hnfx:red:power";
143 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
144 };
145 online: online {
146 label = "p2601hnfx:green:internet";
147 gpios = <&stp 13 GPIO_ACTIVE_LOW>;
148 };
149 online2 {
150 label = "p2601hnfx:red:internet";
151 gpios = <&stp 12 GPIO_ACTIVE_LOW>;
152 };
153 dsl: dsl {
154 label = "p2601hnfx:green:dsl";
155 gpios = <&stp 14 GPIO_ACTIVE_LOW>;
156 };
157 phone {
158 label = "p2601hnfx:green:phone";
159 gpios = <&stp 9 GPIO_ACTIVE_LOW>;
160 };
161 phone2 {
162 label = "p2601hnfx:orange:phone";
163 gpios = <&stp 8 GPIO_ACTIVE_LOW>;
164 };
165 wifi: wifi {
166 label = "p2601hnfx:green:wireless";
167 gpios = <&stp 15 GPIO_ACTIVE_LOW>;
168 };
169 wifi2 {
170 label = "p2601hnfx:orange:wireless";
171 gpios = <&stp 10 GPIO_ACTIVE_LOW>;
172 };
173 };
174
175 gpio_export {
176 compatible = "gpio-export";
177 #size-cells = <0>;
178
179 switch {
180 gpio-export,name = "switch";
181 gpio-export,output = <1>;
182 gpios = <&gpio 50 GPIO_ACTIVE_HIGH>;
183 };
184 usb {
185 gpio-export,name = "wifi";
186 gpio-export,output = <1>;
187 gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
188 };
189 };
190 };