Message ID | 20201007180540.322257-1-kholk11@gmail.com |
---|---|
Headers | show |
Series | Add Novatek NT36xxx touchscreen driver | expand |
On Wed, 7 Oct 2020 at 20:22, <kholk11@gmail.com> wrote: > > From: AngeloGioacchino Del Regno <kholk11@gmail.com> > > Add binding for the Novatek NT36xxx series touchscreen driver. > > Signed-off-by: AngeloGioacchino Del Regno <kholk11@gmail.com> > --- > .../input/touchscreen/novatek,nt36xxx.yaml | 56 +++++++++++++++++++ > 1 file changed, 56 insertions(+) > create mode 100644 Documentation/devicetree/bindings/input/touchscreen/novatek,nt36xxx.yaml > > diff --git a/Documentation/devicetree/bindings/input/touchscreen/novatek,nt36xxx.yaml b/Documentation/devicetree/bindings/input/touchscreen/novatek,nt36xxx.yaml > new file mode 100644 > index 000000000000..9f350f4e6d6a > --- /dev/null > +++ b/Documentation/devicetree/bindings/input/touchscreen/novatek,nt36xxx.yaml > @@ -0,0 +1,56 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/input/touchscreen/novatek,nt36xxx.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Novatek NT36xxx series touchscreen controller Bindings > + > +maintainers: > + - TBD Hi, It is surprising that this is your v3 and you put here TBD. In such case, add here subsystem maintainer: Dmitry Torokhov <dmitry.torokhov@gmail.com> > + > +allOf: > + - $ref: touchscreen.yaml# > + > +properties: > + compatible: > + enum: > + - novatek,nt36xxx This is not an enum, but one const. > + > + reg: > + enum: [ 0x62 ] Usually addresses are fixed in schema, because they could change (e.g. by some pin configuration). Just use maxItems: 1. > + > + interrupts: > + maxItems: 1 > + > + reset-gpio: > + maxItems: 1 > + > + vdd-supply: > + description: Power supply regulator for VDD pin > + > + vio-reg-name: > + description: Power supply regulator on VDD-IO pin What is this for? Is it a supply for the device or the device is a regulator provider? > + > +additionalProperties: false > + > +required: > + - compatible > + - reg > + - interrupts > + > +examples: > + - | > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + nt36xxx@62 { Incorrect node name - should be touchscreen. Best regards, Krzysztof
On Wed, Oct 7, 2020 at 1:05 PM <kholk11@gmail.com> wrote: > > From: AngeloGioacchino Del Regno <kholk11@gmail.com> Please send to DT list so checks run and it's in my review queue. > > Add binding for the Novatek NT36xxx series touchscreen driver. > > Signed-off-by: AngeloGioacchino Del Regno <kholk11@gmail.com> > --- > .../input/touchscreen/novatek,nt36xxx.yaml | 56 +++++++++++++++++++ > 1 file changed, 56 insertions(+) > create mode 100644 Documentation/devicetree/bindings/input/touchscreen/novatek,nt36xxx.yaml > > diff --git a/Documentation/devicetree/bindings/input/touchscreen/novatek,nt36xxx.yaml b/Documentation/devicetree/bindings/input/touchscreen/novatek,nt36xxx.yaml > new file mode 100644 > index 000000000000..9f350f4e6d6a > --- /dev/null > +++ b/Documentation/devicetree/bindings/input/touchscreen/novatek,nt36xxx.yaml > @@ -0,0 +1,56 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/input/touchscreen/novatek,nt36xxx.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Novatek NT36xxx series touchscreen controller Bindings > + > +maintainers: > + - TBD > + > +allOf: > + - $ref: touchscreen.yaml# > + > +properties: > + compatible: > + enum: > + - novatek,nt36xxx > + > + reg: > + enum: [ 0x62 ] > + > + interrupts: > + maxItems: 1 > + > + reset-gpio: > + maxItems: 1 > + > + vdd-supply: > + description: Power supply regulator for VDD pin > + > + vio-reg-name: > + description: Power supply regulator on VDD-IO pin > + > +additionalProperties: false > + > +required: > + - compatible > + - reg > + - interrupts > + > +examples: > + - | > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + nt36xxx@62 { > + compatible = "novatek,nt36xxx"; > + reg = <0x62>; > + interrupt-parent = <&tlmm>; > + interrupts = <45 IRQ_TYPE_EDGE_RISING>; > + reset-gpio = <&tlmm 102 GPIO_ACTIVE_HIGH>; > + }; > + }; > + > +... > -- > 2.28.0 >
From: AngeloGioacchino Del Regno <kholk11@gmail.com> This patch series adds support for the Novatek NT36xxx Series' In-Cell touchscreen (integrated into the DriverIC). This patch series has been tested against the following devices: - Sony Xperia 10 (SDM630 Ganges Kirin) - Sony Xperia 10 Plus (SDM636 Ganges Mermaid) Changes in v2: - Fixed sparse warnings from lkp kernel test robot Changes in v3 (as requested by Dmitry Torokhov): - Using shorthand u16/u32 (sorry for the overlook!) - Now using more input and touchscreen APIs - Fixed useless workqueue involvements - Removed useless locking - Switched reads and writes to use regmap - Moved header contents to nt36xxx.c - Fixed reset gpio handling - Other cleanups - P.S.: Thanks, Dmitry! AngeloGioacchino Del Regno (3): dt-bindings: Add vendor prefix for Novatek Microelectronics Corp. Input: Add Novatek NT36xxx touchscreen driver dt-bindings: touchscreen: Add binding for Novatek NT36xxx series driver .../input/touchscreen/novatek,nt36xxx.yaml | 56 ++ .../devicetree/bindings/vendor-prefixes.yaml | 2 + drivers/input/touchscreen/Kconfig | 12 + drivers/input/touchscreen/Makefile | 1 + drivers/input/touchscreen/nt36xxx.c | 816 ++++++++++++++++++ 5 files changed, 887 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/touchscreen/novatek,nt36xxx.yaml create mode 100644 drivers/input/touchscreen/nt36xxx.c