All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "George Moussalem" <george.moussalem@outlook.com>
Cc: olteanv@gmail.com, linux-phy@lists.infradead.org,
	robh@kernel.org, neil.armstrong@linaro.org,
	devicetree@vger.kernel.org, vkoul@kernel.org,
	conor+dt@kernel.org
Subject: Re: [PATCH v2 07/14] dt-bindings: usb: qcom,snps-dwc3: Add clocks for USB3 on Qualcomm IPQ5018
Date: Wed, 12 Aug 2026 09:51:44 +0000	[thread overview]
Message-ID: <20260812095144.E2AE71F00A3A@smtp.kernel.org> (raw)
In-Reply-To: <20260812-ipq5018-usb3-v2-7-8f355d7ff0ef@outlook.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] DT schema backward compatibility violation: qcom,ipq5018-dwc3 mandates exactly 6 clocks, breaking existing High-Speed configurations.
--

--- Patch [7]: [PATCH v2 07/14] dt-bindings: usb: qcom,snps-dwc3: Add clocks for USB3 on Qualcomm IPQ5018 ---
commit 52d44d5749e478530dd0178f543b2a151efa9d68
Author: George Moussalem <george.moussalem@outlook.com>

dt-bindings: usb: qcom,snps-dwc3: Add clocks for USB3 on Qualcomm IPQ5018

This commit adds support for the aux and lfps clocks for the Qualcomm
IPQ5018 SoC in the snps-dwc3 device tree bindings. It creates a new
conditional block to specify these extra clocks and removes the compatible
string from a shared configuration.

> diff --git a/Documentation/devicetree/bindings/usb/qcom,snps-dwc3.yaml b/Documentation/devicetree/bindings/usb/qcom,snps-dwc3.yaml
> index e59fbfc1af71b..e3e22ac8462de 100644
> --- a/Documentation/devicetree/bindings/usb/qcom,snps-dwc3.yaml
> +++ b/Documentation/devicetree/bindings/usb/qcom,snps-dwc3.yaml
> @@ -181,6 +181,26 @@ allOf:
>              - const: sleep
>              - const: mock_utmi
>  
> +  - if:
> +      properties:
> +        compatible:
> +          contains:
> +            enum:
> +              - qcom,ipq5018-dwc3
> +    then:
> +      properties:
> +        clocks:
> +          minItems: 6

[Severity: Medium]
Will this break dtbs_check for existing High-Speed only device trees?

The commit message notes these new clocks are only required for USB
Super-Speed support, but setting minItems to 6 in the allOf conditional
block for qcom,ipq5018-dwc3 in
Documentation/devicetree/bindings/usb/qcom,snps-dwc3.yaml mandates all 6
clocks for every device tree using this compatible string.

Since older configurations only provide 4 clocks, they will fail schema
validation.

Should minItems be set to 4 to preserve backward compatibility?

> +          maxItems: 6
> +        clock-names:
> +          items:
> +            - const: core
> +            - const: iface
> +            - const: sleep
> +            - const: mock_utmi
> +            - const: aux
> +            - const: lfps

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260812-ipq5018-usb3-v2-0-8f355d7ff0ef@outlook.com?part=7

WARNING: multiple messages have this Message-ID (diff)
From: sashiko-bot@kernel.org
To: "George Moussalem" <george.moussalem@outlook.com>
Cc: olteanv@gmail.com, linux-phy@lists.infradead.org,
	robh@kernel.org, neil.armstrong@linaro.org,
	devicetree@vger.kernel.org, vkoul@kernel.org,
	conor+dt@kernel.org
Subject: Re: [PATCH v2 07/14] dt-bindings: usb: qcom,snps-dwc3: Add clocks for USB3 on Qualcomm IPQ5018
Date: Wed, 12 Aug 2026 09:51:44 +0000	[thread overview]
Message-ID: <20260812095144.E2AE71F00A3A@smtp.kernel.org> (raw)
In-Reply-To: <20260812-ipq5018-usb3-v2-7-8f355d7ff0ef@outlook.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] DT schema backward compatibility violation: qcom,ipq5018-dwc3 mandates exactly 6 clocks, breaking existing High-Speed configurations.
--

