* [PATCH] dt-bindings: phy: qcom: Relax required supplies
@ 2026-09-21 23:26 Rob Herring (Arm)
2026-09-21 23:34 ` sashiko-bot
0 siblings, 1 reply; 2+ messages in thread
From: Rob Herring (Arm) @ 2026-09-21 23:26 UTC (permalink / raw)
To: Vinod Koul, Neil Armstrong, Manivannan Sadhasivam,
Krzysztof Kozlowski, Conor Dooley, Wesley Cheng
Cc: linux-arm-msm, linux-phy, devicetree, linux-kernel
For the QUSB2 PHY binding, keep the three regulator supplies required
except for legacy IPQ6018 nodes that do not describe the board rails.
Assisted-by: LLM
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
---
.../devicetree/bindings/phy/qcom,qusb2-phy.yaml | 17 ++++++++++++++---
1 file changed, 14 insertions(+), 3 deletions(-)
diff --git a/Documentation/devicetree/bindings/phy/qcom,qusb2-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,qusb2-phy.yaml
index 001fd0ccc985..2516eab7f6d3 100644
--- a/Documentation/devicetree/bindings/phy/qcom,qusb2-phy.yaml
+++ b/Documentation/devicetree/bindings/phy/qcom,qusb2-phy.yaml
@@ -165,12 +165,23 @@ required:
- "#phy-cells"
- clocks
- clock-names
- - vdd-supply
- - vdda-pll-supply
- - vdda-phy-dpdm-supply
- resets
allOf:
+ - if:
+ not:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - qcom,ipq6018-qusb2-phy
+ - qcom,ipq8074-qusb2-phy
+ then:
+ required:
+ - vdd-supply
+ - vdda-pll-supply
+ - vdda-phy-dpdm-supply
+
- if:
not:
properties:
--
2.53.0
--
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] dt-bindings: phy: qcom: Relax required supplies
2026-09-21 23:26 [PATCH] dt-bindings: phy: qcom: Relax required supplies Rob Herring (Arm)
@ 2026-09-21 23:34 ` sashiko-bot
0 siblings, 0 replies; 2+ messages in thread
From: sashiko-bot @ 2026-09-21 23:34 UTC (permalink / raw)
To: Rob Herring (Arm)
Cc: robh, vkoul, devicetree, olteanv, conor+dt, neil.armstrong,
linux-phy
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] dt-bindings: unintended schema relaxation for qcom,ipq5210-qusb2-phy
--
commit 69ee638f4004f6e325a963f3b804b3c1cac5c6fb
Author: Rob Herring (Arm) <robh@kernel.org>
dt-bindings: phy: qcom: Relax required supplies
This commit relaxes the requirement for three regulator supplies in the QUSB2
PHY binding for legacy IPQ6018 nodes that do not describe board rails.
> diff --git a/Documentation/devicetree/bindings/phy/qcom,qusb2-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,qusb2-phy.yaml
> index 001fd0ccc9852..2516eab7f6d32 100644
> --- a/Documentation/devicetree/bindings/phy/qcom,qusb2-phy.yaml
> +++ b/Documentation/devicetree/bindings/phy/qcom,qusb2-phy.yaml
[ ... ]
> allOf:
> + - if:
> + not:
> + properties:
> + compatible:
> + contains:
> + enum:
> + - qcom,ipq6018-qusb2-phy
> + - qcom,ipq8074-qusb2-phy
[Severity: Medium]
Does this unintentionally relax the schema requirements for IPQ5210?
Since qcom,ipq5210-qusb2-phy falls back to qcom,ipq6018-qusb2-phy, an IPQ5210
device tree node's compatible array will contain qcom,ipq6018-qusb2-phy.
The 'contains: enum' logic matches this fallback, which seems like it might
incorrectly apply this legacy IPQ6018 exemption to IPQ5210 nodes, allowing
them to silently pass schema validation without the required regulator
supplies.
> + then:
> + required:
> + - vdd-supply
> + - vdda-pll-supply
> + - vdda-phy-dpdm-supply
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260921232603.3129898-1-robh@kernel.org?part=1
--
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-09-21 23:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-21 23:26 [PATCH] dt-bindings: phy: qcom: Relax required supplies Rob Herring (Arm)
2026-09-21 23:34 ` sashiko-bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox