From patchwork Tue Jan 14 15:19:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 11332495 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7D83E92A for ; Tue, 14 Jan 2020 15:19:50 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 31E18222C4 for ; Tue, 14 Jan 2020 15:19:50 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="if6XtvCl"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="MX5VY8kt" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 31E18222C4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: 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: List-Owner; bh=5YG852CQWb/uKMCkx5XnsVDkshAixtBTa0PE5sLoU8E=; b=if6XtvClE0sMe6 VqwQX1Yn3bJ3nzWAzaVgLvCUvgowjxVzKy06po489DG/aUWXWiwhtKVPSHvgoYTlNv8M6y2Y/cxg6 uHg3dF2cAsJ4BrxIGSwtJWLLs4wod4T+JyTGzVrYhIgN+RSLLR4mE5OzIDL2TNUoo4wvs+mnOgi3F ErL2N4gApsMWqxoG6Gob0o3KiwRxLGe36enrMZfrF7KbjE6UyGQeLWnBBiqKa6RI9BLbJ7jDWtYm+ DIvcN/4+1Xh/70wr5A0DcXVmHsrvqK6VuZtGlyNIIQDk7SLIYo9Wr0boYZ+UEVWw3F8gsMMA5RSsz 7IH82nUyPArEWH3w1IGQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1irNyt-0002Wj-4E; Tue, 14 Jan 2020 15:19:47 +0000 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1irNyZ-00028O-4m for linux-arm-kernel@lists.infradead.org; Tue, 14 Jan 2020 15:19:31 +0000 Received: by mail-pg1-x542.google.com with SMTP id z124so6515735pgb.13 for ; Tue, 14 Jan 2020 07:19:27 -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=oHR18xSTLKzfXADaEQF/DRKA3JuNk6378Q7TLhUdjGA=; b=MX5VY8kt+Tn08+h/fUUpnksMzFRwu9H0e26yWbE8j5DnU0ARn+a7YISb5IkjPzWtO0 1ZugUunTv+iew4DJKfLLQVK6n/S72uRin1uStVNAFPzXPWGCgx7qyczs1GGFIXpjiCI5 my1Oo8oejUQdpbuc9GRruc4wo1ctQL4arNvSPOIFwhtwzfJAOtbVicF8gn/nvJ6pO0t1 T9Db9wXh9I2kE86IGIx7kUzQOoKphmv53dNhNCzUUNjchLxIR+DTuvWUv+7FX7LoENJu Iryolc0bS5DHW+6PCdaXdHKP5Z/ex+PYHS/XVoytpycChKkQ3IGFcmP+SS6Ow7x6HUgU JlMA== 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=oHR18xSTLKzfXADaEQF/DRKA3JuNk6378Q7TLhUdjGA=; b=R1VYGaeahgbJ3vHXAHCn+aUqHf7SN/wTvp3wHAP81/UL6qWj1znUeI5KQ4OS0Eq+iT th3Z1c1+qiEhdMwhh0hTmR9Te6tHG5l0HMJZtDB4C59Wm+CT5kTEke6z0fMZWghHgCvV KlsHNT2kyg7mBmCXNFvqEc2DM9+OGvU0ho97IijSD30u6X4Y/h1MP57mlscFDhe24KJf +raBIjoKsVuwxvcQxPDZAq6xS8YqHUUnnC8+svVsGqnfwgfSAjsDDUnZcuLnYkxclo5z WrR5fqcsNXL8ZCNxJqVcG5a8bkIyJ+4181Vxc3OzXGTcrvrDv1G1NyG2egaN4UsVzg0Q DHlg== X-Gm-Message-State: APjAAAWkpXAlgweSppyDds0Vancmt/Y3eex2M9OyQyl0i46SixxsXBAK ad9+9iPuEyNEOWqkttxBhnPQ5Lg9 X-Google-Smtp-Source: APXvYqz5rxYxys49gaz1iQGzXcuSBUjumrrreqOitO48K/qaFccWPnB47zLTKKj7thqJ7REaulAUpA== X-Received: by 2002:aa7:982d:: with SMTP id q13mr26222953pfl.152.1579015166342; Tue, 14 Jan 2020 07:19:26 -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.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jan 2020 07:19:25 -0800 (PST) From: Andrey Smirnov To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/5] ARM: dts: vf610-zii-ssmb-spu3: Add voltage monitor DT node Date: Tue, 14 Jan 2020 07:19:02 -0800 Message-Id: <20200114151906.25491-2-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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200114_071927_184927_00FAD526 X-CRM114-Status: GOOD ( 10.84 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:542 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (andrew.smirnov[at]gmail.com) -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Andrey Smirnov , Fabio Estevam , linux-kernel@vger.kernel.org, Shawn Guo , Chris Healy Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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-ssmb-spu3.dts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/vf610-zii-ssmb-spu3.dts b/arch/arm/boot/dts/vf610-zii-ssmb-spu3.dts index 453fce80f858..3d05c894bdc0 100644 --- a/arch/arm/boot/dts/vf610-zii-ssmb-spu3.dts +++ b/arch/arm/boot/dts/vf610-zii-ssmb-spu3.dts @@ -46,6 +46,14 @@ regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; }; + + supply-voltage-monitor { + compatible = "iio-hwmon"; + io-channels = <&adc0 8>, /* 12V_MAIN */ + <&adc0 9>, /* +3.3V */ + <&adc1 8>, /* VCC_1V5 */ + <&adc1 9>; /* VCC_1V2 */ + }; }; &adc0 { From patchwork Tue Jan 14 15:19:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 11332499 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4E22E14B7 for ; Tue, 14 Jan 2020 15:20:05 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2B945222C4 for ; Tue, 14 Jan 2020 15:20:05 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="fN8Tus37"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="DcQbpa5X" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2B945222C4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: 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: List-Owner; bh=64B/nWpzqQt3BTDq8yffIIRekL7kwYBWyzHe0p6mDRc=; b=fN8Tus37eYC8UY uIU91oSzUgxEx+szxGQKpWd0wK6+wmih8RsgCl2gkO/+hnKDEOqhJdMKLI0YsUmG18BsNVv5JwmJv 44KNcb8plOUxT63VYUB5cZwwUqAUZ/+0zVCIS3qcdFVEEpVaHx+P3Zn0EDb5CQx8dhqAjhxOJIv4j 7u5a+SSLOiXGoHvx1yJZwgIjdpkvkJ58nndzPHHaSaixhyDgi81QrVVRBFQAqy1X6H98Q2J9ksELl NtoSKSFZV2T9P99nawg/Dm70Qf6PFnhSgZUHnpLvdM1J4wv/wWJPgK4SBLTMrV9+Qr9DqjuL8rjeH dSLjQnBJU6jg87hqDk3A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1irNz6-0002nM-P4; Tue, 14 Jan 2020 15:20:00 +0000 Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1irNya-00028e-Kr for linux-arm-kernel@lists.infradead.org; Tue, 14 Jan 2020 15:19:34 +0000 Received: by mail-pf1-x441.google.com with SMTP id p14so6731232pfn.4 for ; Tue, 14 Jan 2020 07:19:28 -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=uMWy9u/32jVL1tXriZ9xy59fE2pwEAGTC/AyEXL/bc8=; b=DcQbpa5XsdLmDArxppuX0QUlt+0JecePQVimW1hZS6yqNKV8WedJ1vYTK6hHiWOM0p os1JhrPNE+Dhkr1uyfcI5eAYf25io4b/BJ5rB4LgbEjujkmmRsoK6ODXV3TuUHyamQXu S+eMETdSe1vOKzDxMhPOh06+1tXqK4/ocIIonLHOUSlWv/xHXOHA0yjPmn8JSbhYMl4G fAdXP9drouHYBd30NfvoGcznbJzemetl2KLo86Hk1Nyx6pVtjLPwRB43/8j5uXhgRfD9 EQctZimuVNgkcJ96A3Z3Ge7sPL20jd9/N2Na9pGKjcH+Jq+c8WnZ7TJ9mHuHCh0VvFhV sbxQ== 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=uMWy9u/32jVL1tXriZ9xy59fE2pwEAGTC/AyEXL/bc8=; b=gNsxn6/4svyQ3Fgxg0FqmAW86ZF9HRTxWIlREvb6EI+rxxH/Hoaw0q4BtoGd1+e4RY I8S+lr5stDtaURz4ofoUX8K+WpaZ+FKl7T+5Qh1JM6bX0kvUPLHdRkIYM4Tp5RpU5UlJ anPhUGWJmQCUcxH90CLRfe7CLZypXKxYC7vSH8w3zLk1DpIvntq9DXwHCcdvZyPNCCmY hiWRnBRcL7f7Oz9Z0BGopeLTG7SRrlUGv2Ra4jljethqJf+OH2B0HXDVsogKPTJF7JLN /F8IAfGEV5hMh+xRSM+dQPEje82KW6DDZZRJu67nHbbpp2tex/Ww3llOkdRqJJThkBDn EYsA== X-Gm-Message-State: APjAAAWlmwxpnuIn9CK+B9FnidhBxVqmkTwGKWfkvNOTaooaOvKYB7G/ JPXyODQFq5OtORclnE2qjlAsBfAa X-Google-Smtp-Source: APXvYqzIQi4kLmAraK/ke5nkp/cK8TN4YzKhEtyN2XiAzZrW/qst02Mb/5Yu89lTJeh1dC98Y9Q3gA== X-Received: by 2002:a63:1c13:: with SMTP id c19mr27595123pgc.450.1579015167647; Tue, 14 Jan 2020 07:19:27 -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.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jan 2020 07:19:26 -0800 (PST) From: Andrey Smirnov To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/5] ARM: dts: vf610-zii-ssmb-dtu: Add voltage monitor DT node Date: Tue, 14 Jan 2020 07:19:03 -0800 Message-Id: <20200114151906.25491-3-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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200114_071928_677481_7560D6FF X-CRM114-Status: GOOD ( 10.84 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:441 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (andrew.smirnov[at]gmail.com) -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Andrey Smirnov , Fabio Estevam , linux-kernel@vger.kernel.org, Shawn Guo , Chris Healy Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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-ssmb-dtu.dts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/vf610-zii-ssmb-dtu.dts b/arch/arm/boot/dts/vf610-zii-ssmb-dtu.dts index 847c5858fea1..a6c22a79779e 100644 --- a/arch/arm/boot/dts/vf610-zii-ssmb-dtu.dts +++ b/arch/arm/boot/dts/vf610-zii-ssmb-dtu.dts @@ -46,6 +46,14 @@ regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; }; + + supply-voltage-monitor { + compatible = "iio-hwmon"; + io-channels = <&adc0 8>, /* 12V_MAIN */ + <&adc0 9>, /* +3.3V */ + <&adc1 8>, /* VCC_1V5 */ + <&adc1 9>; /* VCC_1V2 */ + }; }; &adc0 { From patchwork Tue Jan 14 15:19:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 11332501 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A0B5A92A for ; Tue, 14 Jan 2020 15:20:23 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7DA0E222C4 for ; Tue, 14 Jan 2020 15:20:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="QydoqbHm"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="anhpgPS0" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7DA0E222C4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: 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: List-Owner; bh=4phTJzqIz4MuN/RASg+vEVtLiqKgFCdQfrlYVAdsqI0=; b=QydoqbHmoAXhDA WBKCqECE550Kz45XKdk9neG6c6E4z4X0ztIntwRVTsE+IDCnPRoUIp089iU8Ubb6ERMFvkDmEkx6A tRNHVZKUhFb2X5QGndA/fJgGNa8iDybWMKxKXPpC2xVKVGmU2AnBpb5aLr94joTegcf0Dvm6KAzmI b1GlfXndtGk6wNEf6VcoXkzcNAJ+gvO5ABrbm2v7/+gg6J0tTFwMHeUwb8HEP5j4pqkj0S/MHBFzR ILaXdMswTMfqy4CLsChytrgRHhhiY3SwExH9nfyFSZ25TrqeHDG9/eYRJfGO1vR0F1tI6rNeY6jWk 3bcEiat5mk5a3pYtmOvA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1irNzQ-0004Df-UQ; Tue, 14 Jan 2020 15:20:20 +0000 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1irNyc-00029F-F4 for linux-arm-kernel@lists.infradead.org; Tue, 14 Jan 2020 15:19:34 +0000 Received: by mail-pf1-x442.google.com with SMTP id q10so6728666pfs.6 for ; Tue, 14 Jan 2020 07:19:30 -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=pYLYIQ4AXwrDijnXG7fyC1V6sRvDJ4/R/roB4Qo6Zxw=; b=anhpgPS0TNrx4rscQ1fsJUX3ipjlnKo0kACDbboWahGlXANNmsDyqqaSOxvhUl6RKR Ix5h67Q5h2dXu309FdYQuqNKF/2z6nMXE4d1Ew3yGA0Xv3+EF9O8YDIt9H2wehmB5tG4 rfYlxxmxvYSo7AikwOIDBPdLvU0mUBN0F3s5v66FuBOAVZDcmftL55Abq+kvW3QSMy25 N7eWgHCXn18AIMtkrs9d3WXX387lsDiGgXZHBPTEhW+I+ajdF5+9ZZDuf22hB4oP06s6 7V+hSGrEqKEdfXcEc+m2zKe0YxAg7V0IpXta41rH/enA4GIT12K4a7jp5OX0KqOg/zKj mWoA== 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=pYLYIQ4AXwrDijnXG7fyC1V6sRvDJ4/R/roB4Qo6Zxw=; b=VoQrDzCs1tzIsbFQ6gWWZJUY4nMdkiyFEYjnc5/HAubQjSsKJ6VhhMJ+JxnHrDRLjC nkxTGc4GTsdZk9SwhId+lhhq7j6r+YvT2o/lXx7Z1rNZn+STqZEatZZAk+Fz2VsxSujv vsyXPsUiquTxnIBAl1HbTeXWQyrXNRdrPU1thohwD+YHperSNFwJnw59Nq1eRV02PtaG GcTuG6CcnsywVwzwOEpGb4BAZKER0nRoun03iE80EVaIToB/R+9bAc12yXkPb/hwHnHN Ag/wiOPeXuxCTZTkbPbHbkzvbNbmF6GwxmtvZ87bE/eEe4+1/6j7e46fYlDSdQDQ81KP gd4w== X-Gm-Message-State: APjAAAVZa1BApKo7BrRmKf+FdOXD6XhK+adMDcO2/fLxEedtOCJNM6vE /ktoEQjQyBui9wRqSQ5B2rwB+SPX X-Google-Smtp-Source: APXvYqwviDgHrH8oA4UwR2DqLHslkWeyWCa7d0tpYyg91c68HslBpCVNjqbP4sGBQUi0uuu8jAJR3g== X-Received: by 2002:a62:a209:: with SMTP id m9mr25365455pff.16.1579015169572; Tue, 14 Jan 2020 07:19:29 -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.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jan 2020 07:19:28 -0800 (PST) From: Andrey Smirnov To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 3/5] ARM: dts: vf610-zii-spb4: Add voltage monitor DT node Date: Tue, 14 Jan 2020 07:19:04 -0800 Message-Id: <20200114151906.25491-4-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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200114_071930_507788_AF5EC6DB X-CRM114-Status: GOOD ( 10.84 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:442 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (andrew.smirnov[at]gmail.com) -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Andrey Smirnov , Fabio Estevam , linux-kernel@vger.kernel.org, Shawn Guo , Chris Healy Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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-spb4.dts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/vf610-zii-spb4.dts b/arch/arm/boot/dts/vf610-zii-spb4.dts index 77e1484211e4..55b4201e27f6 100644 --- a/arch/arm/boot/dts/vf610-zii-spb4.dts +++ b/arch/arm/boot/dts/vf610-zii-spb4.dts @@ -42,6 +42,14 @@ regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; }; + + supply-voltage-monitor { + compatible = "iio-hwmon"; + io-channels = <&adc0 8>, /* 28V_SW */ + <&adc0 9>, /* +3.3V */ + <&adc1 8>, /* VCC_1V5 */ + <&adc1 9>; /* VCC_1V2 */ + }; }; &adc0 { From patchwork Tue Jan 14 15:19:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 11332503 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C94711398 for ; Tue, 14 Jan 2020 15:20:40 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 84CEB222C4 for ; Tue, 14 Jan 2020 15:20:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="SJq74wD/"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="GyBOpb18" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 84CEB222C4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: 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: List-Owner; bh=DAQw/NPmE1xI4U8pAm2+e8H70pnIFJ7Fu+U5/wUfQoo=; b=SJq74wD/qVdZ/M laekEw3DaABMZTXBUePUfty8JWFT7myv8BdD2hI8OiMKYUKNg4a3SXIDQ2ScmmIT5/edzkuZcwRJO GXWqu+IDqwlXDHbe20KhLBl9ykN0rYitBfYDy9/xi6A0RZOglY4KbLErKQEOfUbXOP1fvI2cPaDXS ttp5TC8TcZFlOKYgLq7+cv7uruxO8UKOzYrNTpQhXtyitIPpQo+oM5l2Vx5070w4KSAE72fQ7niW8 oCMampSkraSkcOX6f2p3NksM0PZyS8kTUK4iE/RcVUJxg0xj4JB4aScmYhQPQtksuGUXTBJ1fBMwu EqT+B/f97pALQHIiEEUg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1irNzi-0004VY-QF; Tue, 14 Jan 2020 15:20:38 +0000 Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1irNyd-00029g-Po for linux-arm-kernel@lists.infradead.org; Tue, 14 Jan 2020 15:19:36 +0000 Received: by mail-pf1-x441.google.com with SMTP id i23so6735726pfo.2 for ; 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=KiJJ8q9Iy+71LNAYYgvibl8iIsau/NCEE7d7tKt7woXSlJceflaY/PKkXL1j5FujV/ zCYh43Ttz6ii4dUk+OA2GP438ZkJ5CVkQM/ywIs+65dk5o5qqkWc3+yctqMUiHQCEPHx gkJh7oJ4+8zXGmlBbp3N4bSCIg018KraFeOYirh1WgVnAb+q0jf/K42ZDYg/NeHrGm83 TsW3J82vAN5NxJtRlU62GQXK+R1BVBubvRfafwG0ti2jsCC6wypGh9sgm8lW/gPNIOno R788+FO0exoFeYel2czmDwL17y5Mj0VaY3sDEuOxBfkH3KkG9ZMIfYMn3R52CLZA1mYY vqZA== X-Gm-Message-State: APjAAAVZ0c3T0Mv/EogLjMR2U6ujYOU6Yn8GgSKNU16SL4f65GLrWs33 77a5F/ixzeg3QiA+nUG6vfod+g2e X-Google-Smtp-Source: APXvYqwP7gCn/MA7btxDogcApJqTsBrFCttsL+REBZoBUwJzmmo+HFp2fLQRj0phrrY0C9TTdnCAZA== 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200114_071931_846311_9FE25D20 X-CRM114-Status: GOOD ( 10.47 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:441 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (andrew.smirnov[at]gmail.com) -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Andrey Smirnov , Fabio Estevam , linux-kernel@vger.kernel.org, Shawn Guo , Chris Healy Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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 { From patchwork Tue Jan 14 15:19:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 11332505 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 374AF1398 for ; Tue, 14 Jan 2020 15:20:54 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 14A15222C4 for ; Tue, 14 Jan 2020 15:20:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="cQDaCwl2"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="IVlh6j/i" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 14A15222C4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: 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: List-Owner; bh=yO/JuiktmcV61OgzEIG5hHBEm3+tPtVSunxzMqCNngc=; b=cQDaCwl27vi63b 2h/rrTq1yYP4VGyjat0q/9Qb56BZ3ITYYPFFoPbxCF7EJ8CTrz5VVx56TzEq4gZq4sPJX3sIOtJVB vw5KD2cEo15znttmCY1FD9qK1lvNLI1NNVJZSuu+IKL+3c4B6oPKxPmm9s5zWHTS1D9aXCBTl48Aq 8ZUf4kEFVmZhIaA2dk5u3uv9Tlaue4VgWnKXp+pDvpWkWo3P44kZKfUx9FElF860w8OiWjI9koJsV 5ls80wmlqKnZkwzCys2MuK2d0R2C3DDWl2m/4SaL4w0MUU4r3zJAbo0OPD+3Oab6KwS/L0VbHbZg1 Wi5Uih1aaZIjp/dJVegw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1irNzw-0004lV-Oh; Tue, 14 Jan 2020 15:20:52 +0000 Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1irNyf-0002Br-GF for linux-arm-kernel@lists.infradead.org; Tue, 14 Jan 2020 15:19:39 +0000 Received: by mail-pf1-x443.google.com with SMTP id x184so6741222pfb.3 for ; Tue, 14 Jan 2020 07:19:33 -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=ST7QEf8JaPsIhTPBLpP4peL3yXUV3NDdYF9SiuXeCzg=; b=IVlh6j/iSAlzh10qy/FDJ4HvKz7R892wUQuYxOTYHl2N97PS0Wd+wj3Vcue7B+cqjn +GUB4l5bI0/Eq5IssJDljQfcYTJ3oOQj4m33wenYcWvcEGIuzPtWFr+seGkEJtifjYEM OtOSSexK4L4a64yBYbhtlTy6uLShoG5jR7+VC1c4obRovM2+xRUGWGJiw4B/aVCuMioK mNIBgWFyvaKaUu0wWhRdQCyCAl99OH7jU+9lEHb1wEpM2H4qRPUR7G3e13xHve+pUgFB Sr3EsDENkZfV3fAXxfr8EULSslN0/W9x3sjP0V1ghY94OGauXGQdzNXH0qSYZ3oX9qdg SuGg== 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=ST7QEf8JaPsIhTPBLpP4peL3yXUV3NDdYF9SiuXeCzg=; b=PWE2qZ3eduAnlUUrj973a7eIpY408HxkKnordoiH2uZQa5sdJuKI5vQz7+JIjMxiDq eZyHnERgpc00i07bg18MsR66JbvpEwSAeSzyK9Yhl2G5gn5sFOWMLJDLeV0cbwp/cqYE 55mouBH6J8hcGIMNZjKuQXto1JkHdMHaTx/Y1h5b5SjLlnQPELze+5NsFf9axKV7+PcZ jmZlbShNGN4010URrRfQBItymAgUMHr7nJA6Dj0o9bT3Y65yq72J/tY+aFsoE1ovD+Xm 600JM6Kk3gs6jzMGViQjQ9f5k895sXrIiWZbvRU+u44FTZJzyqzkXSlIJNG7+Tr+JDxe 2JKg== X-Gm-Message-State: APjAAAWvJrYyM8apOAvDKpxBUlJfUoonU0aqACvaLc1G1hkjsNcf4R+q mg4LHnwUiPWHXoTiAfnke9CrUiEJ X-Google-Smtp-Source: APXvYqwJlfdrCgQOUs+s+KcUfryciwUOYLQN9kEOTk43lgOjAPQX3p1bITQdDG6m0bJ77nBU9isuZw== X-Received: by 2002:a65:6914:: with SMTP id s20mr26982174pgq.44.1579015172492; Tue, 14 Jan 2020 07:19:32 -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.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jan 2020 07:19:31 -0800 (PST) From: Andrey Smirnov To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 5/5] ARM: dts: vf610-zii-cfu1: Add voltage monitor DT node Date: Tue, 14 Jan 2020 07:19:06 -0800 Message-Id: <20200114151906.25491-6-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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200114_071933_572018_F3470FBB X-CRM114-Status: GOOD ( 10.57 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:443 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (andrew.smirnov[at]gmail.com) -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Andrey Smirnov , Fabio Estevam , linux-kernel@vger.kernel.org, Shawn Guo , Chris Healy Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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-cfu1.dts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/vf610-zii-cfu1.dts b/arch/arm/boot/dts/vf610-zii-cfu1.dts index 28732249cfc0..ce1920c052fc 100644 --- a/arch/arm/boot/dts/vf610-zii-cfu1.dts +++ b/arch/arm/boot/dts/vf610-zii-cfu1.dts @@ -71,6 +71,14 @@ los-gpio = <&gpio4 4 GPIO_ACTIVE_HIGH>; tx-disable-gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>; }; + + supply-voltage-monitor { + compatible = "iio-hwmon"; + io-channels = <&adc0 8>, /* 28VDC_IN */ + <&adc0 9>, /* +3.3V */ + <&adc1 8>, /* VCC_1V5 */ + <&adc1 9>; /* VCC_1V2 */ + }; }; &adc0 {