Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1395404pxf; Fri, 2 Apr 2021 09:20:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzykVrmjd4irtdCiTNPIMkq5BokgjPOCon/BPbtNzdXQ8A/Suw9czRbmdMM1Vte4aezpxjE X-Received: by 2002:a50:ec96:: with SMTP id e22mr16279142edr.385.1617380412037; Fri, 02 Apr 2021 09:20:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617380412; cv=none; d=google.com; s=arc-20160816; b=ce8BL7+h4Kf6km8hPpoGcV0Tfrxgnq9YxCN2DN8wMsrGyblDRIQoYXdzS/NvWgPUO7 nZHk87Vm44rTxtJBRl58RXU8ogNeaLteECZnpxuK0ufxufZtTW6kzCb/K7WYL1YVCZjV vl0T2F5PD52ZH1Hq6yRPHhREtSlYDZ9B8OsR3TymrRC+4tRWOs0o+M9ptD9K2pNFo9AL vj6AZKc2uiHjceG4JAJ9dMvdpXIvyDt94oN9kw0v2o//LqZSRcc7Xg492gEU/UajI2op RQmFVGh9vJ4WRDJSkmGMl3aHMpRcT9Ns3XWY/pWiHgxo/0xy10BuFdOTxPlx/LCetI5k B8LA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=TSyQc/EAWaR0EQyAC8og7cHBAVsqefHp8sf73U92etc=; b=XMsBYvAMujJg7dgwxW5loM9ggVqfo9+9fKYL43cb3mQK2NZAj6/AcGMd0gRsC1jKSt ZI9mPH+MwoG2SQvZ4Prwb6G7zxz6qMFVtK5qOFqdJCqMn6zPUI9fNE9JjSmn95VofKc4 UbAndi9/Mp8a4d8fVxU0ff4/CS7QC2zBQjAWw+zJO6GrH04CdfKh1kor6EQpjM5ivRUj jzWacsvRqLnDkJ9q/QEXX3FAqBhaOjUbOjsJh7BOa1XWHyFkAgWOBfFc4hLFX2ah5ZKc 4OB2oPiK1BxtLaU+pGNM1auyTC+ZcrkT78lcpxvq8UFfJtu9/lUFDlawM+5yzXnD5i9/ MNmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aruba.it header.s=a1 header.b=lEgDu5Lg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i21si7005682ejb.477.2021.04.02.09.19.48; Fri, 02 Apr 2021 09:20:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@aruba.it header.s=a1 header.b=lEgDu5Lg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235020AbhDBQQq (ORCPT + 99 others); Fri, 2 Apr 2021 12:16:46 -0400 Received: from smtpcmd12131.aruba.it ([62.149.156.131]:34374 "EHLO smtpcmd12131.aruba.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234548AbhDBQQh (ORCPT ); Fri, 2 Apr 2021 12:16:37 -0400 Received: from ubuntu.localdomain ([146.241.148.6]) by Aruba Outgoing Smtp with ESMTPSA id SMTElkkEVik8wSMTKlXAQV; Fri, 02 Apr 2021 18:16:34 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1617380194; bh=o1wcycORft1S7rOHGGLlQR3o+Dutt3Z88XELS34Qbts=; h=From:To:Subject:Date:MIME-Version:Content-Type; b=lEgDu5LgN/Q/A1VrDRWd4OlSf1gRSt3Vb7MLnDFE2vqR7j4CIdhfCZVvAb8/ENqBC gHbDPONZDxrZCBaY6go6cNFsmSYCEdocgvSB3PRJqe9vek5c3RTxrOq2lcGK8oBA6j rh40xTlQ64V1VBUyqSiJOlj3evWroCBda4vOVGdw8YBhyoWP2M1rhcdxLp5JOLl38K JHzE7q5p8f+hfIfGQBqgpyLt+3qCagk3jJp5hRw3DljwknjQsHfyrbc8C4LSdg4UGm Thi4zoX7i6o/uHK22U5WbqRW/f1t9G2ySoJe+Y6/0vJlqtKni1UaCorejB2THyi0cX n6qT7u0IdIY3A== From: Giulio Benetti To: Dmitry Torokhov , Rob Herring , =?UTF-8?q?Jonathan=20Neusch=C3=A4fer?= Cc: Giulio Benetti , Henrik Rydberg , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 2/3] dt-bindings: touchscreen: Add HY46XX bindings Date: Fri, 2 Apr 2021 18:16:26 +0200 Message-Id: <20210402161627.2546145-3-giulio.benetti@benettiengineering.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210402161627.2546145-1-giulio.benetti@benettiengineering.com> References: <20210402161627.2546145-1-giulio.benetti@benettiengineering.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4wfAn22ZS6640d6wQU0xrLwtdcW2w0XJWRg6Hs7GkbH8TubKuFKt8xogcjquEDySuKr8IIvqh/w5/MZ4qUw9klDEvbxluHQUZp5P50C49C6EprEmIxGUlD TrBvIhc0px3O19edTVJSAM2ZYpapyOW8jefuO9vnmMqe1Pk1cTAZ8tGBjd9BeW5uWRiHcw664T8jiNZWP/e22JGSKx5Xt8ch6LD/ItBYv3nClPsCDYWVz3AH 1PJB5OAlw8qUBY9WYefXkuNA4jmN4smpm5H/46QKuAMSuVZRF+6eEnyx+Vh/XSJtzP+NWc+43wYSYaIhghyNUOiGOBG19Z3y0yfsLyZ6tB3RvKmSIej9kkKl zqbpadX6ND74yhoGtNyFnOllgrY2nWao6Wxm09Qpo3K8YjC7l+QXeKvvc9+PYJaoxp0id2hFvSyz3UKyJDsAQ0EY/Eap2nj63BXgyvcXXd4o+bcHHjU= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This adds device tree bindings for the Hycon HY46XX touchscreen series. Signed-off-by: Giulio Benetti --- V1->V2: As suggested by Rob Herring: * fixed $id: address * added "hycon," in front of every custom property * changed all possible property to boolean type * removed proximity-sensor-switch property since it's not handled in driver V2->V3: As suggested by Jonathan Neuschäfer: * fixed some typo * fixed description indentation * improved boolean properties descriptions * improved hycon,report-speed description --- .../input/touchscreen/hycon,hy46xx.yaml | 120 ++++++++++++++++++ MAINTAINERS | 6 + 2 files changed, 126 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/touchscreen/hycon,hy46xx.yaml diff --git a/Documentation/devicetree/bindings/input/touchscreen/hycon,hy46xx.yaml b/Documentation/devicetree/bindings/input/touchscreen/hycon,hy46xx.yaml new file mode 100644 index 000000000000..dddc6e3e654f --- /dev/null +++ b/Documentation/devicetree/bindings/input/touchscreen/hycon,hy46xx.yaml @@ -0,0 +1,120 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/touchscreen/hycon,hy46xx.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Hycon HY46XX series touchscreen controller bindings + +description: | + There are 6 variants of the chip for various touch panel sizes and cover lens material + Glass: 0.3mm--4.0mm + PET/PMMA: 0.2mm--2.0mm + HY4613(B)-N048 < 6" + HY4614(B)-N068 7" .. 10.1" + HY4621-NS32 < 5" + HY4623-NS48 5.1" .. 7" + Glass: 0.3mm--8.0mm + PET/PMMA: 0.2mm--4.0mm + HY4633(B)-N048 < 6" + HY4635(B)-N048 < 7" .. 10.1" + +maintainers: + - Giulio Benetti + +allOf: + - $ref: touchscreen.yaml# + +properties: + compatible: + enum: + - hycon,hycon-hy4613 + - hycon,hycon-hy4614 + - hycon,hycon-hy4621 + - hycon,hycon-hy4623 + - hycon,hycon-hy4633 + - hycon,hycon-hy4635 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + reset-gpios: + maxItems: 1 + + vcc-supply: true + + hycon,threshold: + description: Allows setting the sensitivity in the range from 0 to 255. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 255 + + hycon,glove-enable: + type: boolean + description: Allows enabling glove setting. + + hycon,report-speed: + description: Allows setting the report speed in Hertz. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 255 + + hycon,power-noise-enable: + type: boolean + description: Allows enabling power noise filter. + + hycon,filter-data: + description: Allows setting the filtering data before reporting touch + in the range from 0 to 5. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 5 + + hycon,gain: + description: Allows setting the sensitivity distance in the range from 0 to 5. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 5 + + hycon,edge-offset: + description: Allows setting the edge compensation in the range from 0 to 16. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 16 + + touchscreen-size-x: true + touchscreen-size-y: true + touchscreen-fuzz-x: true + touchscreen-fuzz-y: true + touchscreen-inverted-x: true + touchscreen-inverted-y: true + touchscreen-swapped-x-y: true + interrupt-controller: true + +additionalProperties: false + +required: + - compatible + - reg + - interrupts + +examples: + - | + #include + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + hycon-hy4633@1c { + compatible = "hycon,hy4633"; + reg = <0x1c>; + interrupt-parent = <&gpio2>; + interrupts = <5 IRQ_TYPE_EDGE_FALLING>; + reset-gpios = <&gpio2 6 GPIO_ACTIVE_LOW>; + }; + }; + +... diff --git a/MAINTAINERS b/MAINTAINERS index 6e91994b8d3b..5e9cc7e610ce 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8242,6 +8242,12 @@ S: Maintained F: mm/hwpoison-inject.c F: mm/memory-failure.c +HYCON HY46XX TOUCHSCREEN SUPPORT +M: Giulio Benetti +L: linux-input@vger.kernel.org +S: Maintained +F: Documentation/devicetree/bindings/input/touchscreen/hycon,hy46xx.yaml + HYGON PROCESSOR SUPPORT M: Pu Wen L: linux-kernel@vger.kernel.org -- 2.25.1