From patchwork Sat Feb 24 21:29:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 205939 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp1327563dyb; Sat, 24 Feb 2024 13:34:12 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW41Pw8iltc8KvLycGeInCfAl9TsUSsUbyk6Jv85YS/BYCTvieNLoO3J9dgNdJoGgypF/UhpUGSPMocE2N2O/+jARtimA== X-Google-Smtp-Source: AGHT+IHqLn1wL2/Roo/i3SSO2lkQc4vgs17kzGuW6SZqMuIyYhzpNpzWLDPwPnkUS5HPa9DzbQdh X-Received: by 2002:a17:902:ce82:b0:1d9:a14c:eeb0 with SMTP id f2-20020a170902ce8200b001d9a14ceeb0mr4360181plg.43.1708810452535; Sat, 24 Feb 2024 13:34:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708810452; cv=pass; d=google.com; s=arc-20160816; b=dr6MugKI3uVI1YpG/fBdVJzGknS6XM2V8ZKw+A1T+T+5/2wBWoP4E0Nv1yWAvrTV1W FE6krf5dtxw2Y4tAwL6hzrgO39xp7RBVxzgTPUZBpYGbEtBfQpPLJJ0oCVdA4XEW+VYo uUTciu7S0PMiUilN95o1nsBeolJ8Q9iZ9nhE5oEYWqAHm0pIBfvi+FlDMkyhqPuQLD3t yUo7wk2RJ4xQsae/MpMBy57X6DvOEHJ/+/AZ3DGNVae5gsskUak8yP3DsRVaoNt56M56 yNLswlq8yHKouC0a3MMZtPmBQG5UqoHd4G6Z63DA9MI7eoSDQCa4dbsfMhVYy0QSTfqX U3lg== 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=ndeZ4A8P5f72a0b/R9gDDUWeQo9jbr+GABa+yMOOZ/Q=; b=M1xcM0xYvj0LCZGxFGVmIy5Bb3K2vtY2z+LrBmr5xv2NAgfOnvRde42WtnVNR9LXst nTBzdHk3LBAY2ly8cRznAqS7xNNXb3ULIBZdDUP2kh9cGIEJJ3cLh6zpvW+NlP7S63HP 5lTSQZeSukXYLYDUofaSt4Rz/iefyNnwV2Kgo5TsL5cyawY4doge+EpV2nYed2BKi5fE D1hFMHFdm5mkVp0A1MzO9GCJdMSx7Hvb6DEA38mHBaGniExtadbQGKpYgRlaXg2LLUXt 5GVZozNidrXX74p7llVPmAuNgFpamUgMlgP0RIZC5UyD8MDM/p1nKNhIcfNdVu1mXFsY HQpg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HautrxRg; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-79861-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79861-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 lv13-20020a1709032a8d00b001dbc6f9e3a8si1288141plb.66.2024.02.24.13.34.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 13:34:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79861-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=HautrxRg; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-79861-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79861-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 56ACD28251A for ; Sat, 24 Feb 2024 21:34:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8347A50251; Sat, 24 Feb 2024 21:33:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HautrxRg" 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 5F5064CDFB; Sat, 24 Feb 2024 21:33:13 +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=1708810393; cv=none; b=kHlQm6QJQPn8FZl0zV68IyfE5T/KLF/GYnCIGzH7zkRKgd97HlcQ4RCV7+pJT1HqyOueV5N7DvbuWth8xQy7CIB+pCJkQ20lwaazi0bY6606EVnVIca3HdlpJ9ggIrzYYRvoWHSLn6GAR4+XJ7XPPPzHWoc2hjeIUSXCVHyB9iA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708810393; c=relaxed/simple; bh=wsCtGpiDTocW4vbleg11KHxRFROoKpRqbaZuvc+TfiA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dX6MJ3lS3ATeU1v4MdNk8/PJx6puKwNYJhic7sHLn/AQjhnRIHDSiE4dl80feDm+iZEs2JKQf3J1bBhe/qUcrKSozdk+yVHbn14DL26WHlts5wjUwKK7QPJ+H8Pxgek3+WypMuXmixv2yIMr+NG20kKDq6vTFXXAo+flEtVjiAk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HautrxRg; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A4C80C43390; Sat, 24 Feb 2024 21:33:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708810393; bh=wsCtGpiDTocW4vbleg11KHxRFROoKpRqbaZuvc+TfiA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HautrxRg2EjpVUHAPlVkDDD1i0dNFdPJiHpJ8CXRgFetwTw3/SBIGbrHK5dSLaUMJ 3Kx3WKnE7sbz1JJQMdxKjYrQAcCgPFFSfTZRCZeWrYw6gBH6OEFlhHGKDTUPBXDhOH 40ZYUKCYUmOugWcQLsOB36xd5cNWNi3NL8oohsQ/BnHNMMT+v7ejGwsm3xCtN+CirL j+yNySWRznMgKrg/V7BG7NwtgISOY6uxSeTigGQ0Cujb82sUEtquQK2SxXRBFOwTar heifzNvUOxMSnUO/BP2yuJ6axbFeE+/iihG2SHQJhXRl1PYvuQqBhG1ODPW3cxTmse G4F6QVCWvZnJg== Received: by mercury (Postfix, from userid 1000) id EBB9A1060DAA; Sat, 24 Feb 2024 22:33:09 +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, Rob Herring Subject: [PATCH v4 03/16] dt-bindings: input: touchscreen: fsl,imx6ul-tsc convert to YAML Date: Sat, 24 Feb 2024 22:29:35 +0100 Message-ID: <20240224213240.1854709-4-sre@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240224213240.1854709-1-sre@kernel.org> References: <20240224213240.1854709-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: 1791817629107551155 X-GMAIL-MSGID: 1791817629107551155 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>; - };