From: sashiko-bot@kernel.org
To: "Alexandre Hamamdjian via B4 Relay"
<devnull+azkali.limited.gmail.com@kernel.org>
Cc: conor+dt@kernel.org, krzk+dt@kernel.org,
devicetree@vger.kernel.org, robh@kernel.org
Subject: Re: [PATCH 2/2] dt-bindings: usb: add Rohm BM92TXX Type-C controller
Date: Mon, 11 May 2026 21:41:22 +0000 [thread overview]
Message-ID: <20260511214123.492C2C2BCB0@smtp.kernel.org> (raw)
In-Reply-To: <20260510-bm92t-v1-2-dff3c9d22426@gmail.com>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] Bypassing standard `usb-c-connector` binding in favor of vendor-specific properties.
- [Low] DT schema naming violations and missing type definitions.
--
commit 186a26fac988413623e6d85b4dd282c2ff87f8bf
Author: Alexandre Hamamdjian <azkali.limited@gmail.com>
dt-bindings: usb: add Rohm BM92TXX Type-C controller
Add the device-tree binding documentation for the Rohm BM92TXX family
of USB Type-C and Power Delivery controllers. The device is controlled
over I2C and signals state changes through a dedicated interrupt line.
> diff --git a/Documentation/devicetree/bindings/usb/rohm,bm92t.yaml b/Documentation/devicetree/bindings/usb/rohm,bm92t.yaml
> new file mode 100644
> index 0000000000000..007f70a8f5bb1
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/usb/rohm,bm92t.yaml
[ ... ]
> + vbus-source-supply:
> + description: VBUS source (provider) regulator.
> +
> + pd_bat_chg-supply:
> + description: Battery charger regulator gated by Power Delivery state.
Does this violate the DT property naming convention by using underscores
instead of hyphens? Should this be named pd-bat-chg-supply?
> +
> + rohm,vconn-en-gpio:
> + maxItems: 1
> + description: GPIO controlling the external VCONN switch.
This property uses the deprecated -gpio suffix instead of -gpios, which means
the dtschema core will not automatically assign it the phandle-array type.
Could this be renamed to rohm,vconn-en-gpios, or alternatively, could an
explicit type definition be provided?
[ ... ]
> + rohm,dp-lanes:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + enum: [2, 4]
> + default: 2
> + description: Number of DisplayPort lanes to negotiate.
This isn't a bug, but should this binding use a connector child node with
compatible = "usb-c-connector" instead of defining custom vendor-specific
properties for USB Type-C and Power Delivery features like rohm,dp-lanes and
the current limits?
The standard approach is to use properties like source-pdos, sink-pdos, and
standard endpoints for data lanes.
[ ... ]
> + rohm,dock-power-limit-disable:
> + type: boolean
> + description:
> + Disable the lower power limit applied when a dock is detected.
> +
> + rohm,pd-5v-current-limit-ma:
> + description: Charging current limit in mA when 5V PD contract is active.
These current limit properties do not use a standard unit suffix recognized by
dtschema (such as -microamp or -milliamp) with auto-typing. Should they
include an explicit type definition like
$ref: /schemas/types.yaml#/definitions/uint32?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260510-bm92t-v1-0-dff3c9d22426@gmail.com?part=2
prev parent reply other threads:[~2026-05-11 21:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-10 16:08 [PATCH 0/2] usb: typec: add Rohm BM92TXX Type-C / PD controller driver Alexandre Hamamdjian via B4 Relay
2026-05-10 16:08 ` [PATCH 1/2] usb: typec: bm92txx: add Rohm BM92TXX support Alexandre Hamamdjian via B4 Relay
2026-05-11 21:31 ` sashiko-bot
2026-05-10 16:08 ` [PATCH 2/2] dt-bindings: usb: add Rohm BM92TXX Type-C controller Alexandre Hamamdjian via B4 Relay
2026-05-10 17:45 ` Rob Herring (Arm)
2026-05-11 21:41 ` sashiko-bot [this message]
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=20260511214123.492C2C2BCB0@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=devnull+azkali.limited.gmail.com@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=robh@kernel.org \
--cc=sashiko@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