Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1562211rbb; Mon, 26 Feb 2024 13:30:47 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXvPuIgIpd7bJESOkX1uWHbGFtPnewy5Jr/1DlSorF1ScvVe6m3znGD1Ru7qJBCn1Kte7lr5EXVE6zj8jvwhBXDv3MqZaAFBz07ATVbzg== X-Google-Smtp-Source: AGHT+IF3ohHBJ7u7sIlwTA+OkH3BSH45YZSw/jFHrWys907wwaggkHI4bCI6Q8F4UIuu4O5wpS4Z X-Received: by 2002:a05:6a20:2d0a:b0:1a0:f9e1:2d11 with SMTP id g10-20020a056a202d0a00b001a0f9e12d11mr467353pzl.8.1708983046785; Mon, 26 Feb 2024 13:30:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708983046; cv=pass; d=google.com; s=arc-20160816; b=IoVJW7xTSsYhIsF6dP5Xq/Zn1fuFhvvUTGg4vihsGnMgrehYsK1tSP8iotz4+L/9YW 4Gss3wW4Lz4X5AHE3qChEHsGjBgd8cwe2IT3mHpQGEplCEJQpksBFxB9x72W0ONVKie8 OTUpvEJBY0fdY273o8WS14QG5vjGRHCKRAlEngiBfTPoNHq076kMOEQMeCAl7xog5MGu e55GgjqsyjcNJa1z352TnK//U29jpyD9VPruHsUzU5cnLpSufKLAzWc/IQ1s9zCIGBTi //Z7XI6NYheAmkMhre8ayxLWvx3bv/cS0j9mdX+ar424QFZeW6YkxU6PstD7SxYg8mt7 SYtw== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82342-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id g24-20020a63dd58000000b005dc8587419esi4236172pgj.421.2024.02.26.13.30.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 13:30:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82342-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82342-linux.lists.archive=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 3A794B234E7 for ; Mon, 26 Feb 2024 21:28:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8461C132C12; Mon, 26 Feb 2024 21:27:48 +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 Content-Transfer-Encoding: 8bit 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>; - }; -- 2.43.0