From patchwork Mon Feb 26 21:26:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 206933 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp2343491dyb; Mon, 26 Feb 2024 13:29:22 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX8RMUwFMFK2l4OYNMPGUa2vosFgZtly9cKRBGQMnr6ar4coQ48yRRoOz0fqF2mbViFtscLTET0gGGHvM74QplKrcMWwg== X-Google-Smtp-Source: AGHT+IFG8dm98RfP4/i6ObFnzCqrQ8QVjn56pp+wL8AqtSy+VySinVR9cFnpRxIYF5BTcFJ5IFC5 X-Received: by 2002:a05:6a21:3511:b0:1a0:fd53:740c with SMTP id zc17-20020a056a21351100b001a0fd53740cmr408099pzb.22.1708982962333; Mon, 26 Feb 2024 13:29:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708982962; cv=pass; d=google.com; s=arc-20160816; b=q6loFAfa5GgsHFqAQlD4VdnrZcLnk7L6QqQ6z65CGA9QJUlzsu1vIYUn2+UK0VvTMK QJRojPLlckVmrtN5p3evRjitYYYxJu/tcKuJHZ0I8tL7CkYy+w8TAqywuBLGbVTuhaVf fvNV303Nt55gllUXJuO4l4wOW7OmyJGget2rWf7uDUkyDOibU4Rh8UqRuJApmnxibGWg NfbgizGBj58rEmHxhG+yBzIDZu5MTRIokO4lpDXsVno6Cch3jkLOqKbDovLT7DbGj/ji vIJ0vkp6TNnj9Z5Q82FEscyQUcy6T+Uo2zqk2gNiDGqVucg1+5LmAJhDdbUvz30Pxi4V PsKw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=XXIiTCjvkzwKhbs9IuNYdNAuT3ECJc7iBp9nRlX5TLw=; fh=2kugK1pFgomYt9tU/DHc4vnVxK9nY+59o4aLNtZt1JU=; b=t+96ujEazL37AFkyymXbmszN+wrTscfzoGYIyljWe/efsP2tGNe2nchwN+OyvkYu+I c2Kyz1q80148DD4L3dTODcYC1ixgsHDM8/tV3dvRdXYioOijMX3NcTnkrv/SEDutL9We E6bWdWl18n0DrzMfBYojtYj1kV85jxq2cIwYCtwJjcNAkaPEPfrt2hnkUddSfQDhBViy ibGzT7PClhJGQKObl4z8XvGSmLaPa6TyYJ/vY/H6809AtfrUwBOo/0j+xsYsAqrDcLnF mFyCeRrIx14qx9PMdlhLP+TazsKVokdiEyxGKDwA5qZtS/onnLdYR5APmC8JGEF/fsaV 1qkA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=K8bJKhfR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-82342-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82342-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 131-20020a630189000000b005d8e1dc1df6si4385384pgb.731.2024.02.26.13.29.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 13:29:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82342-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=K8bJKhfR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-82342-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82342-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 2562E28F0F5 for ; Mon, 26 Feb 2024 21:29:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C063F13340B; Mon, 26 Feb 2024 21:27:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="K8bJKhfR" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 79131132473; Mon, 26 Feb 2024 21:27:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708982867; cv=none; b=fE2+tiYNLOGgBZzm00En6MtxU5VXiLZbj1XPXaRhd2x+53HzQaPaaAZRhpVjA2ijMPACN+3G48h3IGJHrbudhYFDf0rG9hyXlEzgh0zx4ypkq9UiDCGoxJQ3ChwA4S13Lp8T1HP2syRV+rYHYVyuuXk0OwKvoOT+0ORPIFm0eZ0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708982867; c=relaxed/simple; bh=wsCtGpiDTocW4vbleg11KHxRFROoKpRqbaZuvc+TfiA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hINlHwvUpRWoghvJURSJxdQftI9525mmvoNXD4lF1gta5S0Q9g5cvUOuYXLC+kwxIBS+tzPv7ohQNK8AGWoQBhDywowdycZM2i+bb10I6Co7Mf/YhZpwGCFDqJ30j+Fg78R1YFdmaCAoO6J8Bw3higYkptovjr+QYzWZ1sD/m60= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=K8bJKhfR; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id EC05AC4167D; Mon, 26 Feb 2024 21:27:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708982867; bh=wsCtGpiDTocW4vbleg11KHxRFROoKpRqbaZuvc+TfiA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=K8bJKhfRCqUciQepCEAflOUQondc3AhDzSpu4SjXqR/6L/+yBwWGFubEIwPPKsdmW 7Cc9EJkvwfp6Uji/jqJdj2uiBlryZWGrINrDRX/zREAVYhOkPJKQbkuAohhG9W6C1J i4nVz7wUdD59IjzK2ITuLy1RkAoWGAuhlre1p74f/kCEbAMEMY6JmOOGsCBk/88rLE EcqqDgcGqCY+0K1xEfY/f8uITHTfIrMUQqkQNwY/f49jalQW5DDDwkQt7gIROJGvwh aso0lzQtxMNryM/vU5+JZxKVqyKh1MUsBp0SOawWgu8CR0WwMLXSFrnz4J3+TpGFa7 y3N5OGvwJe0UQ== Received: by mercury (Postfix, from userid 1000) id AD4681060DAA; Mon, 26 Feb 2024 22:27:41 +0100 (CET) From: Sebastian Reichel To: Sebastian Reichel , Shawn Guo , Sascha Hauer , Fabio Estevam , imx@lists.linux.dev Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Pengutronix Kernel Team , Dong Aisheng , Linus Walleij , Dmitry Torokhov , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring Subject: [PATCH v5 2/6] dt-bindings: input: touchscreen: fsl,imx6ul-tsc convert to YAML Date: Mon, 26 Feb 2024 22:26:24 +0100 Message-ID: <20240226212740.2019837-3-sre@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240226212740.2019837-1-sre@kernel.org> References: <20240226212740.2019837-1-sre@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791998519076969781 X-GMAIL-MSGID: 1791998519076969781 Convert the i.MX6UL touchscreen DT binding to YAML. Reviewed-by: Rob Herring Signed-off-by: Sebastian Reichel --- .../input/touchscreen/fsl,imx6ul-tsc.yaml | 97 +++++++++++++++++++ .../bindings/input/touchscreen/imx6ul_tsc.txt | 38 -------- 2 files changed, 97 insertions(+), 38 deletions(-) create mode 100644 Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml delete mode 100644 Documentation/devicetree/bindings/input/touchscreen/imx6ul_tsc.txt diff --git a/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml b/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml new file mode 100644 index 000000000000..678756ad0f92 --- /dev/null +++ b/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml @@ -0,0 +1,97 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/touchscreen/fsl,imx6ul-tsc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale i.MX6UL Touch Controller + +maintainers: + - Haibo Chen + - Shawn Guo + - Sascha Hauer + +properties: + compatible: + const: fsl,imx6ul-tsc + + reg: + items: + - description: touch controller address + - description: ADC2 address + + interrupts: + items: + - description: touch controller address + - description: ADC2 address + + clocks: + maxItems: 2 + + clock-names: + items: + - const: tsc + - const: adc + + xnur-gpios: + maxItems: 1 + description: + The X- gpio this controller connect to. This xnur-gpio returns to + low once the finger leave the touch screen (The last touch event + the touch controller capture). + + measure-delay-time: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + The value of measure delay time. Before X-axis or Y-axis measurement, + the screen need some time before even potential distribution ready. + default: 0xffff + minimum: 0 + maximum: 0xffffff + + pre-charge-time: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + The touch screen need some time to precharge. + default: 0xfff + minimum: 0 + maximum: 0xffffffff + + touchscreen-average-samples: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Number of data samples which are averaged for each read. + enum: [ 1, 4, 8, 16, 32 ] + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - xnur-gpios + +allOf: + - $ref: touchscreen.yaml# + +additionalProperties: false + +examples: + - | + #include + #include + #include + touchscreen@2040000 { + compatible = "fsl,imx6ul-tsc"; + reg = <0x02040000 0x4000>, <0x0219c000 0x4000>; + interrupts = , + ; + clocks = <&clks IMX6UL_CLK_IPG>, + <&clks IMX6UL_CLK_ADC2>; + clock-names = "tsc", "adc"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_tsc>; + xnur-gpios = <&gpio1 3 GPIO_ACTIVE_LOW>; + measure-delay-time = <0xfff>; + pre-charge-time = <0xffff>; + touchscreen-average-samples = <32>; + }; diff --git a/Documentation/devicetree/bindings/input/touchscreen/imx6ul_tsc.txt b/Documentation/devicetree/bindings/input/touchscreen/imx6ul_tsc.txt deleted file mode 100644 index 164915004424..000000000000 --- a/Documentation/devicetree/bindings/input/touchscreen/imx6ul_tsc.txt +++ /dev/null @@ -1,38 +0,0 @@ -* Freescale i.MX6UL Touch Controller - -Required properties: -- compatible: must be "fsl,imx6ul-tsc". -- reg: this touch controller address and the ADC2 address. -- interrupts: the interrupt of this touch controller and ADC2. -- clocks: the root clock of touch controller and ADC2. -- clock-names; must be "tsc" and "adc". -- xnur-gpio: the X- gpio this controller connect to. - This xnur-gpio returns to low once the finger leave the touch screen (The - last touch event the touch controller capture). - -Optional properties: -- measure-delay-time: the value of measure delay time. - Before X-axis or Y-axis measurement, the screen need some time before - even potential distribution ready. - This value depends on the touch screen. -- pre-charge-time: the touch screen need some time to precharge. - This value depends on the touch screen. -- touchscreen-average-samples: Number of data samples which are averaged for - each read. Valid values are 1, 4, 8, 16 and 32. - -Example: - tsc: tsc@2040000 { - compatible = "fsl,imx6ul-tsc"; - reg = <0x02040000 0x4000>, <0x0219c000 0x4000>; - interrupts = , - ; - clocks = <&clks IMX6UL_CLK_IPG>, - <&clks IMX6UL_CLK_ADC2>; - clock-names = "tsc", "adc"; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_tsc>; - xnur-gpio = <&gpio1 3 GPIO_ACTIVE_LOW>; - measure-delay-time = <0xfff>; - pre-charge-time = <0xffff>; - touchscreen-average-samples = <32>; - };