--- Patch [7]: [PATCH v2 07/14] dt-bindings: usb: qcom,snps-dwc3: Add clocks for USB3 on Qualcomm IPQ5018 ---
commit 52d44d5749e478530dd0178f543b2a151efa9d68
Author: George Moussalem <george.moussalem@outlook.com>

dt-bindings: usb: qcom,snps-dwc3: Add clocks for USB3 on Qualcomm IPQ5018

This commit adds support for the aux and lfps clocks for the Qualcomm
IPQ5018 SoC in the snps-dwc3 device tree bindings. It creates a new
conditional block to specify these extra clocks and removes the compatible
string from a shared configuration.

> diff --git a/Documentation/devicetree/bindings/usb/qcom,snps-dwc3.yaml b/Documentation/devicetree/bindings/usb/qcom,snps-dwc3.yaml
> index e59fbfc1af71b..e3e22ac8462de 100644
> --- a/Documentation/devicetree/bindings/usb/qcom,snps-dwc3.yaml
> +++ b/Documentation/devicetree/bindings/usb/qcom,snps-dwc3.yaml
> @@ -181,6 +181,26 @@ allOf:
>              - const: sleep
>              - const: mock_utmi
>  
> +  - if:
> +      properties:
> +        compatible:
> +          contains:
> +            enum:
> +              - qcom,ipq5018-dwc3
> +    then:
> +      properties:
> +        clocks:
> +          minItems: 6

[Severity: Medium]
Will this break dtbs_check for existing High-Speed only device trees?

The commit message notes these new clocks are only required for USB
Super-Speed support, but setting minItems to 6 in the allOf conditional
block for qcom,ipq5018-dwc3 in
Documentation/devicetree/bindings/usb/qcom,snps-dwc3.yaml mandates all 6
clocks for every device tree using this compatible string.

Since older configurations only provide 4 clocks, they will fail schema
validation.

Should minItems be set to 4 to preserve backward compatibility?

> +          maxItems: 6
> +        clock-names:
> +          items:
> +            - const: core
> +            - const: iface
> +            - const: sleep
> +            - const: mock_utmi
> +            - const: aux
> +            - const: lfps

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260812-ipq5018-usb3-v2-0-8f355d7ff0ef@outlook.com?part=7

-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

  reply	other threads:[~2026-08-12  9:51 UTC|newest]

