From: Rob Herring <robh@kernel.org>
To: Maxime Ripard <maxime@cerno.tech>
Cc: Chen-Yu Tsai <wens@csie.org>,
Jernej Skrabec <jernej.skrabec@siol.net>,
devicetree@vger.kernel.org, Frank Rowand <frowand.list@gmail.com>,
linux-arm-kernel@lists.infradead.org,
linux-sunxi@googlegroups.com,
Dmitry Torokhov <dmitry.torokhov@gmail.com>,
linux-input@vger.kernel.org
Subject: Re: [PATCH 19/54] dt-bindings: input: Convert Silead GSL1680 binding to a schema
Date: Fri, 23 Jul 2021 15:51:47 -0600 [thread overview]
Message-ID: <20210723215147.GA2653651@robh.at.kernel.org> (raw)
In-Reply-To: <20210721140424.725744-20-maxime@cerno.tech>
On Wed, Jul 21, 2021 at 04:03:49PM +0200, Maxime Ripard wrote:
> The Silead GSL1680 Touchscreen Controller is supported by Linux thanks
> to its device tree binding.
>
> Now that we have the DT validation in place, let's convert the device
> tree bindings for that driver over to a YAML schema.
>
> Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
> Cc: linux-input@vger.kernel.org
> Signed-off-by: Maxime Ripard <maxime@cerno.tech>
> ---
> .../input/touchscreen/silead,gsl1680.yaml | 90 +++++++++++++++++++
> .../input/touchscreen/silead_gsl1680.txt | 44 ---------
> 2 files changed, 90 insertions(+), 44 deletions(-)
> create mode 100644 Documentation/devicetree/bindings/input/touchscreen/silead,gsl1680.yaml
> delete mode 100644 Documentation/devicetree/bindings/input/touchscreen/silead_gsl1680.txt
>
> diff --git a/Documentation/devicetree/bindings/input/touchscreen/silead,gsl1680.yaml b/Documentation/devicetree/bindings/input/touchscreen/silead,gsl1680.yaml
> new file mode 100644
> index 000000000000..84a462ffd14b
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/input/touchscreen/silead,gsl1680.yaml
> @@ -0,0 +1,90 @@
> +# SPDX-License-Identifier: GPL-2.0
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/input/touchscreen/silead,gsl1680.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Silead GSL1680 Touchscreen Controller Device Tree Bindings
> +
> +maintainers:
> + - Dmitry Torokhov <dmitry.torokhov@gmail.com>
> +
> +allOf:
> + - $ref: touchscreen.yaml#
> +
> +properties:
> + compatible:
> + enum:
> + - silead,gsl1680
> + - silead,gsl1688
> + - silead,gsl3670
> + - silead,gsl3675
> + - silead,gsl3692
> +
> + reg:
> + maxItems: 1
> +
> + interrupts:
> + maxItems: 1
> +
> + power-gpios:
> + maxItems: 1
> +
> + firmware:
> + $ref: /schemas/types.yaml#/definitions/string
> + description: >
> + File basename for board specific firmware
> +
> + silead,max-fingers:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + description: >
> + Maximum number of fingers the touchscreen can detect
Can it detect 2^32 fingers? Constraints needed.
> +
> + silead,home-button:
> + type: boolean
> + description: >
> + Does the device have a capacitive home-button build into the
> + touchscreen?
> +
> + avdd-supply:
> + description: >
> + Regulator phandle for controller AVDD
> +
> + vddio-supply:
> + description: >
> + Regulator phandle for controller VDDIO
> +
> +unevaluatedProperties: false
> +
> +required:
> + - compatible
> + - reg
> + - interrupts
> + - power-gpios
> + - touchscreen-size-x
> + - touchscreen-size-y
> +
> +examples:
> + - |
> + #include <dt-bindings/gpio/gpio.h>
> + #include <dt-bindings/interrupt-controller/arm-gic.h>
> +
> + i2c {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + touchscreen@40 {
> + compatible = "silead,gsl1680";
> + reg = <0x40>;
> + interrupt-parent = <&pio>;
> + interrupts = <6 11 IRQ_TYPE_EDGE_FALLING>;
> + power-gpios = <&pio 1 3 GPIO_ACTIVE_HIGH>;
> + touchscreen-size-x = <480>;
> + touchscreen-size-y = <800>;
> + touchscreen-inverted-x;
> + touchscreen-swapped-x-y;
> + silead,max-fingers = <5>;
> + };
> + };
> +
> +...
> diff --git a/Documentation/devicetree/bindings/input/touchscreen/silead_gsl1680.txt b/Documentation/devicetree/bindings/input/touchscreen/silead_gsl1680.txt
> deleted file mode 100644
> index d67e558e5ab5..000000000000
> --- a/Documentation/devicetree/bindings/input/touchscreen/silead_gsl1680.txt
> +++ /dev/null
> @@ -1,44 +0,0 @@
> -* GSL 1680 touchscreen controller
> -
> -Required properties:
> -- compatible : Must be one of the following, depending on the model:
> - "silead,gsl1680"
> - "silead,gsl1688"
> - "silead,gsl3670"
> - "silead,gsl3675"
> - "silead,gsl3692"
> -- reg : I2C slave address of the chip (0x40)
> -- interrupts : interrupt specification for the gsl1680 interrupt
> -- power-gpios : Specification for the pin connected to the gsl1680's
> - shutdown input. This needs to be driven high to take the
> - gsl1680 out of its low power state
> -- touchscreen-size-x : See touchscreen.txt
> -- touchscreen-size-y : See touchscreen.txt
> -
> -Optional properties:
> -- firmware-name : File basename (string) for board specific firmware
> -- touchscreen-inverted-x : See touchscreen.txt
> -- touchscreen-inverted-y : See touchscreen.txt
> -- touchscreen-swapped-x-y : See touchscreen.txt
> -- silead,max-fingers : maximum number of fingers the touchscreen can detect
> -- silead,home-button : Boolean, set to true on devices which have a
> - capacitive home-button build into the touchscreen
> -- vddio-supply : regulator phandle for controller VDDIO
> -- avdd-supply : regulator phandle for controller AVDD
> -
> -Example:
> -
> -i2c@00000000 {
> - gsl1680: touchscreen@40 {
> - compatible = "silead,gsl1680";
> - reg = <0x40>;
> - interrupt-parent = <&pio>;
> - interrupts = <6 11 IRQ_TYPE_EDGE_FALLING>;
> - power-gpios = <&pio 1 3 GPIO_ACTIVE_HIGH>;
> - touchscreen-size-x = <480>;
> - touchscreen-size-y = <800>;
> - touchscreen-inverted-x;
> - touchscreen-swapped-x-y;
> - silead,max-fingers = <5>;
> - };
> -};
> --
> 2.31.1
>
>
next prev parent reply other threads:[~2021-07-23 21:51 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20210721140424.725744-1-maxime@cerno.tech>
2021-07-21 14:03 ` [PATCH 16/54] dt-bindings: input: Convert ChipOne ICN8318 binding to a schema Maxime Ripard
2021-07-23 21:48 ` Rob Herring
2021-07-21 14:03 ` [PATCH 17/54] dt-bindings: input: Convert Pixcir Touchscreen " Maxime Ripard
2021-07-23 21:49 ` Rob Herring
2021-07-21 14:03 ` [PATCH 18/54] dt-bindings: input: Convert Regulator Haptic " Maxime Ripard
2021-07-23 21:50 ` Rob Herring
2021-07-21 14:03 ` [PATCH 19/54] dt-bindings: input: Convert Silead GSL1680 " Maxime Ripard
2021-07-23 21:51 ` Rob Herring [this message]
2021-07-21 14:03 ` [PATCH 20/54] dt-bindings: input: sun4i-lradc: Add wakeup-source Maxime Ripard
2021-07-23 21:52 ` Rob Herring
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=20210723215147.GA2653651@robh.at.kernel.org \
--to=robh@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.torokhov@gmail.com \
--cc=frowand.list@gmail.com \
--cc=jernej.skrabec@siol.net \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-sunxi@googlegroups.com \
--cc=maxime@cerno.tech \
--cc=wens@csie.org \
/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).