From patchwork Tue Oct 3 08:38:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 728878 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 2AD75E75435 for ; Tue, 3 Oct 2023 08:38:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231269AbjJCIis (ORCPT ); Tue, 3 Oct 2023 04:38:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231234AbjJCIir (ORCPT ); Tue, 3 Oct 2023 04:38:47 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A861CAD for ; Tue, 3 Oct 2023 01:38:42 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-405361bb94eso6781735e9.0 for ; Tue, 03 Oct 2023 01:38:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696322321; x=1696927121; darn=vger.kernel.org; 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=f3yuXBdyejrumooxuR/RXoXV0X+LNzkmOrwlQ0bNpvmy7Z+RQ7CDR7AgPzZiKNUo7t aqv4jdalYibWscobXgAbei1Y773Bjfc9vabeSO79qSxLQF+La9/AJ1MWHEcjWxbkFQyB j+FpkgS8Pqxlkbi7pJuqBcTrWjxgLxFfG5ueabw7BqOGisms4qjXvycVjMnN4l+H+H/v 3Xt/J/jJ1J+jiRSktZl3qymQHM6M4rr477sJDcFkKHvjYcUiyPZEeExDAUAT+ACJadR+ 1tbQA3NVAZNcnXuN8v+tTfPDtptFb4TvbZpDrxnD6J2SaYkawsPeNxPyx0jooCKke9y0 QokA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696322321; x=1696927121; 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=BkWf8ZXzPL+IlnC0wFLNQbgJOBj8FjG6yuRLYdLfW/P1/s1ugf7Or7Ny4gnrGsKYqT a/QxWuTgiN279uo7mbgbpNu0E/J4otyaBJi0Vh9hShxHwVGzot283h2E48GXOlkzmGyd NjrZKRuaTfvtJDcpd7tg6wV4Wi7+69fW3svmctLqFgC+3+cZBQdoSHaRaF5JDh8Vi+6w k61hHc3IShVcInDQSGB5vapJpMtouRL21qB9vmzeGMXnkGAN2HBI6gAgIPKIm8lyPRzv /K+Y9BFkDFRAngn5Rgzt1nDCniXG6ry0aV73/EBLYx9Kkub6seha7v6hMnGiUUYPhBFO ijtA== X-Gm-Message-State: AOJu0YyteUsvXxjPO/o7wksfZdWFWrV4RRDVv9EvakSP0somLITDITwA PLzjeL2YCGupZV/ZWzgUI0RsXw== X-Google-Smtp-Source: AGHT+IHg4ahBhkTIX2VsE+1cHo4aEzX/wBavf/zQZYq11OzhLipWdBxppPedJzsq/+jowzzlWiIxwg== X-Received: by 2002:a7b:c419:0:b0:405:3a65:1b4c with SMTP id k25-20020a7bc419000000b004053a651b4cmr13424453wmi.6.1696322321042; Tue, 03 Oct 2023 01:38:41 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id m23-20020a7bca57000000b00405323d47fdsm733597wml.21.2023.10.03.01.38.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 01:38:40 -0700 (PDT) From: Neil Armstrong Date: Tue, 03 Oct 2023 10:38:33 +0200 Subject: [PATCH v8 1/4] dt-bindings: input: document Goodix Berlin Touchscreen IC MIME-Version: 1.0 Message-Id: <20231003-topic-goodix-berlin-upstream-initial-v8-1-171606102ed6@linaro.org> References: <20231003-topic-goodix-berlin-upstream-initial-v8-0-171606102ed6@linaro.org> In-Reply-To: <20231003-topic-goodix-berlin-upstream-initial-v8-0-171606102ed6@linaro.org> To: Dmitry Torokhov , linux-input@vger.kernel.org Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bastien Nocera , Hans de Goede , Henrik Rydberg , Jeff LaBundy , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Neil Armstrong , Rob Herring X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=3093; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=sfk9uxvNPIwk9f8d5iBn9m2N4nTZgMQFpRmAil1gnVU=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBlG9MNEafnCQ9IV1cKD5hb0M1JIZQ/KdOOQNLnJP3S I6gWdAqJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZRvTDQAKCRB33NvayMhJ0VF5EA CdQZfBj9lE5l/QOADsWzj3wmfLfb9Kc/ZFpiPkw4LGsJXL65QfZtRzF8oW/Vbg7UjSHBSWg5tt/MCA D081op4elI1n5oOvir00e3HhTJUjdGkwWUYBBWFOeJvlYMeUd+1GFQev0mwNqZnqDfy4wLSH5moqT8 OoiA5bSYv+shwo3VrEe7vSvmylgFZ9vylQLBl1JVeRBYjMQ+oCYc8t1VUQv//plr3m55O5j5UR4VqJ 1xZd0mTJiRn+HQHRljkbDaGIO1Rl58miKIifaaEKiznqnt+cuger0hgeTsNY1J3EfelfcTSwm3dIQT NNDcDYQ5YFjmybuIkYvMa25uWLG0FkWwbziV4nW1NN7HefPtdSCVVWZh1RXoW4/XQoCoBUB/w1qP3Z +A3zgfB2wpYSg6F1svXXAWExH0mno+ADSn6qESquDMzcLADxN2y9MxAsux4HmzZT8So/UQtKfn5+l2 MeOfk6gjwY2IZvFx0nHwXm4Tu6rQxkFZ78zaCN5G3lJucXPE17kwsZS0SqA2ZdxNcZ4ibEcFNUs9Vv WDCW4E3aTgavmxYIVM3jNtLSFqEvg7998jOg5GeRKO7zrIII+5ushIYjNnPgz6o30iJ591E+TBMrKT k+FgwsiBMPGcheZaMHoiJ0RmZUd0379f7DkIgvNEqOPwQI+9MdP/L8ebuPsg== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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>; + }; + }; + +...