Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5222592pxb; Wed, 26 Jan 2022 07:22:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJzaKpQM89vMRMDl18tEiZ6n2e5TI3Xtd4leuRT4OA69Copp3QSgD8QDS6asH/0mrkxlWiGi X-Received: by 2002:a17:90b:4a08:: with SMTP id kk8mr9187737pjb.233.1643210543934; Wed, 26 Jan 2022 07:22:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643210543; cv=none; d=google.com; s=arc-20160816; b=TbcVnArzfQzPpoBT7RtHx//MlSJw64dnMGrduwX3eHpA5ThIALd5jQmNsPITeu/WXv 9PGoU4YHif42gYKuJGgROY+y8ElcWUhp42MhoerDXy660vqMHCmcWUIUP7vZUnFG1bxs Jfmc5/AYNeHASKs3MKJbvgAbqDwmvAt4m2F3AZSYo+I4AREOiwfP8Uo2rGJxz6dla7jw KlCWAoVR5npL3ypnLtl3XIrH6IcWygvki2UbwskyJ5oo0HDPbBEGvdWrcofcb+LxAX3W 5LW7L27DrIEYn4fXn+gnITleWU6pq1/v0ApFigTYMv42IW4dLARgJQcCfvfSr6BFD7io Y+AA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=r3dlEBLqEp7/wv1tdwQhbIz34SY4UFxRIwTnawTA5U4=; b=TeUYi3iIuWm9jG+wNEQYyQ8Rsnti9YEQIVAcPEVVclngogvgKukoyL7jW/PV/ley7+ 9kyrfe/8445A5NnnC7Q4NoCxSSRvv+MNZIFIQBA5KHsVI852RL/0xrS1hDcPvV67VZyb qAZSw6vfpygrM7OX6F9uavHpbW3EUxUhMGmT//LTPJLAMs8BXB9TC/b7jIOjWWMbIpT6 lUti5m74R0BkDksV3UZyiuUM+fRHGAlQq4a7B/b0LMAx+gsmd24Lx5wiklFjC+/bpkVC ON9HiaNTVdRgeuZrsMxlLZfQe42/ealCuAEAJVKKrRzKPmN9EEhLyANdyzM3DkyTL89+ htfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jypO54+I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q18si20621981plh.459.2022.01.26.07.22.10; Wed, 26 Jan 2022 07:22:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jypO54+I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236120AbiAZCFT (ORCPT + 99 others); Tue, 25 Jan 2022 21:05:19 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:43096 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236092AbiAZCFS (ORCPT ); Tue, 25 Jan 2022 21:05:18 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A0B2B615E5; Wed, 26 Jan 2022 02:05:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5B36EC340E0; Wed, 26 Jan 2022 02:05:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1643162717; bh=28X471NiDJaECdr5wTzYsnFBYJKVo+PiuhvmsJECRWQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jypO54+IpKyCMCwWDyO3PZtrlhlMf+fIq7E+DmjTNUhIRX1FitcUtgX/HWd75sgr1 grPzUkdPOx6w8qmwG63cEAm/8RKcarNs1DXGLXvDdsm4H/TVNy+3fEoq+Ht4K0h1fz G9p5qTERrohatUmENe4IwnHELGWBERAAuLD5N1daJMAmeulJQ+qS9ztzAkUUTQeMF3 0xr1p4oB5eCO+0/WSXPlG+9ZsyOb+NJh74kPNQ3E8guJ6jd1jq7C4f0iB51JRH+hfW 5S7KeL1BVwDJP3soU6+CT6gxEVwShKu5hHuVtX0+TRzGuOrTWkrZdxyr5LkorgGNbW 9kv6vfHYZE+0w== Date: Wed, 26 Jan 2022 10:05:08 +0800 From: Shawn Guo To: Oleksij Rempel Cc: Mark Rutland , Rob Herring , Sascha Hauer , Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , devicetree@vger.kernel.org, Fabio Estevam , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, NXP Linux Team , Pengutronix Kernel Team , David Jander , Robin van der Gracht , dri-devel@lists.freedesktop.org, Jonathan Cameron Subject: Re: [PATCH v1 4/4] ARM: dts: imx6dl: plym2m, prtvt7, victgo: make use of new resistive-adc-touch driver Message-ID: <20220126020507.GA4686@dragon> References: <20211122124310.2796505-1-o.rempel@pengutronix.de> <20211122124310.2796505-4-o.rempel@pengutronix.de> <20211206010627.GK4216@dragon> <20220105110434.GG303@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220105110434.GG303@pengutronix.de> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 05, 2022 at 12:04:34PM +0100, Oleksij Rempel wrote: > Hi Shawn, > > sorry for the delay, I just came back to work. > > On Mon, Dec 06, 2021 at 09:06:28AM +0800, Shawn Guo wrote: > > On Mon, Nov 22, 2021 at 01:43:10PM +0100, Oleksij Rempel wrote: > > > The tsc2046 is an ADC used as touchscreen controller. To share as mach > > > code as possible, we should use it as actual ADC + virtual tochscreen > > > controller. > > > With this patch we make use of the new kernel IIO and HID infrastructure. > > > > > > Signed-off-by: Oleksij Rempel > > > > One space is enough in subject "victgo: make". > > done. > > > > --- > > > arch/arm/boot/dts/imx6dl-plym2m.dts | 55 ++++++++++++++++++++--------- > > > arch/arm/boot/dts/imx6dl-prtvt7.dts | 53 ++++++++++++++++++++------- > > > arch/arm/boot/dts/imx6dl-victgo.dts | 55 +++++++++++++++++++++-------- > > > 3 files changed, 120 insertions(+), 43 deletions(-) > > > > > > diff --git a/arch/arm/boot/dts/imx6dl-plym2m.dts b/arch/arm/boot/dts/imx6dl-plym2m.dts > > > index 60fe5f14666e..e2afedae85cb 100644 > > > --- a/arch/arm/boot/dts/imx6dl-plym2m.dts > > > +++ b/arch/arm/boot/dts/imx6dl-plym2m.dts > > > @@ -101,6 +101,17 @@ reg_12v0: regulator-12v0 { > > > regulator-min-microvolt = <12000000>; > > > regulator-max-microvolt = <12000000>; > > > }; > > > + > > > + touchscreen { > > > + compatible = "resistive-adc-touch"; > > > + io-channels = <&adc 1>, <&adc 3>, <&adc 4>, <&adc 5>; > > > + io-channel-names = "y", "z1", "z2", "x"; > > > + touchscreen-min-pressure = <64687>; > > > + touchscreen-inverted-x; > > > + touchscreen-inverted-y; > > > + touchscreen-x-plate-ohms = <300>; > > > + touchscreen-y-plate-ohms = <800>; > > > + }; > > > }; > > > > > > &can1 { > > > @@ -129,26 +140,38 @@ &ecspi2 { > > > pinctrl-0 = <&pinctrl_ecspi2>; > > > status = "okay"; > > > > > > - touchscreen@0 { > > > - compatible = "ti,tsc2046"; > > > + adc: adc@0 { > > > > Isn't label name "adc" too generic? > > I do not have strong opinion about this. Currently we have no > restrictions for the node names: > Documentation/devicetree/bindings/iio/adc/ti,tsc2046.yaml > Documentation/devicetree/bindings/iio/adc/adc.yaml > > I can name it touchscreen-adc@0 or something like this. What are your > preferences? I wasn't talking about node name but label. Shawn