* [PATCH 1/2] dt-bindings: usb: qcom,dwc3: drop assigned-clocks
@ 2023-07-23 14:15 Krzysztof Kozlowski
2023-07-23 14:15 ` [PATCH 2/2] dt-bindings: usb: qcom,dwc3: correct SDM660 clocks Krzysztof Kozlowski
2023-07-24 16:28 ` [PATCH 1/2] dt-bindings: usb: qcom,dwc3: drop assigned-clocks Rob Herring
0 siblings, 2 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2023-07-23 14:15 UTC (permalink / raw)
To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Greg Kroah-Hartman,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Wesley Cheng,
linux-arm-msm, linux-usb, devicetree, linux-kernel
Cc: Krzysztof Kozlowski
The binding does not have to specify assigned-clocks, because they are
already allowed by core DT schema. On the other hand, fixed
assigned-clocks in the binding will not fit different boards or SoCs.
Exactly this is the case for Qualcomm SuperSpeed DWC3 USB SoC controller
binding, where few boards have different assigned-clocks:
ipq8074-hk10-c1.dtb: usb@8cf8800: assigned-clocks: [[5, 131], [5, 132], [5, 133]] is too long
sdm660-xiaomi-lavender.dtb: usb@a8f8800: assigned-clocks: [[37, 92], [37, 91], [38, 64]] is too long
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
Documentation/devicetree/bindings/usb/qcom,dwc3.yaml | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml b/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml
index 08d42fde466a..7cedd751161d 100644
--- a/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml
+++ b/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml
@@ -85,15 +85,6 @@ properties:
minItems: 1
maxItems: 9
- assigned-clocks:
- items:
- - description: Phandle and clock specifier of MOCK_UTMI_CLK.
- - description: Phandle and clock specifoer of MASTER_CLK.
-
- assigned-clock-rates:
- items:
- - description: Must be 19.2MHz (19200000).
- - description: Must be >= 60 MHz in HS mode, >= 125 MHz in SS mode.
resets:
maxItems: 1
--
2.34.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 2/2] dt-bindings: usb: qcom,dwc3: correct SDM660 clocks
2023-07-23 14:15 [PATCH 1/2] dt-bindings: usb: qcom,dwc3: drop assigned-clocks Krzysztof Kozlowski
@ 2023-07-23 14:15 ` Krzysztof Kozlowski
2023-07-24 16:29 ` Rob Herring
2023-07-24 16:28 ` [PATCH 1/2] dt-bindings: usb: qcom,dwc3: drop assigned-clocks Rob Herring
1 sibling, 1 reply; 4+ messages in thread
From: Krzysztof Kozlowski @ 2023-07-23 14:15 UTC (permalink / raw)
To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Greg Kroah-Hartman,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Wesley Cheng,
linux-arm-msm, linux-usb, devicetree, linux-kernel
Cc: Krzysztof Kozlowski
SDM660 SoC has two instances of DWC3 USB controller: one supporting USB
3.0 and one supporting only up to USB 2.0. The latter one does not use
iface clock, so allow such variant to fix dtbs_check warnings:
sda660-inforce-ifc6560.dtb: usb@c2f8800: clocks: [[37, 48], [37, 88], [37, 89], [37, 90]] is too short
sda660-inforce-ifc6560.dtb: usb@c2f8800: clock-names:2: 'iface' was expected
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
.../devicetree/bindings/usb/qcom,dwc3.yaml | 24 ++++++++++++-------
1 file changed, 16 insertions(+), 8 deletions(-)
diff --git a/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml b/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml
index 7cedd751161d..b84b104f2975 100644
--- a/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml
+++ b/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml
@@ -284,15 +284,23 @@ allOf:
then:
properties:
clocks:
- minItems: 6
+ minItems: 5
+ maxItems: 6
clock-names:
- items:
- - const: cfg_noc
- - const: core
- - const: iface
- - const: sleep
- - const: mock_utmi
- - const: bus
+ oneOf:
+ - items:
+ - const: cfg_noc
+ - const: core
+ - const: iface
+ - const: sleep
+ - const: mock_utmi
+ - const: bus
+ - items:
+ - const: cfg_noc
+ - const: core
+ - const: sleep
+ - const: mock_utmi
+ - const: bus
- if:
properties:
--
2.34.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] dt-bindings: usb: qcom,dwc3: drop assigned-clocks
2023-07-23 14:15 [PATCH 1/2] dt-bindings: usb: qcom,dwc3: drop assigned-clocks Krzysztof Kozlowski
2023-07-23 14:15 ` [PATCH 2/2] dt-bindings: usb: qcom,dwc3: correct SDM660 clocks Krzysztof Kozlowski
@ 2023-07-24 16:28 ` Rob Herring
1 sibling, 0 replies; 4+ messages in thread
From: Rob Herring @ 2023-07-24 16:28 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Greg Kroah-Hartman, Conor Dooley, Andy Gross, Wesley Cheng,
devicetree, Bjorn Andersson, linux-usb, linux-kernel,
linux-arm-msm, Rob Herring, Krzysztof Kozlowski, Konrad Dybcio
On Sun, 23 Jul 2023 16:15:49 +0200, Krzysztof Kozlowski wrote:
> The binding does not have to specify assigned-clocks, because they are
> already allowed by core DT schema. On the other hand, fixed
> assigned-clocks in the binding will not fit different boards or SoCs.
> Exactly this is the case for Qualcomm SuperSpeed DWC3 USB SoC controller
> binding, where few boards have different assigned-clocks:
>
> ipq8074-hk10-c1.dtb: usb@8cf8800: assigned-clocks: [[5, 131], [5, 132], [5, 133]] is too long
> sdm660-xiaomi-lavender.dtb: usb@a8f8800: assigned-clocks: [[37, 92], [37, 91], [38, 64]] is too long
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
> Documentation/devicetree/bindings/usb/qcom,dwc3.yaml | 9 ---------
> 1 file changed, 9 deletions(-)
>
Reviewed-by: Rob Herring <robh@kernel.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 2/2] dt-bindings: usb: qcom,dwc3: correct SDM660 clocks
2023-07-23 14:15 ` [PATCH 2/2] dt-bindings: usb: qcom,dwc3: correct SDM660 clocks Krzysztof Kozlowski
@ 2023-07-24 16:29 ` Rob Herring
0 siblings, 0 replies; 4+ messages in thread
From: Rob Herring @ 2023-07-24 16:29 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Andy Gross, Krzysztof Kozlowski, Konrad Dybcio, linux-arm-msm,
Wesley Cheng, devicetree, linux-kernel, Bjorn Andersson,
Conor Dooley, Greg Kroah-Hartman, Rob Herring, linux-usb
On Sun, 23 Jul 2023 16:15:50 +0200, Krzysztof Kozlowski wrote:
> SDM660 SoC has two instances of DWC3 USB controller: one supporting USB
> 3.0 and one supporting only up to USB 2.0. The latter one does not use
> iface clock, so allow such variant to fix dtbs_check warnings:
>
> sda660-inforce-ifc6560.dtb: usb@c2f8800: clocks: [[37, 48], [37, 88], [37, 89], [37, 90]] is too short
> sda660-inforce-ifc6560.dtb: usb@c2f8800: clock-names:2: 'iface' was expected
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
> .../devicetree/bindings/usb/qcom,dwc3.yaml | 24 ++++++++++++-------
> 1 file changed, 16 insertions(+), 8 deletions(-)
>
Reviewed-by: Rob Herring <robh@kernel.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-07-24 16:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-23 14:15 [PATCH 1/2] dt-bindings: usb: qcom,dwc3: drop assigned-clocks Krzysztof Kozlowski
2023-07-23 14:15 ` [PATCH 2/2] dt-bindings: usb: qcom,dwc3: correct SDM660 clocks Krzysztof Kozlowski
2023-07-24 16:29 ` Rob Herring
2023-07-24 16:28 ` [PATCH 1/2] dt-bindings: usb: qcom,dwc3: drop assigned-clocks Rob Herring
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®