devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 1/2] dt-bindings: usb: qcom,dwc3: Update ipq5332 interrupt info
@ 2024-07-17  9:48 Varadarajan Narayanan
  2024-07-17  9:48 ` [PATCH v2 2/2] arm64: dts: qcom: ipq5332: Fix interrupt trigger type for usb Varadarajan Narayanan
  2024-07-18  6:23 ` [PATCH v2 1/2] dt-bindings: usb: qcom,dwc3: Update ipq5332 interrupt info Krzysztof Kozlowski
  0 siblings, 2 replies; 6+ messages in thread
From: Varadarajan Narayanan @ 2024-07-17  9:48 UTC (permalink / raw)
  To: gregkh, robh, krzk+dt, conor+dt, andersson, konrad.dybcio,
	quic_wcheng, quic_kriskura, linux-arm-msm, linux-usb, devicetree,
	linux-kernel
  Cc: Varadarajan Narayanan

IPQ5332 has only three interrupts. Update the constraints
to fix the following dt_binding_check errors.

	interrupt-names: ['pwr_event', 'dp_hs_phy_irq', 'dm_hs_phy_irq'] is too short

Fixes: 53c6d854be4e ("dt-bindings: usb: dwc3: Clean up hs_phy_irq in binding")
Signed-off-by: Varadarajan Narayanan <quic_varada@quicinc.com>
---
v2: Fix patch version numbering. Incorrectly marked the first version as v0
    Add interrupts and interrupt-names for ipq5332 instead of clubbing it with
    qcom,x1e80100-dwc3
---
 Documentation/devicetree/bindings/usb/qcom,dwc3.yaml | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml b/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml
index 6c5f962bbcf9..5e5cc2175526 100644
--- a/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml
+++ b/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml
@@ -235,6 +235,13 @@ allOf:
             - const: core
             - const: sleep
             - const: mock_utmi
+        interrupts:
+          maxItems: 3
+        interrupt-names:
+          items:
+            - const: pwr_event
+            - const: dp_hs_phy_irq
+            - const: dm_hs_phy_irq
 
   - if:
       properties:
@@ -442,7 +449,6 @@ allOf:
         compatible:
           contains:
             enum:
-              - qcom,ipq5332-dwc3
               - qcom,x1e80100-dwc3
     then:
       properties:
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH v2 2/2] arm64: dts: qcom: ipq5332: Fix interrupt trigger type for usb
  2024-07-17  9:48 [PATCH v2 1/2] dt-bindings: usb: qcom,dwc3: Update ipq5332 interrupt info Varadarajan Narayanan
@ 2024-07-17  9:48 ` Varadarajan Narayanan
  2024-07-17  9:55   ` Konrad Dybcio
  2024-07-18  6:23 ` [PATCH v2 1/2] dt-bindings: usb: qcom,dwc3: Update ipq5332 interrupt info Krzysztof Kozlowski
  1 sibling, 1 reply; 6+ messages in thread
From: Varadarajan Narayanan @ 2024-07-17  9:48 UTC (permalink / raw)
  To: gregkh, robh, krzk+dt, conor+dt, andersson, konrad.dybcio,
	quic_wcheng, quic_kriskura, linux-arm-msm, linux-usb, devicetree,
	linux-kernel
  Cc: Varadarajan Narayanan

Trigger type is incorrectly specified as IRQ_TYPE_EDGE_BOTH
instead of IRQ_TYPE_LEVEL_HIGH. This trigger type is not
supported for SPIs and results in probe failure with -EINVAL.

Fixes: 927173bf8a0e ("arm64: dts: qcom: Add missing interrupts for qcs404/ipq5332")
Signed-off-by: Varadarajan Narayanan <quic_varada@quicinc.com>
---
 arch/arm64/boot/dts/qcom/ipq5332.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/qcom/ipq5332.dtsi b/arch/arm64/boot/dts/qcom/ipq5332.dtsi
index f58fd70be826..56304f996dbf 100644
--- a/arch/arm64/boot/dts/qcom/ipq5332.dtsi
+++ b/arch/arm64/boot/dts/qcom/ipq5332.dtsi
@@ -322,8 +322,8 @@ usb: usb@8af8800 {
 			reg = <0x08af8800 0x400>;
 
 			interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>,
-				     <GIC_SPI 53 IRQ_TYPE_EDGE_BOTH>,
-				     <GIC_SPI 52 IRQ_TYPE_EDGE_BOTH>;
+				     <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
 			interrupt-names = "pwr_event",
 					  "dp_hs_phy_irq",
 					  "dm_hs_phy_irq";
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH v2 2/2] arm64: dts: qcom: ipq5332: Fix interrupt trigger type for usb
  2024-07-17  9:48 ` [PATCH v2 2/2] arm64: dts: qcom: ipq5332: Fix interrupt trigger type for usb Varadarajan Narayanan
@ 2024-07-17  9:55   ` Konrad Dybcio
  2024-07-17 15:15     ` Dmitry Baryshkov
  0 siblings, 1 reply; 6+ messages in thread
From: Konrad Dybcio @ 2024-07-17  9:55 UTC (permalink / raw)
  To: Varadarajan Narayanan, gregkh, robh, krzk+dt, conor+dt, andersson,
	quic_wcheng, quic_kriskura, linux-arm-msm, linux-usb, devicetree,
	linux-kernel

On 17.07.2024 11:48 AM, Varadarajan Narayanan wrote:
> Trigger type is incorrectly specified as IRQ_TYPE_EDGE_BOTH
> instead of IRQ_TYPE_LEVEL_HIGH. This trigger type is not
> supported for SPIs and results in probe failure with -EINVAL.
> 
> Fixes: 927173bf8a0e ("arm64: dts: qcom: Add missing interrupts for qcs404/ipq5332")
> Signed-off-by: Varadarajan Narayanan <quic_varada@quicinc.com>
> ---
>  arch/arm64/boot/dts/qcom/ipq5332.dtsi | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm64/boot/dts/qcom/ipq5332.dtsi b/arch/arm64/boot/dts/qcom/ipq5332.dtsi
> index f58fd70be826..56304f996dbf 100644
> --- a/arch/arm64/boot/dts/qcom/ipq5332.dtsi
> +++ b/arch/arm64/boot/dts/qcom/ipq5332.dtsi
> @@ -322,8 +322,8 @@ usb: usb@8af8800 {
>  			reg = <0x08af8800 0x400>;
>  
>  			interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>,
> -				     <GIC_SPI 53 IRQ_TYPE_EDGE_BOTH>,
> -				     <GIC_SPI 52 IRQ_TYPE_EDGE_BOTH>;
> +				     <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>,
> +				     <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;

Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>

Probably worth asking, is there a MPM/PDC on this platform?

Konrad	

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v2 2/2] arm64: dts: qcom: ipq5332: Fix interrupt trigger type for usb
  2024-07-17  9:55   ` Konrad Dybcio
@ 2024-07-17 15:15     ` Dmitry Baryshkov
  0 siblings, 0 replies; 6+ messages in thread
From: Dmitry Baryshkov @ 2024-07-17 15:15 UTC (permalink / raw)
  To: Konrad Dybcio
  Cc: Varadarajan Narayanan, gregkh, robh, krzk+dt, conor+dt, andersson,
	quic_wcheng, quic_kriskura, linux-arm-msm, linux-usb, devicetree,
	linux-kernel

