* [PATCH v0 2/2] arm64: dts: qcom: ipq5332: Fix interrupt trigger type for usb
2024-07-11 6:56 [PATCH v0 1/2] dt-bindings: usb: qcom,dwc3: Add minItems for interrupt info Varadarajan Narayanan
@ 2024-07-11 6:56 ` Varadarajan Narayanan
2024-07-11 7:47 ` [PATCH v0 1/2] dt-bindings: usb: qcom,dwc3: Add minItems for interrupt info Krzysztof Kozlowski
` (2 subsequent siblings)
3 siblings, 0 replies; 10+ messages in thread
From: Varadarajan Narayanan @ 2024-07-11 6:56 UTC (permalink / raw)
To: gregkh, robh, krzk+dt, conor+dt, andersson, konrad.dybcio,
quic_wcheng, johan+linaro, 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 7a39e66d51f1..ff8ad1036ac7 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] 10+ messages in thread* Re: [PATCH v0 1/2] dt-bindings: usb: qcom,dwc3: Add minItems for interrupt info
2024-07-11 6:56 [PATCH v0 1/2] dt-bindings: usb: qcom,dwc3: Add minItems for interrupt info Varadarajan Narayanan
2024-07-11 6:56 ` [PATCH v0 2/2] arm64: dts: qcom: ipq5332: Fix interrupt trigger type for usb Varadarajan Narayanan
@ 2024-07-11 7:47 ` Krzysztof Kozlowski
2024-07-11 8:47 ` Varadarajan Narayanan
2024-07-11 8:31 ` Rob Herring (Arm)
2024-07-11 14:22 ` Rob Herring
3 siblings, 1 reply; 10+ messages in thread
From: Krzysztof Kozlowski @ 2024-07-11 7:47 UTC (permalink / raw)
To: Varadarajan Narayanan, gregkh, robh, krzk+dt, conor+dt, andersson,
konrad.dybcio, quic_wcheng, johan+linaro, quic_kriskura,
linux-arm-msm, linux-usb, devicetree, linux-kernel
On 11/07/2024 08:56, Varadarajan Narayanan wrote:
> IPQ5332 has only three interrupts. Update min items
> accordingly for interrupt names to fix the following
> dt_binding_check errors.
>
> interrupt-names: ['pwr_event', 'dp_hs_phy_irq', 'dm_hs_phy_irq'] is too short
>
> Fixes: a5c7592366af ("dt-bindings: usb: qcom,dwc3: add SC8280XP binding")
There is no ipq5332 at this commit, so I do not understand which bug are
you fixing.
> Signed-off-by: Varadarajan Narayanan <quic_varada@quicinc.com>
> ---
> Documentation/devicetree/bindings/usb/qcom,dwc3.yaml | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml b/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml
> index efde47a5b145..283bac1efba9 100644
> --- a/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml
> +++ b/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml
> @@ -432,8 +432,11 @@ allOf:
> then:
> properties:
> interrupts:
> + minItems: 3
> maxItems: 4
> interrupt-names:
> + minItems: 3
> + maxItems: 4
but x1e80100 has 4, right?
> items:
> - const: pwr_event
> - const: dp_hs_phy_irq
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [PATCH v0 1/2] dt-bindings: usb: qcom,dwc3: Add minItems for interrupt info
2024-07-11 7:47 ` [PATCH v0 1/2] dt-bindings: usb: qcom,dwc3: Add minItems for interrupt info Krzysztof Kozlowski
@ 2024-07-11 8:47 ` Varadarajan Narayanan
2024-07-11 9:03 ` Krzysztof Kozlowski
2024-07-11 9:03 ` Krzysztof Kozlowski
0 siblings, 2 replies; 10+ messages in thread
From: Varadarajan Narayanan @ 2024-07-11 8:47 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: gregkh, robh, krzk+dt, conor+dt, andersson, konrad.dybcio,
quic_wcheng, johan+linaro, quic_kriskura, linux-arm-msm,
linux-usb, devicetree, linux-kernel
On Thu, Jul 11, 2024 at 09:47:23AM +0200, Krzysztof Kozlowski wrote:
> On 11/07/2024 08:56, Varadarajan Narayanan wrote:
> > IPQ5332 has only three interrupts. Update min items
> > accordingly for interrupt names to fix the following
> > dt_binding_check errors.
> >
> > interrupt-names: ['pwr_event', 'dp_hs_phy_irq', 'dm_hs_phy_irq'] is too short
> >
> > Fixes: a5c7592366af ("dt-bindings: usb: qcom,dwc3: add SC8280XP binding")
>
> There is no ipq5332 at this commit, so I do not understand which bug are
> you fixing.
a5c7592366af introduced this interrupt and interrupt-names block. Later, 53c6d854be4e9 added ipq5332 to this section. Since a5c7592366af introduced the maxItems and I wanted to include minItems also (to accomodate ipq5332) I used a5c7592366af in the fixes tag. Will 53c6d854be4e9 be a more appropriate choice?
> > Signed-off-by: Varadarajan Narayanan <quic_varada@quicinc.com>
> > ---
> > Documentation/devicetree/bindings/usb/qcom,dwc3.yaml | 3 +++
> > 1 file changed, 3 insertions(+)
> >
> > diff --git a/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml b/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml
> > index efde47a5b145..283bac1efba9 100644
> > --- a/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml
> > +++ b/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml
> > @@ -432,8 +432,11 @@ allOf:
> > then:
> > properties:
> > interrupts:
> > + minItems: 3
> > maxItems: 4
> > interrupt-names:
> > + minItems: 3
> > + maxItems: 4
>
> but x1e80100 has 4, right?
Yes. Will have a separate block for ipq5332. Went with min/max based
on one of the previous blocks that had min/max as two and three for
a group of SoCs.
Thanks
Varada
> > items:
> > - const: pwr_event
> > - const: dp_hs_phy_irq
>
> Best regards,
> Krzysztof
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [PATCH v0 1/2] dt-bindings: usb: qcom,dwc3: Add minItems for interrupt info
2024-07-11 8:47 ` Varadarajan Narayanan
@ 2024-07-11 9:03 ` Krzysztof Kozlowski
2024-07-11 9:03 ` Krzysztof Kozlowski
1 sibling, 0 replies; 10+ messages in thread
From: Krzysztof Kozlowski @ 2024-07-11 9:03 UTC (permalink / raw)
To: Varadarajan Narayanan
Cc: gregkh, robh, krzk+dt, conor+dt, andersson, konrad.dybcio,
quic_wcheng, johan+linaro, quic_kriskura, linux-arm-msm,
linux-usb, devicetree, linux-kernel
On 11/07/2024 10:47, Varadarajan Narayanan wrote:
> On Thu, Jul 11, 2024 at 09:47:23AM +0200, Krzysztof Kozlowski wrote:
>> On 11/07/2024 08:56, Varadarajan Narayanan wrote:
>>> IPQ5332 has only three interrupts. Update min items
>>> accordingly for interrupt names to fix the following
>>> dt_binding_check errors.
>>>
>>> interrupt-names: ['pwr_event', 'dp_hs_phy_irq', 'dm_hs_phy_irq'] is too short
>>>
>>> Fixes: a5c7592366af ("dt-bindings: usb: qcom,dwc3: add SC8280XP binding")
>>
>> There is no ipq5332 at this commit, so I do not understand which bug are
>> you fixing.
>
> a5c7592366af introduced this interrupt and interrupt-names block. Later, 53c6d854be4e9 added ipq5332 to this section. Since a5c7592366af introduced the maxItems and I wanted to include minItems also (to accomodate ipq5332) I used a5c7592366af in the fixes tag. Will 53c6d854be4e9 be a more appropriate choice?
At least a5c7592366af cannot be, because there is no bug in
a5c7592366af. Otherwise please explain what bug is present at time of
a5c7592366af?
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [PATCH v0 1/2] dt-bindings: usb: qcom,dwc3: Add minItems for interrupt info
2024-07-11 8:47 ` Varadarajan Narayanan
2024-07-11 9:03 ` Krzysztof Kozlowski
@ 2024-07-11 9:03 ` Krzysztof Kozlowski
2024-07-11 9:28 ` Varadarajan Narayanan
1 sibling, 1 reply; 10+ messages in thread
From: Krzysztof Kozlowski @ 2024-07-11 9:03 UTC (permalink / raw)
To: Varadarajan Narayanan
Cc: gregkh, robh, krzk+dt, conor+dt, andersson, konrad.dybcio,
quic_wcheng, johan+linaro, quic_kriskura, linux-arm-msm,
linux-usb, devicetree, linux-kernel
On 11/07/2024 10:47, Varadarajan Narayanan wrote:
>>
>> but x1e80100 has 4, right?
>
> Yes. Will have a separate block for ipq5332. Went with min/max based
> on one of the previous blocks that had min/max as two and three for
> a group of SoCs.
>
Did you even test it before sending?
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v0 1/2] dt-bindings: usb: qcom,dwc3: Add minItems for interrupt info
2024-07-11 9:03 ` Krzysztof Kozlowski
@ 2024-07-11 9:28 ` Varadarajan Narayanan
0 siblings, 0 replies; 10+ messages in thread
From: Varadarajan Narayanan @ 2024-07-11 9:28 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: gregkh, robh, krzk+dt, conor+dt, andersson, konrad.dybcio,
quic_wcheng, johan+linaro, quic_kriskura, linux-arm-msm,
linux-usb, devicetree, linux-kernel
On Thu, Jul 11, 2024 at 11:03:56AM +0200, Krzysztof Kozlowski wrote:
> On 11/07/2024 10:47, Varadarajan Narayanan wrote:
> >>
> >> but x1e80100 has 4, right?
> >
> > Yes. Will have a separate block for ipq5332. Went with min/max based
> > on one of the previous blocks that had min/max as two and three for
> > a group of SoCs.
> >
>
> Did you even test it before sending?
Yes, ran dt_binding_check. After confirming that ipq5332 related
errors got resolved and no new errors for x1e80100 sent the
patch. Missed the yaml file related error generated by Rob's bot.
Will address these and send a new patch.
Thanks
Varada
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v0 1/2] dt-bindings: usb: qcom,dwc3: Add minItems for interrupt info
2024-07-11 6:56 [PATCH v0 1/2] dt-bindings: usb: qcom,dwc3: Add minItems for interrupt info Varadarajan Narayanan
2024-07-11 6:56 ` [PATCH v0 2/2] arm64: dts: qcom: ipq5332: Fix interrupt trigger type for usb Varadarajan Narayanan
2024-07-11 7:47 ` [PATCH v0 1/2] dt-bindings: usb: qcom,dwc3: Add minItems for interrupt info Krzysztof Kozlowski
@ 2024-07-11 8:31 ` Rob Herring (Arm)
2024-07-11 14:22 ` Rob Herring
3 siblings, 0 replies; 10+ messages in thread
From: Rob Herring (Arm) @ 2024-07-11 8:31 UTC (permalink / raw)
To: Varadarajan Narayanan
Cc: conor+dt, krzk+dt, quic_kriskura, linux-kernel, johan+linaro,
andersson, linux-arm-msm, linux-usb, konrad.dybcio, gregkh,
devicetree, quic_wcheng
On Thu, 11 Jul 2024 12:26:14 +0530, Varadarajan Narayanan wrote:
> IPQ5332 has only three interrupts. Update min items
> accordingly for interrupt names to fix the following
> dt_binding_check errors.
>
> interrupt-names: ['pwr_event', 'dp_hs_phy_irq', 'dm_hs_phy_irq'] is too short
>
> Fixes: a5c7592366af ("dt-bindings: usb: qcom,dwc3: add SC8280XP binding")
> Signed-off-by: Varadarajan Narayanan <quic_varada@quicinc.com>
> ---
> Documentation/devicetree/bindings/usb/qcom,dwc3.yaml | 3 +++
> 1 file changed, 3 insertions(+)
>
My bot found errors running 'make dt_binding_check' on your patch:
yamllint warnings/errors:
dtschema/dtc warnings/errors:
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml: allOf:12:then:properties:interrupt-names: {'minItems': 3, 'maxItems': 4, 'items': [{'const': 'pwr_event'}, {'const': 'dp_hs_phy_irq'}, {'const': 'dm_hs_phy_irq'}, {'const': 'ss_phy_irq'}]} should not be valid under {'required': ['maxItems']}
hint: "maxItems" is not needed with an "items" list
from schema $id: http://devicetree.org/meta-schemas/items.yaml#
doc reference errors (make refcheckdocs):
See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20240711065615.2720367-1-quic_varada@quicinc.com
The base for the series is generally the latest rc1. A different dependency
should be noted in *this* patch.
If you already ran 'make dt_binding_check' and didn't see the above
error(s), then make sure 'yamllint' is installed and dt-schema is up to
date:
pip3 install dtschema --upgrade
Please check and re-submit after running the above command yourself. Note
that DT_SCHEMA_FILES can be set to your schema file to speed up checking
your schema. However, it must be unset to test all examples with your schema.
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [PATCH v0 1/2] dt-bindings: usb: qcom,dwc3: Add minItems for interrupt info
2024-07-11 6:56 [PATCH v0 1/2] dt-bindings: usb: qcom,dwc3: Add minItems for interrupt info Varadarajan Narayanan
` (2 preceding siblings ...)
2024-07-11 8:31 ` Rob Herring (Arm)
@ 2024-07-11 14:22 ` Rob Herring
2024-07-17 9:51 ` Varadarajan Narayanan
3 siblings, 1 reply; 10+ messages in thread
From: Rob Herring @ 2024-07-11 14:22 UTC (permalink / raw)
To: Varadarajan Narayanan
Cc: gregkh, krzk+dt, conor+dt, andersson, konrad.dybcio, quic_wcheng,
johan+linaro, quic_kriskura, linux-arm-msm, linux-usb, devicetree,
linux-kernel
On Thu, Jul 11, 2024 at 12:26:14PM +0530, Varadarajan Narayanan wrote:
> IPQ5332 has only three interrupts. Update min items
> accordingly for interrupt names to fix the following
> dt_binding_check errors.
Patch version numbering starts at 1, not 0.
Rob
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [PATCH v0 1/2] dt-bindings: usb: qcom,dwc3: Add minItems for interrupt info
2024-07-11 14:22 ` Rob Herring
@ 2024-07-17 9:51 ` Varadarajan Narayanan
0 siblings, 0 replies; 10+ messages in thread
From: Varadarajan Narayanan @ 2024-07-17 9:51 UTC (permalink / raw)
To: Rob Herring
Cc: gregkh, krzk+dt, conor+dt, andersson, konrad.dybcio, quic_wcheng,
johan+linaro, quic_kriskura, linux-arm-msm, linux-usb, devicetree,
linux-kernel
On Thu, Jul 11, 2024 at 08:22:02AM -0600, Rob Herring wrote:
> On Thu, Jul 11, 2024 at 12:26:14PM +0530, Varadarajan Narayanan wrote:
> > IPQ5332 has only three interrupts. Update min items
> > accordingly for interrupt names to fix the following
> > dt_binding_check errors.
>
> Patch version numbering starts at 1, not 0.
Sorry. Have posted v2 addressing the above and other
comments. Please take a look.
Thanks
Varada
^ permalink raw reply [flat|nested] 10+ messages in thread