From patchwork Thu Sep 25 15:31:33 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 4364 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id AED5440D36 for ; Thu, 25 Sep 2025 17:31:52 +0200 (CEST) Received: by mail-ed1-f69.google.com with SMTP id 4fb4d7f45d1cf-633a4b8f6f6sf1125405a12.3 for ; Thu, 25 Sep 2025 08:31:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1758814312; cv=pass; d=google.com; s=arc-20240605; b=d1xMb5NFHfyCkrmi2e21ybl7ml3xQYhN/Njp20XCLhANi2mhJLkEuxGx3xTIor6x07 0ppy0DHxNALJde3OnvZzEYv8rVod6N4TxEHoybpOdFVetLJo2LRf6ow4L64I4XcBZ7Ig k5YiAD0LggGIRnTwZHe5eC9w2BmlOZ66L+62Vt+ZaEkHv7Wc9SAv8uNYLg2i5A9bNgXt 9tK9oriX78oK3xlNs73uy2PXRXZQC3Tx0ORUd9b6rjpA/sp4X1vjBrii6vDVsFRreipX ii0bc5UfCLBq1OowJodRmk+elkjhwnnPcBlvwU8GKfk/48AYeIe2I6PLIF4N0/m4tZ8W 0jnw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=CISIoH7+tP6tdJrhc02+SdbFxY38acgNWBOlsf0Rpnc=; fh=SW/uslL6nZnZq+MBL7Yys3CFannTVI9aiY9U2z5Xmrw=; b=cL+rOa/mgqEk5BpmkNyZUmIDQj3ChfNzH7t5mn1ICRqNP7DfT4Mcycc2HwoLwKixGj pGDzNZFk9lNfLCDD8Yw5Yg4I0AZgpyEYDePLjLYt1NyQIdNNWf6r/OjdnA0uLd1H0YWJ Yuon7oXwC0yEml7wVV8iobJjTDTu51/TOSVCgricdNEcL3d9MrI4eHjNlKDSwGyJxZxj NzG4zaJbqxD/90vSY+kMvpri+LC47gBz9gZ+xr2VmReIwZK6+TUFgH8vDvW154J0GtoR 1sMDRy1B+OGosfa+UkJsXuykrNucZmr96eZZFARMj/u5YJsj+1iMzXFBuOn3GO5lW6Kk FWSQ==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=LfCPqusO; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1758814312; x=1759419112; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:message-id:date:subject:cc:to:from :from:to:cc:subject:date:message-id:reply-to; bh=CISIoH7+tP6tdJrhc02+SdbFxY38acgNWBOlsf0Rpnc=; b=ODpK8MOY0t3ewE8+TjuStDD2YktWw9vhpmskuzxOEANAHJ6sL74cndQotbNQtHv+Em oaCGFwSUmAgowX+HC38ugTq12AQu384WIl+mtGmLh9My4STcOMHAYh8+E5CznZIjJYCZ ShUlFn3MbAoQm3hpFA4w0O3cA9ZWm+IFY4hx0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758814312; x=1759419112; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :message-id:date:subject:cc:to:from:x-beenthere:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=CISIoH7+tP6tdJrhc02+SdbFxY38acgNWBOlsf0Rpnc=; b=Em8Bj9Aq9wuQ3egXTV5muUQpYVt/rr8UWkh+bfuUh/56tMNtjI/1raK580AHPopHuh Pxsi0R+zDtqaLwMSRxk0GH91jCAwGvh2kJa9S5S71Q176s7DzpjNXUPZujNWcBf2RjRF 2EvK9TmeaLxDPrCPH+elnCHpqIrI1hK/vaZ3sce8S81H8pWNYFHhPZl/TzEBQ8A7Whqd owWtqaN7CGM825lJ7aPcvciEQ/qeg7mFfHSwd4m33FQzQSOFuLMjwOJQwtVdjTrpbgWw Ee3z4h7cqXokFBLwTmuh8507F3Ufl31a2izAbVwkK3nuECVjW+VhnP8t1iMJ7flbWoYw 1j7g== X-Forwarded-Encrypted: i=2; AJvYcCUXxlXMwWbw239xMJiORmGiRlTm9xKVGDWGTPFb7UcWcbItnEIhoOwSqohvR/3HWAhYg0HJdOsEluk++YsF@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YyuyZmhzqKJCiz7y9Yev32jtv6xUBSRv8DK/2aNCt/MpB1esLUp R9tALPoMukiGQ9uswGmDE1f4z6r5nti7qj7F68nLa8d1MwCn4GbpPSKruTdTxchxSRQcow== X-Google-Smtp-Source: AGHT+IFZC7MEGuLtABI5t1nOcIL+5Efv84yV/SFXmNK88+bkA/s2GsGK0qH98xVNtvkhGkmsXLeq1A== X-Received: by 2002:a05:6402:24d0:b0:62f:26f8:fea0 with SMTP id 4fb4d7f45d1cf-6349fa96c13mr2580980a12.33.1758814311663; Thu, 25 Sep 2025 08:31:51 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com; h="ARHlJd4jnuC8TtBdTgAQ5+vD3Rw0vvHQuseT2kB1RPbndOR9MQ==" Received: by 2002:a05:6402:21d4:b0:61c:3301:6e81 with SMTP id 4fb4d7f45d1cf-6349f6386b8ls1164103a12.1.-pod-prod-03-eu; Thu, 25 Sep 2025 08:31:49 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCX5XyuTpAOSgK5rP+B4f1fnA7ci5E0yDN1IKVyLQt0wzttZhZ75tYnE3g2Xe0IcDzGSnya5bcld35cwrN7c@amarulasolutions.com X-Received: by 2002:a17:907:6d0b:b0:b03:d5ca:b14 with SMTP id a640c23a62f3a-b34beba9670mr418759666b.61.1758814309021; Thu, 25 Sep 2025 08:31:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1758814309; cv=none; d=google.com; s=arc-20240605; b=kslcE9M6A67GtyhdDKoXtL9XagJhCmOazetmRtn2Rzs/dHJdGSIthc423BoUUkI+D/ Xp/GtgPW/PNaclteOvC3MHQydjqnIJuLhHYxLv0v475CWuKhdHQyNQ32IAGfbwjkjkcd ZGVjuNbVEjY1EYxvQaVHzpAPS6O3AcRBcDYMTukfKT9OFtrguNbuB4+Yfv+Tv0gpY6x4 sXpolHptjOHuwBqJu5i7jnrUiZfBz8LX2zCO1+8RpfBgX++3C3SdOUmgfPvwoFDnhXF4 dfn0K/JZgJNHknCS/nSNaOzd2l4eRS2UAXFdmMTbQ/laZxTaCZJalFi2hoO8tT7ZbXml 5GZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=N6M+kRPZnfzew0Cma8s8KKEI2zbCAKgyLYpFhhR2kq4=; fh=WNLIN9FAZSKp08n1F/pCopMeHxgTw0mA5bMRMC6nKS8=; b=YxGpGQMImCpR9Aty76fslv5t0KABcmSXT4KOOrItX/4l0J/TQdSQXd3LyXJ3K9UaNf lrbOuDc4q518ehWxgO4sZ7EeIaTLFwgcM+bUUdyzBFXBNzpqiGLiGvYZg/Ma967U7b5+ QTKnRH7VpesYve9HHO+QHMrKRWh6qnz0iM02oOvMfkksK1vmQnzdl0GW2DEjqgHnh6h+ /A88nxRKbwhWfhbK7lGHP0ei8Lj9/Ty/CmBw4DZv/945QQ1Y9TZCwjcLCiKjPjYa51UW xKFW38EyseZTz0mEe6srABOnyMQCOYqwZYl29b4kK7mCfwZVlK769qPyQiRmGEnJwcRi RajA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=LfCPqusO; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id a640c23a62f3a-b35442ed22dsor104042766b.12.2025.09.25.08.31.48 for (Google Transport Security); Thu, 25 Sep 2025 08:31:48 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Forwarded-Encrypted: i=1; AJvYcCV80O+PmPCK5T5tlgPbcNjE6YLwrXGDYBb56LDb5m/bAdTuCHp9SH1mc5vrb4TE/VKeDZ4AaUPPDeXV1Vs4@amarulasolutions.com X-Gm-Gg: ASbGncvD0bsa3/+RpNWnFXP0g9/n0Owq5711O106oHIvZNcV8Pj/91/aT3opWIssjLa RfjVBVPzcqeQ/AUOFNdJf3SKApoKYE69+IPlZzc2NK45pBHBx72xY4TBfccBq3VguHTzvM47a+v Q97vWS4HEhsPvzmUN5fd2mgL5Kgt9R/8XS8blBkl37/kK/rv8VPYN3u8cYDqjow11B8PcLfvFCp uM+6kRxPuNRsH5YKZRNqLRyo/4vvew7sHSkHvMVmlUVyNwBX64rzbIL6aB1WXudHIv7pUnkGlwF FOCBsbcHR3f+AJkKhM+ntiqv7Cyui6vtaFYp8WnsXkpGCN7Zgl4uh45JAaNmiffYskoeWDnQXg4 r/pWR4ve0F0Qk9QnqXsadfPibXqVsL5ey3PRh13MNNKme0LPHfYn39n80hQ4mWGlqbEe2pKit1b S4tqFsf6xTOf69xRmzzvt6vKPRrRdhhp5BfK15OXmI2bva8kngQBJDaAAAgF2pvbZd X-Received: by 2002:a17:907:2d8c:b0:b24:6396:c643 with SMTP id a640c23a62f3a-b34ba450628mr410897166b.23.1758814308519; Thu, 25 Sep 2025 08:31:48 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-82-56-38-125.retail.telecomitalia.it. [82.56.38.125]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b36f410e129sm43924766b.89.2025.09.25.08.31.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Sep 2025 08:31:47 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: sebastian.reichel@collabora.com, linux-amarula@amarulasolutions.com, Dario Binacchi , Rob Herring , Conor Dooley , Dmitry Torokhov , Frank Li , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-input@vger.kernel.org Subject: [linux-next PATCH v8 1/3] dt-bindings: touchscreen: convert eeti bindings to json schema Date: Thu, 25 Sep 2025 17:31:33 +0200 Message-ID: <20250925153144.4082786-1-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=LfCPqusO; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Convert EETI touchscreen controller device tree binding to json-schema. Signed-off-by: Dario Binacchi Reviewed-by: Rob Herring (Arm) --- Changes in v8: - fix conflicts after rebasing on linux-next where the patch dt-bindings: input: exc3000: move eeti,egalax_ts from egalax-ts.txt to eeti,exc3000.yaml has been merged. Changes in v7: - Add Reviewed-by tag of Rob Herring Changes in v6: - Add deprected to the compatible string and attn-gpios property - Put const 0x2a i2c address for reg property only in case of not eeti,exc3000-i2c. - Put false the attn-gpios property in case of not eeti,exc3000-i2c.. - Drop example for eeti,exc3000-i2c. Changes in v5: - Move bindings into eeti,exc3000.yaml - Remove eeti.yaml Changes in v2: - Added in v2 .../input/touchscreen/eeti,exc3000.yaml | 16 ++++++++-- .../bindings/input/touchscreen/eeti.txt | 30 ------------------- 2 files changed, 14 insertions(+), 32 deletions(-) delete mode 100644 Documentation/devicetree/bindings/input/touchscreen/eeti.txt diff --git a/Documentation/devicetree/bindings/input/touchscreen/eeti,exc3000.yaml b/Documentation/devicetree/bindings/input/touchscreen/eeti,exc3000.yaml index d19b07d4cfd4..930c70104b3f 100644 --- a/Documentation/devicetree/bindings/input/touchscreen/eeti,exc3000.yaml +++ b/Documentation/devicetree/bindings/input/touchscreen/eeti,exc3000.yaml @@ -16,12 +16,14 @@ properties: - const: eeti,exc80h60 - const: eeti,exc80h84 - const: eeti,egalax_ts # Do NOT use for new binding + - const: eeti,exc3000-i2c + deprecated: true - items: - enum: - eeti,exc81w32 - const: eeti,exc80h84 reg: - enum: [0x4, 0x2a] + enum: [0x4, 0xa, 0x2a] interrupts: maxItems: 1 reset-gpios: @@ -30,6 +32,12 @@ properties: maxItems: 1 vdd-supply: description: Power supply regulator for the chip + attn-gpios: + deprecated: true + maxItems: 1 + description: Phandle to a GPIO to check whether interrupt is still + latched. This is necessary for platforms that lack + support for level-triggered IRQs. touchscreen-size-x: true touchscreen-size-y: true touchscreen-inverted-x: true @@ -51,7 +59,9 @@ allOf: compatible: not: contains: - const: eeti,egalax_ts + enum: + - eeti,egalax_ts + - eeti,exc3000-i2c then: properties: reg: @@ -59,6 +69,8 @@ allOf: wakeup-gpios: false + attn-gpios: false + required: - touchscreen-size-x - touchscreen-size-y diff --git a/Documentation/devicetree/bindings/input/touchscreen/eeti.txt b/Documentation/devicetree/bindings/input/touchscreen/eeti.txt deleted file mode 100644 index 32b3712c916e..000000000000 --- a/Documentation/devicetree/bindings/input/touchscreen/eeti.txt +++ /dev/null @@ -1,30 +0,0 @@ -Bindings for EETI touchscreen controller - -Required properties: -- compatible: should be "eeti,exc3000-i2c" -- reg: I2C address of the chip. Should be set to <0xa> -- interrupts: interrupt to which the chip is connected - -Optional properties: -- attn-gpios: A handle to a GPIO to check whether interrupt is still - latched. This is necessary for platforms that lack - support for level-triggered IRQs. - -The following optional properties described in touchscreen.txt are -also supported: - -- touchscreen-inverted-x -- touchscreen-inverted-y -- touchscreen-swapped-x-y - -Example: - -i2c-master { - touchscreen@a { - compatible = "eeti,exc3000-i2c"; - reg = <0xa>; - interrupt-parent = <&gpio>; - interrupts = <123 IRQ_TYPE_EDGE_RISING>; - attn-gpios = <&gpio 123 GPIO_ACTIVE_HIGH>; - }; -};