On Wed, Jul 17, 2024 at 11:55:44AM GMT, Konrad Dybcio wrote:
> On 17.07.2024 11:48 AM, Varadarajan Narayanan wrote:
> > Trigger type is incorrectly specified as IRQ_TYPE_EDGE_BOTH
> > instead of IRQ_TYPE_LEVEL_HIGH. This trigger type is not
> > supported for SPIs and results in probe failure with -EINVAL.
> > 
> > Fixes: 927173bf8a0e ("arm64: dts: qcom: Add missing interrupts for qcs404/ipq5332")
> > Signed-off-by: Varadarajan Narayanan <quic_varada@quicinc.com>
> > ---
> >  arch/arm64/boot/dts/qcom/ipq5332.dtsi | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> > 
> > diff --git a/arch/arm64/boot/dts/qcom/ipq5332.dtsi b/arch/arm64/boot/dts/qcom/ipq5332.dtsi
> > index f58fd70be826..56304f996dbf 100644
> > --- a/arch/arm64/boot/dts/qcom/ipq5332.dtsi
> > +++ b/arch/arm64/boot/dts/qcom/ipq5332.dtsi
> > @@ -322,8 +322,8 @@ usb: usb@8af8800 {
> >  			reg = <0x08af8800 0x400>;
> >  
> >  			interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>,
> > -				     <GIC_SPI 53 IRQ_TYPE_EDGE_BOTH>,
> > -				     <GIC_SPI 52 IRQ_TYPE_EDGE_BOTH>;
> > +				     <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>,
> > +				     <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
> 
> Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
> 
> Probably worth asking, is there a MPM/PDC on this platform?

Judging by the vendor DT, there is none:

https://git.codelinaro.org/clo/qsdk/oss/kernel/linux-ipq-files/-/blob/NHSS.QSDK.12.4.5.r5/arch/arm64/boot/dts/qcom/ipq5332.dtsi?ref_type=heads


-- 
With best wishes
Dmitry

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v2 1/2] dt-bindings: usb: qcom,dwc3: Update ipq5332 interrupt info
  2024-07-17  9:48 [PATCH v2 1/2] dt-bindings: usb: qcom,dwc3: Update ipq5332 interrupt info Varadarajan Narayanan
  2024-07-17  9:48 ` [PATCH v2 2/2] arm64: dts: qcom: ipq5332: Fix interrupt trigger type for usb Varadarajan Narayanan
@ 2024-07-18  6:23 ` Krzysztof Kozlowski
  2024-07-23 10:05   ` Varadarajan Narayanan
  1 sibling, 1 reply; 6+ messages in thread
From: Krzysztof Kozlowski @ 2024-07-18  6:23 UTC (permalink / raw)
  To: Varadarajan Narayanan, gregkh, robh, krzk+dt, conor+dt, andersson,
	konrad.dybcio, quic_wcheng, quic_kriskura, linux-arm-msm,
	linux-usb, devicetree, linux-kernel

On 17/07/2024 11:48, Varadarajan Narayanan wrote:
> IPQ5332 has only three interrupts. Update the constraints
> to fix the following dt_binding_check errors.
> 
> 	interrupt-names: ['pwr_event', 'dp_hs_phy_irq', 'dm_hs_phy_irq'] is too short
> 
> Fixes: 53c6d854be4e ("dt-bindings: usb: dwc3: Clean up hs_phy_irq in binding")
> Signed-off-by: Varadarajan Narayanan <quic_varada@quicinc.com>
> ---
> v2: Fix patch version numbering. Incorrectly marked the first version as v0
>     Add interrupts and interrupt-names for ipq5332 instead of clubbing it with
>     qcom,x1e80100-dwc3
> ---
>  Documentation/devicetree/bindings/usb/qcom,dwc3.yaml | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
> 
> diff --git a/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml b/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml
> index 6c5f962bbcf9..5e5cc2175526 100644
> --- a/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml
> +++ b/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml
> @@ -235,6 +235,13 @@ allOf:
>              - const: core
>              - const: sleep
>              - const: mock_utmi
> +        interrupts:
> +          maxItems: 3
> +        interrupt-names:
> +          items:
> +            - const: pwr_event
> +            - const: dp_hs_phy_irq
> +            - const: dm_hs_phy_irq

Why are you duplicating interrupts for this variant? This is
qcom,ipq6018-dwc3, not 5332. Read carefully how the file is currently
organized - there is no entry which has clocks and interrupts at one
place. You are bringing inconsistency, why?

>  
>    - if:
>        properties:
> @@ -442,7 +449,6 @@ allOf:
>          compatible:
>            contains:
>              enum:
> -              - qcom,ipq5332-dwc3
>                - qcom,x1e80100-dwc3

So now 5332 does not have any constraints.

>      then:
>        properties:

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v2 1/2] dt-bindings: usb: qcom,dwc3: Update ipq5332 interrupt info
  2024-07-18  6:23 ` [PATCH v2 1/2] dt-bindings: usb: qcom,dwc3: Update ipq5332 interrupt info Krzysztof Kozlowski
