From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (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 B31152E7646 for ; Sat, 13 Sep 2025 09:27:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757755635; cv=none; b=e9EVqLTHbCwmgnIlNa+47aS1TqHbUim9RS+uQ3UwGaGdKdqM+ZZ1cu1gGTae9XEK3x1kXQ3CEL/wFrnhK0CZKAMCrbv88tugzWfOtEPx5ZnvfpJ+bTX74DLV2DZ2rFVt46CVllp/XwJBQs53cYpT9lawkqcjdZsoRhvGBocTa9w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757755635; c=relaxed/simple; bh=nRK6N+Ibsz+2z4xifM3I2UIZS0TgjnsJr0Q7E1AwGDs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=HyVE8Md4AzYsJGtGy2q/2xWOweO2dXJ+cY7y4Rvv/8o6FsCD0CzH4qOtXcBxtTmBvQ3FpNJDu+bwaM6wneusYmLa8dIZP7SSdlWZ9DJ9f8rG8+fPohcHnPeDZOtWdL5EUNfgOaXM7rOw/JVl8HM43RZVSdfRD7ojorhTVyXojz8= 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=ZVx3MwVe; arc=none smtp.client-ip=209.85.218.45 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="ZVx3MwVe" Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-b07e3a77b72so61578466b.0 for ; Sat, 13 Sep 2025 02:27:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1757755632; x=1758360432; 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=sGiYHcgbQQ/Nll0kzwHfCK66y6f3gzxV5kd/8fXvCFw=; b=ZVx3MwVe1XJrBaauErQwVuBgWNzleGGUGPUTIo9CVO59rlb026SK8KtZKPkGgL2PMu fjanVGxCoMteurzmySzPWJhHUXCi3mMTDcutXTKXlW8S1K8m5vwYXfGnq6cJDsGns/F6 8Y+KGgt9DBvtz87xogrtXWFaAhYSJuYJYiVF8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757755632; x=1758360432; 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=sGiYHcgbQQ/Nll0kzwHfCK66y6f3gzxV5kd/8fXvCFw=; b=LPsXcFyiJXHG7D1rKnkKDiaVg6jFij74FM49jIjPXqt54UJstILtkqSH2KyfR0KEpq 44I47PrS6GUmZBYFR3hGs0Ic+B6Q9vEEHRMNQQIa6+6YLwox7YWnkx2HCxCp5Qod6lRE wPRUlm/VOrF6VnrniFS7CFdRZbeNFQVigcpPCpO8SC5A2FIYkzxZ0N2yqt5BCzHYnlQc Y3tk4nF3UPITQmdH4A2nbrfhNbmolw1jA9JMS1+c+eIzPGUbUsa42u5KTLgI6fp5Fa0o EZy/Jka6T5zpLN+7yEQNb7Q27SZpEZRM97z/Hl7VsUU44RRSuwxQMOnPHDfu9BHm6MWJ YvRQ== X-Gm-Message-State: AOJu0Ywa/KV4wu77G8H/G7WK1Ir9UJ0ZPp4wPm1O/t1qSTDUDU6XNHsa cvqN72r6sQwHaA6r4nKpsM7twnJh6QU2RE1r2ZhLu6t9azs6lkqVnJaNDH1+op4OjaE1HbRgAGa /RPdf X-Gm-Gg: ASbGncsWIHmCjTg1q6wOJzuAp31VXZefCsnBM+D+1rZfRgtyfHem/o9IiMctk7uMZjU COPXdzBCSIuyyVQkKkbym3O86p9fTKKXftG3UFNmC9RE4AwSGkJMqbBa1Z21x8xzVLwy2UzEjHA 1X2Mncm/99OZdDOCnbJCvs8V8V4MfH0VjiR+J0d8GinUyg+aAAv73h2TWMDZzXNgZmGQ/ihrB1B x/AjxaTLJ+WR8M6sgZYOSBRBXNW20xrs6BuGhd+NdoQiFhJmNW05QtCdv1fOrawkXoRqa+BcIaD IfI3t25CpoHQO0HIX77GH+RokcyatVqcTLSO2OHtL0SNEJKV822YQJj8IREnXuoHTJYWoW65kws yOwsOfNZXC/T6TQX1APRjAAH995aF/dHq0K1boHmKDSmax3DLFXTEwbRknjHYq4lvWIkav9jo/X mv470lQcakKZn3PYCwnwF3ZUCFfqnzT0+reGImVvuq4fl4ldmqrMLmKFwD5foeG1NxES4o90M1d 3g= X-Google-Smtp-Source: AGHT+IH05Rn/x9o/hdxCiRVMMVQ9w4BOGhkCvWvTVCa/SXrO6Fxr8UGUrSZ9/1YOcY66AtOtIhmc9g== 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> 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 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>; + }; + }; -- 2.43.0 base-commit: 22f20375f5b71f30c0d6896583b93b6e4bba7279 branch: drop-touchscreen.txt