From patchwork Sat Sep 13 09:26:54 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 4280 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 AF8BE3F16F for ; Sat, 13 Sep 2025 11:27:17 +0200 (CEST) Received: by mail-ej1-f72.google.com with SMTP id a640c23a62f3a-b04469a376fsf351994966b.1 for ; Sat, 13 Sep 2025 02:27:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1757755637; cv=pass; d=google.com; s=arc-20240605; b=XDHtqL7x/+RUPBg4pkMKvm23LGu2UhWcvrKuFsfXPkeRYgSAA7zIF0DIg/ljaKtlrX xGpW236fNCy62PCG1ssITCBDQT65ejukLW8zmmuZ4NUfl4YWV0tNlkKdr03cvHNcOJe1 7/E3AqbzFX5OIX/47w/vWqdj+fkk3/m1tYPuLy8l7LhQlKDKHVZK33SrspgLE1iG80KQ KfdJo2iKcvOCq91qtzA7BLrpvATelNdM4stxfNpEI5hu5XprI91zswWXmIxLKTPW2VEI nor9x3FrQpcJZ9cwo0vn5q8ZFWtNF55T2FC9J4wVnZ3PgjpPQYdQWSQqWGJ/Ow2AvFQe /zqw== 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=49/aHv2fLMw0k963ALHGEW+9wtxt/7WH4c0sFwPwsFw=; fh=h2//M5qioOkjWKRqxq60AhWsC7Nivc/zfmUcTAcjlhI=; b=QrT5abh4CsPaw5xEvbjwc+QgftvvDquhpFSWBNDKQR7diBetf70k26rT9y1b23aga2 NLG+ZtN/ylxEDYpAJPTfemZUUdI+wO/dY8rLXmwPaAlb/yazP7FC/0lUoCKTLrIRV1T1 uAjBbidAwtxd3eZHbKasFzl8u01CFTTirD7ofNeRhxenkqzJ96sX/tPfEeKjnNtg6tgp xolv3jLiPAfBITdVaYmrcOyr9sxitG2p9CxHo2uViRjzgWubZO7cYhPa8TqNQv0fkpc3 Oi3+XPSEaiimp3QwWosqgiYAjdATsSfF5renXa9E4hxAv149WQBtSI65QvrAO0i9ST1W SReQ==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=BVYJeSL7; 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=1757755637; x=1758360437; 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=49/aHv2fLMw0k963ALHGEW+9wtxt/7WH4c0sFwPwsFw=; b=PdhGMCzMqYfz30x2FvqixdXpr77kETSBbUF4GRYrhF1JRplWJlKsyENkYjk5m0A8II 77ePg/4qHCBsR+Chn0AAeXzfr2LWM3NLjmo6pQJBBSCR6VD6pQu5QQ1KdANT+LUiah4B J7QMfPU6enfM0rsQql4LCjwCKlyrnO0xX8QMU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757755637; x=1758360437; 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=49/aHv2fLMw0k963ALHGEW+9wtxt/7WH4c0sFwPwsFw=; b=iTIY4CB6RMANRuZr8c7NOENz54nT5hj/heOivqxiBpAgymmj9Btw88+TumUsAUFjKS jztw4qbYzGrEofdIiT5b3PTgwThQQaWNqSPfqmlAc3ciuT7bPNCILhQ2LKLj+2pL5MJB c8vayxIgcxxczLnV2iiZF5oGVtWbe71FX6lzW7nilGoX+BxFI6eG3Oua5U/3TN8K8A8P o4cgcqOODdxWzjYJN2j2zeG6k9eK4bwLoOQaRjCgko9XA8npDo/778OTawznysXFJTVh Z/jJKMzB8C3bT6EAGs/7sNEO5+yHoY2hme1rwGZ4QfufFsGx2vgCbkx3FJtKXnkhD1Ow uvHQ== X-Forwarded-Encrypted: i=2; AJvYcCUqLZ5YWu4vUzCyYtuWFnLg0QFv3H4WnZUdkROJ7ELOofB19Qgf3zEE/kIl9BN4386hBbl4N3bbcJEDKRVV@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YxBJbWbgEHhL6Q/M/ngrMJDpLcS7tbj9beaqk16HE9vRLQBKTon VTrE7xaFnI797CHsiby+vx3ozekT85PmXD96qgJNPrQ9sDVvOj95xrummSmvu6rMGzJWdw== X-Google-Smtp-Source: AGHT+IFJDce/3DzdhKdGH+ObSA6macq979M/h02ebkO759tQx528VT0L06YwLd9Gk5RcpsBB+rQiWg== X-Received: by 2002:a17:907:6d08:b0:b04:26a7:f77e with SMTP id a640c23a62f3a-b07c3869126mr554140866b.51.1757755637265; Sat, 13 Sep 2025 02:27:17 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com; h=ARHlJd6kbFjavy6Ify1UUKiHwq5/T2CzlgvFE462RWO4/8OnJw== Received: by 2002:a05:6402:a0dc:b0:618:8cd:5cc1 with SMTP id 4fb4d7f45d1cf-62ebe040a75ls2715520a12.2.-pod-prod-04-eu; Sat, 13 Sep 2025 02:27:15 -0700 (PDT) X-Received: by 2002:a17:907:3e9f:b0:b04:a1ec:d06f with SMTP id a640c23a62f3a-b07c35bcc13mr621385566b.25.1757755634763; Sat, 13 Sep 2025 02:27:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1757755634; cv=none; d=google.com; s=arc-20240605; b=HFYuyO7XuEVzj4nu1P+mOJwTM+IaAOUKCxU7gZj7bdXSNgNn8grycCBZshbz/kN6u2 uSyXG/amMr0KNR4DtBIXxBcEOniVkkBeYvm5/mkwUWY14gHfdIsewON7vunfdqtDXO+C MIQCfDRr1Ju8PzWrmEcDWcjxyfkqkzoq3Lvm1YanzGLfuXGQgZx9Dgmfk2nGdZLEqwZL jj1CVY6D3CXeg8fIN9jYp82r1lx0IibPBcBo5eeCvIvQEyZ8FptXCXS8bDPZKCKCHLd6 LsrlaVGSt8PrtJXOhu3ywNcfMz+4q0oOS4Qv3frr4bWbnwi/++mLAMisgRCjFc7mX9p6 IzQg== 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=Q8sTG2aW7CCN6Ok61/8IbQqhCfdouCWd9pDONO8Yrxw=; fh=5IPoofO8fd847Zr+LJ+89nR9QZf+bxlD0HrxkhpH2D0=; b=YU52PPojO/4MMPfFcRVRPRhI1i1v/hXC7m0fRCzbKI8lXg6GHsRDTtBH0ldVn1lHu+ Q4NzmEoVHMZjLUcS/VVXKBRtyRVKczEO3q2q9/7pL4LOdJqSGyY/6xrTkA7xDIu41Lr0 n/wa4SscECHdg6GqvThPxqCtqn/aWSrNMbAD4yhlkxH164/DbWQX4xBiYEJoUeyxqDwn F7UAuj5qQCriF2xqmMEiAHIKbduuswygr+RsTLBt5J7aTS4rpRF2XCF2wlj89FtMwebg VQg47EQETB0Qf9Cmz94O2RHcOWCDcTaHgzj7JurjllpuY7bLQi6wt2QbIxCZasehU3He Vl+g==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=BVYJeSL7; 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-b07d7873a60sor87906566b.13.2025.09.13.02.27.14 for (Google Transport Security); Sat, 13 Sep 2025 02:27:14 -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: ASbGncsOW2Vxmcdr+Uxv8ak+vHR2IYQbt53YwNxU3xxhfs10qeQ976qQwYjQf9kLMeZ hDMXjv8NuE8DZxMChTN3AtoEXdQpl+3+PaHjnNO5hUxB4dP74PdJby4EtQhsZx/Yt3/iCtvWcyo WGJx5kogDq+Co5RXBP/lpAE2pyL3c6T7cckwP1Xj9iX8+lI4MOO7JJ4hV/YqqaVVpYCSXYYfOa2 iVoC7qcC1rjPJY8JJzU+PDz8J4dfifBQUCksBZVrpCwAw0QX3WxUsQLQqIsvNXkbgP1d8PaayOG YdVXPzX9crLhGEBrKb+IRPHKFt+b0fIF68a0lRA5YF0nYajJSFaSY6p2QWLBGM8aUvUrPvWkR9K kVjmnhPJ6nKX8OvShTQSOKpVguaazZ1AnzdllAb1oRl9G84sNGdeqXaHjERiUKLpT28AEqnMw7v eLBemKC9AfVeZA5m0IQPpI4gNEaxY6yJW8f4wC3/euZzFrVNaw1nCNqxOjW4IdxaiIIvYaqWFo0 MLHaXfPKIvOlQ== X-Received: by 2002:a17:906:794d:b0:b04:8701:7304 with SMTP id a640c23a62f3a-b07c3546e64mr582834866b.10.1757755634269; Sat, 13 Sep 2025 02:27:14 -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.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Sep 2025 02:27:13 -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 4/5] dt-bindings: touchscreen: convert zet6223 bindings to json schema Date: Sat, 13 Sep 2025 11:26:54 +0200 Message-ID: <20250913092707.1005616-4-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=BVYJeSL7; 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 Zeitec ZET6223 touchscreen controller device tree binding to json-schema. Signed-off-by: Dario Binacchi --- Changes in v2: - Added in v2 .../bindings/input/touchscreen/zet6223.txt | 30 --------- .../bindings/input/touchscreen/zet6223.yaml | 62 +++++++++++++++++++ 2 files changed, 62 insertions(+), 30 deletions(-) delete mode 100644 Documentation/devicetree/bindings/input/touchscreen/zet6223.txt create mode 100644 Documentation/devicetree/bindings/input/touchscreen/zet6223.yaml diff --git a/Documentation/devicetree/bindings/input/touchscreen/zet6223.txt b/Documentation/devicetree/bindings/input/touchscreen/zet6223.txt deleted file mode 100644 index 27d55a506f18..000000000000 --- a/Documentation/devicetree/bindings/input/touchscreen/zet6223.txt +++ /dev/null @@ -1,30 +0,0 @@ -Zeitec ZET6223 I2C touchscreen controller - -Required properties: -- compatible : "zeitec,zet6223" -- reg : I2C slave address of the chip (0x76) -- interrupts : interrupt specification for the zet6223 interrupt - -Optional properties: - -- vio-supply : Specification for VIO supply (1.8V or 3.3V, - depending on system interface needs). -- vcc-supply : Specification for 3.3V VCC supply. -- touchscreen-size-x : See touchscreen.txt -- touchscreen-size-y : See touchscreen.txt -- touchscreen-inverted-x : See touchscreen.txt -- touchscreen-inverted-y : See touchscreen.txt -- touchscreen-swapped-x-y : See touchscreen.txt - -Example: - -i2c@00000000 { - - zet6223: touchscreen@76 { - compatible = "zeitec,zet6223"; - reg = <0x76>; - interrupt-parent = <&pio>; - interrupts = <6 11 IRQ_TYPE_EDGE_FALLING> - }; - -}; diff --git a/Documentation/devicetree/bindings/input/touchscreen/zet6223.yaml b/Documentation/devicetree/bindings/input/touchscreen/zet6223.yaml new file mode 100644 index 000000000000..a126f3f369ea --- /dev/null +++ b/Documentation/devicetree/bindings/input/touchscreen/zet6223.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/zet6223.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Zeitec ZET6223 touchscreen controller + +description: + Zeitec ZET6223 I2C driven touchscreen controller. + +maintainers: + - Dario Binacchi + +allOf: + - $ref: touchscreen.yaml# + +properties: + compatible: + enum: + - zeitec,zet6223 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + vio-supply: + description: Phandle to the 1.8V or 3.3V VIO supply. + + vcc-supply: + description: Phandle to the 3.3V VCC supply. + + touchscreen-inverted-x: true + touchscreen-inverted-y: true + touchscreen-size-x: true + touchscreen-size-y: true + touchscreen-swapped-x-y: true + +additionalProperties: false + +required: + - compatible + - reg + - interrupts + +examples: + - | + #include + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + touchscreen@76 { + compatible = "zeitec,zet6223"; + reg = <0x76>; + interrupt-parent = <&pio>; + interrupts = <6 11 IRQ_TYPE_EDGE_FALLING>; + }; + };