Samsung SoC series UFS PHY

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

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

Maintainers (maintainers): "Alim Akhtar <alim.akhtar@samsung.com>"

Properties and child nodes (properties) #

#phy-cells — required here #

Exact value (const): 0

compatible — required here #

Allowed values (enum): "google,gs101-ufs-phy", "samsung,exynos7-ufs-phy", "samsung,exynosautov9-ufs-phy", "samsung,exynosautov920-ufs-phy", "tesla,fsd-ufs-phy"

reg — required here #

Maximum number of items (maxItems): 1

reg-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "phy-pma"

clocks — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

clock-names — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

samsung,pmu-syscon — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

Maximum number of items (maxItems): 1

Array item rules (items) #

Minimum number of items (minItems): 1

Array item rules (items)

Item 1

phandle for PMU system controller interface, used to control pmu registers bits for ufs m-phy

Item 2

offset of the pmu control register

It can be phandle/offset pair. The second cell which can represent an offset is optional.

Required in this object (required): "#phy-cells", "compatible", "reg", "reg-names", "clocks", "clock-names", "samsung,pmu-syscon"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "samsung,exynos7-ufs-phy"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

PLL reference clock

Item 2

symbol clock for input symbol (rx0-ch0 symbol clock)

Item 3

symbol clock for input symbol (rx1-ch1 symbol clock)

Item 4

symbol clock for output symbol (tx0 symbol clock)

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "ref_clk"

Item 2

Exact value (const): "rx1_symbol_clk"

Item 3

Exact value (const): "rx0_symbol_clk"

Item 4

Exact value (const): "tx0_symbol_clk"

When the condition does not match (else) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

PLL reference clock

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "ref_clk"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/exynos7-clk.h>

ufs_phy: ufs-phy@15571800 {
    compatible = "samsung,exynos7-ufs-phy";
    reg = <0x15571800 0x240>;
    reg-names = "phy-pma";
    samsung,pmu-syscon = <&pmu_system_controller>;
    #phy-cells = <0>;
    clocks = <&clock_fsys1 SCLK_COMBO_PHY_EMBEDDED_26M>,
             <&clock_fsys1 PHYCLK_UFS20_RX1_SYMBOL_USER>,
             <&clock_fsys1 PHYCLK_UFS20_RX0_SYMBOL_USER>,
             <&clock_fsys1 PHYCLK_UFS20_TX0_SYMBOL_USER>;
    clock-names = "ref_clk", "rx1_symbol_clk",
                  "rx0_symbol_clk", "tx0_symbol_clk";

};

Source notes #

Annotations retained from the schema source

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

Edit this page