@ 2024-07-23 10:05   ` Varadarajan Narayanan
  0 siblings, 0 replies; 6+ messages in thread
From: Varadarajan Narayanan @ 2024-07-23 10:05 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: gregkh, robh, krzk+dt, conor+dt, andersson, konrad.dybcio,
	quic_wcheng, quic_kriskura, linux-arm-msm, linux-usb, devicetree,
	linux-kernel

On Thu, Jul 18, 2024 at 08:23:28AM +0200, Krzysztof Kozlowski wrote:
> On 17/07/2024 11:48, Varadarajan Narayanan wrote:
> > IPQ5332 has only three interrupts. Update the constraints
> > to fix the following dt_binding_check errors.
> >
> > 	interrupt-names: ['pwr_event', 'dp_hs_phy_irq', 'dm_hs_phy_irq'] is too short
> >
> > Fixes: 53c6d854be4e ("dt-bindings: usb: dwc3: Clean up hs_phy_irq in binding")
> > Signed-off-by: Varadarajan Narayanan <quic_varada@quicinc.com>
> > ---
> > v2: Fix patch version numbering. Incorrectly marked the first version as v0
> >     Add interrupts and interrupt-names for ipq5332 instead of clubbing it with
> >     qcom,x1e80100-dwc3
> > ---
> >  Documentation/devicetree/bindings/usb/qcom,dwc3.yaml | 8 +++++++-
> >  1 file changed, 7 insertions(+), 1 deletion(-)
> >
> > diff --git a/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml b/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml
> > index 6c5f962bbcf9..5e5cc2175526 100644
> > --- a/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml
> > +++ b/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml
> > @@ -235,6 +235,13 @@ allOf:
> >              - const: core
> >              - const: sleep
> >              - const: mock_utmi
> > +        interrupts:
> > +          maxItems: 3
> > +        interrupt-names:
> > +          items:
> > +            - const: pwr_event
> > +            - const: dp_hs_phy_irq
> > +            - const: dm_hs_phy_irq
>
> Why are you duplicating interrupts for this variant? This is
> qcom,ipq6018-dwc3, not 5332. Read carefully how the file is currently
> organized - there is no entry which has clocks and interrupts at one
> place. You are bringing inconsistency, why?

Sorry, something got mixed up while rebasing.
Have posted v3, please take a look.

Thanks
Varada

> >    - if:
> >        properties:
> > @@ -442,7 +449,6 @@ allOf:
> >          compatible:
> >            contains:
> >              enum:
> > -              - qcom,ipq5332-dwc3
> >                - qcom,x1e80100-dwc3
>
> So now 5332 does not have any constraints.
>
> >      then:
> >        properties:

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-07-23 10:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-17  9:48 [PATCH v2 1/2] dt-bindings: usb: qcom,dwc3: Update ipq5332 interrupt info Varadarajan Narayanan
2024-07-17  9:48 ` [PATCH v2 2/2] arm64: dts: qcom: ipq5332: Fix interrupt trigger type for usb Varadarajan Narayanan
2024-07-17  9:55   ` Konrad Dybcio
2024-07-17 15:15     ` Dmitry Baryshkov
2024-07-18  6:23 ` [PATCH v2 1/2] dt-bindings: usb: qcom,dwc3: Update ipq5332 interrupt info Krzysztof Kozlowski
2024-07-23 10:05   ` Varadarajan Narayanan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).