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: 10658563 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 85CC213BF for ; Sun, 28 Oct 2018 12:28:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 73CAD29603 for ; Sun, 28 Oct 2018 12:28:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6803B299CB; Sun, 28 Oct 2018 12:28:10 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id EC15729603 for ; Sun, 28 Oct 2018 12:28:09 +0000 (UTC) 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=VhK5aa7bXc0b80PBSiPGcc4C+uMKSM/zd6LUBmDZUi8=; b=igb30zmR/WgFj7 GfEm0aW8d4C/M9Y8309Tw/AR/QcxvmL9sFJzd3AJCG4zyRoiUJiWUaceG3njVkaq8sbW54j5KYbnu pG6x7TacwFZjbCAOvY8o/hwmoxjc19PRyYhVdAOdw+SA6mv+dP48QqnOysWqyUopH7ogMz9Q8AEO/ quFVIit2LCM8d9k60GK+RJ2QQURqyM1EBFHMjA8RuQDjYeePXxNWB66zpwDIgAXLcIij4ORCv5Jzy ifyBnILbF4ASHuYySW4+Dr/LHlBy2/qe/O/gRqb9CwAWJGh4tJvkWj1hVcU4x8kRpcSWewL9LAvWd 87etCci27OPSTYamH4YA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gGkAl-0003P7-OF; Sun, 28 Oct 2018 12:28:03 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gGk9j-0001gi-9n for linux-amlogic@lists.infradead.org; Sun, 28 Oct 2018 12:27:27 +0000 Received: by mail-wm1-x344.google.com with SMTP id h2-v6so1730013wmb.0 for ; Sun, 28 Oct 2018 05:26:48 -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=Go4VxRAJZfucwHTv9XajFQse3O8R2gBQs0a+go3W4xo7o18Kxnk1rVoXxZ3qohrz8v oe++b1mTFuZBPq0nTlE/OXw/rKZrEBFZcwHNl+X827+IQl0ZMN0MKUpVpTfTowecU2dU NURYqxIhUzeMGH4z4vLMNhStGjUCoRJL1Nn9EPzPsAzCzUPVpnvPmujrkvXGQnjO9leh Ot01Fc+WSYbeek2Vynb8ohpHe2aRRPij1LbZxYWh3eKnLJBrg5ol6zcUwJGr9fHaIUc/ xNmLqx3010Si0oMRje9Tdlx6hptZ435dRNvITrbYhABoIDam/y486/ijAiN5l4ENSiKr u/TQ== X-Gm-Message-State: AGRZ1gL/MZXJJsfo3gX7TxoNrYoV78DksB3HE+gil99dgNDAa9OOlm52 EuaFN1D2+zZtY3GTQra1/DBqh6V0 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181028_052659_377840_2E1DB56B X-CRM114-Status: GOOD ( 10.03 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: carlo@caione.org, khilman@baylibre.com, Martin Blumenstingl Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.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