Amlogic NAND Flash Controller (NFC) for GXBB/GXL/AXG family SoCs
Schema identifier ($id): "http://devicetree.org/schemas/mtd/amlogic,meson-nand.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):nand-controller.yaml
Maintainers (maintainers): "liang.yang@amlogic.com"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "amlogic,meson-gxl-nfc", "amlogic,meson-axg-nfc"
reg — required here #
Maximum number of items (maxItems): 2
reg-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"nfc"
Item 2
Exact value (
const):"emmc"
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Minimum number of items (minItems): 2
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"core"
Item 2
Exact value (
const):"device"
Properties matching a name pattern (patternProperties) #
^nand@[0-7]$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): raw-nand-chip.yaml
Properties and child nodes (properties) #
reg — not listed as required here
Minimum value (minimum): 0
Maximum value (maximum): 1
nand-ecc-mode — not listed as required here
Exact value (const): "hw"
nand-ecc-step-size — not listed as required here
Allowed values (enum): 512, 1024
nand-ecc-strength — not listed as required here
Allowed values (enum): 8, 16, 24, 30, 40, 50, 60
The ECC configurations that can be supported are as follows.
meson-gxl-nfc 8, 16, 24, 30, 40, 50, 60
meson-axg-nfc 8
nand-rb — not listed as required here
Maximum number of items (maxItems): 1
Array item rules (items)
Maximum value (
maximum):0
amlogic,boot-pages — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Number of pages starting from offset 0, where a special ECC configuration must be used because it is accessed by the ROM code. This ECC configuration uses 384 bytes data blocks. Also scrambling mode is enabled for such pages.
amlogic,boot-page-step — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Interval between pages, accessed by the ROM code. For example we have 8 pages [0, 7]. Pages 0,2,4,6 are accessed by the ROM code, so this field will be 2 (e.g. every 2nd page). Rest of pages - 1,3,5,7 are read/written without this mode.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Property dependencies (dependencies) #
nand-ecc-strength — applies when this property is present
Also requires: "nand-ecc-step-size"
nand-ecc-step-size — applies when this property is present
Also requires: "nand-ecc-strength"
amlogic,boot-pages — applies when this property is present
Also requires: "nand-is-boot-medium", "amlogic,boot-page-step"
amlogic,boot-page-step — applies when this property is present
Also requires: "nand-is-boot-medium", "amlogic,boot-pages"
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/axg-clkc.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
nand-controller@ffe07800 {
compatible = "amlogic,meson-axg-nfc";
reg = <0xffe07800 0x100>, <0xffe07000 0x800>;
reg-names = "nfc", "emmc";
interrupts = <GIC_SPI 34 IRQ_TYPE_EDGE_RISING>;
clocks = <&clkc CLKID_SD_EMMC_C>, <&clkc CLKID_FCLK_DIV2>;
clock-names = "core", "device";
pinctrl-0 = <&nand_pins>;
pinctrl-names = "default";
#address-cells = <1>;
#size-cells = <0>;
nand@0 {
reg = <0>;
nand-rb = <0>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)