Cadence Universal Flash Storage (UFS) Controller

Schema identifier ($id): "http://devicetree.org/schemas/ufs/cdns,ufshc.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Jan Kotas <jank@cadence.com>"

Automatic schema selection (select) #

Properties and child nodes (properties) #

compatible — required here #

Rule for matching array elements (contains)

Allowed values (enum): "cdns,ufshc", "cdns,ufshc-m31-16nm"

Required in this object (required): "compatible"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): ufs-common.yaml

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "cdns,ufshc", "cdns,ufshc-m31-16nm"

Item 2

Exact value (const): "jedec,ufs-2.0"

clocks — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

clock-names — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "core_clk"

Item 2

Exact value (const): "phy_clk"

Item 3

Exact value (const): "ref_clk"

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

reg — required here #

Maximum number of items (maxItems): 1

dma-coherent — not listed as required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible", "clocks", "clock-names", "reg"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>

ufs@fd030000 {
    compatible = "cdns,ufshc", "jedec,ufs-2.0";
    reg = <0xfd030000 0x10000>;
    interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
    freq-table-hz = <0 0>, <0 0>;
    clocks = <&ufs_core_clk>, <&ufs_phy_clk>;
    clock-names = "core_clk", "phy_clk";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Line 12: Select only our matches, not all jedec,ufs-2.0

Line 31: CDNS UFS HC + M31 16nm PHY

Edit this page