All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Chancel Liu" <chancel.liu@nxp.com>
Cc: conor+dt@kernel.org, devicetree@vger.kernel.org, robh@kernel.org,
	krzk+dt@kernel.org, Frank.Li@kernel.org, imx@lists.linux.dev
Subject: Re: [PATCH 2/5] dt-bindings: connector: Add fsl,io-connector binding
Date: Sat, 09 May 2026 03:18:54 +0000	[thread overview]
Message-ID: <20260509031855.1973DC2BCB0@smtp.kernel.org> (raw)
In-Reply-To: <20260509024846.2094049-3-chancel.liu@nxp.com>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] Missing `#pwm-cells` property definition causes valid PWM nexus configurations to fail schema validation.
- [Medium] Subsystem guide violation: Provider capabilities are missing from the `required` list.
--

commit b88adcce540a59e2da49df7e20b99d2c52021962
Author: Chancel Liu <chancel.liu@nxp.com>

dt-bindings: connector: Add fsl,io-connector binding

The commit adds a device tree binding for the NXP I/O connector. It acts
as a nexus node for routing GPIOs, clocks, PWMs, and interrupts through
index-based mappings.

> diff --git a/Documentation/devicetree/bindings/connector/fsl,io-connector.yaml b/Documentation/devicetree/bindings/connector/fsl,io-connector.yaml
> new file mode 100644
> index 0000000000000..8b5038a2332e3
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/connector/fsl,io-connector.yaml

[ ... ]

>   pwm-map:
>     $ref: /schemas/types.yaml#/definitions/uint32-matrix
> 
>   pwm-map-mask:
>     $ref: /schemas/types.yaml#/definitions/uint32-array
> 
>   pwm-map-pass-thru:
>     $ref: /schemas/types.yaml#/definitions/uint32-array
> 
>   '#address-cells':
>     const: 0

Will this fail schema validation for valid PWM nexus nodes? Since
additionalProperties is false, omitting #pwm-cells from the properties list
means device trees including #pwm-cells will fail validation. The #pwm-cells
property is required by the nexus mapping logic to parse PWM specifiers.
Should #pwm-cells be added to the properties block?

[ ... ]

>   interrupt-map: true
> 
>   interrupt-map-mask: true
> 
> required:
>   - compatible

Are there missing required provider capabilities here? According to the
dt-bindings subsystem guidelines, when hardware gains provider capabilities
like a GPIO controller, interrupt controller, or clock provider, the
corresponding standard properties like gpio-controller, #gpio-cells,
#clock-cells, interrupt-controller, #interrupt-cells, and #pwm-cells must be
included in the required list. Could these be added to ensure incomplete
nodes do not accidentally pass validation?

> 
> additionalProperties: false
> 
> examples:
>   - |
>     #include <dt-bindings/interrupt-controller/irq.h>
> 
>     connector {
>         compatible = "fsl,io-connector";
>         gpio-controller;
>         #gpio-cells = <2>;
>         gpio-map = <0 0 &gpio1 8 1>;
>         gpio-map-mask = <0xff 0x0>;
>         gpio-map-pass-thru = <0x0 0x1>;
>         #clock-cells = <1>;
>         clock-map = <0 &clk 1>;
>         #address-cells = <0>;
>         interrupt-controller;
>         #interrupt-cells = <2>;
>         interrupt-map-mask = <0xff 0x0>;
>         interrupt-map = <0 0 &gpio2 27 IRQ_TYPE_LEVEL_LOW>;
>     };

Should this example section include the PWM properties as well? The
subsystem guidelines require the example to include all required properties
to pass dt_binding_check.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260509024846.2094049-1-chancel.liu@nxp.com?part=2

  reply	other threads:[~2026-05-09  3:18 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-09  2:48 [PATCH 0/5] arm64: dts: freescale: Add IMX-AUD-IO daughter board support Chancel Liu
2026-05-09  2:48 ` [PATCH 1/5] clk: Add support for clock nexus dt bindings Chancel Liu
2026-05-09  3:14   ` sashiko-bot
2026-05-13  3:19   ` Chancel Liu
2026-05-09  2:48 ` [PATCH 2/5] dt-bindings: connector: Add fsl,io-connector binding Chancel Liu
2026-05-09  3:18   ` sashiko-bot [this message]
2026-05-13  5:40     ` Chancel Liu
2026-05-15  7:19   ` Krzysztof Kozlowski
2026-05-09  2:48 ` [PATCH 3/5] arm64: dts: freescale: imx95-19x19-evk: Add IMX-AUD-IO board support Chancel Liu
2026-05-09  2:48 ` [PATCH 4/5] arm64: dts: freescale: imx952-evk: " Chancel Liu
2026-05-11  8:20   ` Bough Chen
2026-05-13  5:50     ` Chancel Liu
2026-05-09  2:48 ` [PATCH 5/5] arm64: dts: freescale: Add common DTS overlay for IMX-AUD-IO daughter board Chancel Liu

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=20260509031855.1973DC2BCB0@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=Frank.Li@kernel.org \
    --cc=chancel.liu@nxp.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=imx@lists.linux.dev \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.