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