All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Feng-Yi Hsueh" <fyhsueh4linux@gmail.com>, linux-input@vger.kernel.org
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org,
	dmitry.torokhov@gmail.com
Subject: Re: [PATCH v1 1/2] dt-bindings: input: Add Nuvoton MA35D1 keypad controller
Date: Tue, 10 Nov 2026 11:25:27 +0000	[thread overview]
Message-ID: <sashiko-outbox-206935@kernel.org> (raw)
In-Reply-To: <20261110111419.89535-2-fyhsueh4linux@gmail.com>

Thank you for your contribution! Sashiko AI review found 3 potential
issues to consider:
- [Low] dt-bindings: input: ma35d1-keypad: redefine autorepeat instead
  of input.yaml#
- [Low] dt-bindings: input: ma35d1-keypad: omit resets property for
  MA35D1_RESET_KPI
- [Low] dt-bindings: input: ma35d1-keypad: bad clock/IRQ cells and align
  in example
--

commit 6eade3d3eb06d707c8d9f0ddfa65827ec7270074
Author: Feng-Yi Hsueh <fyhsueh4linux@gmail.com>

dt-bindings: input: Add Nuvoton MA35D1 keypad controller

This commit adds the Device Tree binding schema for the Nuvoton MA35D1
matrix keypad controller.

> diff --git a/Documentation/devicetree/bindings/input/nuvoton,ma35d1-keypad.yaml b/Documentation/devicetree/bindings/input/nuvoton,ma35d1-keypad.yaml
> new file mode 100644
> index 0000000000000..be678d0b38b98
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/input/nuvoton,ma35d1-keypad.yaml
> @@ -0,0 +1,73 @@
[ ... ]
> +allOf:
> +  - $ref: /schemas/input/matrix-keymap.yaml#
> +
> +properties:
> +  compatible:
> +    const: nuvoton,ma35d1-keypad
> +
> +  reg:
> +    maxItems: 1
> +
> +  interrupts:
> +    maxItems: 1
> +
> +  clocks:
> +    maxItems: 1

[Severity: Low]
Should properties also document resets (with maxItems: 1)?

include/dt-bindings/reset/nuvoton,ma35d1-reset.h defines MA35D1_RESET_KPI for
this controller, and drivers/reset/reset-ma35d1.c implements it in
ma35d1_reset_map.  Because this schema sets unevaluatedProperties: false, any
board or SoC devicetree node specifying resets = <&sys MA35D1_RESET_KPI> will
fail dtbs_check validation.

> +
> +  keypad,num-rows:
> +    minimum: 2
> +    maximum: 8
> +
> +  keypad,num-columns:
> +    minimum: 1
> +    maximum: 8
> +
> +  autorepeat:
> +    type: boolean
> +    description: Enable key autorepeat events.

[Severity: Low]
Should this schema reference input.yaml# in allOf instead of redefining
autorepeat locally?

Documentation/devicetree/bindings/input/input.yaml already defines autorepeat
with its type and description, so referencing input.yaml# in allOf (and at
most listing autorepeat: true here) avoids duplicating the common property
definition.

> +
> +required:
> +  - compatible
> +  - reg
> +  - interrupts
> +  - clocks
> +  - keypad,num-rows
> +  - keypad,num-columns
> +  - linux,keymap
> +
> +unevaluatedProperties: false
> +
> +examples:
> +  - |
> +    #include <dt-bindings/input/input.h>
> +
> +    keypad@404a0000 {
> +        compatible = "nuvoton,ma35d1-keypad";
> +        reg = <0x404a0000 0x10000>;
> +        interrupts = <79>;
> +        clocks = <&clk>;
> +
> +        keypad,num-rows = <4>;
> +        keypad,num-columns = <1>;
> +        linux,keymap = <
> +            MATRIX_KEY(0, 0, KEY_1)
> +            MATRIX_KEY(1, 0, KEY_2)
> +            MATRIX_KEY(2, 0, KEY_3)
> +            MATRIX_KEY(3, 0, KEY_4)
> +        >;
> +    };

[Severity: Low]
Should the example include the GIC interrupt specifier and the KPI_GATE clock
cell, and align the linux,keymap entries?

On MA35D1, the interrupt controller uses three GIC cells (such as
<GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>) and &clk takes a clock specifier cell
(<&clk KPI_GATE> from dt-bindings/clock/nuvoton,ma35d1-clk.h).  Also, the
multi-line linux,keymap entries are indented by four extra spaces rather than
aligned with the opening bracket, which triggers continuation-alignment
warnings from scripts/dtc/dt-check-style --mode=strict.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261110111419.89535-1-fyhsueh4linux@gmail.com?part=1

  reply	other threads:[~2026-11-10 11:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-10 11:14 [PATCH v1 0/2] Input: Add Nuvoton MA35D1 keypad support Feng-Yi Hsueh
2026-11-10 11:14 ` [PATCH v1 1/2] dt-bindings: input: Add Nuvoton MA35D1 keypad controller Feng-Yi Hsueh
2026-11-10 11:25   ` sashiko-bot [this message]
2026-11-10 18:36   ` Conor Dooley
2026-11-10 11:14 ` [PATCH v1 2/2] Input: keyboard: Add Nuvoton MA35D1 keypad driver Feng-Yi Hsueh
2026-11-10 11:24   ` sashiko-bot

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-206935@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=fyhsueh4linux@gmail.com \
    --cc=linux-input@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 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.