xref: /freebsd/sys/contrib/device-tree/Bindings/mtd/samsung-s3c2410.txt (revision a90b9d0159070121c221b966469c3e36d912bf82)
1* Samsung S3C2410 and compatible NAND flash controller
2
3Required properties:
4- compatible : The possible values are:
5	"samsung,s3c2410-nand"
6	"samsung,s3c2412-nand"
7	"samsung,s3c2440-nand"
8- reg : register's location and length.
9- #address-cells, #size-cells : see nand-controller.yaml
10- clocks : phandle to the nand controller clock
11- clock-names : must contain "nand"
12
13Optional child nodes:
14Child nodes representing the available nand chips.
15
16Optional child properties:
17- nand-ecc-mode : see nand-controller.yaml
18- nand-on-flash-bbt : see nand-controller.yaml
19
20Each child device node may optionally contain a 'partitions' sub-node,
21which further contains sub-nodes describing the flash partition mapping.
22See partition.txt for more detail.
23
24Example:
25
26nand-controller@4e000000 {
27	compatible = "samsung,s3c2440-nand";
28	reg = <0x4e000000 0x40>;
29
30	#address-cells = <1>;
31        #size-cells = <0>;
32
33	clocks = <&clocks HCLK_NAND>;
34	clock-names = "nand";
35
36	nand {
37		nand-ecc-mode = "soft";
38		nand-on-flash-bbt;
39
40		partitions {
41			compatible = "fixed-partitions";
42			#address-cells = <1>;
43			#size-cells = <1>;
44
45			partition@0 {
46				label = "u-boot";
47				reg = <0 0x040000>;
48			};
49
50			partition@40000 {
51				label = "kernel";
52				reg = <0x040000 0x500000>;
53			};
54		};
55	};
56};
57