From patchwork Sun Oct 28 12:26:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 10658547 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7C44413BF for ; Sun, 28 Oct 2018 12:26:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 68B36299C6 for ; Sun, 28 Oct 2018 12:26:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 57E9B29603; Sun, 28 Oct 2018 12:26:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3903C29603 for ; Sun, 28 Oct 2018 12:26:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727567AbeJ1VLS (ORCPT ); Sun, 28 Oct 2018 17:11:18 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:36185 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726548AbeJ1VLS (ORCPT ); Sun, 28 Oct 2018 17:11:18 -0400 Received: by mail-wm1-f65.google.com with SMTP id a8-v6so5342523wmf.1; Sun, 28 Oct 2018 05:26:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=prCbsAZYHBZXBMZjnYd8p/ypfm7Aif1a4AOUDd9gnHc=; b=iHWXDPJ+rudq1+59kdSgBW/MNIEPzjU3qSttbp3HhHOK8fbSsLorhlN3c4rZlLOU55 lINOepslnHeo4LnV4Ddox3YiinKCrKcz00BdLCeM9+36lvwpUn2weiwqfpgksZGZ5QX5 Wsg0EdNuoCVpwzrbsMt51kQTjFFkUk5NndVK3A/q8HE3+9m4RRGsXovdOugggDXOmE8h QzEt5VQ/rw3Frv1HS+LCODf4avKgMj5b9wVk6K8RZ5qLdWawkvrf8QXQfVY4m5ZjkO5/ yJuVUg7cdysoU/Hwwz3R3gh/0vZVF4VPBP3WSjVj1LuPET2UDpU0ETB+5/X4qYS+BZmM feXQ== 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=prCbsAZYHBZXBMZjnYd8p/ypfm7Aif1a4AOUDd9gnHc=; b=OU0X1qAH6V0biNyGzkXiUgKrfWL8sQdfBOl4edIud3eH6ytR6DrqWUXudoWQKcabym 12/kwrmqiNYozW1s/4BXCsHg8Rce+SrtnZpGAviKwbAtW6THnDG+VMtVrnE8j2fiB4yJ AI3kUhrdSVufL8g4SJ1MB9GcdpTi3HUjRFDzfA+78bY5/CNdSVucdZmrYsh6YZGjRF/D 0wn36HpCt/sl9LErIOfG45cpC/xlxSV7odpbM8qsrIa6YutNpDIBV4njKY5T+/K86mxV tyPXaZOOmkukLsQkvy0EJ0Q3qMDbGwCgot+6aM9csq4eavwVkh/Nq2FDpNutzf8X0cFj /b2w== X-Gm-Message-State: AGRZ1gKfunZFwaSdh2h8leNSX7+g/Lg7OkeOgv8WwBtM/8Bb10UXuLJE 672ohHyO1GO0VTLA2w3CRzU= X-Google-Smtp-Source: AJdET5eWhAGAAn5jHBSi+NUhERh2sqYVbpsJjMBm6Y0AZSpi2akOgSNwcUm9kaVjP3T46MBSOUTWfA== X-Received: by 2002:a1c:9ca:: with SMTP id 193-v6mr11381558wmj.86.1540729606844; Sun, 28 Oct 2018 05:26:46 -0700 (PDT) Received: from blackbox.darklights.net (p200300DCD7072200691979D1FB980407.dip0.t-ipconnect.de. [2003:dc:d707:2200:6919:79d1:fb98:407]) by smtp.googlemail.com with ESMTPSA id z185-v6sm19334091wmz.47.2018.10.28.05.26.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Oct 2018 05:26:46 -0700 (PDT) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, linux-iio@vger.kernel.org, robh+dt@kernel.org, pmeerw@pmeerw.net, lars@metafoo.de, knaack.h@gmx.de, jic23@kernel.org Cc: khilman@baylibre.com, carlo@caione.org, Martin Blumenstingl Subject: [PATCH 6/7] ARM: dts: meson8b: odroidc1: add iio-hwmon for the chip temperature Date: Sun, 28 Oct 2018 13:26:28 +0100 Message-Id: <20181028122629.10144-7-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181028122629.10144-1-martin.blumenstingl@googlemail.com> References: <20181028122629.10144-1-martin.blumenstingl@googlemail.com> MIME-Version: 1.0 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP SAR ADC enabled channel 8 can be used to measure the chip temperature. This can be made available to the hwmon subsystem by using iio-hwmon. Signed-off-by: Martin Blumenstingl --- arch/arm/boot/dts/meson8b-odroidc1.dts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/meson8b-odroidc1.dts b/arch/arm/boot/dts/meson8b-odroidc1.dts index 58669abda259..9251dc102fcc 100644 --- a/arch/arm/boot/dts/meson8b-odroidc1.dts +++ b/arch/arm/boot/dts/meson8b-odroidc1.dts @@ -118,6 +118,11 @@ 1800000 1>; }; + iio-hwmon { + compatible = "iio-hwmon"; + io-channels = <&saradc 8>; + }; + vcc_1v8: regulator-vcc-1v8 { /* * RICHTEK RT9179 configured for a fixed output voltage of