From patchwork Sun Sep 21 17:33:42 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 4340 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 3E6E23F1B9 for ; Sun, 21 Sep 2025 19:34:00 +0200 (CEST) Received: by mail-ed1-f71.google.com with SMTP id 4fb4d7f45d1cf-62fc4bcb5bfsf3635422a12.1 for ; Sun, 21 Sep 2025 10:34:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1758476040; cv=pass; d=google.com; s=arc-20240605; b=SpV1LkGQzMtip1pHz9L9+DwzUX2beMHYTcadHdM1ox5XC6AiOiVzrqNG7DZjPeVXmN E+fQgP6TH+98VQnsa+o2OBOWQvJhWdTGN6jBuBeVt7/vew5ajU+XcRrpm10fBWfB9Yqi WSh5W9zMuzpKaKILFGJ6+Klbvp8W4emEb7GFdwX0fj4X2BO2aLQ/qCOnVIShsHc4spO0 PVQ6CXsQvksOY8HzZzoOtDhY3QaX5GjpA60o7VeddEV6qVO2YlmSwig+C4sqogtGDvYA mVxuFGakq+RHhGPVptHE/g3Ax53W1y96QQC4kTJlOm9rtjL7DO6dn6Nw/KePQGM1ATM9 9Rfw== 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=OZccFtIPboRl4DsJJmkwvb7/QqwPX/c25Nk2WbM4EWI=; fh=7XuTdH0hLl+4Zb64ISkIr5O76oUFZqnaqGBlCwfV+AY=; b=DW2lZi2UgM/C3rwRKKwm2SJfHaEM9PSQrKzyc0OkrjlxApfOSLrSy9tE0SoTrRXtWa i26c4VQ2ZR601GklmRkPO+xvYn3Fz5CNfBrnVXRhdgqQV2fjUPFwnicIV3Q4ySOXq5je AHMwEu7k1LmNEsR7VzxPiyXAEF/Ez61i+Jvk0TMNqG2dxvog7cKTfilsyjhrV2HB/FwS xibWJ6x8mYRotv2K9+JoYk/JwKRQVQHn7vUmyXXPFl2HQlsr3XTzc7v5sAqz94nUxUEK ZwRzVy0P3H6Sq78Pa1hMfRN65RGgRUuzXTwcISMcqiWGOrHICalb+qxCbjPhlX/r0RVQ Vfrw==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YJjzXAEP; 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=1758476040; x=1759080840; 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=OZccFtIPboRl4DsJJmkwvb7/QqwPX/c25Nk2WbM4EWI=; b=JHGWrDeQvUA0G8098MjZQ1x0w6nxBjw4kJMal1dPAjmfIa883gIq7FeR6G7jt1wg2N Jlmw6FdfG8tZbY5/osLut+7EalhxwqZyTLjYSkT9QrZVHXrA1M8J4GAbQGTqCGx6oyAC TiqRi4jpNcCYseOVszvMTjE6N7SPehozCOIiM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758476040; x=1759080840; 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=OZccFtIPboRl4DsJJmkwvb7/QqwPX/c25Nk2WbM4EWI=; b=PoAc1SapNONcJdVFUPOzmkYVcTpjGNb0OUKHFlJG+oAtSrPv3yb8mt7SfpP70WqUOE X8HmRGUR/iv7egQc3JJACANLha2BPPy/Gayz+RXZWfn6dTwjcCvoyBw0gkwg+V5B6DY+ X4XAa7MlO+oCme4m0/pn11Q88cqzMfzdKQbGIsAaxTNTfk01biHo04kRZND9Sa34z94z F5X6kMxDI1VvxNiDT8vpxYyLlnuVi5tak8qwHYwupEK09Won5mVy8UGtxR+92Tpznt+D BFe0HvKWa2AtajNZEIvhukExxcI8jglOz/m6Z58IWnNBtnwORUHJWaaTRqOiC8eghC4A v+/A== X-Forwarded-Encrypted: i=2; AJvYcCV8bauka5U1/1Xv2+bPeGJPlOBnWsY+2/Oftc32xp7btjfSdGuHa0Sgr3P0jlJn7tp3mZXUwB84oOX61GdJ@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YwuH9hIEaK8eMHF/sf7oCn0E7VYxMp36lxW3juranqpVAHa/Xpm EWGgLU5oF+wLbvLPS/TvfLsRtoh0XMZ9OvdJb9K1+fijMUEMas2h0ml2/dGzbidHXv32yw== X-Google-Smtp-Source: AGHT+IGy2K/RbSzKfNmHhZcoRvaTgXjtG3nYQV31XJh9MMzRbzYr+iw9FP5ZUb9Pbzeq6FJN+ZDkhA== X-Received: by 2002:a05:6402:90c:b0:62e:e722:a3c7 with SMTP id 4fb4d7f45d1cf-62fc09242admr8364791a12.9.1758476039563; Sun, 21 Sep 2025 10:33:59 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com; h=ARHlJd5LZ/yWZfntepXlCiDL47RRGCcE9ohWo5QmeawZLdo0PA== Received: by 2002:a05:6402:46cc:b0:61c:8922:33b1 with SMTP id 4fb4d7f45d1cf-62fa771ba92ls4568772a12.2.-pod-prod-03-eu; Sun, 21 Sep 2025 10:33:57 -0700 (PDT) X-Received: by 2002:a17:907:785:b0:b04:6d3d:9936 with SMTP id a640c23a62f3a-b24f4cd15edmr1087030266b.51.1758476037071; Sun, 21 Sep 2025 10:33:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1758476037; cv=none; d=google.com; s=arc-20240605; b=AjJzxBTmhODuEZ3bEDQsgszYfIU+SLWxyiQyv9UWojUxeqzEEbrUd02z3jFyQW+2zi o2+ZpeJBCYQZQ9kWPdQWg9J5myljXEZDZABeLF5fcSmmhE7uXzvkUGu4rWjVV2ElPITG +Z0U1TCN5Ig8JhHxgbM1cseJ9Pf71RPhkbeDG8r9lf542XeSsAwiP8CVSTkiU+bii00S /TLZrgv2Gx+/NHa4+UIwQou9irj2bgzzaTLnP8U1o54myPQTj1LvkuHsC8UC4yVJgR2K MqEUIFH8fnTTqClvqttvh3Wwfzi9le6gRKLkjvWWaQcnfIrUki8lkAmYt87XvWo2DcM1 v+BA== 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=VlMcTg6rrPiR0yGZcHHVwQeIzN9BkasZ+MFuim5ZowE=; fh=XbJgLsKin1zNOXCa50tgYyJ22pNWTU4MeUudgKaKJgU=; b=DhsztI3YYVIPQynkCEugtLE5bDUjUfN6nBWcfIJvbbnxB0Ppbq8AIEDxxudvYOSmT2 +UqiGtENxm16rlmNw8liz6857DR2y/iy4AxElh1pBv9YTTMlR6aNh5ZeztCyizI/Y9oG 8JpR/evnh764JJVeeIfdTV4WSZo69WoPlO/iZvqXcLBOAWPQgoX1tb3ZveDdeo3cIIOz uNT5H7csFyooMfzeZJXg9RuoLtb/euT+snekXbyew7H2tO9BPjbA+F6qXqPop9MGKkge 3iaspAXJC4s5ZXPLAdLLD9RJkNV7jlYoOIGTVjehaRX0zz/4NMbCf/hhK8kjSDjPZEV1 KxSw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YJjzXAEP; 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-b29be4c889dsor66765566b.10.2025.09.21.10.33.56 for (Google Transport Security); Sun, 21 Sep 2025 10:33:57 -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-Gm-Gg: ASbGncs/Yro1OYsyHQsUfrcaMYOfjmzLz1IhKLJnPqfDYZ0UMh3ayq8APw98UZrgHA6 VBfc92xS0T6lro3vouPicS1DH6LAqv7WvSiiiohzUWg+vieohqq4wqBvji9VT9/dfbBdkGVzCNl PUG/Jnh553+K1v0tmPZ4tqWt54khpbk4Dn83k6E52URyVFwQSs83Z/teRuRkE9cNJ8CeEQdD0YV vQEuKPYdk4GFJYggOkAaA6jxPNEMQvJyNfX9XgYaEb2YLd1/lQI0WZc7CsiBUS58FxRTkszdWfr 07h3tFgaWsAvfmCxBAQN5qkxtu1aSYykn/EY4R7GNJhBfAbgh9P87DAyuzuKWAsNrDunu4MzJHs 8LFB+OC7JjHIjPG1ZNFIPlIKPg0nl/FCdVZ314PKeoTDUeUfzmdBsRTZzBajQhsOMkq/XD3/pn+ xjTpQJBoqxxRJ2TXvuhIWNd8B8tVapOxc/5fbFRH42Mtuc8Y6GV8oAFbLZgq20nN+OUWSl4cSGe Zk= X-Received: by 2002:a17:906:a99:b0:b27:95f9:e20b with SMTP id a640c23a62f3a-b2795f9e3camr589661166b.33.1758476036375; Sun, 21 Sep 2025 10:33:56 -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-b2928cd31a6sm324347266b.102.2025.09.21.10.33.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Sep 2025 10:33:55 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, sebastian.reichel@collabora.com, Dario Binacchi , Conor Dooley , Dmitry Torokhov , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-input@vger.kernel.org Subject: [PATCH v6 1/3] dt-bindings: touchscreen: convert eeti bindings to json schema Date: Sun, 21 Sep 2025 19:33:42 +0200 Message-ID: <20250921173353.2641438-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=YJjzXAEP; 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 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 | 33 +++++++++++++++---- .../bindings/input/touchscreen/eeti.txt | 30 ----------------- 2 files changed, 27 insertions(+), 36 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 1c7ae05a8c15..517ec721e724 100644 --- a/Documentation/devicetree/bindings/input/touchscreen/eeti,exc3000.yaml +++ b/Documentation/devicetree/bindings/input/touchscreen/eeti,exc3000.yaml @@ -9,39 +9,59 @@ title: EETI EXC3000 series touchscreen controller maintainers: - Dmitry Torokhov -allOf: - - $ref: touchscreen.yaml# - properties: compatible: oneOf: - const: eeti,exc3000 - const: eeti,exc80h60 - const: eeti,exc80h84 + - const: eeti,exc3000-i2c + deprecated: true - items: - enum: - eeti,exc81w32 - const: eeti,exc80h84 reg: - const: 0x2a + maxItems: 1 interrupts: maxItems: 1 reset-gpios: 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 touchscreen-inverted-y: true touchscreen-swapped-x-y: true +allOf: + - $ref: touchscreen.yaml# + - if: + not: + properties: + compatible: + contains: + const: eeti,exc3000-i2c + then: + properties: + attn-gpios: false + reg: + const: 0x2a + required: + - touchscreen-size-x + - touchscreen-size-y + required: - compatible - reg - interrupts - - touchscreen-size-x - - touchscreen-size-y additionalProperties: false @@ -51,6 +71,7 @@ examples: i2c { #address-cells = <1>; #size-cells = <0>; + touchscreen@2a { compatible = "eeti,exc3000"; reg = <0x2a>; 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>; - }; -};