Thread overview: 73+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-12  9:34 [PATCH v2 00/14] Enable USB3 for Qualcomm IPQ5018 and IPQ5332 George Moussalem via B4 Relay
2026-08-12  9:34 ` George Moussalem via B4 Relay
2026-08-12  9:34 ` George Moussalem
2026-08-12  9:34 ` [PATCH v2 01/14] dt-bindings: phy: Document the Qualcomm IPQ5332 UNIPHY USB Super-speed PHY George Moussalem via B4 Relay
2026-08-12  9:34   ` George Moussalem via B4 Relay
2026-08-12  9:34   ` George Moussalem
2026-08-12  9:41   ` sashiko-bot
2026-08-12  9:41     ` sashiko-bot
2026-08-12  9:34 ` [PATCH v2 02/14] phy: qcom: Introduce Qualcomm IPQ5332 Super-Speed USB UNIPHY driver George Moussalem via B4 Relay
2026-08-12  9:34   ` George Moussalem via B4 Relay
2026-08-12  9:34   ` George Moussalem
2026-08-12  9:48   ` sashiko-bot
2026-08-12  9:48     ` sashiko-bot
2026-08-12  9:34 ` [PATCH v2 03/14] arm64: dts: qcom: ipq5018: Add USB Super-Speed PHY node George Moussalem via B4 Relay
2026-08-12  9:34   ` George Moussalem via B4 Relay
2026-08-12  9:34   ` George Moussalem
2026-08-12  9:51   ` sashiko-bot
2026-08-12  9:51     ` sashiko-bot
2026-08-12  9:34 ` [PATCH v2 04/14] arm64: dts: qcom: ipq5332: Flatten usb controller node George Moussalem via B4 Relay
2026-08-12  9:34   ` George Moussalem via B4 Relay
2026-08-12  9:34   ` George Moussalem
2026-08-12 10:25   ` sashiko-bot
2026-08-12 10:25     ` sashiko-bot
2026-08-12  9:34 ` [PATCH v2 05/14] arm64: dts: qcom: ipq5018: " George Moussalem via B4 Relay
2026-08-12  9:34   ` George Moussalem via B4 Relay
2026-08-12  9:34   ` George Moussalem
2026-08-12  9:56   ` sashiko-bot
2026-08-12  9:56     ` sashiko-bot
2026-08-12  9:34 ` [PATCH v2 06/14] dt-bindings: usb: qcom,snps-dwc3: Add clocks for USB3 on Qualcomm IPQ5332 George Moussalem via B4 Relay
2026-08-12  9:34   ` George Moussalem via B4 Relay
2026-08-12  9:34   ` George Moussalem
2026-08-12  9:46   ` sashiko-bot
2026-08-12  9:46     ` sashiko-bot
2026-08-12  9:34 ` [PATCH v2 07/14] dt-bindings: usb: qcom,snps-dwc3: Add clocks for USB3 on Qualcomm IPQ5018 George Moussalem via B4 Relay
2026-08-12  9:34   ` George Moussalem via B4 Relay
2026-08-12  9:34   ` George Moussalem
2026-08-12  9:51   ` sashiko-bot [this message]
2026-08-12  9:51     ` sashiko-bot
2026-08-12  9:34 ` [PATCH v2 08/14] arm64: dts: qcom: ipq5332: Add clocks required for USB3 support George Moussalem via B4 Relay
2026-08-12  9:34   ` George Moussalem via B4 Relay
2026-08-12  9:34   ` George Moussalem
2026-08-12  9:34 ` [PATCH v2 09/14] arm64: dts: qcom: ipq5018: " George Moussalem via B4 Relay
2026-08-12  9:34   ` George Moussalem via B4 Relay
2026-08-12  9:34   ` George Moussalem
2026-08-12  9:48   ` sashiko-bot
2026-08-12  9:48     ` sashiko-bot
2026-08-12  9:34 ` [PATCH v2 10/14] arm64: dts: qcom: ipq5332: Add Super-Speed UNIPHY to USB node George Moussalem via B4 Relay
2026-08-12  9:34   ` George Moussalem via B4 Relay
2026-08-12  9:34   ` George Moussalem
2026-08-12  9:55   ` sashiko-bot
2026-08-12  9:55     ` sashiko-bot
2026-08-12 10:56   ` Sergey Shtylyov
2026-08-12 10:56     ` Sergey Shtylyov
2026-08-12  9:34 ` [PATCH v2 11/14] arm64: dts: qcom: ipq5018: " George Moussalem via B4 Relay
2026-08-12  9:34   ` George Moussalem via B4 Relay
2026-08-12  9:34   ` George Moussalem
2026-08-12  9:57   ` sashiko-bot
2026-08-12  9:57     ` sashiko-bot
2026-08-12 10:57   ` Sergey Shtylyov
2026-08-12 10:57     ` Sergey Shtylyov
2026-08-12  9:34 ` [PATCH v2 12/14] arm64: dts: qcom: ipq5332: Enable USB Super-Speed PHY George Moussalem via B4 Relay
2026-08-12  9:34   ` George Moussalem via B4 Relay
2026-08-12  9:34   ` George Moussalem
2026-08-12  9:54   ` sashiko-bot
2026-08-12  9:54     ` sashiko-bot
2026-08-12  9:34 ` [PATCH v2 13/14] arm64: dts: qcom: ipq5018: " George Moussalem via B4 Relay
2026-08-12  9:34   ` George Moussalem via B4 Relay
2026-08-12  9:34   ` George Moussalem
2026-08-12  9:57   ` sashiko-bot
2026-08-12  9:57     ` sashiko-bot
2026-08-12  9:34 ` [PATCH v2 14/14] arm64: defconfig: Enable qcom USB UNIPHY driver George Moussalem via B4 Relay
2026-08-12  9:34   ` George Moussalem via B4 Relay
2026-08-12  9:34   ` George Moussalem

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260812095144.E2AE71F00A3A@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=george.moussalem@outlook.com \
    --cc=linux-phy@lists.infradead.org \
    --cc=neil.armstrong@linaro.org \
    --cc=olteanv@gmail.com \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=vkoul@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.