HiSilicon Universal Flash Storage (UFS) Controller
Schema identifier ($id): "http://devicetree.org/schemas/ufs/hisilicon,ufs.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Li Wei <liwei213@huawei.com>"
Automatic schema selection (select) #
Properties and child nodes (
properties) #
compatible— required here #Rule for matching array elements (
contains)Allowed values (
enum):"hisilicon,hi3660-ufs","hisilicon,hi3670-ufs"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ufs-common.yaml
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"hisilicon,hi3660-ufs"Item 2
Exact value (
const):"jedec,ufs-1.1"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"jedec,ufs-2.1"
clocks — not listed as required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 2
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"ref_clk"
Item 2
Exact value (
const):"phy_clk"
reg — required here #
Array item rules (items) #
Item 1
UFS register address space
Item 2
UFS SYS CTRL register address space
resets — required here #
Maximum number of items (maxItems): 1
reset-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"rst"
Required in this object (required): "compatible", "reg", "resets", "reset-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/hi3670-clock.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
soc {
#address-cells = <2>;
#size-cells = <2>;
ufs@ff3c0000 {
compatible = "hisilicon,hi3670-ufs", "jedec,ufs-2.1";
reg = <0x0 0xff3c0000 0x0 0x1000>,
<0x0 0xff3e0000 0x0 0x1000>;
interrupt-parent = <&gic>;
interrupts = <GIC_SPI 278 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&crg_ctrl HI3670_CLK_GATE_UFSIO_REF>,
<&crg_ctrl HI3670_CLK_GATE_UFS_SUBSYS>;
clock-names = "ref_clk", "phy_clk";
freq-table-hz = <0 0>,
<0 0>;
resets = <&crg_rst 0x84 12>;
reset-names = "rst";
};
};
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