Back to home page

OSCL-LXR

 
 

    


0001 * Samsung S3C2410 and compatible NAND flash controller
0002 
0003 Required properties:
0004 - compatible : The possible values are:
0005         "samsung,s3c2410-nand"
0006         "samsung,s3c2412-nand"
0007         "samsung,s3c2440-nand"
0008 - reg : register's location and length.
0009 - #address-cells, #size-cells : see nand-controller.yaml
0010 - clocks : phandle to the nand controller clock
0011 - clock-names : must contain "nand"
0012 
0013 Optional child nodes:
0014 Child nodes representing the available nand chips.
0015 
0016 Optional child properties:
0017 - nand-ecc-mode : see nand-controller.yaml
0018 - nand-on-flash-bbt : see nand-controller.yaml
0019 
0020 Each child device node may optionally contain a 'partitions' sub-node,
0021 which further contains sub-nodes describing the flash partition mapping.
0022 See partition.txt for more detail.
0023 
0024 Example:
0025 
0026 nand-controller@4e000000 {
0027         compatible = "samsung,s3c2440-nand";
0028         reg = <0x4e000000 0x40>;
0029 
0030         #address-cells = <1>;
0031         #size-cells = <0>;
0032 
0033         clocks = <&clocks HCLK_NAND>;
0034         clock-names = "nand";
0035 
0036         nand {
0037                 nand-ecc-mode = "soft";
0038                 nand-on-flash-bbt;
0039 
0040                 partitions {
0041                         compatible = "fixed-partitions";
0042                         #address-cells = <1>;
0043                         #size-cells = <1>;
0044 
0045                         partition@0 {
0046                                 label = "u-boot";
0047                                 reg = <0 0x040000>;
0048                         };
0049 
0050                         partition@40000 {
0051                                 label = "kernel";
0052                                 reg = <0x040000 0x500000>;
0053                         };
0054                 };
0055         };
0056 };