Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1636241imm; Wed, 16 May 2018 00:25:03 -0700 (PDT) X-Google-Smtp-Source: AB8JxZplMfXhcZR6mnl8pbvvy5yy5vfbAAhbZQUyX3ueCsuRTzXTdrqxY7BQndBMf0DrHzFqUttH X-Received: by 2002:a17:902:aa95:: with SMTP id d21-v6mr17766503plr.73.1526455503680; Wed, 16 May 2018 00:25:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526455503; cv=none; d=google.com; s=arc-20160816; b=HVSGe/kWhtMN+PlzspJWz7Qi1DpX3tUtnVmfU240UsKyLTuAg4ADCUf0g9xAyTmDQT veDRhEdqhwVAF7Kd9paU3X6lI/m1D4ps/+i6ytecgYUuP/41wwXL6zto9h0RePJuCuWa ICUSaHajd5/0r/f5NK4y2J89iqbeTJim674DQtoxFTDvbdpkF4o16vO/cv+ZqCSMJ4qx f3owbQe3q7g8P+tsgBgoKITsriHtN4gnVp48osgbTRCfxNABEvGSEbxBcA8hP2cghmlS pwH1h5PzqY+0bh1ErW5oX2jt/M1n2F7ppTCV3FmQwQEqQjavrjUgMyUd4dAekTLRnU74 94jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature:arc-authentication-results; bh=APvDcIxUWDLpdL25L5BoI7QznQTfjp7IHR3qz8wp788=; b=R/P4bMRVOt8hAHqax9AFIfk1Ky9+/w7V6YlnjaGQJfN4iOHPL2efeBvpCLc6F9KmPT uCGZdcqvJog9vV1KNFJIHSy8GHHQmlAGtCcFkO2LTAP+j+Zsh7hcGkyEX3b6kjNP5W5T ARvOulXZBC2K/iJzv5q28ZaibQkXrZJFswzFdd6Rw6fvrX4HMiXdfzKb8jskj7OsWZz+ t4Y9AEcp/zyrhvI1ZWJpW0GT8ivD7JjfzK7+oKygle5xKqr7mZtFlNysO3I+9k/p0F/M RX85l3gc61i9fmyqRvdhSy8oyq13Us4khIzFijcc8NLOwD+OckfmJsactOV6nqgMAbc0 2JZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=NX3Y+sKE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d14-v6si1997071pfl.122.2018.05.16.00.24.49; Wed, 16 May 2018 00:25:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=NX3Y+sKE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751449AbeEPHYe (ORCPT + 99 others); Wed, 16 May 2018 03:24:34 -0400 Received: from mail.kmu-office.ch ([178.209.48.109]:60816 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750775AbeEPHYd (ORCPT ); Wed, 16 May 2018 03:24:33 -0400 Received: from webmail.kmu-office.ch (unknown [IPv6:2a02:418:6a02::a3]) by mail.kmu-office.ch (Postfix) with ESMTPSA id E78095C0228; Wed, 16 May 2018 09:24:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1526455471; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=APvDcIxUWDLpdL25L5BoI7QznQTfjp7IHR3qz8wp788=; b=NX3Y+sKEDV++5BjCpn8tMINHl8/jPb80I6pQaVcY4D3y8XLMMmwUog+ycW/vucQeZd6g5v EE5JaViPOYL9WT9RjwqOUYTcwR/99o3BHFf3cKAvUY6cWcUYEut8WLnf6WC6/S8FBY2NG1 L6V/gn2KBBHw7si6IasyIwcsgZM3+rc= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Date: Wed, 16 May 2018 09:24:31 +0200 From: Stefan Agner To: Nikita Yushchenko Cc: Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Rob Herring , Mark Rutland , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Chris Healy Subject: Re: [PATCH] ARM: dts: vf610-zii-dev: enable vf610 builtin temp sensor In-Reply-To: <20180516063921.10406-1-nikita.yoush@cogentembedded.com> References: <20180516063921.10406-1-nikita.yoush@cogentembedded.com> Message-ID: <682aea7dc714fea095f935d41c8fa270@agner.ch> X-Sender: stefan@agner.ch User-Agent: Roundcube Webmail/1.3.4 X-Spamd-Result: default: False [-3.10 / 15.00]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_RCPT(0.00)[dt]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_SEVEN(0.00)[10]; FROM_EQ_ENVFROM(0.00)[]; DKIM_SIGNED(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_COUNT_ZERO(0.00)[0]; ASN(0.00)[asn:29691, ipnet:2a02:418::/29, country:CH]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-3.00)[100.00%]; ARC_NA(0.00)[] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16.05.2018 08:39, Nikita Yushchenko wrote: > Vybrid has single internal temperature sensor connected to both internal > ADC modules. > > vf610-zii-dev already has ADC0 enabled. Now, to get temperature sensor > captured by iio_hwmon driver, need to configure iio_hwmon node to use > that ADC. That seems sensible. Acked-by: Stefan Agner > > Signed-off-by: Nikita Yushchenko > --- > arch/arm/boot/dts/vf610-zii-dev.dtsi | 4 ++++ > arch/arm/boot/dts/vfxxx.dtsi | 2 +- > 2 files changed, 5 insertions(+), 1 deletion(-) > > diff --git a/arch/arm/boot/dts/vf610-zii-dev.dtsi > b/arch/arm/boot/dts/vf610-zii-dev.dtsi > index 4890b8a5aa44..5ae5abfe1d55 100644 > --- a/arch/arm/boot/dts/vf610-zii-dev.dtsi > +++ b/arch/arm/boot/dts/vf610-zii-dev.dtsi > @@ -222,6 +222,10 @@ > status = "okay"; > }; > > +&tempsensor { > + io-channels = <&adc0 16>; > +}; > + > &iomuxc { > pinctrl_adc0_ad5: adc0ad5grp { > fsl,pins = < > diff --git a/arch/arm/boot/dts/vfxxx.dtsi b/arch/arm/boot/dts/vfxxx.dtsi > index c3f09b737924..d392794d9c13 100644 > --- a/arch/arm/boot/dts/vfxxx.dtsi > +++ b/arch/arm/boot/dts/vfxxx.dtsi > @@ -84,7 +84,7 @@ > mask = <0x1000>; > }; > > - iio-hwmon { > + tempsensor: iio-hwmon { > compatible = "iio-hwmon"; > io-channels = <&adc0 16>, <&adc1 16>; > };