162306a36Sopenharmony_ci* Samsung S3C2410 and compatible NAND flash controller
262306a36Sopenharmony_ci
362306a36Sopenharmony_ciRequired properties:
462306a36Sopenharmony_ci- compatible : The possible values are:
562306a36Sopenharmony_ci	"samsung,s3c2410-nand"
662306a36Sopenharmony_ci	"samsung,s3c2412-nand"
762306a36Sopenharmony_ci	"samsung,s3c2440-nand"
862306a36Sopenharmony_ci- reg : register's location and length.
962306a36Sopenharmony_ci- #address-cells, #size-cells : see nand-controller.yaml
1062306a36Sopenharmony_ci- clocks : phandle to the nand controller clock
1162306a36Sopenharmony_ci- clock-names : must contain "nand"
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ciOptional child nodes:
1462306a36Sopenharmony_ciChild nodes representing the available nand chips.
1562306a36Sopenharmony_ci
1662306a36Sopenharmony_ciOptional child properties:
1762306a36Sopenharmony_ci- nand-ecc-mode : see nand-controller.yaml
1862306a36Sopenharmony_ci- nand-on-flash-bbt : see nand-controller.yaml
1962306a36Sopenharmony_ci
2062306a36Sopenharmony_ciEach child device node may optionally contain a 'partitions' sub-node,
2162306a36Sopenharmony_ciwhich further contains sub-nodes describing the flash partition mapping.
2262306a36Sopenharmony_ciSee partition.txt for more detail.
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_ciExample:
2562306a36Sopenharmony_ci
2662306a36Sopenharmony_cinand-controller@4e000000 {
2762306a36Sopenharmony_ci	compatible = "samsung,s3c2440-nand";
2862306a36Sopenharmony_ci	reg = <0x4e000000 0x40>;
2962306a36Sopenharmony_ci
3062306a36Sopenharmony_ci	#address-cells = <1>;
3162306a36Sopenharmony_ci        #size-cells = <0>;
3262306a36Sopenharmony_ci
3362306a36Sopenharmony_ci	clocks = <&clocks HCLK_NAND>;
3462306a36Sopenharmony_ci	clock-names = "nand";
3562306a36Sopenharmony_ci
3662306a36Sopenharmony_ci	nand {
3762306a36Sopenharmony_ci		nand-ecc-mode = "soft";
3862306a36Sopenharmony_ci		nand-on-flash-bbt;
3962306a36Sopenharmony_ci
4062306a36Sopenharmony_ci		partitions {
4162306a36Sopenharmony_ci			compatible = "fixed-partitions";
4262306a36Sopenharmony_ci			#address-cells = <1>;
4362306a36Sopenharmony_ci			#size-cells = <1>;
4462306a36Sopenharmony_ci
4562306a36Sopenharmony_ci			partition@0 {
4662306a36Sopenharmony_ci				label = "u-boot";
4762306a36Sopenharmony_ci				reg = <0 0x040000>;
4862306a36Sopenharmony_ci			};
4962306a36Sopenharmony_ci
5062306a36Sopenharmony_ci			partition@40000 {
5162306a36Sopenharmony_ci				label = "kernel";
5262306a36Sopenharmony_ci				reg = <0x040000 0x500000>;
5362306a36Sopenharmony_ci			};
5462306a36Sopenharmony_ci		};
5562306a36Sopenharmony_ci	};
5662306a36Sopenharmony_ci};
57