From patchwork Fri Sep 25 19:22:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Srba X-Patchwork-Id: 11800737 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 90E6B1580 for ; Fri, 25 Sep 2020 20:48:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4A57C21D7A for ; Fri, 25 Sep 2020 20:48:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=seznam.cz header.i=@seznam.cz header.b="O9ebucLD" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726316AbgIYUsf (ORCPT ); Fri, 25 Sep 2020 16:48:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727961AbgIYUsf (ORCPT ); Fri, 25 Sep 2020 16:48:35 -0400 Received: from mxa1.seznam.cz (mxa1.seznam.cz [IPv6:2a02:598:a::78:90]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED309C0613A8; Fri, 25 Sep 2020 12:29:01 -0700 (PDT) Received: from email.seznam.cz by email-smtpc5a.ko.seznam.cz (email-smtpc5a.ko.seznam.cz [10.53.10.135]) id 2433966a7f3dc203259a5a34; Fri, 25 Sep 2020 21:28:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=seznam.cz; s=beta; t=1601062136; bh=l93/D6Gdiay39pYtBCQRrfnfEuM4nPGLzsoyq5BS9Yg=; h=Received:From:To:Cc:Subject:Date:Message-Id:X-Mailer:In-Reply-To: References:MIME-Version:Content-Transfer-Encoding; b=O9ebucLD48hc+lPhGLcEwLyA/YoOS3weE1cKPULYEVkidoU7EbLEQIz51L2U1LLSr 4oGYNJYK1WnofKV2ogyNZKt7pfeEfEXbPDBkB9CJQMMKtGiSrij3llCnPtkKNlxzhB iILOFCbIFHNLiE1Cx8dpH/shFKOALg4avZGT4aN4= Received: from localhost.localdomain (ip-228-128.dynamic.ccinternet.cz [212.69.128.228]) by email-relay7.ko.seznam.cz (Seznam SMTPD 1.3.120) with ESMTP; Fri, 25 Sep 2020 21:24:38 +0200 (CEST) From: michael.srba@seznam.cz To: Dmitry Torokhov Cc: Rob Herring , Henrik Rydberg , Sam Ravnborg , Linus Walleij , Stephan Gerhold , Paul Burton , Heiko Stuebner , Lubomir Rintel , Kamlesh Gurudasani , Mark Brown , Krzysztof Kozlowski , linux-input@vger.kernel.org, devicetree@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Michael Srba , Rob Herring Subject: [PATCH v4 2/2] dt-bindings: input/touchscreen: add bindings for zinitix Date: Fri, 25 Sep 2020 21:22:04 +0200 Message-Id: <20200925192204.12631-2-michael.srba@seznam.cz> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200925192204.12631-1-michael.srba@seznam.cz> References: <20200925192204.12631-1-michael.srba@seznam.cz> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org From: Michael Srba This patch adds dts bindings for the zinitix bt541 touchscreen. Signed-off-by: Michael Srba Reviewed-by: Rob Herring --- changes in v2: none changes in v3: document zinitix,mode property changes in v4: none .../bindings/input/touchscreen/zinitix.txt | 40 +++++++++++++++++++ .../devicetree/bindings/vendor-prefixes.yaml | 2 + 2 files changed, 42 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/touchscreen/zinitix.txt diff --git a/Documentation/devicetree/bindings/input/touchscreen/zinitix.txt b/Documentation/devicetree/bindings/input/touchscreen/zinitix.txt new file mode 100644 index 000000000000..446efb9f5f55 --- /dev/null +++ b/Documentation/devicetree/bindings/input/touchscreen/zinitix.txt @@ -0,0 +1,40 @@ +Device tree bindings for Zinitx BT541 touchscreen controller + +Required properties: + + - compatible : Should be "zinitix,bt541" + - reg : I2C address of the chip. Should be 0x20 + - interrupts : Interrupt to which the chip is connected + +Optional properties: + + - vdd-supply : Analog power supply regulator on VCCA pin + - vddo-supply : Digital power supply regulator on VDD pin + - zinitix,mode : Mode of reporting touch points. Some modes may not work + with a particular ts firmware for unknown reasons. Available + modes are 1 and 2. Mode 2 is the default and preferred. + +The touchscreen-* properties are documented in touchscreen.txt in this +directory. + +Example: + + i2c@00000000 { + /* ... */ + + bt541@20 { + compatible = "zinitix,bt541"; + reg = <0x20>; + interrupt-parent = <&msmgpio>; + interrupts = <13 IRQ_TYPE_EDGE_FALLING>; + pinctrl-names = "default"; + pinctrl-0 = <&tsp_default>; + vdd-supply = <®_vdd_tsp>; + vddo-supply = <&pm8916_l6>; + touchscreen-size-x = <540>; + touchscreen-size-y = <960>; + zinitix,mode = <2>; + }; + + /* ... */ + }; diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml index 967e78c5ec0a..1b0b5e23267d 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -1066,6 +1066,8 @@ patternProperties: description: Shenzhen Zidoo Technology Co., Ltd. "^zii,.*": description: Zodiac Inflight Innovations + "^zinitix,.*": + description: Zinitix Co., Ltd "^zte,.*": description: ZTE Corp. "^zyxel,.*":