From patchwork Thu Jun 29 09:27:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 698196 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 574C3C001DD for ; Thu, 29 Jun 2023 09:27:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232097AbjF2J1W (ORCPT ); Thu, 29 Jun 2023 05:27:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232298AbjF2J1U (ORCPT ); Thu, 29 Jun 2023 05:27:20 -0400 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C413819BA for ; Thu, 29 Jun 2023 02:27:17 -0700 (PDT) Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-311394406d0so421928f8f.2 for ; Thu, 29 Jun 2023 02:27:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688030836; x=1690622836; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=31dDSPmTEwAk2xBEYscYsgGP3NvqtS1pbeFP7C1NdB4=; b=xoL9nHEBMMPLXgUGrd9HzmGNF7olI2VB1dla0Wr/y/6DUsz8N0Du40RBGu4WeJOnhq c2FIiKV2fHiONWdOpDQlwGWaeaGRGBvAqLCchqBa7x82e318ro3yoFe6LU72GH4QEnWq Khge3rLSzy2LNYIQaI+1wURIy65JwXnwCVkUuns9Su3qejnbJTpaLCiwzBM/jh7OAPE2 JssSfuer0h/vGrAg6af4JiLohtjFtQr7kOZnB0DeprUvidEM8DG0By6YxrmCzu9pxTfu yY1LpRS33hlpjGuVav5d0U/AqxkszlNSlr4ePyubLlkDQ0GMc/ALy581E6rJmJiyQarH ngAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688030836; x=1690622836; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=31dDSPmTEwAk2xBEYscYsgGP3NvqtS1pbeFP7C1NdB4=; b=hoRO24JD9ZTyzteH3lAzLhUxoB5yn7kOKeN4oaoAGQQk1ZHrLXn4dIwyQE2nEUvSt0 L+Zo9iu+qM2KnpscSvBeqckwePbEKPty0WgLYGkzkd1KwbTDhTvuthbkUJQiGNxmC8/4 1zU05bp8hYUsEC9zSZGqT3hAW4rsZBDLSJHwK0HTNA0t0s2OVDafKd+Jm+mYdglhNty6 BfvOMyCDNYc+HcW9dXGdsNCmzLMGYIdHkK5we8mvKAJ2vbIpWsnOhqFMjj59bSmWSYZN Gc5SmPebG+gS9PB7NjJvz0sbSDHygCh1nwN+sxj1ndrfCfuwiGZJCyVUHD2waDnq4Dyb PGVw== X-Gm-Message-State: AC+VfDx9VNw1p02NLLznr587qXb5znlNEv5o1BD95Ze4oZBrsyUmi8K3 qSVJCjh9xYw2ifcNbgnRa1i7bg== X-Google-Smtp-Source: ACHHUZ4Ox+WaeCzwJ47q9oRBXms1IRimwRZII3GgfR2QKTjHkKz0sgpCgbBawOTtbPBv66gY9ViiEQ== X-Received: by 2002:a05:600c:22d2:b0:3f9:b297:1804 with SMTP id 18-20020a05600c22d200b003f9b2971804mr21295637wmg.17.1688030836346; Thu, 29 Jun 2023 02:27:16 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:52eb:f6ff:feb3:451a]) by smtp.gmail.com with ESMTPSA id s4-20020adfea84000000b002ca864b807csm15800172wrm.0.2023.06.29.02.27.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Jun 2023 02:27:15 -0700 (PDT) From: Neil Armstrong Date: Thu, 29 Jun 2023 11:27:10 +0200 Subject: [PATCH v4 1/4] dt-bindings: input: document Goodix Berlin Touchscreen IC MIME-Version: 1.0 Message-Id: <20230606-topic-goodix-berlin-upstream-initial-v4-1-0947c489be17@linaro.org> References: <20230606-topic-goodix-berlin-upstream-initial-v4-0-0947c489be17@linaro.org> In-Reply-To: <20230606-topic-goodix-berlin-upstream-initial-v4-0-0947c489be17@linaro.org> To: Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bastien Nocera , Hans de Goede , Henrik Rydberg , Jeff LaBundy Cc: linux-input@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Neil Armstrong , Rob Herring X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=3093; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=sfk9uxvNPIwk9f8d5iBn9m2N4nTZgMQFpRmAil1gnVU=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBknU5wV3PpOBEOPmwhmka9C/nUAM1mrtWNjVtwtcxA sl+NRXeJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZJ1OcAAKCRB33NvayMhJ0b5jD/ 9KVUiblZUnHxPDlz1t/Dm9T/JJ5AFtRsNMwcS6Ru57/soLvNWvPDXbDqFL/9Zc6k+Y3p7BAf33lET4 is02Junwh/koPxik/cuNQkd/g2Edma4AImRGTdqd/NyGSSu4brlFCwd/9kbagHHb+3wWK6zqs794zA SSRiE2wNrnex7a4IM91HHY/6TbbOiwx37g1Bpw/D7nIv9GBlFyU2rgoCuQnFLLakxgtnHQZFVphupZ yPuL+trrbqBdTeMXqZOnwQweGwDKvQ37Ubqv1I8aRS1+INLq90rGYjvoqRXBWUoYBvrdJ0KGK2LWSX h2o77umT+rina3TQywmvON06jmTd9GxXjcKcsjOjV3ioc7Yf6uGEPCYDR0I582poLnlhGAnoAHplNM IUS6+Arhk8XekjI2B3nBuEJzyhAAH5s/TywkBpJtbJCPgMBd65teaF/AwMX4oooYfb9Bjt79wdluRI Df+4TbxJK1Yiuf0Kk3AIrWddp6J4ODYwHoA0KXCmDuzmWa7rqFtyVv0l4uE2nTpnjD6+//24p6Hho0 xCaklJHLnnyswZ2+Q9sPmmAw8/O1npV+3qyBw2b/oSmkRiNRS6N1zQ+zOs1FHEhZq2yRTk8RXUysXK CmDzpccmdAtjz4sxBBZ9Ltmz3dqTnWCNLBOelIcwzjEEI+4xYF7y7ZBZSjHA== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org Document the Goodix GT9916 wich is part of the "Berlin" serie of Touchscreen controllers IC from Goodix. Reviewed-by: Rob Herring Signed-off-by: Neil Armstrong --- .../bindings/input/touchscreen/goodix,gt9916.yaml | 95 ++++++++++++++++++++++ 1 file changed, 95 insertions(+) diff --git a/Documentation/devicetree/bindings/input/touchscreen/goodix,gt9916.yaml b/Documentation/devicetree/bindings/input/touchscreen/goodix,gt9916.yaml new file mode 100644 index 000000000000..d90f045ac06c --- /dev/null +++ b/Documentation/devicetree/bindings/input/touchscreen/goodix,gt9916.yaml @@ -0,0 +1,95 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/touchscreen/goodix,gt9916.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Goodix Berlin series touchscreen controller + +description: The Goodix Berlin series of touchscreen controllers + be connected to either I2C or SPI buses. + +maintainers: + - Neil Armstrong + +allOf: + - $ref: touchscreen.yaml# + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +properties: + compatible: + enum: + - goodix,gt9916 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + reset-gpios: + maxItems: 1 + + avdd-supply: + description: Analog power supply regulator on AVDD pin + + vddio-supply: + description: power supply regulator on VDDIO pin + + spi-max-frequency: true + touchscreen-inverted-x: true + touchscreen-inverted-y: true + touchscreen-size-x: true + touchscreen-size-y: true + touchscreen-swapped-x-y: true + +additionalProperties: false + +required: + - compatible + - reg + - interrupts + - avdd-supply + - touchscreen-size-x + - touchscreen-size-y + +examples: + - | + #include + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + touchscreen@5d { + compatible = "goodix,gt9916"; + reg = <0x5d>; + interrupt-parent = <&gpio>; + interrupts = <25 IRQ_TYPE_LEVEL_LOW>; + reset-gpios = <&gpio1 1 GPIO_ACTIVE_LOW>; + avdd-supply = <&ts_avdd>; + touchscreen-size-x = <1024>; + touchscreen-size-y = <768>; + }; + }; + - | + #include + #include + spi { + #address-cells = <1>; + #size-cells = <0>; + num-cs = <1>; + cs-gpios = <&gpio 2 GPIO_ACTIVE_HIGH>; + touchscreen@0 { + compatible = "goodix,gt9916"; + reg = <0>; + interrupt-parent = <&gpio>; + interrupts = <25 IRQ_TYPE_LEVEL_LOW>; + reset-gpios = <&gpio1 1 GPIO_ACTIVE_LOW>; + avdd-supply = <&ts_avdd>; + spi-max-frequency = <1000000>; + touchscreen-size-x = <1024>; + touchscreen-size-y = <768>; + }; + }; + +...