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