Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2402472rda; Wed, 25 Oct 2023 01:22:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGmVGHoXUyN93K8SHlhcN5FhXV0peic6ZSFAFcx0fKCFcG1TsZujYDGooEgFQlwxLeTgVn9 X-Received: by 2002:a81:5b06:0:b0:5a8:187d:d5d5 with SMTP id p6-20020a815b06000000b005a8187dd5d5mr13214635ywb.35.1698222163084; Wed, 25 Oct 2023 01:22:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698222163; cv=none; d=google.com; s=arc-20160816; b=McydW6U+QikAjoMo9zLiF48ef46V1EI6pSgYrUMQ1ObmfW6N1fIzzGoXEq2hQ7bvAL 3N8O+XQU8VzpB0OM1VqPG8KLsh1ZZ8CN16iooWsxDHxEPFNuGZAIzk1DngEMTDFW07yL sjd4dtO6ibNilN+0sm7/RwS05qa8ArEbmw+uBFiT7LZlcXVYPlr7ia/WMkb9rEJRtZs8 NMxDauARXNB9FRke+J0R7qglX0OaQLitAndw38eqrTvpe6jXNZFbLybe0y/nRZErRsrJ Higgpbct+tjYlcDxFAY3O9qvc2S3dCwwdYKpb/PB5NpdCy32GvsCwNJs8O5TGGr1E8IM DDpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ioMhJx8s3LhJKYNx5Y+4mlxc8ilXquXKWeYGAZDzE94=; fh=3glUYC+dYzsuubNEq+E35dRXYhvEpszCnzEbpSbsgsc=; b=PMm/Wki9Hlz0r4HOpWHlVHh2MPJZ5y1+9Kc1bUFPLyDTP9V2cGuKG+gwfeGIrLqirN JQwA9VqtVPSinv4+9SjVan/A4ji+HHtNpXY34wRzO3vQgtDdAjpyxADZpRrGuFXS0xR9 rhN+yCw1Ogd7+Od8PcTh7hgyfOhQl4wFaxw05d7Ojp/w2uxjpmUnd2qrDoPl+HXNzs04 GAuhfQnpyqo5LlW2fMVP7+Z2Fs1KvgO6j1o39rwlZJzGjZ/kDpMTU+S29xZJn5gfo0sK 4UsxRt6/hYM5U4r8ggI8EVcwfLSInPBew0h7Jhdbqdk3YPA34KlCVWx0fu63RZr9z49x boUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="bQN8KB/W"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id c7-20020a0dc107000000b005a81a9a2628si9636705ywd.499.2023.10.25.01.22.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 01:22:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="bQN8KB/W"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 7684C80B1A2C; Wed, 25 Oct 2023 01:22:25 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233988AbjJYIWS (ORCPT + 99 others); Wed, 25 Oct 2023 04:22:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233930AbjJYIWG (ORCPT ); Wed, 25 Oct 2023 04:22:06 -0400 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD87E111; Wed, 25 Oct 2023 01:22:03 -0700 (PDT) Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-6b1ef786b7fso5152661b3a.3; Wed, 25 Oct 2023 01:22:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698222123; x=1698826923; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ioMhJx8s3LhJKYNx5Y+4mlxc8ilXquXKWeYGAZDzE94=; b=bQN8KB/WialTQJpBO5Omw6XQ4GK++0Mkf5xeZo54sUMlwpcoFwH9zhFtCJGIH8ogMQ pU0PP/rsPR20sgFBsxQnRIdZrZAwPqoMR1OZ3g+lbIGzPUXdDJ4b7f7Z2Dr8JCWT+RTF BlW8nlrPrOJV2rA1LppX9OaIRbTUm3tUqmY+4S4BRjxT1GBd9mwsOBtSr7/6rblueFiS 6tfi9Lw4s7lJ0SF5E7va1VBZyoh2vnX3a5IqSdHlzbgAITqFyH+sr6cgOJEa8uAYbhC+ 7nhHALSlzcHGqZXt8UV5XnWRt75xBZwj0q5sxVZN1XwUgpeXCVA26OZGzsnSTeaoM/5+ SIbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698222123; x=1698826923; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ioMhJx8s3LhJKYNx5Y+4mlxc8ilXquXKWeYGAZDzE94=; b=G2NXib1OszxEsxkR56exMvurxs56J/zfTcxsS7tIVKH8fhRUjo1DUQVvkLpCpg2UMH sHkeaVBh8cNwGRTcO0VXqZtQaOnDkUbVjzgroj8+ADRtIzWdkOOQ5nQMygbiuvE+cJFc 2YkkJC7XsJv0T8h6CSq29wFUqCXL+K2UTOu5sL7kiwHv92qkSa1/R2gyDHWysdA6d6WB wHXdjj821ZkCTEhhWOf35LQCwCtu7GYxuz27EIRhC6jezhiI1hzPxcq9Sfa0Q69N1Bvx rm9OsSHLIKb29P4f8ELkJb/K9rNr3SklN/eti7TAoAKZ30lXlaxa5Oruz0Z/0qFLNEug EBqA== X-Gm-Message-State: AOJu0YymfVZquxJ/FIT7RCIlohDiDusLjVvRTNi3Bk9CqV4yY5iESVt3 XpjbyVVkseV1u0o3HeDJ1g3OXe1pWZpk1Uuy X-Received: by 2002:a05:6a21:120a:b0:17d:ec93:6a86 with SMTP id oe10-20020a056a21120a00b0017dec936a86mr4223436pzb.19.1698222123264; Wed, 25 Oct 2023 01:22:03 -0700 (PDT) Received: from localhost.localdomain (2001-b400-e38c-defd-6dc9-16c9-6f6d-2997.emome-ip6.hinet.net. [2001:b400:e38c:defd:6dc9:16c9:6f6d:2997]) by smtp.gmail.com with ESMTPSA id y66-20020a62ce45000000b00690ca4356f1sm9255860pfg.198.2023.10.25.01.22.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 01:22:02 -0700 (PDT) From: Wei-Shih Lin X-Google-Original-From: Wei-Shih Lin To: dmitry.torokhov@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: touchscreen: Add Novatek NT519XX series bindings Date: Wed, 25 Oct 2023 16:20:53 +0800 Message-ID: <20231025082054.1190-2-Weishih_Lin@novatek.com.tw> X-Mailer: git-send-email 2.42.0.windows.2 In-Reply-To: <20231025082054.1190-1-Weishih_Lin@novatek.com.tw> References: <20231025082054.1190-1-Weishih_Lin@novatek.com.tw> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 25 Oct 2023 01:22:25 -0700 (PDT) This patch adds device tree bindings for Novatek NT519XX series touchscreen devices. Signed-off-by: Wei-Shih Lin --- .../input/touchscreen/novatek,nt519xx.yaml | 60 +++++++++++++++++++ MAINTAINERS | 9 +++ 2 files changed, 69 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/touchscreen/novatek,nt519xx.yaml diff --git a/Documentation/devicetree/bindings/input/touchscreen/novatek,nt519xx.yaml b/Documentation/devicetree/bindings/input/touchscreen/novatek,nt519xx.yaml new file mode 100644 index 000000000000..00912e265197 --- /dev/null +++ b/Documentation/devicetree/bindings/input/touchscreen/novatek,nt519xx.yaml @@ -0,0 +1,60 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/touchscreen/novatek,nt519xx.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Novatek nt519xx touchscreen controller bindings + +maintainers: + - Wei-Shih Lin + - Leo LS Chang + +allOf: + - $ref: touchscreen.yaml# + +properties: + compatible: + enum: + - novatek,NVT-ts + + reg: + maxItems: 1 + + novatek,irq-gpio: + maxItems: 1 + + novatek,reset-gpio: + maxItems: 1 + + touchscreen-size-x: true + touchscreen-size-y: true + +required: + - compatible + - reg + - novatek,irq-gpio + - novatek,reset-gpio + - touchscreen-size-x + - touchscreen-size-y + +additionalProperties: false + +examples: + - | + #include + #include + i2c { + novatek@62 { + compatible = "novatek,NVT-ts"; + reg = <0x62>; + + novatek,irq-gpio = <&gpio5 GPIO_C3 IRQ_TYPE_EDGE_RISING>; + novatek,reset-gpio = <&gpio7 GPIO_B1 GPIO_ACTIVE_LOW>; + + touchscreen-size-x = <1920>; + touchscreen-size-y = <1080>; + }; + }; + +... diff --git a/MAINTAINERS b/MAINTAINERS index 4cc6bf79fdd8..25c88bf7333e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -15009,6 +15009,15 @@ L: linux-input@vger.kernel.org S: Maintained F: drivers/input/touchscreen/novatek-nvt-ts.c +NOVATEK NT519XX I2C TOUCHSCREEN DRIVER +M: Wei-Shih Lin +L: linux-input@vger.kernel.org +S: Maintained +F: Documentation/devicetree/bindings/input/touchscreen/novatek,nt519xx.yaml +F: drivers/input/touchscreen/nt519xx.c +F: drivers/input/touchscreen/nt519xx.h +F: drivers/input/touchscreen/nt519xx_mem_map.h + NSDEPS M: Matthias Maennich S: Maintained -- 2.26.1