From patchwork Wed May 16 06:39:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Yushchenko X-Patchwork-Id: 10402853 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DE7E8601C8 for ; Wed, 16 May 2018 06:39:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CACAF28591 for ; Wed, 16 May 2018 06:39:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BEA4628718; Wed, 16 May 2018 06:39:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4C3BD28591 for ; Wed, 16 May 2018 06:39:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=/GV+9nJ1PQfqhPH9TPOHNQrjKxB3Cs8TBbLx4h1/E/Y=; b=MPo laCfJSkM//pQ8suWbyQvZsYsrIko2ON3BYTJ3DPPZ2p7JaozRP6fb8XxFA0T/9Li8VDdl18RnmACO J+hq+2FBBeBNkUBkFyZ4aqXIqodNcp2n3ziBZVgjspf/Vo5XTHI/kc4si6R5Pebo7e2zi/xsgCSAC RnCH1w50H+AtsvV82BKwt0mZ22NfQKAS1E4U3d4/sABqBe2FlQVE90i9zhtpgBl1/rEBDEhs8qNpe xf1CRJ+dJWhG860fW5mJrpYoOTWvkhRGZy90l9BDU85DUenOt+IHCFH8pfyaUNAPyMHfVx5t78kqv 7bkSfl1lMxyjg/CwTl3qkFv95Tdb7UA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fIq6J-0006bx-DP; Wed, 16 May 2018 06:39:51 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fIq6F-0006VA-4b for linux-arm-kernel@lists.infradead.org; Wed, 16 May 2018 06:39:48 +0000 Received: by mail-wm0-x243.google.com with SMTP id w194-v6so4849759wmf.2 for ; Tue, 15 May 2018 23:39:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=IpdiGl0jB4PT9suXC4YqZGKXISLtvzwE82OAKgas2Bk=; b=a83jajql6R7PtA+rs2m1ZEykRVBnbKxKroMEQSNiz0SJdzdDtmAS5UXPbKsgeIubli 6qbWAcEfoChIrSaZH8NxrHNzmZrXHXG335jYSXXt0k1XyO5Jqcv1O9ft1/1aAPPi9IC2 nE2xmq1IyHCcEq224d4G7/cg36nV3156RWZlTgZi1aPDN+zYU5uvNqfRhCu6qnykJgQB qBNBj1r4Vg91kWQ1LALi9cIsfoUlROV/n8fkq/2qpyMD2GanUdD6aIy5/ZqaZqteADsg zuKMWE1l3rHwJ2pEgUVIjrHfuSXJB2ikGxTtSH8+CCMXV9QOtDYedst7Gz43v85Z5GtW RHxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=IpdiGl0jB4PT9suXC4YqZGKXISLtvzwE82OAKgas2Bk=; b=mgOk7+nu4V0uU+AAYw7LTGf9QpwYVZJlVD3roHuOAZqzY52aNg5VrlClMuXnMkGFPP wEvzpKaKVbLCX0vgn01Li7xt1FxGVy1EJlRwEM3jmx6m2/HKuMusNJmquwX+w6QStR/5 ZPtGi5l0/cSvxXGENeSaGk6RxY3tjaoZmbv830Vzkmm9k4dhsw+CG9O9YGEBnMmN6m8N PAyqn8ioDwnfkY53WwIg5ZaCKLKSp3LJxbRa6zJZYltaArvsIATyXQ58fwcEHyG/kHcr CE12GcdWgyphXJ3dFepPegcLx/6Yz7KS3MvnvUgNYjtfaIwTookPWj7BbOUfPuKqmLGU eFHw== X-Gm-Message-State: ALKqPweAu/RIx5rNZnYxqDoHLUwBncZz1EFVDnVmcMYIK1H6S/j76XvL uFYk2hGXDKSiXxhK7kHGacnr2g== X-Google-Smtp-Source: AB8JxZosYkiKCPE9IYUk1Ahw1qqEbeEoWZ8YfaRt4JzuNC48UTiRaV5l9xhFpKfV5DXYvmwsBQU+Lw== X-Received: by 2002:a1c:3287:: with SMTP id y129-v6mr594566wmy.22.1526452774267; Tue, 15 May 2018 23:39:34 -0700 (PDT) Received: from cobook.home ([89.249.64.228]) by smtp.gmail.com with ESMTPSA id 38-v6sm3827578wry.61.2018.05.15.23.39.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 May 2018 23:39:33 -0700 (PDT) From: Nikita Yushchenko To: Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Stefan Agner , Rob Herring , Mark Rutland Subject: [PATCH] ARM: dts: vf610-zii-dev: enable vf610 builtin temp sensor Date: Wed, 16 May 2018 09:39:21 +0300 Message-Id: <20180516063921.10406-1-nikita.yoush@cogentembedded.com> X-Mailer: git-send-email 2.11.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180515_233947_200554_53922CF2 X-CRM114-Status: GOOD ( 13.32 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Nikita Yushchenko , devicetree@vger.kernel.org, Chris Healy , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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. Signed-off-by: Nikita Yushchenko Acked-by: Stefan Agner --- 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>; };