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