From patchwork Thu Sep 18 15:36: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: 4315 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id CAD0F3F0D3 for ; Thu, 18 Sep 2025 17:36:41 +0200 (CEST) Received: by mail-ej1-f71.google.com with SMTP id a640c23a62f3a-b2358a0bd07sf3650666b.3 for ; Thu, 18 Sep 2025 08:36:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1758209801; cv=pass; d=google.com; s=arc-20240605; b=IM0zJ3zqBQ6Z6B+Lu4lzvD+jgtlgUrdSgGQYJeZdovxx6gLO0KVZH2wgR7iJWerAGa inCPyamRWReHd75tpInw3gj2YkniV7GqM0F7mzFyr8OOfIxyrs+FaOpdk7UUag4yx7Nb xCLAdBd6cE46LMlb9dw1nS1nlJSe1Z54LNHoO6iZjdrhZCmND0vH04l5gp+RcoO9RI3I h7mpp3GZncfaBEDQNga/Z5VFBd+Y0knVpImCJ2ZX1vTIkDTEmUPnUv7Y/nXQ9xqsBc2G dkbjuqZvjETyJgQI0ffc7YJLIIPFBOIFJiPqWM5P74XZc4zu8AqtZHyFF6ad8VYbu8ib sztw== 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=T1dGoFA3xYHPk0cnyjC/hpfxd7q1tsPE/DYt/wFSVPE=; fh=qzxJ5bW+I9ttLK8qpLIdRiBu1AouLpMWBobD2CUOXDE=; b=D9CT1sUuJh/5wQER6CizSla/18sVxNMeABIDLo757uQecunUYBL+eMZsxhHhoDfQKt 44lkuqXAkhh/hTqVe/KcOPS79yKcKWHJN8yaGbsUBJpPOB9g+cpUbSAuXDxJOx34dA0U hJH2WVjhN0TAy04dHuDsSZtgxugLbaYzFSk+ik0P/Q8lgjkH64RcarAbahirXB087xQS fsY96CgI0NPyFkkKdCZ3Lsm7bd4+91Tt73oAq52t9s6tvn0smwHFRuQSGuGpLH23098+ WS5g7OI8+v+wKZ//LwbDa3Ii5ziFKKqCzz3aBHWAhTO5Y0J7X9KRW/LSnI/e1Rsi86oz RXCQ==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=I529OoXt; 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=1758209801; x=1758814601; 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=T1dGoFA3xYHPk0cnyjC/hpfxd7q1tsPE/DYt/wFSVPE=; b=IpD9YZHC1bLeAEORbk96f7penWr8lSizB7PZGJxXrkU4dnj07YO9b5D4LloQZLVSS/ x2pS/jmYczUin12x4TxKVoISkhQnrsguHRmX8g2Zh4glbdIfmwNkuhzoe5o/nF8u3bo9 UzoF+7zmNqaTSFWRqmMSBod6vtANCGNZCMDiI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758209801; x=1758814601; 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=T1dGoFA3xYHPk0cnyjC/hpfxd7q1tsPE/DYt/wFSVPE=; b=Fd1YlDEcbEq5EUoDx/gknriHg4bd3o5DlSVPsXdDE17+hXq2GSh7U5Cg5k7XAuU9TB /13ZT7FxIFjMEo/en+HTXpXQHFWEpogBP10fxr3Lxl7Vo8zu1zV9RZYo/NNX0kueozih 1cgDuhmLpL6k3bg6GGeFIUcCdtLu/T/bV/hApr4EnnqTujgu2tAlbc3DMu3f7VKYFXxZ lIu5pSoZytvdqbDtW5+02MmoUdTTqVhVGmanF/3CM3AVBSUdAHJT4EZSiVRBFqtbTYy/ eH2rdeOLwU4tKLrV9mivDblsw4sDyja38/Ah9g0IjUxeqXSbFGmLm4/HuQHDI6ZGBMPi R3/A== X-Forwarded-Encrypted: i=2; AJvYcCU8WDM9GJr4ctBTQcFDjycCWcz2rrQWGCVIFsUai9jpiGxLHqpoE9KdMnCGwDjcXxLmlnKkvsd8htTH7J1/@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YxHr2axiu8vdADQyTA7q5gV1jFas2prKOdOzTrN8itKC0w/BT9s jyyFVODNydbLHl0FKQi+/tjz2NMo3PViOwg2RVyEStCwa18QLoRaa7jNITbZvxoqUmmAlA== X-Google-Smtp-Source: AGHT+IEO6YutMshdGRpENNMDwK5fQYGHN9S3p1fWz8JD6NuLW2JVXI/PZR4Lj3giMdmtqJf9TLauCQ== X-Received: by 2002:a05:6402:845:b0:62f:3531:d8ff with SMTP id 4fb4d7f45d1cf-62f847a861emr3081472a12.8.1758209801339; Thu, 18 Sep 2025 08:36:41 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com; h=ARHlJd54fgE29AAloJSxVS8wbpbsVcOJkm69Uf6Raycd/bvsww== Received: by 2002:a05:6402:52d1:b0:62e:e7a1:46d2 with SMTP id 4fb4d7f45d1cf-62fa7707349ls1165914a12.1.-pod-prod-02-eu; Thu, 18 Sep 2025 08:36:39 -0700 (PDT) X-Received: by 2002:a17:907:60cf:b0:b04:8358:7d96 with SMTP id a640c23a62f3a-b1bb935d92dmr767954766b.51.1758209798683; Thu, 18 Sep 2025 08:36:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1758209798; cv=none; d=google.com; s=arc-20240605; b=j6uV3Jaymgr0eFUbfgSX4JS9wzA66UJNvddEMK2OfLinR8qZVRb3BcpJok62P0sQ2N dgJaz4X52ZjZgFQ43uff4WRir47w8VzmuXLcNapRYOWdLGHOxQ3VRvdGo6NdQqghcNgB NBCk8PtgsE22qvibXRnXBFXotGPgYkSKETKs8sAFdUO8cwbaMBpSwxLg10zSzrSyFWPA gqqCp9Ebv7SkXIOD5EpdwAGFos4khFCluaBtZTAe17+P6LkW1MBFQRaptcFcCLcfCePl eVvs6A6tWdAqTV0iXS+LmLjOuHwAe6J0FcbsoHOk6D2ZGfeVxwHqnmkLsJe6Va7fMMmZ CK1g== 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=w56MkMThum1WU0dP+PLWvivQxFiwAsg2/7Wi+5KWDW8=; fh=5IPoofO8fd847Zr+LJ+89nR9QZf+bxlD0HrxkhpH2D0=; b=gs5f+hf1VwJVFpXZ7OlWObypsiplV/ZMGJCtfrAbUzsVz6h/M95VYHAfVW9f7yWMyj YnlQQv/vA80MqOVc90nDQ0Ar/6mlxUoFx5mdvq2rUL94UbDU5QGJ1rOiHU9svHkRxYIs owdNS80aRWj966+oMn1WLzreP736kraHJKtdlhaK2TIPDSPMsUtZj7UEyAbEgw5pVYEG hQ9q4QoLlUm1w4lD31btkC9a9l0a1HU8UpVBiVlOI/pr6gr/VhPHSMGJwb8LIyS+mewW thZ0yZRlLfaOC7xiRmugtgVrMMDlNl5E+BCbwuQ99EnB9YQTvEiVdKK4kdDH7lAf4sel xocQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=I529OoXt; 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-b1fcee3dae6sor118412766b.12.2025.09.18.08.36.38 for (Google Transport Security); Thu, 18 Sep 2025 08:36:38 -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: ASbGnct7uFhEuPLLOunR1c4R4ARpykvH5NvYh0L57Spz6dVLv73WH/r2F7oa8SV6Fy9 ulyTzA31n/AvT2ln4h+r6sNt4+1HqnvK3ZChEnAFgwaN9LBrmIzu7iARSDOy7FWUFbeGGUr+ijw LZ5Xhg3/jaktQYB3tgtMvLLbJVA8IQKS3NAMVwVuvyVfyR/LaIkZ2LMqb2JNqntQCzGwMHzSrhS UykAXuVlaPMYY1hosM/yHiW8maTeAgoPI9WAmZYmsLadiZAFr0LwMIevvv84tyov1tEpUz3gr0w +8kVBgJWG7XknhjVOS2NT7SiBySTy/QAMXrNzIwBA6t1jWeNFSd55h+IA/VIpquio+0CG1yoIoc WoengHJKEJ3hxozACpo7W9I3ZVtXox6bYbs1zlzPkvFkZcvS2NUwkHL8NwGQLhbCXOXwXFWrsr8 lpXvnhMtQDJ754TDpwfjamA8Cr4Uxtd4auQGw8y4FjI2NErQN66uJOuwUwba6Q8vJIXo5t04QWV l48R+Lp/H0AXobvnhrkYA== X-Received: by 2002:a17:907:2d24:b0:b01:6e50:208c with SMTP id a640c23a62f3a-b1bb226e5d8mr676897066b.22.1758209798188; Thu, 18 Sep 2025 08:36:38 -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-b1fd272026csm212430766b.102.2025.09.18.08.36.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Sep 2025 08:36:37 -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 v4 4/5] dt-bindings: touchscreen: convert zet6223 bindings to json schema Date: Thu, 18 Sep 2025 17:36:09 +0200 Message-ID: <20250918153630.2535208-4-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250918153630.2535208-1-dario.binacchi@amarulasolutions.com> References: <20250918153630.2535208-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=I529OoXt; 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 Reviewed-by: Rob Herring (Arm) --- Changes in v4: - Drop "Phandle to the" from vio-supply and vcc-supply - Rename to zeitec,zet6223.yaml Changes in v2: - Added in v2 .../input/touchscreen/zeitec,zet6223.yaml | 62 +++++++++++++++++++ .../bindings/input/touchscreen/zet6223.txt | 30 --------- 2 files changed, 62 insertions(+), 30 deletions(-) create mode 100644 Documentation/devicetree/bindings/input/touchscreen/zeitec,zet6223.yaml delete mode 100644 Documentation/devicetree/bindings/input/touchscreen/zet6223.txt diff --git a/Documentation/devicetree/bindings/input/touchscreen/zeitec,zet6223.yaml b/Documentation/devicetree/bindings/input/touchscreen/zeitec,zet6223.yaml new file mode 100644 index 000000000000..d5e132ec0273 --- /dev/null +++ b/Documentation/devicetree/bindings/input/touchscreen/zeitec,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/zeitec,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: 1.8V or 3.3V VIO supply. + + vcc-supply: + description: 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>; + }; + }; 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> - }; - -};