TI DaVinci NAND controller
Schema identifier ($id): "http://devicetree.org/schemas/mtd/ti,davinci-nand.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Marcus Folkesson <marcus.folkesson@gmail.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):nand-controller.yaml
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,davinci-nand", "ti,keystone-nand"
reg — required here #
Array item rules (items) #
Item 1
Access window.
Item 2
AEMIF control registers.
partitions — not listed as required here #
Value type (type): "object"
Required in this object (required): "compatible"
ti,davinci-chipselect — required here #
Number of chipselect. Indicate on the davinci_nand driver which chipselect is used for accessing the nand.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3
ti,davinci-mask-ale — not listed as required here #
Mask for ALE. Needed for executing address phase. These offset will be added to the base address for the chip select space the NAND Flash device is connected to.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 8
ti,davinci-mask-cle — not listed as required here #
Mask for CLE. Needed for executing command phase. These offset will be added to the base address for the chip select space the NAND Flash device is connected to.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 16
ti,davinci-mask-chipsel — not listed as required here #
Mask for chipselect address. Needed to mask addresses for given chipselect.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 0
ti,davinci-ecc-bits — not listed as required here #
Used ECC bits.
ti,davinci-ecc-mode — not listed as required here #
Operation mode of the NAND ECC mode.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Allowed values (enum): "none", "soft", "hw", "on-die"
Deprecated (deprecated): true
ti,davinci-nand-buswidth — not listed as required here #
Bus width to the NAND chip.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 8
Deprecated (deprecated): true
ti,davinci-nand-use-bbt — not listed as required here #
Value type (type): "boolean"
Use flash based bad block table support. OOB identifier is saved in OOB area.
Deprecated (deprecated): true
Required in this object (required): "compatible", "reg", "ti,davinci-chipselect"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
bus {
#address-cells = <2>;
#size-cells = <1>;
nand-controller@2000000,0 {
compatible = "ti,davinci-nand";
#address-cells = <1>;
#size-cells = <0>;
reg = <0 0x02000000 0x02000000>,
<1 0x00000000 0x00008000>;
ti,davinci-chipselect = <1>;
ti,davinci-mask-ale = <0>;
ti,davinci-mask-cle = <0>;
ti,davinci-mask-chipsel = <0>;
ti,davinci-nand-buswidth = <16>;
ti,davinci-ecc-mode = "hw";
ti,davinci-ecc-bits = <4>;
ti,davinci-nand-use-bbt;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "u-boot env";
reg = <0 0x020000>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)