From patchwork Tue Sep 23 12:57:10 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 4344 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 220343F144 for ; Tue, 23 Sep 2025 14:57:50 +0200 (CEST) Received: by mail-ej1-f72.google.com with SMTP id a640c23a62f3a-b2636f5ff1asf72530966b.0 for ; Tue, 23 Sep 2025 05:57:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1758632269; cv=pass; d=google.com; s=arc-20240605; b=U7s7FcuOQR1KcRsQxsVricwj5wC/UonqW+lotmbloTayGp8BWo7TemG3OYnPH9Tn07 Aw29NFAXVxZMpf+yFyLInLRM6QBmCJFGBGZ9lmWi17oWe+1jWRuWDVaGCs0XCaVGCEBJ U/HthQTNjZDI9/4C0NoICuPSDNQt2pmb92nBZI7ni3E3a9mTF4q+i8j1Yn1GM68LNsom Wd0AOw7z/RZ5rsXETuk5K2ZQdHvZQNL+MqKPEGD3cTMjdzbvNXruyVMcG2vhdGCEt9gk p6vbcYaLWqRhecEJFCKm4s+sXbeHXHSRg9XzOsDem+biT1k16tt0e806WHqtmT88qIRD uqdg== 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=uHIzQCXAaNoNnCwUVW0ehKYhDkkKulaJl33Q/u113+I=; fh=oANIj51dG7Vlnyx89TuODu2dLJz3h3vvMUv8yGhwpj0=; b=QzhgEgOklN93y6150XQtoKR8qEjGTCYet3B0yM90Yv6t0Fox/InymsqQjRseUJS3zW Q8pFH9t06YRxFJRdChiTZrCH4v++pMMAuJdMTxmJuRFiB8xTfhG+iZvIi9eq5CuWWD59 E4W+eJxVXPCKefTTeq/ViV3StUckiHPMdMbF1gF+zVMAimy/duc6KKGuUi1qa4gq5SPQ nGVl16hr/RqRR6sxK52cIPBYpklzPk1LTl9a188ef9JQLLrQCY0bJc3+YWXC09eQ5KN7 XYoXXe1vbbGxp+6vHzqfIAobqbUoHvn6QJZ3nRCRE42pGlik0ZYwKfqM3y7RAK/4ypnj g0DQ==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=mAz2v++Y; 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=1758632269; x=1759237069; 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=uHIzQCXAaNoNnCwUVW0ehKYhDkkKulaJl33Q/u113+I=; b=DywMOdajeEm8oz+H2Zh3RcC6PNd1ZCxNRGR9/SY/rMdWN9CuiMI5e95W961X57a5wK apFrs708T9lLNiV8cZ+fXQ6irsP1zPdoK9LFlVR8mONmo4jilbeP86oAwybc4xXr/ygs g/yDJlhwb62Ne7bWRLjmmalueGdhugXuPiHlE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758632269; x=1759237069; 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=uHIzQCXAaNoNnCwUVW0ehKYhDkkKulaJl33Q/u113+I=; b=OG/Z3s9dSjoi0YMlxZtKidi3iOvY5hFxqcfNkkqA97NbLWBr+iFMPAQ3m78xL5Q8Et dXLlFYloLQaBYT4+2Ep4ETGPWjYF/ypHlXcwCMoMX0ZYrPu2khgN/2zv7JI5xKU90J0X NdwKF0+ZnlcQFGy5jCN+pGl/MDeIG6uqMo6HgXyAvGi+GswgRC5ogSlGFt9nLYyN1GJW TnyojTZn7cTcWTugFb3kqT7aDi1Ynsfl1UWxGGeSxRV/goFJP+QhKI6LCEnDvgQyAw8Q PwZTM2yJpcIjGF2XJUZ88CkbIhy7QL7r+kQHBZe6qt4aElIoUMvClGTGSPI/bzXbJVd8 3BhQ== X-Forwarded-Encrypted: i=2; AJvYcCV6dBL+FBFP47Qm1UHUQRlxYvupXjO7Wd4G8Er7mReirH3ma8+YvvUAVeQt1Jy/k2DCEB2tvhuWvg2gN0a3@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YzrImmhR5vQcG+r1aYYmZ85WB6nuTdaCT70bdc5GC/MlwOc0BSM diG1taxbzkBG7eM40fCaO837KLR/JzcVb8FQRHrXJ+Sl2dXJt9AjvUT9Km8lYsapJPeqUA== X-Google-Smtp-Source: AGHT+IEJEbjqzJ2VGIbMvorRxVvbm0MQ+d6jLmxfnvszS1CKODarHVlELRr3vvuo7IlFml2rpwGw1w== X-Received: by 2002:a05:6402:518c:b0:628:d1b5:d207 with SMTP id 4fb4d7f45d1cf-63467770c50mr1199490a12.2.1758632269328; Tue, 23 Sep 2025 05:57:49 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com; h=ARHlJd6Zmf1zPKffiI6OU9GwJWj8NHX2ZPabdZ7kI2jlluowDA== Received: by 2002:a05:6402:21cb:b0:628:46e0:3cd8 with SMTP id 4fb4d7f45d1cf-62fa734db56ls4659063a12.0.-pod-prod-02-eu; Tue, 23 Sep 2025 05:57:47 -0700 (PDT) X-Received: by 2002:a17:907:8691:b0:b04:8358:7d96 with SMTP id a640c23a62f3a-b302bf08fb5mr231963966b.51.1758632266705; Tue, 23 Sep 2025 05:57:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1758632266; cv=none; d=google.com; s=arc-20240605; b=U18796HkI16QSDX8RAKw0ZV8vStnC+ARLHxR0oGeOzagLti2z72/3q5Qx2xZTfJR25 ScoHpU4PwcLBCjUU51ZBubUBZ998G3gJtvjlYrJRK70QQcw5OARkSOr7Ktr/PbOIAXs9 K51BiAc2XedsO64XzehfDPBr6KpGQ0uTfZSJCoy//YBEUFcpGxkgPqe2Gf8TxeW5/YvO D56/jqJVf/QVgDStrDHH55z5L8BQm6/0udFD/AdhJ40hNCPA5Qt890EOyh2qviLIjA+d O2K2/bRX8TJjfMzRkT9N4U8Z7zqP//dFInPj28gvuD1KasKghfESiep/pZ0hMnKA7pgC zRpA== 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=8T5mtAenpRdsXTm6asG89Yn/1GY5YZzwi6jOzAE42aU=; fh=R+JWnOUF3zXwsSJ08mUwRspPVqBWxotKt0gRMtkf5ro=; b=B1TJSbqp0O7Npq60hwVrH7P16o9NDQVqxSeF2IaqqmCxY6/aNDWrL0MQSGUt38pWDz m6OPvrFtj1xQsNaoV43PJnhYWUNG2DGPpJ0tzYs4ehdbzKvYmvwgd8UhoIURSiAMALo5 alkg46EsGcXtQsD8+pkBguBTFPyeUpIXAVDQX/oxjWPFvYB+ESr12z6p5DTq5Aok5gty 0zaZLgqyX+W5zLQ8PV9i7vp0gH0EmgQ+2vjnsj5TJlH+rWf79uU0XDRyb7H/XeZc5pef VxxegahMQYaQhoj0cNWrIPHLcef2Bq99YbVb7EXjK8yoqABFjeY7qI7ch0znbnssSigX JWzg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=mAz2v++Y; 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-b2f6fbcd97bsor105086366b.13.2025.09.23.05.57.45 for (Google Transport Security); Tue, 23 Sep 2025 05:57:46 -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: ASbGncuGgM7W5jWhhi3QggU3jf4Nmcbd1dZSIuuLEsFVrIF7ly90Nh0RNHO8U/mPQNj X6WgYSH4BG+azf4MAVxqL/F+mJktL+pn+J8TS8j1vIpKYEiMqz0RiIB0HydWAi3j4uMzLU0ZOWB YncQ+DsqNLOwdSikS3y9KYViem8tsAJaOeNFICyJJ8bHdzRjE/XBvfv4kXQdDyKSa7Ygx3Gi8sI BKaF3+rUbVeFwB6prk/14mFOEpg3eW7qb8W7rQYkdpB7xak6xt/FAqrHiS0L8fE/YvMXSxXBA7I EjJJE07qhyQe/cljcQmOghrrIs3OHz3TTohgKshww6hyxuAZd/H9WTZDPpM2cFFD1gzcDMNX7Ar yd3bZD89Cz7i4l02ASMSl/fGkBqjc6jEN28SF74dnLXJWvXw2u9MzgN3tNP8xgo5VNUCJiMdR4c O/jZ7R3/2bZv0zcuGaiH0H/14NvLXm8c/x4mXiWuJXRGh+QX4eLtTacD7VmwQbdRPW X-Received: by 2002:a17:906:6a1e:b0:b2b:f498:e2f7 with SMTP id a640c23a62f3a-b302b80a6f0mr239115866b.47.1758632265504; Tue, 23 Sep 2025 05:57:45 -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-b2761cb532esm872331166b.67.2025.09.23.05.57.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Sep 2025 05:57:45 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, sebastian.reichel@collabora.com, Dario Binacchi , Rob Herring , Conor Dooley , Dmitry Torokhov , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-input@vger.kernel.org Subject: [PATCH v7 1/3] dt-bindings: touchscreen: convert eeti bindings to json schema Date: Tue, 23 Sep 2025 14:57:10 +0200 Message-ID: <20250923125741.2705551-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=mAz2v++Y; 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 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 | 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>; - }; -};