Mediatek Universal Flash Storage (UFS) Controller

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

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

Maintainers (maintainers): "Peter Wang <peter.wang@mediatek.com>", "Chaotian Jing <chaotian.jing@mediatek.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "mediatek,mt8183-ufshci", "mediatek,mt8192-ufshci", "mediatek,mt8195-ufshci"

clocks — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 8

clock-names — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 8

phys — required here #

Maximum number of items (maxItems): 1

reg — required here #

Maximum number of items (maxItems): 1

vcc-supply — required here #

true — No constraints added by this property rule.

mediatek,ufs-disable-mcq — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

The mask to disable MCQ (Multi-Circular Queue) for UFS host.

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "mediatek,mt8195-ufshci"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 8

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "ufs"

Item 2

Exact value (const): "ufs_aes"

Item 3

Exact value (const): "ufs_tick"

Item 4

Exact value (const): "unipro_sysclk"

Item 5

Exact value (const): "unipro_tick"

Item 6

Exact value (const): "unipro_mp_bclk"

Item 7

Exact value (const): "ufs_tx_symbol"

Item 8

Exact value (const): "ufs_mem_sub"

When the condition does not match (else) #

Properties and child nodes (properties)

clocks — not listed as required here

Maximum number of items (maxItems): 1

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "ufs"

Examples (examples) #

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

soc {
    #address-cells = <2>;
    #size-cells = <2>;

    ufs@ff3c0000 {
        compatible = "mediatek,mt8183-ufshci";
        reg = <0 0x11270000 0 0x2300>;
        interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_LOW>;
        phys = <&ufsphy>;

        clocks = <&infracfg_ao CLK_INFRA_UFS>;
        clock-names = "ufs";
        freq-table-hz = <0 0>;

        vcc-supply = <&mt_pmic_vemc_ldo_reg>;
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page