From patchwork Thu Jun 29 02:13:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wang Yafei X-Patchwork-Id: 9815771 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3EF4B602B1 for ; Thu, 29 Jun 2017 02:13:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 237C71FF29 for ; Thu, 29 Jun 2017 02:13:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1818B2860A; Thu, 29 Jun 2017 02:13:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3C3A51FF29 for ; Thu, 29 Jun 2017 02:13:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751630AbdF2CNk (ORCPT ); Wed, 28 Jun 2017 22:13:40 -0400 Received: from Mailgw01.goodix.com ([58.250.26.195]:2581 "EHLO barracuda.goodix.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751551AbdF2CNj (ORCPT ); Wed, 28 Jun 2017 22:13:39 -0400 X-ASG-Debug-ID: 1498702409-097d27587507730001-vblZzk Received: from mail.goodix.com (sz-excas01.goodix.com [192.168.0.135]) by barracuda.goodix.com with ESMTP id A31GNiD1Xb8koBHr; Thu, 29 Jun 2017 10:13:29 +0800 (CST) X-Barracuda-Envelope-From: wangyafei@goodix.com X-Barracuda-RBL-Trusted-Forwarder: 192.168.0.135 Received: from andrew-dell (172.18.64.169) by SZ-EXCAS01.goodix.com (192.168.0.137) with Microsoft SMTP Server (TLS) id 14.3.123.3; Thu, 29 Jun 2017 10:13:12 +0800 Date: Thu, 29 Jun 2017 10:13:27 +0800 X-Barracuda-RBL-Trusted-Forwarder: 192.168.0.137 From: Wang Yafei To: Rob Herring , Mark Rutland , Dmitry Torokhov CC: , , , Subject: [PATCH v5 1/2] dt-bindings: input: Add Device tree bindings for Goodix GTx5 series touchscreen controller Message-ID: <20170629021327.GA16992@andrew-dell> X-ASG-Orig-Subj: [PATCH v5 1/2] dt-bindings: input: Add Device tree bindings for Goodix GTx5 series touchscreen controller MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-Originating-IP: [172.18.64.169] X-Barracuda-Connect: sz-excas01.goodix.com[192.168.0.135] X-Barracuda-Start-Time: 1498702409 X-Barracuda-URL: https://mailgw.goodix.com:443/cgi-mod/mark.cgi X-Barracuda-Scan-Msg-Size: 3294 X-Virus-Scanned: by bsmtpd at goodix.com X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=9.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.40361 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Wang Yafei --- since v1: - Change device properties name - Modified irq property format - Modified linux,keycode format - Modified panel configuration property name - Remove time-delay properties --- .../bindings/input/touchscreen/goodix-gtx5.txt | 61 ++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/touchscreen/goodix-gtx5.txt diff --git a/Documentation/devicetree/bindings/input/touchscreen/goodix-gtx5.txt b/Documentation/devicetree/bindings/input/touchscreen/goodix-gtx5.txt new file mode 100644 index 0000000..9bb82c5 --- /dev/null +++ b/Documentation/devicetree/bindings/input/touchscreen/goodix-gtx5.txt @@ -0,0 +1,61 @@ +Device tree bindings for Goodix GTx5 series touchscreen controller + +Required properties: + +- compatible : Should be "goodix,gt7589" + or "goodix,gt8589" + or "goodix,gt9589" +- reg : I2C address of the chip. Should be 0x5d or 0x14 +- interrupt-parent : Interrupt controller to which the chip is connected +- interrupts : Interrupt to which the chip is connected +- touchscreen-size-x : horizontal resolution of touchscreen(in pixels) +- touchscreen-size-y : vertical resolution of touchscreen(in pixels) +- touchscreen-max-id : panel supported max touch number. +- touchscreen-max-w : panel max width value. + +Optional properties: +- reset-gpios : reset gpio. +- touchscreen-swapped-x-y : swap x/y axis coordinates. +- linux,keycodes : Specifies an array of numeric keycode values to + be used for reporting button presses. The array can + contain up to 8 entries. +- goodix,normal-cfg-X : touch device normal config data, this config data is + touchpanel manufacturer related. normal-cfg-X, X + represent for a panel manufacturer, X is less than 10. +- vtouch-supply : power supply for the touch device. + +Example: +i2c@00000000 { + /* ... */ + + gt8589@14 { + compatible = "goodix,gt8589"; + reg = <0x14>; + interrupt-parent = <&msm_gpio>; + interrupts = <13 IRQ_TYPE_EDGE_FALLING>; + vtouch-supply = <&pm8916_l15>; + reset-gpios = <&msm_gpio 12 0x0>; + touchscreen-max-id = <10>; + touchscreen-size-x = <400>; + touchscreen-size-y = <400>; + touchscreen-max-w = <400>; + linux,keycodes = , , ; + goodix,normal-cfg-0 = [ + 02 00 00 09 09 01 07 02 00 00 00 00 01 00 3C 00 07 07 + 00 00 00 00 00 00 40 01 40 01 C8 00 96 00 F4 01 F4 01 + F4 01 20 01 11 0A 0A 03 14 14 14 14 0A 0C 01 01 11 11 + 11 00 14 14 14 14 14 14 14 14 14 00 00 0F 00 00 00 00 + 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 00 00 00 00 00 00 00 00 00 00 11 09 10 00 31 32 33 34 + 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 CA 64 00 + 00 00 00 00 00 00 09 00 13 00 00 00 00 00 00 00 00 00 + 50 B0 19 00 19 00 05 00 00 00 00 0A 05 00 00 00 00 00 + 01 00 FF 00 0B 06 0D 02 FF 04 05 03 07 01 08 0A 0E 11 + 0F 10 09 13 0C 16 17 14 18 12 19 15 1D 1E 1C 1F 1B 20 + 1A 2A 29 28 25 2B 27 21 FF 24 22 2C 26 23 FF 00 00 00 + 00 00 00 00 00 00 00 00 00 00 00 00 80 80 80 80 80 80 + 80 80 80 80 80 80 80 80 80 80 9F 22 01 AE]; + }; + }; +} +