Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5339176ybl; Tue, 14 Jan 2020 07:22:08 -0800 (PST) X-Google-Smtp-Source: APXvYqx4cCYunStPfrdUnakEutSFs9M+ksJFuDJTdFkNNGNpGZgrw91yB4jBV5PyW4fv912MXo/t X-Received: by 2002:a54:401a:: with SMTP id x26mr16390600oie.101.1579015328196; Tue, 14 Jan 2020 07:22:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579015328; cv=none; d=google.com; s=arc-20160816; b=wr+8CQEaYCZgIzmDbOlNYGwlwW/DdwbbOu2zhLHcGTsgrnWfcXFUJ18C7bNuT5Uvkw 8E/1GQLnEGXmpoiAuuA8iISSkIlw+0CCFFecwbVQH/UclO5fcHrRwuwoW6oATHredwsG agq2Awe8JGly6m+VXwxWA7RG8KZdca4jDe/Ayl7POy7WwLonxDYdTcwea4E1rFRFXspq PXBZfiq0vaheonXOYT/3DgdME7yWnn7QEY1po1J960njDXLNzVnLQAvGicxGvxnp2N4W X6t5sXl/hLZ/JwWKDJzP8vjpGl+vvlqQiscnTnCY6ul5lzxxiCE2pQckLR2Bx0Gjjh7J pQcg== 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=uMWy9u/32jVL1tXriZ9xy59fE2pwEAGTC/AyEXL/bc8=; b=JlJBdHgY6lBDbXkS69YT8gV7NxPKajYXF5dgRG7vqJ1paSvIVxqB0TvV0UakNO4bnl Cma9mqrkeHChJsvpuHjOfAmDqOlLhMQbHpRZ/6VsgIpTF6dSgRJd6rvQmElus47HG27N pC0Zj3gduArfbgHY9tbSibHWKzIyYQ1EwmASmhXxSyNF4Wb5s3aXaVcrQ6n04+Nxa3UR c7iUlUjozOX5p8l/762jAIxBLxKTJDupGSbJAwEeolVEbicPSxLWnwkxXBSkLyWMnZIu aRWXTFShK88gSOV+XhMddh3J4DAQNrzzikelg9BZhmJng7Q4x+nLoGj21YRDNLMtAD39 s+dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DcQbpa5X; 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 e1si8897341otj.276.2020.01.14.07.21.57; Tue, 14 Jan 2020 07:22:08 -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=DcQbpa5X; 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 S1729262AbgANPTo (ORCPT + 99 others); Tue, 14 Jan 2020 10:19:44 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:45461 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729098AbgANPT2 (ORCPT ); Tue, 14 Jan 2020 10:19:28 -0500 Received: by mail-pf1-f196.google.com with SMTP id 2so6714070pfg.12; 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=GY924RbmZNMeoF6n5hL4PuKZm9CEyFP0LLBJIDrhsisHJSSLLVG3iLWsEiB345sh0M dIFKh0sYjeksIpfPo9Hp6/Ak0Sj0Q9+uoZpDh44MPr2RTG4SjFU798Xio6RtwLY86hzF tH3eh3wD/4lhFNXN76F6GSDjW9UZhrVryETZJ44DmuaLiOlay3+8J6AkDCxY56sRpYs9 jaJen4l3JKWAb4CHjpQyPXG4P3XYPnYD7L7p+TJOilZhXMsPM/NSeMfA3uRbhNNmu4c/ Vp6HWuXfhVPhno+Oq11MEwtD1HPdovNC5FycgXkolFk9EbhAJIPn4vzZ/F0l6CPkmf88 rJyQ== X-Gm-Message-State: APjAAAUz7XRa/S+apl3QudYyXSutFrZfWAAbIFqumgUeR7kGqTumEb34 tQL7bUJ9IaW/z/UJkZLrhg0= 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 Cc: Andrey Smirnov , Chris Healy , Fabio Estevam , Shawn Guo , devicetree@vger.kernel.org, linux-kernel@vger.kernel.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 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-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 { -- 2.21.0