-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dt-bindings: mtd: add DT binding for s3c2410 flash controller
Adds the device tree bindings description for Samsung S3C2410 and compatible NAND flash controller. Acked-by: Rob Herring <robh@kernel.org> Acked-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
- Loading branch information
Sergio Prado
authored and
Boris Brezillon
committed
Nov 7, 2016
1 parent
e9f66ae
commit 7baf9a0
Showing
1 changed file
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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>; | ||
}; | ||
}; | ||
}; | ||
}; |