public inbox for linux-usb@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: usb: cypress,cypd4226: Drop Tegra specific GPIO defines
@ 2024-09-25 17:34 Rob Herring (Arm)
  2024-09-26 16:56 ` Conor Dooley
  0 siblings, 1 reply; 2+ messages in thread
From: Rob Herring (Arm) @ 2024-09-25 17:34 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Krzysztof Kozlowski, Conor Dooley,
	Wayne Chang
  Cc: linux-usb, devicetree, linux-kernel

The Tegra GPIO define is a problem for the magic code which extracts
the examples and fixes up the interrupt provider. This was partially
worked around by putting #interrupt-cells in the parent. However,
that's incomplete and causes a warning when dtc "interrupt_provider"
check is enabled. Just drop the Tegra specific define and simplify
the example.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
---
 Documentation/devicetree/bindings/usb/cypress,cypd4226.yaml | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/Documentation/devicetree/bindings/usb/cypress,cypd4226.yaml b/Documentation/devicetree/bindings/usb/cypress,cypd4226.yaml
index 89fc9a434d05..0620d82508c1 100644
--- a/Documentation/devicetree/bindings/usb/cypress,cypd4226.yaml
+++ b/Documentation/devicetree/bindings/usb/cypress,cypd4226.yaml
@@ -61,18 +61,15 @@ additionalProperties: false
 
 examples:
   - |
-    #include <dt-bindings/gpio/tegra194-gpio.h>
     #include <dt-bindings/interrupt-controller/arm-gic.h>
     i2c {
       #address-cells = <1>;
       #size-cells = <0>;
-      #interrupt-cells = <2>;
 
       typec@8 {
         compatible = "cypress,cypd4226";
         reg = <0x08>;
-        interrupt-parent = <&gpio_aon>;
-        interrupts = <TEGRA194_AON_GPIO(BB, 2) IRQ_TYPE_LEVEL_LOW>;
+        interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
         firmware-name = "nvidia,jetson-agx-xavier";
         #address-cells = <1>;
         #size-cells = <0>;
-- 
2.45.2


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

* Re: [PATCH] dt-bindings: usb: cypress,cypd4226: Drop Tegra specific GPIO defines
  2024-09-25 17:34 [PATCH] dt-bindings: usb: cypress,cypd4226: Drop Tegra specific GPIO defines Rob Herring (Arm)
@ 2024-09-26 16:56 ` Conor Dooley
  0 siblings, 0 replies; 2+ messages in thread
From: Conor Dooley @ 2024-09-26 16:56 UTC (permalink / raw)
  To: Rob Herring (Arm)
  Cc: Greg Kroah-Hartman, Krzysztof Kozlowski, Conor Dooley,
	Wayne Chang, linux-usb, devicetree, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1808 bytes --]

On Wed, Sep 25, 2024 at 12:34:48PM -0500, Rob Herring (Arm) wrote:
> The Tegra GPIO define is a problem for the magic code which extracts
> the examples and fixes up the interrupt provider. This was partially
> worked around by putting #interrupt-cells in the parent. However,
> that's incomplete and causes a warning when dtc "interrupt_provider"
> check is enabled. Just drop the Tegra specific define and simplify
> the example.
> 
> Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
> ---

Right, there's no need to have a tegra specific thing here at all, its
just an example..
Acked-by: Conor Dooley <conor.dooley@microchip.com>


>  Documentation/devicetree/bindings/usb/cypress,cypd4226.yaml | 5 +----
>  1 file changed, 1 insertion(+), 4 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/usb/cypress,cypd4226.yaml b/Documentation/devicetree/bindings/usb/cypress,cypd4226.yaml
> index 89fc9a434d05..0620d82508c1 100644
> --- a/Documentation/devicetree/bindings/usb/cypress,cypd4226.yaml
> +++ b/Documentation/devicetree/bindings/usb/cypress,cypd4226.yaml
> @@ -61,18 +61,15 @@ additionalProperties: false
>  
>  examples:
>    - |
> -    #include <dt-bindings/gpio/tegra194-gpio.h>
>      #include <dt-bindings/interrupt-controller/arm-gic.h>
>      i2c {
>        #address-cells = <1>;
>        #size-cells = <0>;
> -      #interrupt-cells = <2>;
>  
>        typec@8 {
>          compatible = "cypress,cypd4226";
>          reg = <0x08>;
> -        interrupt-parent = <&gpio_aon>;
> -        interrupts = <TEGRA194_AON_GPIO(BB, 2) IRQ_TYPE_LEVEL_LOW>;
> +        interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
>          firmware-name = "nvidia,jetson-agx-xavier";
>          #address-cells = <1>;
>          #size-cells = <0>;
> -- 
> 2.45.2
> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

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

end of thread, other threads:[~2024-09-26 16:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-25 17:34 [PATCH] dt-bindings: usb: cypress,cypd4226: Drop Tegra specific GPIO defines Rob Herring (Arm)
2024-09-26 16:56 ` Conor Dooley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox