From: sashiko-bot@kernel.org
To: "Yibo Wang" <wyibo6109@gmail.com>
Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org,
dmitry.torokhov@gmail.com, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 1/2] dt-bindings: input: add OnePlus pogo-pin keyboard binding
Date: Fri, 09 Oct 2026 12:19:22 +0000 [thread overview]
Message-ID: <sashiko-outbox-165517@kernel.org> (raw)
In-Reply-To: <20261009121143.550498-2-2024312277@stu.hit.edu.cn>
Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider:
- [Medium] dt-bindings: incorrect use of additionalProperties: false with allOf $ref
- [Medium] dt-bindings: custom properties lack vendor prefix and explicit type reference
- [Low] dt-bindings: unnecessary #address-cells and #size-cells in example serial node
--
commit 9e61ffe1ac817966b2b3b703148b7060c7724704
Author: Yibo Wang <wyibo6109@gmail.com>
dt-bindings: input: add OnePlus pogo-pin keyboard binding
Adds device tree bindings for the Tinno keyboard MCU used by OnePlus and
OPPO tablets over a serial bus.
> diff --git a/Documentation/devicetree/bindings/input/oneplus,pogo-keyboard.yaml b/Documentation/devicetree/bindings/input/oneplus,pogo-keyboard.yaml
> new file mode 100644
> index 0000000000000..3086a2c4e2895
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/input/oneplus,pogo-keyboard.yaml
[ ... ]
> +allOf:
> + - $ref: /schemas/serial/serial-peripheral-props.yaml#
> +
> +properties:
> + compatible:
> + const: oneplus,pogo-keyboard
[ ... ]
> + wake-gpios:
> + description: GPIO signalling attach/detach, also used as the wake line.
> + maxItems: 1
> +
> + touchpad-xy-max:
> + description: Touchpad maximum X and Y coordinates in units.
> + items:
> + - description: maximum X
> + - description: maximum Y
> + minItems: 2
> + maxItems: 2
> +
> + touchpad-xy-resolution:
> + description: Touchpad X and Y resolution in units per millimetre.
> + items:
> + - description: X resolution
> + - description: Y resolution
> + minItems: 2
> + maxItems: 2
[Severity: Medium]
Do these custom properties need a vendor prefix and an explicit type
definition?
Device tree guidelines mandate that non-standard, device-specific properties
must include a vendor prefix to avoid namespace collisions. These should
probably be oneplus,touchpad-xy-max and oneplus,touchpad-xy-resolution.
Also, because they do not end in a standard recognized suffix, dt-schema
validation cannot infer their types. Should they include an explicit type
reference to /schemas/types.yaml#/definitions/uint32-array to prevent
dt_binding_check from emitting a missing type definition warning?
> +
> +required:
> + - compatible
> + - power-gpios
> + - tx-enable-gpios
> + - wake-gpios
> +
> +additionalProperties: false
[Severity: Medium]
Will this block properties inherited from the serial-peripheral-props.yaml
reference?
Since the schema references the serial properties via an allOf block earlier,
using additionalProperties: false strictly limits allowed properties to only
those defined in this file's properties block.
Should this be changed to unevaluatedProperties: false to allow standard
serial properties like max-speed?
> +
> +examples:
> + - |
> + #include <dt-bindings/gpio/gpio.h>
> +
> + serial {
> + #address-cells = <1>;
> + #size-cells = <0>;
[Severity: Low]
Are these address size properties necessary for this example?
The child keyboard node does not contain a reg property, nor does its name
include a unit-address. Declaring address cells without any addressable
children triggers an avoid_unnecessary_addr_size warning from dtc when
evaluating the example.
> +
> + keyboard {
> + compatible = "oneplus,pogo-keyboard";
[ ... ]
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261009121143.550498-1-2024312277@stu.hit.edu.cn?part=1
next prev parent reply other threads:[~2026-10-09 12:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-09 12:11 [PATCH 0/2] Input: add support for OnePlus/OPPO Pad pogo-pin keyboards Yibo Wang
2026-10-09 12:11 ` [PATCH 1/2] dt-bindings: input: add OnePlus pogo-pin keyboard binding Yibo Wang
2026-10-09 12:19 ` sashiko-bot [this message]
2026-10-09 12:11 ` [PATCH 2/2] Input: add OnePlus/OPPO Pad pogo-pin keyboard serdev driver Yibo Wang
2026-10-09 12:24 ` sashiko-bot
-- strict thread matches above, loose matches on Subject: below --
2026-10-09 12:20 [PATCH 0/2] Input: add support for OnePlus/OPPO Pad pogo-pin keyboards wyibo6109
2026-10-09 12:20 ` [PATCH 1/2] dt-bindings: input: add OnePlus pogo-pin keyboard binding wyibo6109
2026-10-09 12:28 ` sashiko-bot
2026-10-09 13:22 ` Krzysztof Kozlowski
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-165517@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-input@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=wyibo6109@gmail.com \
/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.