From patchwork Tue Feb 13 01:00:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 200155 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp272672dyb; Mon, 12 Feb 2024 17:40:39 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUCmAtN6284BQ6V4FxcfgotgXjbw+VmflHYUvdFRw08honY7z6s+vQwxqOOIi/GB+eISC+Lz9hdqTUTtF2Q1rCdI2n/Kw== X-Google-Smtp-Source: AGHT+IH2tD1sVRE5utyz8cx6t6YDpF3XEkEpSlQa4Xp6vkB+kS7BzX1RyqvTbvwpnb5WHozODXJD X-Received: by 2002:a17:906:c1c1:b0:a3c:c5ca:3c3 with SMTP id bw1-20020a170906c1c100b00a3cc5ca03c3mr932502ejb.17.1707788439633; Mon, 12 Feb 2024 17:40:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707788439; cv=pass; d=google.com; s=arc-20160816; b=w/jdUWauh7pGEokUUsaeGUwPCvCYmMDtAfKQLPR3D7CHCXOStVm0UzitTFd3P5gCTS 49N/KeSlxtxk01P/HTqg9rcjdrK2wED49e5l64hHZutGSCFMfD21AA3xqdgZgrKBfjFV 9MHYt6Vhhv4d3HLbwWU0BJA/Q58Q0+FT2zFhx7s0e8sp47xOjTWqZ2gQSMQWeUMwyESB gO5468TfDCqb1qq4rsS4IVd8s0KnetOB/wT9f9Qw5iFO1WqXKGVdIpXUqgxus1wS+cD7 bk7PyhC2yygivLOp9Lh+hU5tAJBJFieR5f887SGF1Uv68PhKkFOGizGI8Jpj+24v2L8z MD8Q== 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=3HiRR+9cP0VScgV3P+TuK7Qeu4s0OSlYEEUq8oVprr0=; fh=hpMEJV1Z0lZd3k+32CrMfD9m9YSiwH9nrtHS985v/FI=; b=PXJgUMug87BaoyqwkgB2nim8zeZcXMFYQ4wOhvSZLB5ePOVsBTo1ZAgG2lu9xhu36w 2i1s4Tb8bSNpMzo1Q7Ltc+9IuivdDJ9+6xSbrgGiGnQzSXK/ausMhpzEi2uhpNSP7c/K Ai6x3Chv9B4EDqbCZTm+b4Rk4hJhH+tGffaSQVwG1fvgKUSTuRPRUKQhbT8u/4VPOR+L PP9ly1xMxxph8kihU1dEj4aoc20DHGTEg+YBV2JdXDenv7JWpqamUP/znKaFyv/4oj7e nMXSdvf7NGd0Ak7w58OIr4sQsgMuKzQG6sWmtJF9dpnf9wKtdQmmEe1LOUV1J41Xu0gP USZQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kKbTeDf2; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-62835-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62835-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCW6f+Au+CMXKN+6GFyMkFiZtX08ukjrzwJvolFhZ8RX4E0I9rTGaTLV3YpDW87yh6RxPR5NnEGlDhrIQdBd+cKeBlwFVw== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id n12-20020a170906724c00b00a3c2f78c2b3si738767ejk.750.2024.02.12.17.40.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 17:40:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-62835-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kKbTeDf2; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-62835-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62835-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 193B91F25659 for ; Tue, 13 Feb 2024 01:40:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 725AD69D1B; Tue, 13 Feb 2024 01:03:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="kKbTeDf2" 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 0F06024B54; Tue, 13 Feb 2024 01:03:52 +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=1707786233; cv=none; b=e7a4T83+U5JUWDVqgUexsFWfsxmfnBLncRFna4cCYJTy4irgrj4fenxTlxZ2Zusfh6L1ZmrmoPkqcBJ/RT/GHP7zaFAZLuU25InL2+3hsFchBMIYwXUOKk20s133rLRRxbYxHGLlVpvTJPCHt0CZ/I616aGGKuDOu7qMjKUukEQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707786233; c=relaxed/simple; bh=XcLlCMMMy31s8hZU2c3Wsa/Zd1+X2ic3Z4KoTJlm/bY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=V8CPR2kjzhNCWWEYBgfI++p/dVODe8yUX1O9+Cy73gvPwqJbWj0ev3sr2sJditbXJrZ+Lesk3nObd/SSZEoYsKzFfSRD3bfo0xuH7AvscnAQJfKk2Ln00JelLdfRgavAN4lQbsq1KGBC5H0T0rdwt6vuy24+PCoHjrmX7XbtiFc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kKbTeDf2; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7C8F0C43394; Tue, 13 Feb 2024 01:03:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707786232; bh=XcLlCMMMy31s8hZU2c3Wsa/Zd1+X2ic3Z4KoTJlm/bY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kKbTeDf2icr27gcnSax5obuKQF4oaD3FEg+5uIfYJmyzz6l3tK7Tf27HrV2xrNg5c kyEEEHe+4xOTfSCC/nHLn1/IQrwrMmkAymhi7wByvuqHvalskNXMG0hFyAGRlpQ5Go cI3W+13nz194Tpw8JFh0xCAm3uSwxZU0JcuXW9I3BeP1Zft2tac83r4UqffE4v48A9 1iupes2lG3Kyq9c6o8B0HlcO1Qls1VGUhFoEVsaJtz9oaTPYJnfSRDG2RIz7LF9l85 o3TbihPuttAStEGFH5C+Oa3YJnFE5q4De9vsblMvDC29vhLuyRtmmYcT4j2pkaIuDH 9B5wUQRfj8Ngw== Received: by mercury (Postfix, from userid 1000) id 33DD4106A4BC; Tue, 13 Feb 2024 02:03:49 +0100 (CET) From: Sebastian Reichel To: Sebastian Reichel , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Fabio Estevam , Pengutronix Kernel Team , NXP Linux Team Cc: Dong Aisheng , Linus Walleij , Dmitry Torokhov , Mark Brown , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 04/17] dt-bindings: input: touchscreen: fsl,imx6ul-tsc convert to YAML Date: Tue, 13 Feb 2024 02:00:53 +0100 Message-ID: <20240213010347.1075251-5-sre@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240213010347.1075251-1-sre@kernel.org> References: <20240213010347.1075251-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: 1790745970965827120 X-GMAIL-MSGID: 1790745970965827120 Convert the i.MX6UL touchscreen DT binding to YAML. Signed-off-by: Sebastian Reichel Reviewed-by: Rob Herring --- .../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>; - };