Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: ufs: qcom: document SC7180 UFS

Document already upstreamed and used Qualcomm SC7180 UFS host controller
to fix dtbs_check warnings like:

sc7180-idp.dtb: ufshc@1d84000: compatible:0: 'qcom,sc7180-ufshc' is not one of ...
sc7180-idp.dtb: ufshc@1d84000: clocks: [[39, 99], [39, 7], [39, 98], [39, 107], [36, 0], [39, 106], [39, 105]] is too short
sc7180-idp.dtb: ufshc@1d84000: clock-names: ['core_clk', 'bus_aggr_clk', 'iface_clk', 'core_clk_unipro', ...] is too short

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240326174632.209745-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Rob Herring
7fb5aafc ad91c1d7

+30 -4
+30 -4
Documentation/devicetree/bindings/ufs/qcom,ufs.yaml
··· 27 27 - qcom,msm8996-ufshc 28 28 - qcom,msm8998-ufshc 29 29 - qcom,sa8775p-ufshc 30 + - qcom,sc7180-ufshc 30 31 - qcom,sc7280-ufshc 31 32 - qcom,sc8180x-ufshc 32 33 - qcom,sc8280xp-ufshc ··· 44 43 - const: jedec,ufs-2.0 45 44 46 45 clocks: 47 - minItems: 8 46 + minItems: 7 48 47 maxItems: 11 49 48 50 49 clock-names: 51 - minItems: 8 50 + minItems: 7 52 51 maxItems: 11 53 52 54 53 dma-coherent: true ··· 113 112 114 113 allOf: 115 114 - $ref: ufs-common.yaml 115 + 116 + - if: 117 + properties: 118 + compatible: 119 + contains: 120 + enum: 121 + - qcom,sc7180-ufshc 122 + then: 123 + properties: 124 + clocks: 125 + minItems: 7 126 + maxItems: 7 127 + clock-names: 128 + items: 129 + - const: core_clk 130 + - const: bus_aggr_clk 131 + - const: iface_clk 132 + - const: core_clk_unipro 133 + - const: ref_clk 134 + - const: tx_lane0_sync_clk 135 + - const: rx_lane0_sync_clk 136 + reg: 137 + maxItems: 1 138 + reg-names: 139 + maxItems: 1 116 140 117 141 - if: 118 142 properties: ··· 276 250 reg: 277 251 maxItems: 1 278 252 clocks: 279 - minItems: 8 253 + minItems: 7 280 254 maxItems: 8 281 255 else: 282 256 properties: ··· 284 258 minItems: 1 285 259 maxItems: 2 286 260 clocks: 287 - minItems: 8 261 + minItems: 7 288 262 maxItems: 11 289 263 290 264 unevaluatedProperties: false