Skip to content

Commit e5796a9

Browse files
Bartosz Golaszewskivinodkoul
authored andcommitted
dt-bindings: phy: qmp-ufs: describe the UFS PHY for sa8775p
Add a new compatible for the QMP UFS PHY found on sa8775p platforms and update the clocks property to accommodate three clocks. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20230411130446.401440-3-brgl@bgdev.pl Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 813a239 commit e5796a9

1 file changed

Lines changed: 25 additions & 1 deletion

File tree

Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-ufs-phy.yaml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ description:
1616
properties:
1717
compatible:
1818
enum:
19+
- qcom,sa8775p-qmp-ufs-phy
1920
- qcom,sc8280xp-qmp-ufs-phy
2021
- qcom,sm6125-qmp-ufs-phy
2122
- qcom,sm7150-qmp-ufs-phy
@@ -25,12 +26,15 @@ properties:
2526
maxItems: 1
2627

2728
clocks:
28-
maxItems: 2
29+
minItems: 2
30+
maxItems: 3
2931

3032
clock-names:
33+
minItems: 2
3134
items:
3235
- const: ref
3336
- const: ref_aux
37+
- const: qref
3438

3539
power-domains:
3640
maxItems: 1
@@ -64,6 +68,26 @@ required:
6468
- vdda-pll-supply
6569
- "#phy-cells"
6670

71+
allOf:
72+
- if:
73+
properties:
74+
compatible:
75+
contains:
76+
enum:
77+
- qcom,sa8775p-qmp-ufs-phy
78+
then:
79+
properties:
80+
clocks:
81+
maxItems: 3
82+
clock-names:
83+
maxItems: 3
84+
else:
85+
properties:
86+
clocks:
87+
maxItems: 2
88+
clock-names:
89+
maxItems: 2
90+
6791
additionalProperties: false
6892

6993
examples:

0 commit comments

Comments
 (0)