lantiq: move partitions into partion table node
[openwrt.git] / target / linux / lantiq / dts / GIGASX76X.dts
1 /dts-v1/;
2
3 /include/ "danube.dtsi"
4
5 / {
6         model = "GIGASX76X - Gigaset SX761,SX762,SX763";
7
8         chosen {
9                 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
10         };
11
12         memory@0 {
13                 reg = <0x0 0x2000000>;
14         };
15
16         sram@1F000000 {
17                 vmmc@107000 {
18                         status = "okay";
19                         gpios = <&gpiomm 1 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                                 partitions {
33                                         compatible = "fixed-partitions";
34                                         #address-cells = <1>;
35                                         #size-cells = <1>;
36
37                                         partition@0 {
38                                                 label = "uboot";
39                                                 reg = <0x0 0x30000>;
40                                         };
41
42                                         partition@10000 {
43                                                 label = "uboot_env";
44                                                 reg = <0x30000 0x10000>;
45                                         };
46
47                                         partition@40000 {
48                                                 label = "firmware";
49                                                 reg = <0x40000 0x7c0000>;
50                                         };
51                                 };
52                         };
53
54                         gpiomm: gpiomm@4000000 {
55                                 compatible = "lantiq,gpio-mm";
56                                 reg = <1 0x0 0x10 >;
57                                 #address-cells = <1>;
58                                 #size-cells = <1>;
59                                 #gpio-cells = <2>;
60                                 gpio-controller;
61                                 lantiq,shadow = <0x3>;
62                         };
63                 };
64
65                 gpio: pinmux@E100B10 {
66                         pinctrl-names = "default";
67                         pinctrl-0 = <&state_default>;
68
69                         state_default: pinmux {
70                                 stp {
71                                         lantiq,groups = "stp";
72                                         lantiq,function = "stp";
73                                 };
74                         };
75                 };
76
77                 gpios: stp@E100BB0 {
78                         status = "okay";
79                 };
80
81                 etop@E180000 {
82                         phy-mode = "rmii";
83                 };
84
85                 ifxhcd@E101000 {
86                         status = "okay";
87                         gpios = <&gpio 29 0>;
88                 };
89
90                 pci@E105400 {
91                         status = "okay";
92                         lantiq,internal-clock;
93                         gpio-reset = <&gpio 21 0>;
94                         req-mask = <0x1>;
95                 };
96         };
97
98         gpio-keys-polled {
99                 compatible = "gpio-keys-polled";
100                 #address-cells = <1>;
101                 #size-cells = <0>;
102                 poll-interval = <100>;
103
104                 reset {
105                         label = "reset";
106                         gpios = <&gpio 14 0>;
107                         linux,code = <0x198>;
108                 };
109         };
110
111         gpio_export {
112                 compatible = "gpio-export";
113                 #size-cells = <0>;
114
115                 switch {
116                         gpio-export,name = "switch";
117                         gpio-export,output = <1>;
118                         gpios = <&gpio 19 0>;
119                 };
120         };
121 };