Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1596788imm; Tue, 15 May 2018 23:40:13 -0700 (PDT) X-Google-Smtp-Source: AB8JxZouyu+mPNYxPTrCqvKRKyq/SdeeOQRr3r2rGRd1YwgUQzVw8OZ27E/DFLNgCz5RoEZHyaIx X-Received: by 2002:a65:6699:: with SMTP id b25-v6mr6112283pgw.191.1526452813891; Tue, 15 May 2018 23:40:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526452813; cv=none; d=google.com; s=arc-20160816; b=BtUMXupAEYXNAjb1AWpeKwAOX6LqNuXYKCBQCMH1J+G28W9eRney6Nos8R4IpGX9WJ QwNbmh/3BIyG7zJq3ao6Q9AGAFTKcJi6bBYbGYx9brb6uKjrDkTax4MDRDmucVOXPQS1 ZTw03pg4DE/X429JYf6ij//UWjyZ9oxz5/9Zu0gwuB42yQ+WFMh2pTXE4L24H9Dw6bqY Xd6y0JxAWv7rOSUQ9rvE8eP0ijOO0NZe751zrxfVcNB9CK1mXdC7PBCHWNGOdF2Uoa4Z u+0nL693vvnRgBtRlT5Pne+X8lMXb+kWOJ6o/a+HJvzqn0/n/F8dgw/6hECeliPwvKax sCEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=IpdiGl0jB4PT9suXC4YqZGKXISLtvzwE82OAKgas2Bk=; b=OwJFiT1mLmqbVtWOhuGWqrS/mectEiboIE0AhmuKb2T/rP95vIz3DiPx+cj2DPva/D AzoHe5sJSOa28VIUihBtAaETIgWAKIxk9iaPz8+ooBz3BZOM1HM9Q3FWU4+Xm/d1SxHC s3UtzIvN2Na1f8/TOhivbqiDFQS+IYwGa97ciA2u0/sMN7NxYLXK84+g8042FLg8hOIV K9Uj5uFZdyzBv3GyLJLBXVmQzDOq6QTyW6J7YjUO4CMpi9XJQlFNW2drz/qdelv9KWej w0ivQgNodSnehpc1KNZ+rhIH63uQLgkuZszUWA0eFV/YPNS55QJZhNhXJuSkHcIOUdML sZdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b=a83jajql; 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 a36-v6si1913598pla.575.2018.05.15.23.39.59; Tue, 15 May 2018 23:40:13 -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=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b=a83jajql; 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 S1752366AbeEPGjh (ORCPT + 99 others); Wed, 16 May 2018 02:39:37 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:51633 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752226AbeEPGjf (ORCPT ); Wed, 16 May 2018 02:39:35 -0400 Received: by mail-wm0-f65.google.com with SMTP id j4-v6so4894861wme.1 for ; Tue, 15 May 2018 23:39:34 -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=SRzhFeWfbC5wMh+ff7Tu1pDCr2pepRQ0/qwW87/ziRf6vyQLgMUCKNq/s1PeIjaJ3/ YGbp9xYaGGIYL/8//9uahnd3/TajJKAvjv86DCjcVmfx7UKcqL1GGCnsw8tf97qaiqNd Yf791TBrzBuUj272DkR7F21bAk8nzZn9Ornsc/2o16k0lopHVUjldNvbTbeQMWxz+0LS EdF+r5oWz/8sO2UHVlVCFYEclQBKK6U96V5ibUIl1AeofD3MtWCUKhVzaQscuMZ6cv6O xZbOsHXfIdxtqOYE5ciPWCnUFDPaHmkLGWtmDhIEIJFhqUDvX+YSVY+z0bSwKxgEGUO2 QvPQ== X-Gm-Message-State: ALKqPwcfJ8VhAKmuapG4Cwr/Awa40LDt+QYPCX0XEu4XVg9rmcL+4QnO lvef+xabkh4/OiWLu/RtW2SKmA== 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 Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Chris Healy , Nikita Yushchenko 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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>; }; -- 2.11.0