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