Linux USB
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Akash Kumar" <akash.kumar@oss.qualcomm.com>
Cc: linux-usb@vger.kernel.org, devicetree@vger.kernel.org,
	robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v2 1/2] dt-bindings: usb: cypress,cypd4226: Add orientation-gpios property
Date: Mon, 23 Nov 2026 09:18:18 +0000	[thread overview]
Message-ID: <sashiko-outbox-228957@kernel.org> (raw)
In-Reply-To: <20261123091024.2214918-2-akash.kumar@oss.qualcomm.com>

Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Medium] dt-bindings: usb: cypress,cypd4226: undefined XX token in
  orientation-gpios
- [Low] dt-bindings: usb: cypress,cypd4226: use items list for
  orientation-gpios
--

commit 68e05d99b098ac78032aa1e2d387de700ee8bf5b
Author: Akash Kumar <akash.kumar@oss.qualcomm.com>

dt-bindings: usb: cypress,cypd4226: Add orientation-gpios property

This commit adds the optional orientation-gpios property to the
cypress,cypd4226 binding schema and illustrates it in the example.

> diff --git a/Documentation/devicetree/bindings/usb/cypress,cypd4226.yaml b/Documentation/devicetree/bindings/usb/cypress,cypd4226.yaml
> index d923ef82ecfaa..5716c045d87ec 100644
> --- a/Documentation/devicetree/bindings/usb/cypress,cypd4226.yaml
> +++ b/Documentation/devicetree/bindings/usb/cypress,cypd4226.yaml
> @@ -59,6 +59,14 @@ properties:
>      description: enable IRQ remote wakeup, see power/wakeup-source.txt
>      type: boolean
>  
> +  orientation-gpios:
> +    description:
> +      GPIOs used to sense the CC orientation of each Type-C connector.
> +      Entries are ordered by connector number, i.e. the first entry
> +      corresponds to connector@0 and the second to connector@1.
> +    minItems: 1
> +    maxItems: 2
> +
>  patternProperties:
>    '^connector@[01]$':
>      $ref: /schemas/connector/usb-connector.yaml#

[Severity: Low]
This isn't a bug, but since orientation-gpios has a fixed maximum of two
ordered entries corresponding to connector@0 and connector@1, should this use
an items list with a per-entry description (along with minItems: 1) instead
of maxItems: 2 and enumerating the entries in the description text?

> @@ -129,6 +137,7 @@ examples:
>        };
>      };
>    - |
> +    #include <dt-bindings/gpio/gpio.h>
>      #include <dt-bindings/interrupt-controller/irq.h>
>      i2c {
>          #address-cells = <1>;
> @@ -141,6 +150,7 @@ examples:
>              pinctrl-0 = <&usb0_intr_state>;
>              pinctrl-names = "default";
>              wakeup-source;
> +            orientation-gpios = <0>, <&tlmm XX GPIO_ACTIVE_HIGH>;

[Severity: Medium]
Does the undefined placeholder pin number in orientation-gpios cause dtc to
fail with a lexical error when compiling this example?  In addition, this
example node only defines child node connector@0, whereas placing <0> first
and the specifier second assigns the sense line to connector@1.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261123091024.2214918-1-akash.kumar@oss.qualcomm.com?part=1

  reply	other threads:[~2026-11-23  9:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23  9:10 [PATCH v2 0/2] usb: typec: ucsi_ccg: Add CC orientation sensing via GPIO Akash Kumar
2026-11-23  9:10 ` [PATCH v2 1/2] dt-bindings: usb: cypress,cypd4226: Add orientation-gpios property Akash Kumar
2026-11-23  9:18   ` sashiko-bot [this message]
2026-11-23  9:10 ` [PATCH v2 2/2] usb: typec: ucsi_ccg: Add CC orientation sensing via GPIO Akash Kumar
2026-11-23  9:22   ` sashiko-bot
  -- strict thread matches above, loose matches on Subject: below --
2026-11-17 14:09 [PATCH v2 0/2] usb: typec: ucsi_ccg: Add CC orientation-gpios support Akash Kumar
2026-11-17 14:09 ` [PATCH v2 1/2] dt-bindings: usb: cypress,cypd4226: Add orientation-gpios property Akash Kumar
2026-11-20 14:50   ` Heikki Krogerus
2026-11-23  9:01     ` Akash Kumar

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=sashiko-outbox-228957@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=akash.kumar@oss.qualcomm.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox