blob: fd138d9978c11fb68812f7a2a97b9ec464a8a9ab [file] [log] [blame]
Paul Burton0752f922015-05-24 16:11:47 +01001/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";
Paul Cercueil89a61392017-05-12 18:53:02 +020032
33 pinctrl-names = "default";
34 pinctrl-0 = <&pins_uart0>;
Paul Burton0752f922015-05-24 16:11:47 +010035};
36
37&uart1 {
38 status = "okay";
Paul Cercueil89a61392017-05-12 18:53:02 +020039
40 pinctrl-names = "default";
41 pinctrl-0 = <&pins_uart1>;
Paul Burton0752f922015-05-24 16:11:47 +010042};
43
44&uart3 {
45 status = "okay";
Paul Cercueil89a61392017-05-12 18:53:02 +020046
47 pinctrl-names = "default";
48 pinctrl-0 = <&pins_uart2>;
Paul Burton0752f922015-05-24 16:11:47 +010049};
50
51&uart4 {
52 status = "okay";
Paul Cercueil89a61392017-05-12 18:53:02 +020053
54 pinctrl-names = "default";
55 pinctrl-0 = <&pins_uart4>;
Paul Burton0752f922015-05-24 16:11:47 +010056};
Alex Smith78800552015-12-03 12:02:22 +000057
58&nemc {
59 status = "okay";
60
61 nandc: nand-controller@1 {
62 compatible = "ingenic,jz4780-nand";
63 reg = <1 0 0x1000000>;
64
65 #address-cells = <1>;
66 #size-cells = <0>;
67
68 ingenic,bch-controller = <&bch>;
69
70 ingenic,nemc-tAS = <10>;
71 ingenic,nemc-tAH = <5>;
72 ingenic,nemc-tBP = <10>;
73 ingenic,nemc-tAW = <15>;
74 ingenic,nemc-tSTRV = <100>;
75
Paul Cercueil89a61392017-05-12 18:53:02 +020076 /*
77 * Only CLE/ALE are needed for the devices that are connected, rather
78 * than the full address line set.
79 */
80 pinctrl-names = "default";
81 pinctrl-0 = <&pins_nemc>;
82
Alex Smith78800552015-12-03 12:02:22 +000083 nand@1 {
84 reg = <1>;
85
86 nand-ecc-step-size = <1024>;
87 nand-ecc-strength = <24>;
88 nand-ecc-mode = "hw";
89 nand-on-flash-bbt;
90
Paul Cercueil89a61392017-05-12 18:53:02 +020091 pinctrl-names = "default";
92 pinctrl-0 = <&pins_nemc_cs1>;
93
Alex Smith78800552015-12-03 12:02:22 +000094 partitions {
95 compatible = "fixed-partitions";
96 #address-cells = <2>;
97 #size-cells = <2>;
98
99 partition@0 {
100 label = "u-boot-spl";
101 reg = <0x0 0x0 0x0 0x800000>;
102 };
103
104 partition@0x800000 {
105 label = "u-boot";
106 reg = <0x0 0x800000 0x0 0x200000>;
107 };
108
109 partition@0xa00000 {
110 label = "u-boot-env";
111 reg = <0x0 0xa00000 0x0 0x200000>;
112 };
113
114 partition@0xc00000 {
115 label = "boot";
116 reg = <0x0 0xc00000 0x0 0x4000000>;
117 };
118
119 partition@0x8c00000 {
120 label = "system";
121 reg = <0x0 0x4c00000 0x1 0xfb400000>;
122 };
123 };
124 };
125 };
126};
127
128&bch {
129 status = "okay";
130};
Paul Cercueil89a61392017-05-12 18:53:02 +0200131
132&pinctrl {
133 pins_uart0: uart0 {
134 function = "uart0";
135 groups = "uart0-data";
136 bias-disable;
137 };
138
139 pins_uart1: uart1 {
140 function = "uart1";
141 groups = "uart1-data";
142 bias-disable;
143 };
144
145 pins_uart2: uart2 {
146 function = "uart2";
147 groups = "uart2-data", "uart2-hwflow";
148 bias-disable;
149 };
150
151 pins_uart4: uart4 {
152 function = "uart4";
153 groups = "uart4-data";
154 bias-disable;
155 };
156
157 pins_nemc: nemc {
158 function = "nemc";
159 groups = "nemc-data", "nemc-cle-ale", "nemc-rd-we", "nemc-frd-fwe";
160 bias-disable;
161 };
162
163 pins_nemc_cs1: nemc-cs1 {
164 function = "nemc-cs1";
165 groups = "nemc-cs1";
166 bias-disable;
167 };
168};