From patchwork Sat Sep 13 09:26:52 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 4278 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 798143F16F for ; Sat, 13 Sep 2025 11:27:15 +0200 (CEST) Received: by mail-ed1-f71.google.com with SMTP id 4fb4d7f45d1cf-629f069572esf2833249a12.1 for ; Sat, 13 Sep 2025 02:27:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1757755635; cv=pass; d=google.com; s=arc-20240605; b=MnYTArOnUxYGh27YMaqpiDnxYW6FYJlNayRxl6nT+YID9pTIfx4DWhUdVIf2xy3lmx h0KbEh0XfM33Vk/qop5GdNc2UACRo/QywzhMTsEiGTb2zzNqp0cMjQvukbqRNhy1cs18 Cqq2e6SdLLVKz1JmJxavu5BVQFChasY3PYgOVGkZRJvC3jlDI09XZzJIGsvp+2CGoWgH 1Y2+tHfRDxgW/G6GWS7FPiHWFkgO4XkMUFgbH0kfTokz2G0czJdtHNap4CLoMcSxdw5G /PWxmLOYv2IWm9Y+3ydjY0brgFoFM9oCyYcNYVLvndOnKLSBeD54sUkctuWMfXsBjxJ3 NVcw== 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=m0PBs+mk641yogYYKOaBrqKwiLXoPA4U1ZOqTRrAUOE=; fh=dNIEQ+bdWRsVQzL4VIfI1sFzAQaqyYawVTO4ArWRhkk=; b=GNXhrJ1+rHAfon1bvztTSvqShokrQWZqNHLMiYjE6nRY3PaoVOuEY7H6pbZUGcltM5 Wj3DlqZ09nSpebOCaFGe1YieQoi1zl6dcCiZphtV7VxpqV7UoAbd5dSCPvOJsrX9KeSS FNLeGs7k2Mx5Vtd/RM6wD5caH6wxX+rJxkOyZmwLzw8xa+8aUWO/+WM9ZcGayaFkMtn5 EIzOx0SZI3RUxZnTvtUu7oAWzB5JgqWkxLWb3DFv9Ugg3ogrgZOSmRta0Y/2oAjt3Ebs htkE4p9uDvdK9IJVVLfWttZUqtDtAPT2714+bAOOvFmz4gz+LB40EdbF2k846zhV1PXF yg2Q==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=CofzrzH8; 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=1757755635; x=1758360435; 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=m0PBs+mk641yogYYKOaBrqKwiLXoPA4U1ZOqTRrAUOE=; b=hCKuxZbchMOsSiqOWTlpRX1We1Rixj2EbZGAqcyEAw9lMRxVnD53ClxMt8qdRkD2P5 jdwc4Z/oCQgclUKsNaIfmrS8OyvzckxYI0yjWGGjV2Qb9ECfW0kvr9J9nehxiFrwpDrd 03qCS0sYgxFV0QHRTEWdzOycZvBYfqsHomXAc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757755635; x=1758360435; 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=m0PBs+mk641yogYYKOaBrqKwiLXoPA4U1ZOqTRrAUOE=; b=OzzvG8qXldTq1SSyTtf9of0avRyysdCmM2c3+IXz+44xVjmoTAn4ZVG2nl8fUFhRY1 8S55gK8ROps0w/dUerIMMJKDMMR9mNmO2c8Va88AWnXEPULbjfcB/RTmT/gm01IRvnZm QGV/QrQBgmJlTpwI3l9BygYzjh/05CslQGPEs8TtEThcVM1liXTIF0wzdokX06CcFqAe nGFmMD1Gj9ulDLbUJtFqfHsq+3iJc+cc9uibQyg9mxDg5j6iZfgNP5fgMPbLJuSlGigG tfPIiR/Vp6CLjFLVSlg9miGfT0SdVqwcGfrC03uR7owicCHZdXBNdSJ6Kh6DpuxK+iI+ 5qRA== X-Forwarded-Encrypted: i=2; AJvYcCXIFwZvv7wkRg53gwmLEj0sWMyLXWt7iGrX1vijcqHLnoFlDl4VnzRVJhss2P5EZtXXwnXKalDc0/ffxFCb@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YzdZL5bQXyULMET2oRtv4YvQNvkVZzQW0Z1QRzLoYJWZAdkRh8g IL9FTtHjs6e7Ipzk+MfrMHKit8aMoI5/BpH6IcGQN7WCtzt5v/LMWMwbeFmGU6zMAyiALw== X-Google-Smtp-Source: AGHT+IEPxNgl+7FVJ6dNMHKh7wjQfqPtmtVlQGi05Ji+Wk0X0gkE3OktjomVzC2QsHPFAMotnmN8ig== X-Received: by 2002:a05:6402:46d6:b0:627:9942:19a0 with SMTP id 4fb4d7f45d1cf-62e7ad277c2mr8314338a12.12.1757755634792; Sat, 13 Sep 2025 02:27:14 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com; h=ARHlJd7lUPswpTyPupJX+iPkLDtwEo6hqwoBwPYjOC80jpSUmQ== Received: by 2002:a05:6402:b7c:b0:61c:21f1:52b9 with SMTP id 4fb4d7f45d1cf-62d343b6c5els1454735a12.1.-pod-prod-00-eu-canary; Sat, 13 Sep 2025 02:27:12 -0700 (PDT) X-Received: by 2002:a17:906:6a19:b0:afe:d4b0:c0bf with SMTP id a640c23a62f3a-b07a6483849mr1080519366b.17.1757755632225; Sat, 13 Sep 2025 02:27:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1757755632; cv=none; d=google.com; s=arc-20240605; b=ZEtjzwV53Gzqxj7B4uDC6DAklfGOzs2kfHdeJd682XTYiimF2q40s8k55FJoq3FpKQ PWVHlyFskd94zCL1GxctSwBbgZwpm4l/ZW2JUWxMHmjRiAUTPpP5Y4W2Z7OckzdT6O2q E9LGNxCyPf8/lPP7JQekryt+aW+p5Lm6W1MugM2UjWdzlz3AqqWbqohQN0xlKB93YQDn OoSlk4SugzhgUeEmo2hcGGF8/kFxI3Ns5rdbdyGuEApGEYiywKYIVWCZWt/6Ge9KgCD3 3X6OWFmqs+uzQ1/LxGt0vgdiL0xasbNTBO6sH1QXijYv37iQ7roZxdol3XZIUrf297mM PtQg== 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=sGiYHcgbQQ/Nll0kzwHfCK66y6f3gzxV5kd/8fXvCFw=; fh=5IPoofO8fd847Zr+LJ+89nR9QZf+bxlD0HrxkhpH2D0=; b=WklQtr3oVl0xHeimGPIkb+v69aE/c+b7FwotVabImUNSman4W1dnG/7XceMAEsM4L0 xWSYeE0gwHXOOEdB8UHKobHxgAXSyRyLw0FIcTYt+twgmsdlsqDmWbGqdq+TQzz4Jg1p HpNKSE2HUJXwcQjEj9/yhcA4Nh+XokMCmZBlf0AuCnW7MMBYxEswtPtYycMz9mcJrtGz M9DJGgLOaQIj9XRu49TkhwYqPjvqTEoYcnd2E+TcDq2ktqLT+0wAbhxtyu9SfuSmsDqv SH7rmVoB+vL2YyJeKcr5FHNGaoxXc2lmofJLr39yBWxYpMAUzcw80XGkvaWw1vpMRmsD oinw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=CofzrzH8; 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-b07c59a953dsor120887966b.3.2025.09.13.02.27.12 for (Google Transport Security); Sat, 13 Sep 2025 02:27:12 -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: ASbGncsjUJJyDmtgWrnilKnMwWgOMdxgBzagbr9Usg+E9KluNio+Z5GaJsZ7qoL0JWr J6H5i8fc6U/Vz+FWxdkCAo1ThNj9tzQvIwXETgqyU5C8hSv3racCgCdMQUrLX32eoPhPadTMiM/ o0jx6300V1T3yQwDl2TEXmBrR1xntFJpzlrULd7KxjGBSK5D1TCqnFOf+4Rq9r4l5irlNyAYzD1 UewbcZoZ6+Okv8RCNi+dABe8Lj8sVoJJMHDTHBTJVCFqQxN0uojhsrBlo4/Q8m8kLVFC24d4C2q gv2l38McyEensMUpUYB/qg5XE5l90qcL3NRbXbLXwmEdLp/JxDOQJa0iAOWwyOXyeUjja65mC4M rd/HOj84ghnJ1uRzrbfngs5viN4lIBtsRi8tXtcuolvDtuIjSlYNo5pzVmxG7YaQN5x9hj8Nw4t 0qkVG20YF/JjlRc/RM8t2r/WGWz7rRS1VNnx1mSH5MNls4hm54jHaCs0XV5p3MjafqBcz+IJE7o 1E= X-Received: by 2002:a17:907:7e8f:b0:b07:ce0a:9e83 with SMTP id a640c23a62f3a-b07ce0acb88mr418283466b.19.1757755631742; Sat, 13 Sep 2025 02:27:11 -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-b07b33478besm551705766b.99.2025.09.13.02.27.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Sep 2025 02:27:11 -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 v2 2/5] dt-bindings: touchscreen: convert eeti bindings to json schema Date: Sat, 13 Sep 2025 11:26:52 +0200 Message-ID: <20250913092707.1005616-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250913092707.1005616-1-dario.binacchi@amarulasolutions.com> References: <20250913092707.1005616-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=CofzrzH8; 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 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>; + }; + };