From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1BB3C313273 for ; Thu, 18 Sep 2025 15:36:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758209802; cv=none; b=I4ZXW5fbGsfZ7IE1nJfbfGy1/PGuCExY84/8EBMz8oY43+ccrFhgPxtVgv9+KdyS7tYTzaTmdBIeLG91+FogI8ajwgDre8c+VnPaioydyulC2ZcmI4kcLioomB4KcKijB+4utCWvr10C4oG7zRwowpiUfv18icF/CyTmtVvznQM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758209802; c=relaxed/simple; bh=TLBeizH1ivp98ljtrl6wOL7+mlBI3jCetRbuKHlWzV0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IdOv1s0+15fmgXMHSL70iEXkbcZiq893X0JuZwqxCWqzuppDEur23X+DFlKlWgYV9wPNc9iQ13aigstrNP582HucDJTFZCldrfFLJv71zdXFlHZZmIDRhgR0w0utG7oTqfKXD6G/g5jCZN+9oKreCjsAXfILbrHhnPSZynmX6YA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com; spf=pass smtp.mailfrom=amarulasolutions.com; dkim=pass (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b=M3AaOBAz; arc=none smtp.client-ip=209.85.218.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=amarulasolutions.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="M3AaOBAz" Received: by mail-ej1-f44.google.com with SMTP id a640c23a62f3a-b2400dcc55eso42662466b.0 for ; Thu, 18 Sep 2025 08:36:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1758209798; x=1758814598; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=w56MkMThum1WU0dP+PLWvivQxFiwAsg2/7Wi+5KWDW8=; b=M3AaOBAzjh9xQ8jj23eRAj+iIA0n4/iOt5OnJdy0GvkUpWpjkA/iIwsRYQQasIK9ZQ E9c0LxaxXA/9eQizF0Rv8OsIYnVrV04EHei0PCz1W9GDuRxLFcHZWr10DyIC0MxsYBmt b/uch+czgtM8AHYOv3FbUNW+B1kQTUO3DeKfQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758209798; x=1758814598; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=w56MkMThum1WU0dP+PLWvivQxFiwAsg2/7Wi+5KWDW8=; b=AIjYPBNRPU41Bq50ty8LD81fTYT97Krhe5aDWnMgldGaQBtBHCNUyywkrXW0Mttyp8 UNGaTH8tlcdkMtw7OJRXvor6vVjzIDRN1dYB1/Ian0MVFDQ9jRBmYryQBIR1VoXcyx9F Dlm/aLzUQCo8xPSHB3UDQ08MPC/h6+Y3cJVpVHJmATevVpTxLnFuCf1Sxor85yfO/IiS MDEQY4K07DCfKNbsNm9VRJ1XqvEklirH0bLFBjAS2Ti2GLuo/+EeAaPoj/e8RHbgg9yV HD5k3q7IbXkwdlGmTYHew8IHsai0oPa5STfDOEY4DuikrgLtA0ObnCczhfUnbz6YCX5R uoGA== X-Gm-Message-State: AOJu0YzvD4B6ZoTNmZSlpZ9nKzK1EdEBmLAsdYzM7RletL1IxBnnrsrm K6to3Vg/KJEtgaD0hmTGMm3AgPWf0FAMszjSiWzO38Gr5DMJiAOs+ipaWJF8sw0/tWIH2E4wlwA 8TZDW X-Gm-Gg: ASbGncs150ZicboLR5olGrp5+t4OWqMdPTGcdFcb2FZnTY/IwjDcxsbTPIH36+ivsDq urSOEqWfzgXYbDAJhPqmOC25Aecuq93TjJ2aMTHiCfA2CokT7vugeIKTYn57ePOCPHnFUxpRRse CqSQWjlgFmcZ/5XBWfOcmP9GrR4D+pXRRmzZdP8SPmyocJQ0Pq4KbFmuWqVdoXlAwCVIA3a65Uk xu6NwPW6R8qQgnHRbG8Bsn9/Z7HimMFzKorg0kLJ0DI1pRyy9UqRfSqyQbNRVRcgeV/PQqpc/xf 5nNvzQAU365DXdGpqcRqiy0Cj+X71+xAKkLBWjHHEjL9MpjOwmMakkD+YHMF4w+VAOx1SsKikyb uZW3fKXxfFqAJpqCpNOKV5tdJ5t7dFZ+T5DO2/KX1VtI1PQ5ihL5aoOHopiT35udrK0Br7Y2UHR hF3s6U5kp93KqS4HXorQaq6u6XuNpfvhMaEAu3p+zvmTyqV2a/MHPuNxhnpfUIFb27iRzOK55L0 QfBeb1dMbTz0Z+8juuz6w== X-Google-Smtp-Source: AGHT+IGKq2xMUGFiPJLoivDLc3hhH8x7+T1P4XBwT2jh+b8TpeeRreLlMX7eSddPKddIg6bfHJFj+Q== 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Convert Zeitec ZET6223 touchscreen controller device tree binding to json-schema. Signed-off-by: Dario Binacchi --- 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> - }; - -}; -- 2.43.0 base-commit: 8b789f2b7602a818e7c7488c74414fae21392b63 branch: drop-touchscreen.txt