Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5338557ybl; Tue, 14 Jan 2020 07:21:32 -0800 (PST) X-Google-Smtp-Source: APXvYqwdWTzRGbsnej1Qr2TznWxL4GhBVzlc2cTl8RpR4TdZYV5B2Z4vXxyVZsOpJ5M2IkdDc6PH X-Received: by 2002:a05:6830:1482:: with SMTP id s2mr18099640otq.285.1579015292599; Tue, 14 Jan 2020 07:21:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579015292; cv=none; d=google.com; s=arc-20160816; b=xcuT2qt0WhljZOh1NQ1BPqEiUXf9icUmLXghnlhe2BUKbfvQ3je5eJSRFLKXFE6Dei BIBY/xdV475B5BH11NlTFKNd0VRMSxH0Q2JopQeAJERl45iY+PDJkwNyPeONH3ys3tKI 2XTTnG8bDNBkim4Bodq84ovy1FcY9ZhGvkbQzDBn7UZsuXi4xsryzeLM91+QztBQK6DF gEvIKIMeDj4Qn27K7U3Pgvhr/mHHbnPzXwcuft4CTpjqBeXZyMFMHqJhbkLDo4Ydm1yT Sw3FRBPb/3sJH5g0KGljkcP4sd8gHj/jPna8B3XdYko5Jg03xMHWqge2zn3By1gOti67 QUJQ== 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=pYLYIQ4AXwrDijnXG7fyC1V6sRvDJ4/R/roB4Qo6Zxw=; b=XUpW9F/GN3NDP7bgluxLZaXcWWUMVoeVXFXW7wz+7uNQ/dZtatSOfjhkjlbF/BXyVj u0PqiN5Pmk10fpICRullOLBbX1hAxl7U3vq3K9upYzZNQcX5wIUzqsWPRJC5ncAhxipy npozNupdPDdUi5SDYwRESibVVGaQVVZhvtbnpLat5nqDT7P4a645Qf5V3CqOhwt5XSiW ys+N8gcvJoGhh1JMfEgZmYt3bQ+Fg7yiiVLeF2ElR/tPk+lqhSRg9z9zcPV3IwADxYjU 0IIkWer7m5MjggqFgu3D43ahH4u7MJfKX5UTyuKgmp8ETaosLcwpHLI+g0O1xo2MR7MV cvOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=anhpgPS0; 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 j24si9425261otk.76.2020.01.14.07.21.21; Tue, 14 Jan 2020 07:21:32 -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=anhpgPS0; 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 S1729187AbgANPTc (ORCPT + 99 others); Tue, 14 Jan 2020 10:19:32 -0500 Received: from mail-pf1-f193.google.com ([209.85.210.193]:46927 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728753AbgANPTa (ORCPT ); Tue, 14 Jan 2020 10:19:30 -0500 Received: by mail-pf1-f193.google.com with SMTP id n9so6712266pff.13; Tue, 14 Jan 2020 07:19:29 -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=WCls411VwahBLa18GXB0rU/W0O7+ZLE97MnP3YGIXGoWYDKysqph9PBL6U3at8wT4D vMabqpV8tNGajLcr9lF6T8ZP7+9obKNTxy0VOb7+PQq75UajTBD/iHZ2x+jwGouSQj1/ enFyFCoJDlfne1o9IKyq3Wbtuj+Dg3FDCByOteVsK7TJrqt+QfGfJU115qcVmuak7yGU 9O8oQFtzSx3fd71rgtJ9naxk5LGyJTUdZOj8NSKZPyrg0LdwxYp5BuEFrMj+U2sS5ijZ fig2+DJkn996peR0reMY+KQIpr86/tEcS+HmD4KFGqLJCsi4M3cd8d5KaSvjVGTbQ5D9 d2IA== X-Gm-Message-State: APjAAAWF17hLS74jQDtFRkqnWP9YhG1M9QbzHADqi6eDqMoSMfx/n1e9 jMlJ8W6eh8gSu7GTNJj9gKs= 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 Cc: Andrey Smirnov , Chris Healy , Fabio Estevam , Shawn Guo , devicetree@vger.kernel.org, linux-kernel@vger.kernel.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 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-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 { -- 2.21.0