From patchwork Thu Jun 22 14:28:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 696072 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 EB68FEB64DD for ; Thu, 22 Jun 2023 14:29:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231178AbjFVO3J (ORCPT ); Thu, 22 Jun 2023 10:29:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229628AbjFVO3I (ORCPT ); Thu, 22 Jun 2023 10:29:08 -0400 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7123B1BCA for ; Thu, 22 Jun 2023 07:29:06 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-3f9b258f3a2so48482545e9.0 for ; Thu, 22 Jun 2023 07:29:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687444145; x=1690036145; 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=ZfBxKr/K0XhiCys9ocI6g4skVBpIoKmlEntkhuD+e9zbWmVGt+D9va4WTqbjneCw7Y C8q7r5rPDJslox7JIo9vOl1PnzN96vCT+yFx0EXvGjuUUxnr9gUTWPNjxLSVdwo6fNoC 6iEkopWUtuyhvIeHj5JWJDoZz3k+qLkiXO32GDb//m5gNv56ZOoW09Qwhhr3pqd0FsPD c4PVKAk//A0X6kSs1dPpNu2XqnT27aXnV9LlOY59Jr9bJxM5AJbtgmEZzUSQkgooTJiy YAzs22wXJy9+vsIlLP/LjEcxpyJvbjHQz+XWBe0leePnsYQCz8wS2zZfhufzP+QGYq6V mqFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687444145; x=1690036145; 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=I477OKMwbSRAFg+7/2qPpjxKfCmmO92U4cpVcFz5eZSfhH5hUq1fthNyfrP9Xc5TR0 02Ba9MwxTgjK7q1o0190TFxaululocZq2WnYfTk5sYqox5JIDMMFbwjJOq+KBeS1z3iJ t1RBnKprHbzS0f4ruS3ddgFnzHl7eBmWtpM+nucY+CVvzxePRznnwI6+NehsTUM/oEo/ bxvnlo6FWCaeCokIr7IN5E8iP6ehPyiEyEq28wopwLcDyze/c/OR6AJemS9PtmssFHNw Uh1mGU8evWO4Xq7LhfxX14RN8bER8OJZjazLTyNUYAYPooD7eXpyKL+M0WUkaT9D8/8O Ygug== X-Gm-Message-State: AC+VfDzps3UbjZkyodh2Gt8KF2CfpVGfHf4skwL4S1fovADINsTxZxm0 uEYch5rp9g1aDvMAIQGWPXdn7A== X-Google-Smtp-Source: ACHHUZ78m2M5tE5jpv+rwYG3SAlrmdD+zDGd/jaO1XR7cT0JZ0zTL6vv1jqQmba7Zz/VDSb2F5e/nA== X-Received: by 2002:adf:e40f:0:b0:30f:fec1:ac0a with SMTP id g15-20020adfe40f000000b0030ffec1ac0amr18644032wrm.39.1687444144884; Thu, 22 Jun 2023 07:29:04 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id w18-20020a5d6812000000b0030ae69920c9sm7168361wru.53.2023.06.22.07.29.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jun 2023 07:29:04 -0700 (PDT) From: Neil Armstrong Date: Thu, 22 Jun 2023 16:28:59 +0200 Subject: [PATCH v3 1/4] dt-bindings: input: document Goodix Berlin Touchscreen IC MIME-Version: 1.0 Message-Id: <20230606-topic-goodix-berlin-upstream-initial-v3-1-f0577cead709@linaro.org> References: <20230606-topic-goodix-berlin-upstream-initial-v3-0-f0577cead709@linaro.org> In-Reply-To: <20230606-topic-goodix-berlin-upstream-initial-v3-0-f0577cead709@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/ZANAwAKAXfc29rIyEnRAcsmYgBklFqtTUjH9+wzYqPrZYY1Vs3xhhH0RphBGNEZnQI0 /05NwSeJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZJRarQAKCRB33NvayMhJ0ROcD/ 0Y88hwPf9TpHRCrZ/XEZLaK9rGrB9dyzx/mI/DyQmjsjCk9jeC2BTZGmHEWhhmJIAvKEmr54l3dKWG GvZWT0mx3xpdvDFB4+yXVaPO1hX8pc38/pan8ipWgUoYaVqaUqu3DbGEdGjmfSBBBwyG+3Zq1Am1M6 g6qRV6JjhdJMNyYaTc4MLqljqVKCwJUsAmssWATW9hWZmLz+mHueqPvPoGYbT6h2xJXhsqSFv0Ux2m VCPLyxYMCHS+XgS3jz/4B8MlCahRPpKTyLWNuohEncNDfXPl9ix4CrYRpOHjMLNO3kfWOyU20Ezjuo Ki6GLe1IDdg9PVdBjQb5mE7K+umxfwUsXKzuuSKBkUcB2DPOqplnOL9yF9Ku+glG2uyUaYaG8JZnLu VNI9WxQubHFqJ5RTwvgrYxjtfvcp9x2Aqywc4Fk83ogeQZn6kb+uhi6Sb1W7KfMHs0f9YEPbop0B/T nTSV2tQEoqVyDz/ACM2ASTWILiMkwpkn/geNDM7AkvL5dYcNKns8nu66cYXOlp+iq4gowrjgG1XnwO 2tPLcoXNjLKDKOyhRuhQdIetwnQwnJOnJFR/8CZ8nKeygVSwiRCR0FFKptKphcH7naTKvjolh2m6WA /KU11rULHywEHf5jgl/7QQH/ljEkrYG24LHVKoZkDDd8rSskZZQcCzH0eAcA== 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>; + }; + }; + +...