From patchwork Fri Sep 19 07:58:09 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 4327 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 475573F178 for ; Fri, 19 Sep 2025 09:58:30 +0200 (CEST) Received: by mail-ed1-f71.google.com with SMTP id 4fb4d7f45d1cf-62fce1f3fa8sf168576a12.3 for ; Fri, 19 Sep 2025 00:58:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1758268710; cv=pass; d=google.com; s=arc-20240605; b=ecXSV6uBqjc9LSXD7S1YUqamSorYc6muf76GQpEFITrKPHXmHzCKTiL2QW7fLYKk0h 7irwwTbGT6q8jqwhq7dTCjhCk2pw+rLGnYwvs3HkmRJRfsmaEWrRsw0ibevu6hKYJDKs DR8EqHE4dBZP1PoTDP9oi6ETKtGPkAmjH5auekQwCbMQORbEb5CroKAXq3jvGSieGueU Q9aT9qp1UU05H7sjmQLEt+A7+YIWJSQ017FyjXMt5tvW9LfTzyumPL+wB/Xdo9Ro283w UI5ewhXCjBBM3CXT8ps76I+MVdKNqQg0icArY8XxNb6mbfpR1eHfneo49RjFVziQastq 3pMQ== 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=4CJBVkDvjdVSN6jsJf4MNClzCp8jVF1nd6g/U3408SE=; fh=kdVgluLXRu674R0gOhyWgBJ0MGwTJuOh1ljdo20XJQE=; b=Xo/VXoPRslr346VOC56PvWCbzEJ6PHSSRYpHy9irOgW12e5Eh7bNJ7G45PEs+mbTlY lNLZU/yMN735H774hP6/beXAx735zKe5xvfn4gWXZTw6BPb+x19aP1xhMb5pLaZZgdOM zvEznp3Y5VH9DdTDS0mUlW2OSqd0TVZ8U9hEQ55Gnlc7RGz39NNWkhbODGC3kz/dZs2m 6Vu2/rSy9ERWNTbmfc26oPtgZ/02nvN7Vk0hL9EZIaYrE/CGP7pdaLKep8CX6Ky68O2C zsrL79kaOjgWz8t3mWRKCbtN1a2AHkV4AtpwOityUb5PsD9KcbePM4YW2nOK7TVTjvih PTvA==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="Cs/wFzyE"; 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=1758268710; x=1758873510; 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=4CJBVkDvjdVSN6jsJf4MNClzCp8jVF1nd6g/U3408SE=; b=eaEvWYWA7016FMsuxhk4HygeQiE6TmmDQytxn0wGo0iKd+vM9XbprNBP3fbfruvzyz rL9+BX1tVfCAKHF51LgZLpMT2CKKBevko/3hQSVjhsKPCMOMVoTXtWtF3pEcifPcEVow MzPgvI/yRIoHxN2gys41ytPcM64qUKA78jQCw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758268710; x=1758873510; 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=4CJBVkDvjdVSN6jsJf4MNClzCp8jVF1nd6g/U3408SE=; b=Hi5Y46mnGMSsucwEFrgEMtN5IcB1MXPMixj6Le8V4Vr9eXs0gZFc1gxInlMFQ/8RMs tmtSx/I1Z6nNvVy+fRVE1Zz592uoAT3td7ZR3tXMoiEqhJks/d9/v1gXUnAhx4RAfhX7 n14wdTouy5e3/GSyDdyU+2ydhPytn3PY1TzKVJA+vAu9ZuDPoS1zG5HtekNfcD/XeQwq EHP/bd+zMIEh6/egvyHYvGIP8iChMXOii4iSVvk58Zxbapz1DMY5nmLdpxRCTK/HYwUO ZZAgRhSzEd5bbSGajCxGC+zAQ5aoid8qJeGyB7nrAaYxypTc8VQcVfdRQ02Tlgoq0ZPO YjOg== X-Forwarded-Encrypted: i=2; AJvYcCXBb9e99O7y3Jzh3ZTNsrTD7XVU5xf5IbNCpftXzS81asYH7O7KsCFaPPqIzSrphPEWg2MVbml0U2yoNeu/@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YxltDqvi/KscpfTuE905d9tic1dlAQJjyl0NK0s4hlbT9cTqeiB 1ktSnZLv2sRNdIwizIrZfQ1Wl0+iquIOJNRcHIv5gGCr5mojUH414JZlVfcgq3VuxDIHYg== X-Google-Smtp-Source: AGHT+IGTNhxlOWknmsGAZ0cF7vaZV+1fO2KJYRhgh2uKYMTeXaF8wZXhN7Ff2b3e33l0gCzeyfJIhA== X-Received: by 2002:a05:6402:13c1:b0:62f:c1c0:d6f with SMTP id 4fb4d7f45d1cf-62fc1c0129cmr1670812a12.8.1758268709573; Fri, 19 Sep 2025 00:58:29 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com; h=ARHlJd6A/Cp1hZMotyajcA7d07kh5gaVlhjL5c21BxQgCQ+Xsg== Received: by 2002:a50:9f87:0:b0:61e:c9fd:744a with SMTP id 4fb4d7f45d1cf-62fa7352fa3ls1278003a12.0.-pod-prod-07-eu; Fri, 19 Sep 2025 00:58:27 -0700 (PDT) X-Received: by 2002:a17:907:1c94:b0:b07:c905:21c with SMTP id a640c23a62f3a-b24f4ebfa65mr276790366b.48.1758268706885; Fri, 19 Sep 2025 00:58:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1758268706; cv=none; d=google.com; s=arc-20240605; b=DCCjhnitXIPnFJP1HkRyVG7xBzOYWpSdL9gTLkXmyCNr2HbjPamKq5oEq9M4EXVyOC bsl17gGzilZNwPNgqw434P0kTmZRaXmlgBvwqO5KJyi44WBFgHRFZ8EX6draq2YB10Q4 qFDkQ7aUvFzH8XPQuu8OE8zfozgqAY6cbc5eWmRiMbeI9MXEKgW9umdpehfrKo+35Mv4 bbXK/N9IGu5rK6IHI+QlWwUjM5rdRvhrrSIuRP39+Ah2fuC2eLQQr7AWtFkBy/Y97Spq j3UQJ3jMRPYNzPpW+Ewea5EzlB6NIk+qSBcqVV0mWW8GTAGiqx5szSj0tU04mgVhs0g4 w1xw== 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=p9578/uirUkkp2k5bMsZp24lZhySSSKPvOmDT8OQ4lc=; fh=5IPoofO8fd847Zr+LJ+89nR9QZf+bxlD0HrxkhpH2D0=; b=TWz39wgYG9elDtM54ilKxaovbAjJd3vvelthvSLVWkcCqqFCM17SH9V3LFEKhWKelT 4470Ie1ICWma2WBXTS2OUeSFTgkTEEzblgDV3jSbdnnnkgrUPzJhaywh7D9BVfb/7WCN M6Nx59Kjf7WQeMLnB9PpHidMzHg2TYLpZ7UXA2z54ein9xy8tWcxzOmR3z3a9OAp6kHw z3GSqme+ojSdYACN0P6uJg5NkyMSyqySypTh00LtbcU4uihvJJo3zW2OMvvet7rNxRFM XwW9BchknIRlXzM2HzphhCw7wHAKl24DbElmOrSDNuZym2Wc9xlmK31T+UHtAKD7/hVc cLbQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="Cs/wFzyE"; 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-b1fd1c82c18sor167620466b.13.2025.09.19.00.58.26 for (Google Transport Security); Fri, 19 Sep 2025 00:58:26 -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: ASbGnct4wsYiqeTGwXlTnoPa6WbrXdW2VKYOzSQOKo1306HUb1/cc2FbnMVdb29PzBX OGYr2p3JnK8HLVkeWhfGgQxAeZfOIEQWFzebsxKJW5ssPX9W+kXC3bePAJlldsPhDv6cuaoTXEY EACWOOBd7VOtFodAYRAMhzvDJ22uiHvz1Gdeni5Wx54BoKXyvpR6kt4EyXws17DXtYfEAOKT0qx Fk8FsjRH4V7DHcmZ/A74glP0sm7wIhC/ijLVJ0RFN3B8pXFTf4iBeovbWYak6JzKh34qpbhYvpx lzmIA13XNB58qkF64KwZj3dUXYGrYopRb8sKewMd0vtK9oecF9UNP0sCUImp5lkpO1vauS5K5cU nAbXbCKbGPyXIazwCv7pX0Ifsx7b0wkxIm+wSBVtMldIrJuK8xuTTVUz7iVrmWiDhoybSqvAvnj 3OiOGCDtiX0MMlMGJlbfJWccgoi5WLOKjU9isgvTaeSQjZXkC54Xu/N2B655k9wJZH X-Received: by 2002:a17:907:3fa0:b0:b04:26f2:b83 with SMTP id a640c23a62f3a-b24f3e58447mr184128366b.35.1758268706330; Fri, 19 Sep 2025 00:58:26 -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-b1fc890cc98sm384693466b.49.2025.09.19.00.58.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Sep 2025 00:58:25 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, Dario Binacchi , Conor Dooley , Dmitry Torokhov , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-input@vger.kernel.org Subject: [PATCH v5 1/3] dt-bindings: touchscreen: convert eeti bindings to json schema Date: Fri, 19 Sep 2025 09:58:09 +0200 Message-ID: <20250919075823.2557865-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="Cs/wFzyE"; 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 --- Changes in v5: - Move bindings into eeti,exc3000.yaml - Remove eeti.yaml Changes in v2: - Added in v2 .../input/touchscreen/eeti,exc3000.yaml | 41 ++++++++++++++++--- .../bindings/input/touchscreen/eeti.txt | 30 -------------- 2 files changed, 36 insertions(+), 35 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..13b865d3ee58 100644 --- a/Documentation/devicetree/bindings/input/touchscreen/eeti,exc3000.yaml +++ b/Documentation/devicetree/bindings/input/touchscreen/eeti,exc3000.yaml @@ -9,15 +9,13 @@ 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 - items: - enum: - eeti,exc81w32 @@ -30,18 +28,34 @@ properties: maxItems: 1 vdd-supply: description: Power supply regulator for the chip + attn-gpios: + 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: + required: + - touchscreen-size-x + - touchscreen-size-y + required: - compatible - reg - interrupts - - touchscreen-size-x - - touchscreen-size-y additionalProperties: false @@ -51,6 +65,7 @@ examples: i2c { #address-cells = <1>; #size-cells = <0>; + touchscreen@2a { compatible = "eeti,exc3000"; reg = <0x2a>; @@ -62,3 +77,19 @@ examples: touchscreen-swapped-x-y; }; }; + + - | + #include + #include "dt-bindings/interrupt-controller/irq.h" + i2c { + #address-cells = <1>; + #size-cells = <0>; + + touchscreen@2a { + compatible = "eeti,exc3000-i2c"; + reg = <0x2a>; + interrupt-parent = <&gpio>; + interrupts = <123 IRQ_TYPE_EDGE_RISING>; + attn-gpios = <&gpio 123 GPIO_ACTIVE_HIGH>; + }; + }; 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>; - }; -};