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