9fac104b2f26bc0a944d2e519709282a589951a2
[openwrt.git] / target / linux / lantiq / image / DGN1000B.dts
1 /dts-v1/;
2
3 /include/ "amazonse.dtsi"
4
5 / {
6         chosen {
7                 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
8         };
9
10         memory@0 {
11                 reg = <0x0 0x1000000>;
12         };
13
14         fpi@10000000 {
15                 #address-cells = <1>;
16                 #size-cells = <1>;
17
18                 gpio: pinmux@E100B10 {
19                         compatible = "lantiq,pinctrl-ase";
20                         pinctrl-names = "default";
21                         pinctrl-0 = <&state_default>;
22
23                         #gpio-cells = <2>;
24                         gpio-controller;
25                         reg = <0xE100B10 0xA0>;
26
27                         state_default: pinmux {
28                                 spi {
29                                         lantiq,groups = "spi", "spi_cs1";
30                                         lantiq,function = "spi";
31                                 };
32                                 asc {
33                                         lantiq,groups = "asc";
34                                         lantiq,function = "asc";
35                                 };
36                                 exin {
37                                         lantiq,groups = "exin1", "exin2";
38                                         lantiq,function = "exin";
39                                 };
40                                 conf_in {
41                                         lantiq,pins = "io0", "io29"; /* nand rdy */
42                                         lantiq,pull = <2>;
43                                 };
44                         };
45                 };
46
47                 adsl: dsl@E116000 {
48                         compatible = "lantiq,dsl-xway";
49                         interrupt-parent = <&icu0>;
50                         interrupts = <63 96>;
51                 };
52
53                 etop@E180000 {
54                         compatible = "lantiq,etop-xway";
55                         reg = <0xE180000 0x40000>;
56                         interrupt-parent = <&icu0>;
57                         interrupts = <105 109>;
58                         phy-mode = "ephy";
59                         mac-address = [ 00 11 22 33 44 55 ];
60                 };
61
62                 spi@E100800 {
63                         compatible = "lantiq,spi-xway";
64                         reg = <0xE100800 0x100>;
65                         interrupt-parent = <&icu0>;
66                         interrupts = <24 25 26>;
67                         #address-cells = <1>;
68                         #size-cells = <1>;
69
70                         m25p80@0 {
71                                 #address-cells = <1>;
72                                 #size-cells = <1>;
73                                 compatible = "s25fl129p0";
74                                 reg = <0 0>;
75                                 linux,modalias = "m25p80", "mx25l3205d";
76                                 spi-max-frequency = <5000000>;
77
78                                 partition@0 {
79                                         reg = <0x0 0x20000>;
80                                         label = "SPI (RO) U-Boot Image";
81                                         read-only;
82                                 };
83         
84                                 partition@20000 {
85                                         reg = <0x20000 0x10000>;
86                                         label = "ENV_MAC";
87                                         read-only;
88                                 };
89
90                                 partition@30000 {
91                                         reg = <0x30000 0x10000>;
92                                         label = "DPF";
93                                         read-only;
94                                 };
95
96                                 partition@40000 {
97                                         reg = <0x40000 0x10000>;
98                                         label = "NVRAM";
99                                         read-only;
100                                 };
101
102                                 partition@500000 {
103                                         reg = <0x50000 0x003a0000>;
104                                         label = "kernel";
105                                 };
106                         };
107                 };
108         };
109         
110         /* missing button on <&gpio 25 0> */
111 /*      gpio-keys {
112                 compatible = "gpio-keys";
113                 interrupt-parent = <&icu0>;
114                 interrupts = <30 31>;
115                 reset {
116                         label = "Reset";
117                         gpios = <&gpio 0 0>;
118                         gpio-key,wakeup;
119                         linux,code = <0x100>;
120                 };
121                 wps {
122                         label = "WPS";
123                         gpios = <&gpio 29 1>;
124                         gpio-key,wakeup;
125                         linux,code = <0x100>;
126                 };
127         };
128 */
129         gpio-leds {
130                 compatible = "gpio-leds";
131                 festnetz {
132                         label = "DSL";
133                         gpios = <&gpio 1 1>;
134                         default-state = "on";
135                 };
136                 internet1 {
137                         label = "Internet1";
138                         gpios = <&gpio 2 1>;
139                         default-state = "on";
140                 };
141                 internet2 {
142                         label = "Internet2";
143                         gpios = <&gpio 3 1>;
144                         default-state = "on";
145                 };
146                 wps {
147                         label = "WPS";
148                         gpios = <&gpio 4 1>;
149                         default-state = "on";
150                 };
151                 power {
152                         label = "power";
153                         gpios = <&gpio 13 1>;
154                         default-state = "on";
155                 };
156         };
157 };