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

scsi: ufs: qcom: dt-bindings: Split common part to qcom,ufs-common.yaml

The binding for Qualcomm SoC UFS controllers grew and it will grow
further. It already includes several conditionals, partially for
difference in handling encryption block (ICE, either as phandle or as
I/O address space) but it will further grow for MCQ.

Prepare for splitting this one big binding into several ones for common
group of devices by defining common part for all Qualcomm UFS schemas.

This only moves code, no functional impact expected.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20250731-dt-bindings-ufs-qcom-v2-1-53bb634bf95a@linaro.org
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Krzysztof Kozlowski and committed by
Martin K. Petersen
7f224967 8f5ae30d

+68 -52
+67
Documentation/devicetree/bindings/ufs/qcom,ufs-common.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/ufs/qcom,ufs-common.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Qualcomm Universal Flash Storage (UFS) Controller Common Properties 8 + 9 + maintainers: 10 + - Bjorn Andersson <bjorn.andersson@linaro.org> 11 + 12 + properties: 13 + clocks: 14 + minItems: 7 15 + maxItems: 9 16 + 17 + clock-names: 18 + minItems: 7 19 + maxItems: 9 20 + 21 + dma-coherent: true 22 + 23 + interconnects: 24 + minItems: 2 25 + maxItems: 2 26 + 27 + interconnect-names: 28 + items: 29 + - const: ufs-ddr 30 + - const: cpu-ufs 31 + 32 + iommus: 33 + minItems: 1 34 + maxItems: 2 35 + 36 + phys: 37 + maxItems: 1 38 + 39 + phy-names: 40 + items: 41 + - const: ufsphy 42 + 43 + power-domains: 44 + maxItems: 1 45 + 46 + required-opps: 47 + maxItems: 1 48 + 49 + resets: 50 + maxItems: 1 51 + 52 + '#reset-cells': 53 + const: 1 54 + 55 + reset-names: 56 + items: 57 + - const: rst 58 + 59 + reset-gpios: 60 + maxItems: 1 61 + description: 62 + GPIO connected to the RESET pin of the UFS memory device. 63 + 64 + allOf: 65 + - $ref: ufs-common.yaml 66 + 67 + additionalProperties: true
+1 -52
Documentation/devicetree/bindings/ufs/qcom,ufs.yaml
··· 47 47 - const: qcom,ufshc 48 48 - const: jedec,ufs-2.0 49 49 50 - clocks: 51 - minItems: 7 52 - maxItems: 9 53 - 54 - clock-names: 55 - minItems: 7 56 - maxItems: 9 57 - 58 - dma-coherent: true 59 - 60 - interconnects: 61 - minItems: 2 62 - maxItems: 2 63 - 64 - interconnect-names: 65 - items: 66 - - const: ufs-ddr 67 - - const: cpu-ufs 68 - 69 - iommus: 70 - minItems: 1 71 - maxItems: 2 72 - 73 - phys: 74 - maxItems: 1 75 - 76 - phy-names: 77 - items: 78 - - const: ufsphy 79 - 80 - power-domains: 81 - maxItems: 1 82 - 83 50 qcom,ice: 84 51 $ref: /schemas/types.yaml#/definitions/phandle 85 52 description: phandle to the Inline Crypto Engine node ··· 60 93 - const: std 61 94 - const: ice 62 95 63 - required-opps: 64 - maxItems: 1 65 - 66 - resets: 67 - maxItems: 1 68 - 69 - '#reset-cells': 70 - const: 1 71 - 72 - reset-names: 73 - items: 74 - - const: rst 75 - 76 - reset-gpios: 77 - maxItems: 1 78 - description: 79 - GPIO connected to the RESET pin of the UFS memory device. 80 - 81 96 required: 82 97 - compatible 83 98 - reg 84 99 85 100 allOf: 86 - - $ref: ufs-common.yaml 101 + - $ref: qcom,ufs-common.yaml 87 102 88 103 - if: 89 104 properties: