From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Samuel Holland <samuel@sholland.org>,
Dmitry Torokhov <dmitry.torokhov@gmail.com>,
linux-input@vger.kernel.org
Cc: devicetree@vger.kernel.org,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Rob Herring <robh+dt@kernel.org>, Ondrej Jirman <x@xff.cz>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/4] dt-bindings: input: Add the PinePhone keyboard binding
Date: Mon, 18 Apr 2022 14:24:19 +0200 [thread overview]
Message-ID: <d441a648-a85c-6610-fc07-0956395f903d@linaro.org> (raw)
In-Reply-To: <20220417021633.56127-2-samuel@sholland.org>
On 17/04/2022 04:16, Samuel Holland wrote:
(...)
> +properties:
> + compatible:
> + const: pine64,pinephone-keyboard
> +
> + reg:
> + const: 0x15
> +
> + interrupts:
> + maxItems: 1
> +
> + vbat-supply:
> + description: Supply for the keyboard MCU
> +
> + wakeup-source: true
> +
> + i2c-bus:
Generic node names, so just "i2c".
> + $ref: /schemas/i2c/i2c-controller.yaml#
> +
> +required:
> + - compatible
> + - reg
> + - interrupts
> +
> +unevaluatedProperties: false
You do not include any other schema at this level, so this should be
additionalProperties:false.
> +
> +examples:
> + - |
> + #include <dt-bindings/input/input.h>
> + #include <dt-bindings/interrupt-controller/irq.h>
> +
> + i2c {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + keyboard@15 {
> + compatible = "pine64,pinephone-keyboard";
> + reg = <0x15>;
> + interrupt-parent = <&r_pio>;
> + interrupts = <0 12 IRQ_TYPE_EDGE_FALLING>; /* PL12 */
> +
> + i2c-bus {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + charger@75 {
> + reg = <0x75>;
> + };
> + };
> + };
> + };
Best regards,
Krzysztof
next prev parent reply other threads:[~2022-04-18 12:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-17 2:16 [PATCH v2 0/4] Pine64 PinePhone keyboard support Samuel Holland
2022-04-17 2:16 ` [PATCH v2 1/4] dt-bindings: input: Add the PinePhone keyboard binding Samuel Holland
2022-04-18 12:24 ` Krzysztof Kozlowski [this message]
2022-04-18 13:35 ` Rob Herring
2022-04-17 2:16 ` [PATCH v2 2/4] Input: pinephone-keyboard - Add PinePhone keyboard driver Samuel Holland
2022-04-17 2:16 ` [PATCH v2 3/4] Input: pinephone-keyboard - Support the proxied I2C bus Samuel Holland
2022-04-17 2:16 ` [PATCH v2 4/4] [DO NOT MERGE] arm64: dts: allwinner: pinephone: Add keyboard Samuel Holland
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=d441a648-a85c-6610-fc07-0956395f903d@linaro.org \
--to=krzysztof.kozlowski@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.torokhov@gmail.com \
--cc=krzk+dt@kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh+dt@kernel.org \
--cc=samuel@sholland.org \
--cc=x@xff.cz \
/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;
as well as URLs for NNTP newsgroup(s).