Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1064878lqh; Sun, 5 May 2024 14:49:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXbB12lvWrOrD9MyuJ/FP/T08cR0fd2Itw31aSkDznyKZ4/CaNJvH3nzxxQ5eDWqNkqtCfjvpbZqwPudj6kA6pUHvKj7xsLNi2CGkuu+w== X-Google-Smtp-Source: AGHT+IGNsQaZk8rBIfpHcecEL6iyP+eX0+C/pncyBZsr/GIemyj/fr+eOG+HSO0ci2/K+YQuRmfi X-Received: by 2002:a17:906:f591:b0:a59:c209:3e2e with SMTP id cm17-20020a170906f59100b00a59c2093e2emr1837165ejd.4.1714945747916; Sun, 05 May 2024 14:49:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714945747; cv=pass; d=google.com; s=arc-20160816; b=HpXo5l5qy0k5m8o6bGhyuHKH7YTEXNRuJumgTDP6m2/txWuVkr2Bgdqjxx+phFB9DV LTXnTYwewr1Tghx4YHGfdDRA+4YO9C+n3zHq3G3wVRYzRG372E+p0t2pxCLtuoaGh/iI nI9mCGTaNYbTPkqIhCQvYxO9Rzw/NKMcDkG7yqA8ciSuRqhAj0ixquDMIpC4b9tRIX58 U/QhU6INVgsI94kAZCY9V1rBeREz6F2WDHMtp1TPSTmBztGb/GMIFrnt2987bAB6jrOJ fIb/2S4zgeO0cTC/c7bPH/IBLsuLPj3mC3Yc8ZS6MXeemsBhtCz+I2Ah1ypHuWMz/C5U P94Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:to:from:dkim-signature; bh=yXjkb0l1HEEZRrAe8oSGj/9/GnOCVXNmuf6WaMu1Sk4=; fh=kcNHpcrce7SiRnT2ySTBSEVDLo0lR7z7Q7Uy6fnisfs=; b=divbDr/wPMSAGZHFxJr38MfH3Ic0B9eYuv6rNf7w9uIQa6D5t7NqNghKMAP8OH2Unn gFeJ6BICxDQ2igfvhQHbBPt6jYD8GZPlec60Om6a3MbfjlDzy9M3GRfCK11sEqwk/39r abJUut5i4me3c/TZR/8cr6LyeWHlrvQpEuVnb6A2ZqTO6YIR45gigPhnrkNyiuCAWL3s JlOwOQ4gZcKgkcdA399QRY8gnvbaTMvtGSFtr1xf1ry3Cz8PPn9tjyHfcwUZpvphaQ5o wPypaqNj7iWs5LDUDVDCilJqrxfjNexEGnvQw4OH9GCytuHs6XxFln0QXOEQSv+PWrPr ACrw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20220719 header.b=qMSfeUDM; arc=pass (i=1 spf=pass spfdomain=kemnade.info dkim=pass dkdomain=kemnade.info); spf=pass (google.com: domain of linux-kernel+bounces-169161-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169161-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id hv20-20020a17090760d400b00a5989d3edb6si3621798ejc.228.2024.05.05.14.49.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 May 2024 14:49:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169161-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=fail header.i=@kemnade.info header.s=20220719 header.b=qMSfeUDM; arc=pass (i=1 spf=pass spfdomain=kemnade.info dkim=pass dkdomain=kemnade.info); spf=pass (google.com: domain of linux-kernel+bounces-169161-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169161-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id A2FD81F22078 for ; Sun, 5 May 2024 21:49:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 00C5E136E3B; Sun, 5 May 2024 21:48:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kemnade.info header.i=@kemnade.info header.b="qMSfeUDM" Received: from mail2.andi.de1.cc (vmd64148.contaboserver.net [161.97.139.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 93FA2135A73; Sun, 5 May 2024 21:48:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=161.97.139.27 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714945728; cv=none; b=cN1lwW6Pf/lqqZrmdkSYNL7nEl/bMgAfUQs/g0u5fz/sKTEcyy+RyneVur+fLxOBvnyAhage1hIEFvV27Qso0Y4KpWE3p6rrgprEjiIPoTCTdW6KaA4qALtha5FKyMJ1y0sXxWcmdeVNiTWbFThfNEPEEV0nZyeKBirLbvbeoUs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714945728; c=relaxed/simple; bh=JqftZOBROHB7NDMLLUBkN2gSJoBeMNEhVZ+5p5CrOTY=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=AQ1cIM+k2lnq0UoiVjHeOIczh/8TgF4NpUeohganhFBqw+Og1fYLcQSaXzwc1TrPQYJ6Cq7hP/AEDAsNvA4NqWpsbtnpztI0PYMM/Tg1vX3ZUko/KuomwnNFI76XH/lXcMbDNIbU+LceqRfOA75r6vKb2ihvZe1uCivkSsoBHxM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kemnade.info; spf=pass smtp.mailfrom=kemnade.info; dkim=pass (2048-bit key) header.d=kemnade.info header.i=@kemnade.info header.b=qMSfeUDM; arc=none smtp.client-ip=161.97.139.27 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kemnade.info Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kemnade.info Received: from mail.andi.de1.cc ([2a02:c205:3004:2154::1]) by mail2.andi.de1.cc with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1s3jiq-005kk0-15; Sun, 05 May 2024 23:48:41 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20220719; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:To:From:Sender:Reply-To:Cc: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=yXjkb0l1HEEZRrAe8oSGj/9/GnOCVXNmuf6WaMu1Sk4=; b=qMSfeUDM8/+UHT0PZMHAAGYAj2 tJ2TRUnSwLsFPo/6wkjt9BZBpoBavtrDccVRGYwoki6zf6rMbMKG5o8lO1BxA0PhKuOpUTxcAzlXg 2RFmCQNei0rlZQm75e8lyE5otXXonQyEgT1n5Vq2/0UXmeqxbsn5bIPvFZGNNqeqJtsLcuDQN0BMg yyXhweKVTqGT4NIGxUdciDJaBspP7hQqAvfwoQNNsdGAIjWKbT0kZGXHF7fUeDntugBBipCeuDtH9 BIKitK1wP/DU4Uc74nYio3N6wWtXlUl5r0Rog31gHeYxMHzcVH6AyoPh6J/ape4o1i5eQ3lnLGqSI DiCKS6Ww==; Received: from p200300c20737c2001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:c2:737:c200:1a3d:a2ff:febf:d33a] helo=aktux) by mail.andi.de1.cc with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1s3jim-000cc8-1b; Sun, 05 May 2024 23:48:37 +0200 Received: from andi by aktux with local (Exim 4.96) (envelope-from ) id 1s3jin-003jyV-1c; Sun, 05 May 2024 23:48:37 +0200 From: Andreas Kemnade To: dmitry.torokhov@gmail.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, andreas@kemnade.info, u.kleine-koenig@pengutronix.de, hdegoede@redhat.com, andy.shevchenko@gmail.com, siebren.vroegindeweij@hotmail.com, linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/3] dt-bindings: touchscreen: convert elan,ektf2127 to json-schema Date: Sun, 5 May 2024 23:47:52 +0200 Message-Id: <20240505214754.891700-2-andreas@kemnade.info> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240505214754.891700-1-andreas@kemnade.info> References: <20240505214754.891700-1-andreas@kemnade.info> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Convert EKTF2127 infrared touchscreen controller binding to DT schema and add ektf2232 compatible. Signed-off-by: Andreas Kemnade --- .../bindings/input/touchscreen/ektf2127.txt | 25 -------- .../input/touchscreen/elan,ektf2127.yaml | 57 +++++++++++++++++++ 2 files changed, 57 insertions(+), 25 deletions(-) delete mode 100644 Documentation/devicetree/bindings/input/touchscreen/ektf2127.txt create mode 100644 Documentation/devicetree/bindings/input/touchscreen/elan,ektf2127.yaml diff --git a/Documentation/devicetree/bindings/input/touchscreen/ektf2127.txt b/Documentation/devicetree/bindings/input/touchscreen/ektf2127.txt deleted file mode 100644 index c9f2c9f578e34..0000000000000 --- a/Documentation/devicetree/bindings/input/touchscreen/ektf2127.txt +++ /dev/null @@ -1,25 +0,0 @@ -* Elan eKTF2127 I2C touchscreen controller - -Required properties: - - compatible : "elan,ektf2127" or "elan,ektf2132" - - reg : I2C slave address of the chip (0x40) - - interrupts : interrupt specification for the ektf2127 interrupt - - power-gpios : GPIO specification for the pin connected to the - ektf2127's wake input. This needs to be driven high - to take ektf2127 out of its low power state - -For additional optional properties see: touchscreen.txt - -Example: - -i2c@00000000 { - ektf2127: touchscreen@15 { - compatible = "elan,ektf2127"; - reg = <0x15>; - interrupt-parent = <&pio>; - interrupts = <6 11 IRQ_TYPE_EDGE_FALLING> - power-gpios = <&pio 1 3 GPIO_ACTIVE_HIGH>; - touchscreen-inverted-x; - touchscreen-swapped-x-y; - }; -}; diff --git a/Documentation/devicetree/bindings/input/touchscreen/elan,ektf2127.yaml b/Documentation/devicetree/bindings/input/touchscreen/elan,ektf2127.yaml new file mode 100644 index 0000000000000..5c4c29da0b11d --- /dev/null +++ b/Documentation/devicetree/bindings/input/touchscreen/elan,ektf2127.yaml @@ -0,0 +1,57 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/touchscreen/elan,ektf2127.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Elan eKTF2127 I2C touchscreen controller + +maintainers: + - Siebren Vroegindeweij + +allOf: + - $ref: touchscreen.yaml# + +properties: + compatible: + enum: + - elan,ektf2127 + - elan,ektf2132 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + power-gpios: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + - power-gpios + +unevaluatedProperties: false + +examples: + - | + #include + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + touchscreen@15 { + compatible = "elan,ektf2127"; + reg = <0x15>; + interrupt-parent = <&pio>; + interrupts = <6 11 IRQ_TYPE_EDGE_FALLING>; + power-gpios = <&pio 1 3 GPIO_ACTIVE_HIGH>; + touchscreen-inverted-x; + touchscreen-swapped-x-y; + }; + }; +... -- 2.39.2