From patchwork Tue Aug 8 23:38:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 712096 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 A3EAEC001E0 for ; Tue, 8 Aug 2023 23:38:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230372AbjHHXis (ORCPT ); Tue, 8 Aug 2023 19:38:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229875AbjHHXir (ORCPT ); Tue, 8 Aug 2023 19:38:47 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B07271BC9 for ; Tue, 8 Aug 2023 16:38:45 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-4fe0c566788so9750105e87.0 for ; Tue, 08 Aug 2023 16:38:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691537924; x=1692142724; 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=XL/aJYrmTYtFbyKt7NkdXnR+j6MZcj8vuh8kDfM55kQ=; b=hau5ipiOji3Z35M3o+B2EhSiT3vhSG32ps1e7SMmsFZOPWPYMqO9jUnZpillMK61tQ amQTRiYjKuTnkcleH4uur5wtyP2n88Ynmst49EPDYjCvnaTaWW9PG3v+rvXvK5CPmgzT 89cJoTf8gqMxKp1+H46T2HcbVmdpl7UzvZyoIedfp0kYc+QTcSzc2abfJmJIgZPpsK2p lOA/dUC1nFaLhYk5Rk8LfAxjW3y4LEdc9zh/XDnHosKlRq3bUb1//NBMMOriqGpW/O1N +1cP8GASKQPFL9Hbc+1eDgSZd9p9zANlZbfUa+CaUOuLxf/xUa0BbrBCeoIq0dWb8tES Ag6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691537924; x=1692142724; 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=XL/aJYrmTYtFbyKt7NkdXnR+j6MZcj8vuh8kDfM55kQ=; b=VigomHBEh3gEgchgmrtzvGdi2cT9soCtSyKSP9vv8E3CMj02BW7LTZzKwto23d5zRJ yIPeh1u9fVVaZBR+WT0xUKDdYsLlwdXA7g+7UaS1g3y0285id6mHMIrxibauUgG8+mSr TVbjLUIJcix8bYiB+6LfURCd83mAQK6DGGivPromayXte8pbgIoLPVQyshLHGgLmcfA2 cBPS8LkqMm/5BmpUIMq9h0ZCc2XbucP1ILu/57pI+N+5g5niMjetHl+KcgGp96VX03yI rfhfG/soSOqdR5cRfyCg9DX+lQSsvpUaDGG3HXXvMwuV1pfjf+Bj+rrheGhs+wbv5RBb m+lw== X-Gm-Message-State: AOJu0YzJWIlTcNlqziu4EIeH3w4GPDqeKXB7picv1hdqutlfgr2nHBiv KBzampzkIVpOCvTU2rM+/NIUAQ== X-Google-Smtp-Source: AGHT+IFhDQQw1NdHeYoE74+wgUwY+C+dqGfEPmFdnSKj+Hh72wXrzzO/qs756gpW5BvUg6Is10+e3g== X-Received: by 2002:a19:675d:0:b0:4fb:8aeb:d9be with SMTP id e29-20020a19675d000000b004fb8aebd9bemr663484lfj.30.1691537923961; Tue, 08 Aug 2023 16:38:43 -0700 (PDT) Received: from [192.168.1.101] (abxi185.neoplus.adsl.tpnet.pl. [83.9.2.185]) by smtp.gmail.com with ESMTPSA id v24-20020ac25598000000b004fe1d770527sm2031871lfg.309.2023.08.08.16.38.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Aug 2023 16:38:43 -0700 (PDT) From: Konrad Dybcio Date: Wed, 09 Aug 2023 01:38:28 +0200 Subject: [PATCH v10 1/2] dt-bindings: touchscreen: Add binding for Novatek NT36xxx ICs MIME-Version: 1.0 Message-Id: <20230808-topic-nt36xxx-v10-1-dd135dfa0b5e@linaro.org> References: <20230808-topic-nt36xxx-v10-0-dd135dfa0b5e@linaro.org> In-Reply-To: <20230808-topic-nt36xxx-v10-0-dd135dfa0b5e@linaro.org> To: AngeloGioacchino Del Regno , Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Del Regno , Henrik Rydberg Cc: Marijn Suijten , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski , Rob Herring , Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1691537921; l=2016; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=docRE+A1RRfEJ2+gebPyBMKJTscANW4TqtEvw4Sba8M=; b=0kDDydGb2y71toTHrMWJMtwZHfhugcjUnxMSZiFyq9UhHkWMIgTIGcbP2/qR8e2ADa/U1EoZ+ /nrzU38MUMPBGGIrcZ8fDG0rB8ml+Ej2Y94uCGrNtuaWvrehqOaTukY X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org From: AngeloGioacchino Del Regno Add binding for the Novatek NT36xxx series touchscreen ICs. Reviewed-by: Krzysztof Kozlowski Reviewed-by: Rob Herring Signed-off-by: AngeloGioacchino Del Regno Signed-off-by: Konrad Dybcio --- .../bindings/input/touchscreen/nt36xxx.yaml | 59 ++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/Documentation/devicetree/bindings/input/touchscreen/nt36xxx.yaml b/Documentation/devicetree/bindings/input/touchscreen/nt36xxx.yaml new file mode 100644 index 000000000000..d88b149602ef --- /dev/null +++ b/Documentation/devicetree/bindings/input/touchscreen/nt36xxx.yaml @@ -0,0 +1,59 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/touchscreen/nt36xxx.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Novatek NT36xxx series touchscreen controller + +maintainers: + - AngeloGioacchino Del Regno + +allOf: + - $ref: touchscreen.yaml# + +properties: + compatible: + const: novatek,nt36525-i2c + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + reset-gpios: + maxItems: 1 + + vdd-supply: + description: Power supply regulator for VDD pin + + vio-supply: + description: Power supply regulator on VDD-IO pin + +unevaluatedProperties: false + +required: + - compatible + - reg + - interrupts + +examples: + - | + #include + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + touchscreen@62 { + compatible = "novatek,nt36525-i2c"; + reg = <0x62>; + interrupt-parent = <&tlmm>; + interrupts = <45 IRQ_TYPE_EDGE_RISING>; + reset-gpios = <&tlmm 102 GPIO_ACTIVE_HIGH>; + }; + }; + +...