Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5337647ybl; Tue, 14 Jan 2020 07:20:41 -0800 (PST) X-Google-Smtp-Source: APXvYqxWHniqFzMQBoupOpYw8FAIqQZpu2AvZR4i5yj/iKRpdmAtYow1TumBfN1NHNqAYh3obpKs X-Received: by 2002:aca:b1d4:: with SMTP id a203mr16621984oif.150.1579015241761; Tue, 14 Jan 2020 07:20:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579015241; cv=none; d=google.com; s=arc-20160816; b=Ms4m0kdB8WwDGuLFIuB/uEVdbKlA6d7+fJhjs872+QPmPVUuPkq1t+j18dK9GmHfWG cK243fE4L/TXgeOFxUcrwapNRpdHoUswbjmHU/VVsACFo2lYtSnZQ5qsonz17pmLOyfn p7R0TGhYwitcjs+eXJ7zw2m8uA7yKjZCLt8B+J6CjEyJU31CjYkqqPYtJ9hfQHzc01tV cHHfMRLfWRv/eD7mGwYk4MCyQpr4y6f+H0jJeL4Qb0ishP7P60QwctQ+0Sbd9waJmerk R8VDDBEwxddd3oAlBzZsFbo9oN4XBMh2kFjyDl7NEgpqkwm4GytwxgL2yNDMYuzc+J6s DJiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=2K6rRI7pCn9t5RYAWusq+FmSFOJ0/oBKMxxQl0gpYQY=; b=sRQ875TKb5OThVPGXl9Wu6hAS8Tb1vuuwSOmhIA1LQE6mLpMe5vD0+wh9eoCXSJL18 qXYJ50/JBqfzEUT3iDPJn7ES86J6ID1FxtYnSDaA0BxnfTeTHM9eNkpFynxxEtAG+COV ORg0LDVqf3Qdw4ZEqXSjvuQ7U325XuOd0rsvoVhNPRSJRUtipV0UpEaussSZBF2PMS5C VHj+/jPLyld7kRxPWVAVTQawIkzCad/1NfNZDPuVpshLFu5//xgmwmkBOUGBcm2YrQKX NsYqjiIdK/2Q8y5/CT1Ct7uUWSYgzCK6dxVjyswIE2ivc6FxM3sby2DM7uj/FD5bg2Gs FieQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GyBOpb18; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v5si8853596otn.155.2020.01.14.07.20.30; Tue, 14 Jan 2020 07:20:41 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=GyBOpb18; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729211AbgANPTe (ORCPT + 99 others); Tue, 14 Jan 2020 10:19:34 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:33384 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729169AbgANPTb (ORCPT ); Tue, 14 Jan 2020 10:19:31 -0500 Received: by mail-pg1-f195.google.com with SMTP id 6so6549898pgk.0; Tue, 14 Jan 2020 07:19:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=2K6rRI7pCn9t5RYAWusq+FmSFOJ0/oBKMxxQl0gpYQY=; b=GyBOpb18t5KUIO1lKiMJ+TY48O4y0uaee+qso1Wsun2HKScGCc2Cj0zq3voSwbeufW edkQTmZ3t5V9bNfanTGFKzp4yOSewQoLShea7EPxSrXe9AHa6vXseo7coz33toBgeIUF MLJXqv6BKVeFn8GXxHtrYdxGB25Xyo/+PD9WuTlEEcuJNejNB2bQVfO88lX+c+j1rPY+ Mc3XWfDAbX7G7/L/qTdtedPY5vpF1MnaaiTpYJvvy1XOUF4k2C1bPC5Op3a/+vtXM7t5 5cf1rKRYXShhbHWuEAoBhFYIvRH2PHv/jSLjyEGf/X5mfTsopEB+a4tU93WeycZuyqBd 5BLQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=2K6rRI7pCn9t5RYAWusq+FmSFOJ0/oBKMxxQl0gpYQY=; b=Ibc4ApiVMwJa3MYT3yWqHD1YQ21keWEoLUa0bG0YVD4Jb+AorJWfX/aLlhzT1bTPRn FzyfOJXaC+nuib5Ye+w9+bFkN058QoN8cFR+/O631WnASctSD4O/XzsZinN4w3iBzbXs +7chwJSOBUV1Nqngfom/mtakwDkMcIfjwQSi6kz261qmWt7bNAL8NBxQh0gId6NCeKrC 4KrX+d4vyEUMSf9Cg42BRjPvkv/eHat9ScdvUDJ33gbPZWkhyhejsbvDOy6lfXkXhORj j6N1US5K8d3tNemjMonir7EJ1y9Koe96jW3lggyvLnGhVZaoGX83B6FD92RpGnZGZjo2 uLoA== X-Gm-Message-State: APjAAAXQ2sFqiY5gp1SAWDI/mwnwBhT+iedjCBgCWjOafZiN/Cy3blVy B7HSx9rF0KL+dx2Mnyt3ArM= X-Received: by 2002:a62:e908:: with SMTP id j8mr25632066pfh.55.1579015171060; Tue, 14 Jan 2020 07:19:31 -0800 (PST) Received: from localhost.localdomain (c-67-165-113-11.hsd1.wa.comcast.net. [67.165.113.11]) by smtp.gmail.com with ESMTPSA id 207sm18834425pfu.88.2020.01.14.07.19.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jan 2020 07:19:30 -0800 (PST) From: Andrey Smirnov To: linux-arm-kernel@lists.infradead.org Cc: Andrey Smirnov , Chris Healy , Fabio Estevam , Shawn Guo , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/5] ARM: dts: vf610-zii-dev: Add voltage monitor DT node Date: Tue, 14 Jan 2020 07:19:05 -0800 Message-Id: <20200114151906.25491-5-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200114151906.25491-1-andrew.smirnov@gmail.com> References: <20200114151906.25491-1-andrew.smirnov@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a DT node for various voltage supply rails connected to SoC's ADC for voltage monitoring purposes. Signed-off-by: Andrey Smirnov Cc: Chris Healy Cc: Fabio Estevam Cc: Shawn Guo Cc: linux-arm-kernel@lists.infradead.org Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- arch/arm/boot/dts/vf610-zii-dev.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/vf610-zii-dev.dtsi b/arch/arm/boot/dts/vf610-zii-dev.dtsi index a1b4ccee2a10..95d0060fb56c 100644 --- a/arch/arm/boot/dts/vf610-zii-dev.dtsi +++ b/arch/arm/boot/dts/vf610-zii-dev.dtsi @@ -84,6 +84,14 @@ regulator-boot-on; gpio = <&gpio0 6 0>; }; + + supply-voltage-monitor { + compatible = "iio-hwmon"; + io-channels = <&adc0 8>, /* VCC_1V5 */ + <&adc0 9>, /* VCC_1V8 */ + <&adc1 8>, /* VCC_1V0 */ + <&adc1 9>; /* VCC_1V2 */ + }; }; &adc0 { -- 2.21.0