Qualcomm Universal Flash Storage (UFS) Controller
Schema identifier ($id): "http://devicetree.org/schemas/ufs/qcom,ufs.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Bjorn Andersson <bjorn.andersson@linaro.org>", "Andy Gross <agross@kernel.org>"
Automatic schema selection (select) #
Properties and child nodes (
properties) #
compatible— required here #Rule for matching array elements (
contains)Allowed values (
enum):"qcom,msm8994-ufshc","qcom,msm8996-ufshc","qcom,qcs615-ufshc","qcom,sdm845-ufshc","qcom,sm6115-ufshc","qcom,sm6125-ufshc","qcom,sm6350-ufshc","qcom,sm8150-ufshc"
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Allowed values (
enum):"qcom,msm8994-ufshc","qcom,msm8996-ufshc","qcom,qcs615-ufshc","qcom,sdm845-ufshc","qcom,sm6115-ufshc","qcom,sm6125-ufshc","qcom,sm6350-ufshc","qcom,sm8150-ufshc"
Item 2
Exact value (
const):"qcom,ufshc"
Item 3
Exact value (
const):"jedec,ufs-2.0"
qcom,ice — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
phandle to the Inline Crypto Engine node
reg — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
reg-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"std"
Item 2
Exact value (
const):"ice"
Required in this object (required): "compatible", "reg"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):qcom,ufs-common.yaml
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"qcom,sdm845-ufshc","qcom,sm6350-ufshc","qcom,sm8150-ufshc"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):9Maximum number of items (
maxItems):9
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"core_clk"Item 2
Exact value (
const):"bus_aggr_clk"Item 3
Exact value (
const):"iface_clk"Item 4
Exact value (
const):"core_clk_unipro"Item 5
Exact value (
const):"ref_clk"Item 6
Exact value (
const):"tx_lane0_sync_clk"Item 7
Exact value (
const):"rx_lane0_sync_clk"Item 8
Exact value (
const):"rx_lane1_sync_clk"Item 9
Exact value (
const):"ice_core_clk"
reg— not listed as required hereMinimum number of items (
minItems):2
reg-names— required hereMinimum number of items (
minItems):2
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):9Maximum number of items (
maxItems):9
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"core_clk"Item 2
Exact value (
const):"bus_clk"Item 3
Exact value (
const):"bus_aggr_clk"Item 4
Exact value (
const):"iface_clk"Item 5
Exact value (
const):"core_clk_unipro"Item 6
Exact value (
const):"core_clk_ice"Item 7
Exact value (
const):"ref_clk"Item 8
Exact value (
const):"tx_lane0_sync_clk"Item 9
Exact value (
const):"rx_lane0_sync_clk"
reg— not listed as required hereMaximum number of items (
maxItems):1
reg-names— not listed as required hereMaximum number of items (
maxItems):1
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"qcom,qcs615-ufshc","qcom,sm6115-ufshc","qcom,sm6125-ufshc"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):8Maximum number of items (
maxItems):8
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"core_clk"Item 2
Exact value (
const):"bus_aggr_clk"Item 3
Exact value (
const):"iface_clk"Item 4
Exact value (
const):"core_clk_unipro"Item 5
Exact value (
const):"ref_clk"Item 6
Exact value (
const):"tx_lane0_sync_clk"Item 7
Exact value (
const):"rx_lane0_sync_clk"Item 8
Exact value (
const):"ice_core_clk"
reg— not listed as required hereMinimum number of items (
minItems):2
reg-names— required hereMinimum number of items (
minItems):2
Rule 5 #
Condition (
if) #When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereMaximum number of items (
maxItems):1
clocks— not listed as required hereMinimum number of items (
minItems):7Maximum number of items (
maxItems):8When the condition does not match (
else) #Properties and child nodes (
properties)
reg— not listed as required hereMinimum number of items (
minItems):1Maximum number of items (
maxItems):2
clocks— not listed as required hereMinimum number of items (
minItems):7Maximum number of items (
maxItems):9
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/qcom,gcc-sm8150.h>
#include <dt-bindings/clock/qcom,rpmh.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interconnect/qcom,sm8150.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
soc {
#address-cells = <2>;
#size-cells = <2>;
ufs@1d84000 {
compatible = "qcom,sm8150-ufshc", "qcom,ufshc",
"jedec,ufs-2.0";
reg = <0x0 0x01d84000 0x0 0x2500>,
<0x0 0x01d90000 0x0 0x8000>;
reg-names = "std", "ice";
interrupts = <GIC_SPI 265 IRQ_TYPE_LEVEL_HIGH>;
phys = <&ufs_mem_phy_lanes>;
phy-names = "ufsphy";
lanes-per-direction = <2>;
#reset-cells = <1>;
resets = <&gcc GCC_UFS_PHY_BCR>;
reset-names = "rst";
reset-gpios = <&tlmm 210 GPIO_ACTIVE_LOW>;
vcc-supply = <&vreg_l7b_2p5>;
vcc-max-microamp = <1100000>;
vccq-supply = <&vreg_l9b_1p2>;
vccq-max-microamp = <1200000>;
power-domains = <&gcc UFS_PHY_GDSC>;
iommus = <&apps_smmu 0x300 0>;
clocks = <&gcc GCC_UFS_PHY_AXI_CLK>,
<&gcc GCC_AGGRE_UFS_PHY_AXI_CLK>,
<&gcc GCC_UFS_PHY_AHB_CLK>,
<&gcc GCC_UFS_PHY_UNIPRO_CORE_CLK>,
<&rpmhcc RPMH_CXO_CLK>,
<&gcc GCC_UFS_PHY_TX_SYMBOL_0_CLK>,
<&gcc GCC_UFS_PHY_RX_SYMBOL_0_CLK>,
<&gcc GCC_UFS_PHY_RX_SYMBOL_1_CLK>,
<&gcc GCC_UFS_PHY_ICE_CORE_CLK>;
clock-names = "core_clk",
"bus_aggr_clk",
"iface_clk",
"core_clk_unipro",
"ref_clk",
"tx_lane0_sync_clk",
"rx_lane0_sync_clk",
"rx_lane1_sync_clk",
"ice_core_clk";
freq-table-hz = <37500000 300000000>,
<0 0>,
<0 0>,
<37500000 300000000>,
<0 0>,
<0 0>,
<0 0>,
<0 0>,
<0 300000000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Line 13: Select only our matches, not all jedec,ufs-2.0
Line 153: TODO: define clock bindings for qcom,msm8994-ufshc