SPI flash controller for Amlogic ARM SoCs
Schema identifier ($id): "http://devicetree.org/schemas/spi/amlogic,a4-spifc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Liang Yang <liang.yang@amlogic.com>", "Feng Chen <feng.chen@amlogic.com>", "Xianwei Zhao <xianwei.zhao@amlogic.com>"
The Amlogic SPI flash controller is an extended version of the Amlogic NAND flash controller. It supports SPI Nor Flash and SPI NAND Flash(where the Host ECC HW engine could be enabled).
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "amlogic,a4-spifc"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Array item rules (items) #
Item 1
clock apb gate
Item 2
clock used for the controller
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"gate"
Item 2
Exact value (
const):"core"
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
amlogic,rx-adj — not listed as required here #
Number of clock cycles by which sampling is delayed.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3
Default value (default): 0
Required in this object (required): "compatible", "reg", "clocks", "clock-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
sfc0: spi@fe08d000 {
compatible = "amlogic,a4-spifc";
reg = <0xfe08d000 0x800>;
clocks = <&clkc_periphs 31>,
<&clkc_periphs 102>;
clock-names = "gate", "core";
pinctrl-0 = <&spiflash_default>;
pinctrl-names = "default";
#address-cells = <1>;
#size-cells = <0>;
flash@0 {
compatible = "spi-nand";
reg = <0>;
#address-cells = <1>;
#size-cells = <1>;
nand-ecc-engine = <&sfc0>;
nand-ecc-strength = <8>;
nand-ecc-step-size = <512>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 2: Copyright (C) 2025 Amlogic, Inc. All rights reserved