Skip to content

Commit facb9b0

Browse files
abelvesagregkh
authored andcommitted
dt-bindings: phy: qcom-edp: Add missing clock for X Elite
commit 6b99eea upstream. On X Elite platform, the eDP PHY uses one more clock called ref. The current X Elite devices supported upstream work fine without this clock, because the boot firmware leaves this clock enabled. But we should not rely on that. Also, even though this change breaks the ABI, it is needed in order to make the driver disables this clock along with the other ones, for a proper bring-down of the entire PHY. So attach the this ref clock to the PHY. Cc: stable@vger.kernel.org # v6.10 Fixes: 5d56078 ("dt-bindings: phy: qcom-edp: Add X1E80100 PHY compatibles") Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Bjorn Andersson <andersson@kernel.org> Signed-off-by: Abel Vesa <abel.vesa@linaro.org> Link: https://patch.msgid.link/20251224-phy-qcom-edp-add-missing-refclk-v5-1-3f45d349b5ac@oss.qualcomm.com Signed-off-by: Vinod Koul <vkoul@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent a2d4e9a commit facb9b0

1 file changed

Lines changed: 27 additions & 1 deletion

File tree

Documentation/devicetree/bindings/phy/qcom,edp-phy.yaml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,15 @@ properties:
3737
- description: PLL register block
3838

3939
clocks:
40-
maxItems: 2
40+
minItems: 2
41+
maxItems: 3
4142

4243
clock-names:
44+
minItems: 2
4345
items:
4446
- const: aux
4547
- const: cfg_ahb
48+
- const: ref
4649

4750
"#clock-cells":
4851
const: 1
@@ -64,6 +67,29 @@ required:
6467
- "#clock-cells"
6568
- "#phy-cells"
6669

70+
allOf:
71+
- if:
72+
properties:
73+
compatible:
74+
enum:
75+
- qcom,x1e80100-dp-phy
76+
then:
77+
properties:
78+
clocks:
79+
minItems: 3
80+
maxItems: 3
81+
clock-names:
82+
minItems: 3
83+
maxItems: 3
84+
else:
85+
properties:
86+
clocks:
87+
minItems: 2
88+
maxItems: 2
89+
clock-names:
90+
minItems: 2
91+
maxItems: 2
92+
6793
additionalProperties: false
6894

6995
examples:

0 commit comments

Comments
 (0)