mips: jz47xx: Add Creator CI20 platform
[platform/kernel/u-boot.git] / arch / mips / dts / ci20.dts
1 // SPDX-License-Identifier: GPL-2.0+
2
3 /dts-v1/;
4
5 #include "jz4780.dtsi"
6
7 / {
8         compatible = "img,ci20", "ingenic,jz4780";
9
10         aliases {
11                 serial0 = &uart0;
12                 serial1 = &uart1;
13                 serial3 = &uart3;
14                 serial4 = &uart4;
15         };
16
17         chosen {
18                 stdout-path = "serial4:115200n8";
19         };
20
21         memory {
22                 device_type = "memory";
23                 reg = <0x0 0x10000000
24                        0x30000000 0x30000000>;
25         };
26 };
27
28 &ext {
29         clock-frequency = <48000000>;
30 };
31
32 &uart0 {
33         status = "okay";
34 };
35
36 &uart1 {
37         status = "okay";
38 };
39
40 &uart3 {
41         status = "okay";
42 };
43
44 &uart4 {
45         status = "okay";
46 };
47
48 &nemc {
49         status = "okay";
50
51         nandc: nand-controller@1 {
52                 compatible = "ingenic,jz4780-nand";
53                 reg = <1 0 0x1000000>;
54
55                 #address-cells = <1>;
56                 #size-cells = <0>;
57
58                 ingenic,bch-controller = <&bch>;
59
60                 ingenic,nemc-tAS = <10>;
61                 ingenic,nemc-tAH = <5>;
62                 ingenic,nemc-tBP = <10>;
63                 ingenic,nemc-tAW = <15>;
64                 ingenic,nemc-tSTRV = <100>;
65
66                 nand@1 {
67                         reg = <1>;
68
69                         nand-ecc-step-size = <1024>;
70                         nand-ecc-strength = <24>;
71                         nand-ecc-mode = "hw";
72                         nand-on-flash-bbt;
73
74                         partitions {
75                                 compatible = "fixed-partitions";
76                                 #address-cells = <2>;
77                                 #size-cells = <2>;
78
79                                 partition@0 {
80                                         label = "u-boot-spl";
81                                         reg = <0x0 0x0 0x0 0x800000>;
82                                 };
83
84                                 partition@0x800000 {
85                                         label = "u-boot";
86                                         reg = <0x0 0x800000 0x0 0x200000>;
87                                 };
88
89                                 partition@0xa00000 {
90                                         label = "u-boot-env";
91                                         reg = <0x0 0xa00000 0x0 0x200000>;
92                                 };
93
94                                 partition@0xc00000 {
95                                         label = "boot";
96                                         reg = <0x0 0xc00000 0x0 0x4000000>;
97                                 };
98
99                                 partition@0x8c00000 {
100                                         label = "system";
101                                         reg = <0x0 0x4c00000 0x1 0xfb400000>;
102                                 };
103                         };
104                 };
105         };
106 };
107
108 &bch {
109         status = "okay";
110 };
111
112 &mmc0 {
113         bus-width = <4>;
114         max-frequency = <50000000>;
115         status = "okay";
116 };
117
118 &mmc1 {
119         bus-width = <4>;
120         max-frequency = <50000000>;
121         status = "okay";
122 };