02566181d533a028754959ba5cc2515f9b4e07ef
[openwrt.git] / target / linux / lantiq / dts / ARV4518PWR01.dts
1 /dts-v1/;
2
3 /include/ "danube.dtsi"
4
5 / {
6         model = "ARV4518PWR01 - SMC7908A-ISP";
7
8         chosen {
9                 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
10         };
11
12         memory@0 {
13                 reg = <0x0 0x4000000>;
14         };
15
16         sram@1F000000 {
17                 vmmc@107000 {
18                         status = "okay";
19                         gpios = <&gpio 31 0>;
20                 };
21         };
22
23         fpi@10000000 {
24                 localbus@0 {
25                         nor-boot@0 {
26                                 compatible = "lantiq,nor";
27                                 bank-width = <2>;
28                                 reg = <0 0x0 0x2000000>;
29                                 #address-cells = <1>;
30                                 #size-cells = <1>;
31
32                                 partition@0 {
33                                         label = "uboot";
34                                         reg = <0x00000 0x10000>; /* 64 KB */
35                                         read-only;
36                                 };
37
38                                 partition@10000 {
39                                         label = "uboot_env";
40                                         reg = <0x10000 0x10000>; /* 64 KB */
41                                         read-only;
42                                 };
43
44                                 partition@20000 {
45                                         label = "linux";
46                                         reg = <0x20000 0x3d0000>;
47                                 };
48
49                                 partition@400000 {
50                                         label = "boardconfig";
51                                         reg = <0x3f0000 0x10000>;
52                                         read-only;
53                                 };
54                         };
55
56                         gpiomm: gpiomm@4000000 {
57                                 compatible = "lantiq,gpio-mm";
58                                 reg = <1 0x0 0x10 >;
59                                 #address-cells = <1>;
60                                 #size-cells = <1>;
61                                 #gpio-cells = <2>;
62                                 gpio-controller;
63                                 lantiq,shadow = <0x0>;
64                         };
65
66                         mac_addr {
67                                 compatible = "lantiq,eth-mac";
68                                 reg = <0 0x3f0016 0x6>;
69                                 mac-increment = <2>;
70                         };
71
72                         ath5k_eep {
73                                 compatible = "ath5k,eeprom";
74                                 reg = <0 0x3f0400 0x800
75                                         0 0x3f0016 0x6>;
76                                 ath,mac-increment = <1>;
77                                 ath,eep-swap;
78                         };
79                 };
80
81                 gpio: pinmux@E100B10 {
82                         pinctrl-names = "default";
83                         pinctrl-0 = <&state_default>;
84
85                         state_default: pinmux {
86                                 ebu {
87                                         lantiq,groups = "ebu cs1";
88                                         lantiq,function = "ebu";
89                                 };
90                                 pci_in {
91                                         lantiq,groups = "req1", "req2";
92                                         lantiq,function = "pci";
93                                         lantiq,open-drain = <1>;
94                                         lantiq,pull = <2>;
95                                         lantiq,output = <0>;
96                                 };
97                                 pci_out {
98                                         lantiq,groups = "gnt1", "gnt2";
99                                         lantiq,function = "pci";
100                                         lantiq,pull = <0>;
101                                         lantiq,output = <1>;
102                                 };
103                         };
104                 };
105
106                 etop@E180000 {
107                         phy-mode = "rmii";
108                 };
109
110                 ifxhcd@E101000 {
111                         status = "okay";
112                         gpios = <&gpio 14 0>;
113                 };
114
115                 pci@E105400 {
116                         status = "okay";
117                         lantiq,internal-clock;
118                         gpio-reset = <&gpio 21 0>;
119                         req-mask = <0xf>;
120                 };
121
122         };
123
124 /*
125 #define ARV4518PW_SWITCH_RESET          13
126 */
127         gpio-keys-polled {
128                 compatible = "gpio-keys-polled";
129                 #address-cells = <1>;
130                 #size-cells = <0>;
131                 poll-interval = <100>;
132
133                 rfkill {
134                         label = "rfkill";
135                         gpios = <&gpio 28 1>;
136                         linux,code = <0xf7>;
137                 };
138                 reset {
139                         label = "reset";
140                         gpios = <&gpio 30 1>;
141                         linux,code = <0x198>;
142                 };
143         };
144
145         gpio-leds {
146                 compatible = "gpio-leds";
147                 power {
148                         label = "power";
149                         gpios = <&gpio 3 0>;
150                 };
151                 dsl {
152                         label = "dsl";
153                         gpios = <&gpio 4 1>;
154                 };
155                 online {
156                         label = "online";
157                         gpios = <&gpio 5 1>;
158                 };
159                 wifi {
160                         label = "wifi";
161                         gpios = <&gpio 6 1>;
162                 };
163                 wps {
164                         label = "wps";
165                         gpios = <&gpio 7 1>;
166                 };
167                 dsl2 {
168                         label = "dsl2";
169                         gpios = <&gpio 8 1>;
170                 };
171                 usb {
172                         label = "usb";
173                         gpios = <&gpio 19 1>;
174                 };
175                 voice {
176                         label = "voice";
177                         gpios = <&gpiomm 0 1>;
178                 };
179                 fxs1 {
180                         label = "fxs1";
181                         gpios = <&gpiomm 1 1>;
182                 };
183                 fxs2 {
184                         label = "fxs2";
185                         gpios = <&gpiomm 2 1>;
186                 };
187                 fxo {
188                         label = "fxo";
189                         gpios = <&gpiomm 3 1>;
190                 };
191         };
192 };