From patchwork Sun Sep 14 20:37:53 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 4289 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 A17F73F16F for ; Sun, 14 Sep 2025 22:38:29 +0200 (CEST) Received: by mail-ed1-f69.google.com with SMTP id 4fb4d7f45d1cf-62f2f9f8a69sf284553a12.0 for ; Sun, 14 Sep 2025 13:38:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1757882309; cv=pass; d=google.com; s=arc-20240605; b=HEh8vQyg4OZ3HTbb6dgll4D6MoZjtCsCVgDoXwMDvhzCw27yB/6g935ATiIm6e/60l vEU0hPaxGCrIrP9jHzAB0pQVR9SAd/vxr05K2WC+j7LVcoR5aRAxID7t953wpQyoG1oC Dq3uAXeO27JFwMR52GxtLG2eIp6Da+100lqlJ1WSObwn5kolE1ewMCiVSDA0k4MvbF8M uapWeLKk5y75Pl/UWSxrCWCNZvGvqe5wqP6RqniEXc+QHG0iUejHSdCSkgYtYcwllXZc NT2oTiYnaaDa+eKVBiS5TV5DSuJcwzdu8eeVvhe+MHY6GEVr/I503m4XLU0bC0fmcxpL WhQQ== 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:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=0ZwHW6nbE/SY3aNlqYod+FcrZgRiCZJAbudCMd8gWX4=; fh=fNMJ2eOenVvuyhFesuAPbCvDvxb1jCCWcrSlCt2ayS4=; b=Eci6IkMa+gRH9CNL2JCOIYL0URMBTtBhQ3f0N9fDmBG3nXM4YhEGO9J6NyzOsbVWdv M5VrSUwuKVzEpL86A6BjrweeQlu1gOK46DFmB8BeS9M2Tte8rsH/A6fW/tlsqnA8LUZq 6rQz58n+JQmYP0qn4NLuRJBlWCcKOSoU51TBYuRyzycehir5iDIY2a+h8eyaFF/1kNt1 gX4bZs1S+5Qy4qKW8Wrucv9jpmNRF6bTBGJY8yKOvwcMngA7GB6iR9DGNJyekx/XH5o3 oNqJPFKqW+t3cN84h1G0Dx8nEANzyrKquZniX/8QzRaRZ+ebSrRUgcp6mQZ8HQ5MPSr9 dz1w==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=CkS81Cie; 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=1757882309; x=1758487109; 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:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=0ZwHW6nbE/SY3aNlqYod+FcrZgRiCZJAbudCMd8gWX4=; b=Uex+wjoD9UBh5oxRYRFS8BwsUeYVfxPgtRVsifZIF+bqRRdEo0FG9aCPdXSAFqb0ZU 0PVD9NzfvhtyHeP5aFeRMUllX0rH6igobDpfBwpqbb90xs3NpZ9Oblh5RtuniZvIWkJq Q0oXdTdynz6ttNiqrKIzzslu9Q66JRUkqm+BQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757882309; x=1758487109; 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 :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0ZwHW6nbE/SY3aNlqYod+FcrZgRiCZJAbudCMd8gWX4=; b=T/A+8NItXbr7ntLU2kf2npNEiFq8uk+pNSJi0RhsHRXr1BhN/E5gnD9BA67kxjkBnF GPjMB8h9RpSOPtyxFPZ0rcdwRGg0l7c+i0xLwKQk4ieJ7E1Gu4g56RCTVRskYiVYG8jp dum7iv2P/0mjBFR6GVAuUK7tCZ6I2LTwPI38NMRKmR7UyHuP9NPd2t0o3MpX39jb8nlJ 6gvX7V7qVngxun/NoQTYw/QPRYmJq4bhGX9wT0wc7w95z/FLz0kbrdAipNx7tH3GJfVN yDRYdbFhxvamaBzDtHDvMQ/fc8IzV8C2WF82u91OFRjBf97RSnwO4Sq4eCzJ/zazBMYv T0tg== X-Forwarded-Encrypted: i=2; AJvYcCX3Z4TkueXJZ6LWdEU5oblbDbbyGKrvzyscw7j7gKnEbUOa70RV2NSJBerHpbTcPo12aAU0SBclPW/qPigS@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YwtZX0HEfpb1FrA7tWWmzmLhkk+Sf76ehbV2PofAwGNjjUg7fEu Hv7U3WQYWFmStO+tu1plY00JLYD0vSe4dRO+0r2X5+x3HPeD6cTibsSO8yExw2suywNY+w== X-Google-Smtp-Source: AGHT+IG1VfDPImuX4MdRivQzbhXNnZCx4G+GNGZTWyRjf5DiCwCw2lqQ68YL7eHrkCFfX5IcuGg3ug== X-Received: by 2002:a05:6402:254f:b0:62f:4192:ff9f with SMTP id 4fb4d7f45d1cf-62f41930629mr898772a12.21.1757882309049; Sun, 14 Sep 2025 13:38:29 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com; h=ARHlJd54ov6yEhtkC/12U1/8TDwKG+BzrPB9Kqwcv5VM/taMBg== Received: by 2002:aa7:d6c2:0:b0:62e:c6c1:daaf with SMTP id 4fb4d7f45d1cf-62ec6c1dcbcls2346404a12.1.-pod-prod-05-eu; Sun, 14 Sep 2025 13:38:26 -0700 (PDT) X-Received: by 2002:a17:907:3e03:b0:b10:ecc6:5da3 with SMTP id a640c23a62f3a-b10ecc6640dmr90961766b.63.1757882306601; Sun, 14 Sep 2025 13:38:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1757882306; cv=none; d=google.com; s=arc-20240605; b=Wd5UB4aVDpUMx4WfKlb40eBogTQvtsz1T2uvVAYpBNuIXn5vkDjE3TWcyyDA2tl9Sx GwlOMtExiSwLw6kzJO5h3DI4MZ1aqHxpZVlYA9rv+YPU+KFLBha1vXxCs3EoMJ4lxdmZ yhvn1Qbc2e6fToxbLFJmV7Vlmj2ijBy9XJR6vcWhf6p/Jmx9mEfFlCZBfW35t5R+e+/u 8jx2mPHbYrVDqaTttb0lREmR8HAtwt0+mfPuIUh7dCPSSjhmAFbxVJkigyk4RIkSBxEv q2EWMsnBb2Ilt87+OoFKrfi+u3p3+sNY9/XMfCKa0CqisabXtQHdaf7rVChtAU+eftcA awTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=8H/L7y4Tyqg+sD/ZSblYNA7DyfUtToTD7oJptEqMJeg=; fh=5IPoofO8fd847Zr+LJ+89nR9QZf+bxlD0HrxkhpH2D0=; b=bnQpuwxALdDw9SuOLmW3BL0tH7QsxvnXVrAMwkVJOmiH6EzSzA0cnl/w6iLVLrE1bi qKeOdkbM3V6jby17CuybB4eQ9MdZTLN0KuPZizN9njdlb23thD/lEcv/f60GPdAdE/XL gTsJf4WXF1w3Z+095StSS3h1oetPGCBN3tQUat3MIu4EU3cIIL44BlbgEJRN73UBHfUf wCCk88uA2mxhqftflqAJrwdv/UVda5J9K8T52khkp1fyZ+QapoWmpSw2BDl2roEk6TxK buvkuEhIm/XyfObCCUXU7JwA4qEOsLL8MkmY+MbHSSnGZj82Cc7jLZE98RvsWfORTQsU SE+w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=CkS81Cie; 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-b07b30da0dcsor301719966b.2.2025.09.14.13.38.26 for (Google Transport Security); Sun, 14 Sep 2025 13:38: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: ASbGncurKViIcn4uD020Pq/4mwh4Mrcs0VfqGiW1ttXmfXmDWSbMuu1tf1xVA2h1FAE VkO4vUEBuI1Ascjx0KIquNvawLfkvOdeXwPyZQ29mKhkphPSYNn/wedG4+rJ+1pGxdfjsvYp4om G4cofV/yMCInHM7RYmsn948u9q2+qWPUYphe9Fj9lEM8xYI7eKQjRVFmzV1lCQTqIgtfSWO47v+ 8/v1+6rWublpxGTWdqmQtuNbLB3LTde/rveECChXjExXoLgyz3KaKXyruhexmP+NWP/bRXmLGEZ ewYloPvZ3/XGwO6iOOMz6nIMEcp6a7zu7YzAZCEhXxR8yrG00AsnEhECfWyIdGw4x4ZGGm9GYFe cyytOPd1OuAuM+3caDuLgEUFrTwhNTEGtrixY+OmoEur30cVPB5t4ZWXLvYAI7FObr0O5PhsvKh PnzRPXTsjwLyVNo64NHsphIo6LAFUsu6fpULbo2TPZDEMveYw3b9yS3qSXoKBpeent X-Received: by 2002:a05:6402:42cc:b0:627:eaf6:88e0 with SMTP id 4fb4d7f45d1cf-62ed82c5a38mr10034225a12.18.1757882306053; Sun, 14 Sep 2025 13:38: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 4fb4d7f45d1cf-62ec33ad242sm7803739a12.17.2025.09.14.13.38.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Sep 2025 13:38: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 v3 2/5] dt-bindings: touchscreen: convert eeti bindings to json schema Date: Sun, 14 Sep 2025 22:37:53 +0200 Message-ID: <20250914203812.1055696-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250914203812.1055696-1-dario.binacchi@amarulasolutions.com> References: <20250914203812.1055696-1-dario.binacchi@amarulasolutions.com> 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=CkS81Cie; 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 --- (no changes since v2) Changes in v2: - Added in v2 .../bindings/input/touchscreen/eeti.txt | 30 --------- .../bindings/input/touchscreen/eeti.yaml | 62 +++++++++++++++++++ 2 files changed, 62 insertions(+), 30 deletions(-) delete mode 100644 Documentation/devicetree/bindings/input/touchscreen/eeti.txt create mode 100644 Documentation/devicetree/bindings/input/touchscreen/eeti.yaml 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>; - }; -}; diff --git a/Documentation/devicetree/bindings/input/touchscreen/eeti.yaml b/Documentation/devicetree/bindings/input/touchscreen/eeti.yaml new file mode 100644 index 000000000000..97027914d6a6 --- /dev/null +++ b/Documentation/devicetree/bindings/input/touchscreen/eeti.yaml @@ -0,0 +1,62 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/touchscreen/eeti.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: EETI touchscreen controller + +description: + EETI I2C driven touchscreen controller. + +maintainers: + - Dario Binacchi + +allOf: + - $ref: touchscreen.yaml# + +properties: + compatible: + enum: + - eeti,exc3000-i2c + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + 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-inverted-x: true + touchscreen-inverted-y: true + touchscreen-swapped-x-y: true + +additionalProperties: false + +required: + - compatible + - reg + - interrupts + +examples: + - | + #include + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + touchscreen@a { + compatible = "eeti,exc3000-i2c"; + reg = <0xa>; + + interrupt-parent = <&gpio>; + interrupts = <123 IRQ_TYPE_EDGE_RISING>; + attn-gpios = <&gpio 123 GPIO_ACTIVE_HIGH>; + }; + };