18c2ecf20Sopenharmony_ci* Samsung S3C2410 and compatible NAND flash controller
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciRequired properties:
48c2ecf20Sopenharmony_ci- compatible : The possible values are:
58c2ecf20Sopenharmony_ci	"samsung,s3c2410-nand"
68c2ecf20Sopenharmony_ci	"samsung,s3c2412-nand"
78c2ecf20Sopenharmony_ci	"samsung,s3c2440-nand"
88c2ecf20Sopenharmony_ci- reg : register's location and length.
98c2ecf20Sopenharmony_ci- #address-cells, #size-cells : see nand-controller.yaml
108c2ecf20Sopenharmony_ci- clocks : phandle to the nand controller clock
118c2ecf20Sopenharmony_ci- clock-names : must contain "nand"
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ciOptional child nodes:
148c2ecf20Sopenharmony_ciChild nodes representing the available nand chips.
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ciOptional child properties:
178c2ecf20Sopenharmony_ci- nand-ecc-mode : see nand-controller.yaml
188c2ecf20Sopenharmony_ci- nand-on-flash-bbt : see nand-controller.yaml
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ciEach child device node may optionally contain a 'partitions' sub-node,
218c2ecf20Sopenharmony_ciwhich further contains sub-nodes describing the flash partition mapping.
228c2ecf20Sopenharmony_ciSee partition.txt for more detail.
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ciExample:
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_cinand-controller@4e000000 {
278c2ecf20Sopenharmony_ci	compatible = "samsung,s3c2440-nand";
288c2ecf20Sopenharmony_ci	reg = <0x4e000000 0x40>;
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ci	#address-cells = <1>;
318c2ecf20Sopenharmony_ci        #size-cells = <0>;
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_ci	clocks = <&clocks HCLK_NAND>;
348c2ecf20Sopenharmony_ci	clock-names = "nand";
358c2ecf20Sopenharmony_ci
368c2ecf20Sopenharmony_ci	nand {
378c2ecf20Sopenharmony_ci		nand-ecc-mode = "soft";
388c2ecf20Sopenharmony_ci		nand-on-flash-bbt;
398c2ecf20Sopenharmony_ci
408c2ecf20Sopenharmony_ci		partitions {
418c2ecf20Sopenharmony_ci			compatible = "fixed-partitions";
428c2ecf20Sopenharmony_ci			#address-cells = <1>;
438c2ecf20Sopenharmony_ci			#size-cells = <1>;
448c2ecf20Sopenharmony_ci
458c2ecf20Sopenharmony_ci			partition@0 {
468c2ecf20Sopenharmony_ci				label = "u-boot";
478c2ecf20Sopenharmony_ci				reg = <0 0x040000>;
488c2ecf20Sopenharmony_ci			};
498c2ecf20Sopenharmony_ci
508c2ecf20Sopenharmony_ci			partition@40000 {
518c2ecf20Sopenharmony_ci				label = "kernel";
528c2ecf20Sopenharmony_ci				reg = <0x040000 0x500000>;
538c2ecf20Sopenharmony_ci			};
548c2ecf20Sopenharmony_ci		};
558c2ecf20Sopenharmony_ci	};
568c2ecf20Sopenharmony_ci};
57