1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/mtd/amlogic,meson-nand.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Amlogic NAND Flash Controller (NFC) for GXBB/GXL/AXG family SoCs
10 - $ref: nand-controller.yaml
13 - liang.yang@amlogic.com
18 - amlogic,meson-gxl-nfc
19 - amlogic,meson-axg-nfc
43 $ref: raw-nand-chip.yaml
56 enum: [8, 16, 24, 30, 40, 50, 60]
58 The ECC configurations that can be supported are as follows.
59 meson-gxl-nfc 8, 16, 24, 30, 40, 50, 60
67 unevaluatedProperties: false
70 nand-ecc-strength: [nand-ecc-step-size]
71 nand-ecc-step-size: [nand-ecc-strength]
81 unevaluatedProperties: false
85 #include <dt-bindings/clock/axg-clkc.h>
86 #include <dt-bindings/interrupt-controller/arm-gic.h>
87 nand-controller@ffe07800 {
88 compatible = "amlogic,meson-axg-nfc";
89 reg = <0xffe07800 0x100>, <0xffe07000 0x800>;
90 reg-names = "nfc", "emmc";
91 interrupts = <GIC_SPI 34 IRQ_TYPE_EDGE_RISING>;
92 clocks = <&clkc CLKID_SD_EMMC_C>, <&clkc CLKID_FCLK_DIV2>;
93 clock-names = "core", "device";
95 pinctrl-0 = <&nand_pins>;
96 pinctrl-names = "default";