3193c3954c9a884d05b1b2b93632bbf05a5e6497
[openwrt/staging/dedeckeh.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 leds {
12 dsl = &dsl;
13 internet = &online;
14 power = &power;
15 power2 = &power2;
16 wifi = &wifi;
17 };
18 };
19
20 memory@0 {
21 reg = <0x0 0x4000000>;
22 };
23
24 fpi@10000000 {
25 #address-cells = <1>;
26 #size-cells = <1>;
27 localbus@0 {
28 #address-cells = <2>;
29 #size-cells = <1>;
30 ranges = <0 0 0x0 0x3ffffff
31 1 0 0x4000000 0x4000010>;
32 compatible = "lantiq,localbus", "simple-bus";
33
34 nor-boot@0 {
35 compatible = "lantiq,nor";
36 bank-width = <2>;
37 reg = <0 0x0 0x2000000>;
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 0x20000>;
50 read-only;
51 };
52
53 partition@60000 {
54 label = "firmware";
55 reg = <0x60000 0xfa0000>;
56 };
57 };
58 };
59
60 gpio: pinmux@E100B10 {
61 compatible = "lantiq,pinctrl-xr9";
62 pinctrl-names = "default";
63 pinctrl-0 = <&state_default>;
64
65 #gpio-cells = <2>;
66 gpio-controller;
67 reg = <0xE100B10 0xA0>;
68
69 state_default: pinmux {
70 stp {
71 lantiq,groups = "stp";
72 lantiq,function = "stp";
73 lantiq,pull = <2>;
74 lantiq,open-drain = <0>;
75 lantiq,output = <1>;
76 };
77 exin {
78 lantiq,groups = "exin1";
79 lantiq,function = "exin";
80 };
81 pci {
82 lantiq,groups = "gnt1";
83 lantiq,function = "pci";
84 };
85 conf_out {
86 lantiq,pins = "io4", "io5", "io6";
87 lantiq,open-drain;
88 lantiq,pull = <0>;
89 };
90 mdio {
91 lantiq,groups = "mdio";
92 lantiq,function = "mdio";
93 };
94 };
95 };
96
97 etop@E180000 {
98 phy-mode = "rmii";
99 };
100
101 ifxhcd@E101000 {
102 status = "okay";
103 gpios = <&gpio 9 0>;
104 };
105
106 stp: stp@E100BB0 {
107 #gpio-cells = <2>;
108 compatible = "lantiq,gpio-stp-xway";
109 gpio-controller;
110 reg = <0xE100BB0 0x40>;
111
112 lantiq,shadow = <0xfff>;
113 lantiq,groups = <0x3>;
114 };
115
116 pci@E105400 {
117 lantiq,bus-clock = <33333333>;
118 interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
119 interrupt-map = <0x7000 0 0 1 &icu0 29 1>;
120 gpios-reset = <&gpio 21 0>;
121 req-mask = <0x1>;
122 };
123 };
124
125 gpio-keys-polled {
126 compatible = "gpio-keys-polled";
127 #address-cells = <1>;
128 #size-cells = <0>;
129 poll-interval = <100>;
130
131 reset {
132 label = "reset";
133 gpios = <&gpio 53 1>;
134 linux,code = <0x198>;
135 };
136 rfkill {
137 label = "rfkill";
138 gpios = <&gpio 54 1>;
139 linux,code = <0xf7>;
140 };
141 };
142
143 gpio-leds {
144 compatible = "gpio-leds";
145
146 power: power {
147 label = "power";
148 gpios = <&stp 11 1>;
149 default-state = "on";
150 };
151 power2: power2 {
152 label = "power2";
153 gpios = <&gpio 29 1>;
154 };
155 online: online {
156 label = "online";
157 gpios = <&stp 13 1>;
158 };
159 online2 {
160 label = "online2";
161 gpios = <&stp 12 1>;
162 };
163 dsl: dsl {
164 label = "dsl";
165 gpios = <&stp 14 1>;
166 };
167 phone {
168 label = "phone";
169 gpios = <&stp 9 1>;
170 };
171 phone2 {
172 label = "phone2";
173 gpios = <&stp 8 1>;
174 };
175 wifi: wifi {
176 label = "wifi";
177 gpios = <&stp 15 1>;
178 };
179 wifi2 {
180 label = "wifi2";
181 gpios = <&stp 10 1>;
182 };
183 };
184
185 gpio_export {
186 compatible = "gpio-export";
187 #size-cells = <0>;
188
189 switch {
190 gpio-export,name = "switch";
191 gpio-export,output = <1>;
192 gpios = <&gpio 50 0>;
193 };
194 usb {
195 gpio-export,name = "wifi";
196 gpio-export,output = <1>;
197 gpios = <&gpio 9 0>;
198 };
199 };
200 };