blob: 6354553506602d452acd02dbac48c854b8b59cbe [file] [log] [blame]
Tom Rini53633a82024-02-29 12:33:36 -05001* 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.
Tom Rini6bb92fc2024-05-20 09:54:58 -060022See mtd.yaml for more detail.
Tom Rini53633a82024-02-29 12:33:36 -050023
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};