Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5338468ybl; Tue, 14 Jan 2020 07:21:28 -0800 (PST) X-Google-Smtp-Source: APXvYqztj2ohhxCnGr/Hk5vJ90WoO/kQPhCyzwK4ORiIXZN21GtMr/zqjkXEfcIZFMaU8jkfsCjt X-Received: by 2002:a9d:7b51:: with SMTP id f17mr17163023oto.302.1579015288045; Tue, 14 Jan 2020 07:21:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579015288; cv=none; d=google.com; s=arc-20160816; b=D+QqWvVc74XV3YyeYjMU/AtS4jcYfrHd7nOr8FVLCAxmVjHHM0PoBZrUDFdmr/qZYh xGvxLwRc0I/4/5bRNee+oooqOAWZHEjpyRpBpJzZyrw2ij4WVgpN9P3zR7tYgPZNztMU vu283z3ok4LCLrDYSasWIiQuD9oyzMOzTZ9g71zy6ylEIheKNlf9ovSna8Ijbk3EGQ+P g9eMGbcBdan0vB/xsImYt2KyHigoHhFAX1C4HKmEKsn2TSQz6g8WonTk4doZ6UU/KOYH l8jVIrAMQ5w/Te9klQ9l4IsmxkhvZ8+Ov/tR+B3mZtTvocKtnOjCUzS+eg2IvlGrxELZ B1nw== 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=oHR18xSTLKzfXADaEQF/DRKA3JuNk6378Q7TLhUdjGA=; b=DTyJNgnjamB5q16Y3HVbtJibvJz0sPP5JXH6fKnDso1WX9EaEwD052mTxx+RTeTBI2 AH+2MiQA31ilwGJA3eYFieNN73pTycxXoWCrizeatcmeRJeqiESLPNjfmxzil4YtLXB1 ZAUEK2LQSHDMhwX0aVuRmePjSjEcdp9gA/+zmbBnPZOG4Nojk3RWB4xp7j2+gWSrRiS3 c7JSOJwV0IveprE5/Tbt1K8iZZLGqpZRmB4V25KgQsPeZPcuGvveOXImf38UTwDpq4Qe 0B74dk58VhZVNY+iBs7zlep4lNmhL128W5/R71oDeJl1erS2o+aWPaiXNzw8Av+82Jfx P3rA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MX5VY8kt; 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 h128si7879897oif.258.2020.01.14.07.21.16; Tue, 14 Jan 2020 07:21:28 -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=MX5VY8kt; 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 S1729149AbgANPT2 (ORCPT + 99 others); Tue, 14 Jan 2020 10:19:28 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:44970 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728753AbgANPT1 (ORCPT ); Tue, 14 Jan 2020 10:19:27 -0500 Received: by mail-pg1-f193.google.com with SMTP id x7so6519550pgl.11; Tue, 14 Jan 2020 07:19:26 -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=ZL5edLQ2wtdPVFzY/sXfAFrDIsDvBTRd/2CadBg7kmQmwBY//rY9Y2LIYfpCiOUY2b Sq+EP0dG0tSGXgdBQAYPUU+XGh6nKcDAtdRRBaXpc4ciY68/W5ga8AfG+ueX7HEFb8hW pSNATsTnGu6LaI/O6KgKLSPAGZH28kRE/8tOGMy6HOoy3G9m0nCezHFBnx5gpS1pXF0/ m3VrbLbGGvMn1eX5fqa5p9VihUMDxftr2rDlGOA+lloTxMUl2cDNF8F6T1H9Z9mMPaxr D27oCyz0vee3OCYjQ/8DX4mvLe+74ahh+R0269mwWfrpZeXAcFUt0qBz/QVpXJbn88kU XpMw== X-Gm-Message-State: APjAAAVlz8itTLYbqDsaX4+VTVUNUXoNaW+uR/zV/ir9ktECTf0k/Xui s8cUs861gVa1Vc6OI6PXrlg= 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 Cc: Andrey Smirnov , Chris Healy , Fabio Estevam , Shawn Guo , devicetree@vger.kernel.org, linux-kernel@vger.kernel.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 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-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 { -- 2.21.0