Message ID | 20181028122629.10144-6-martin.blumenstingl@googlemail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-iio-owner@kernel.org> 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 54887174F for <patchwork-linux-iio@patchwork.kernel.org>; Sun, 28 Oct 2018 12:26:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 44A1929603 for <patchwork-linux-iio@patchwork.kernel.org>; Sun, 28 Oct 2018 12:26:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 38E56299CB; Sun, 28 Oct 2018 12:26:48 +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 DA87B29603 for <patchwork-linux-iio@patchwork.kernel.org>; Sun, 28 Oct 2018 12:26:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726468AbeJ1VLR (ORCPT <rfc822;patchwork-linux-iio@patchwork.kernel.org>); Sun, 28 Oct 2018 17:11:17 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:46143 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726548AbeJ1VLR (ORCPT <rfc822;linux-iio@vger.kernel.org>); Sun, 28 Oct 2018 17:11:17 -0400 Received: by mail-wr1-f67.google.com with SMTP id i4-v6so5669535wrr.13; Sun, 28 Oct 2018 05:26:46 -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=yyWO4DoLm9ZHqteuwTlhBWxFhz3aqtvTSVSOJism6wE=; b=Ojjr2lXaqN97jP7TEPj1VnbWLWkwjxRWxMRFxEoiY3SmenscZkF4SO0leSK/5u6EIR UtaOZdl/1ntI7VGF3x+JkLvCfF51RWvABadcckQDhkJTw4AIu+sRWe5Fpj0Pnza2+7RL VyNLOa6+evUIJaVbQBF4FFGjIiws7B4uN8hFMorwNm/J7AIFxx0nxHakfA4lVwDLOYxT NMZaqy4HBRPaGgJbIrTtQ/9KfmXHtTVQFtI1kxigJbjCLR/FG5e001xMUvjJ7T7wN5/o i3tHfGttOECFRUk0MGvnhR0PAU+HHaSZ/Cz2Z4u2cj8uHNyjfL3fw5wAak2WX4sim7fJ JcjA== 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=yyWO4DoLm9ZHqteuwTlhBWxFhz3aqtvTSVSOJism6wE=; b=QI9Yi08bfMK7PBjGXCyvmQckQ5+vpB5B6sxlDdt2JtqpB5z827moPNU9/iFfJVjewF oX+ReJGKAtDSpOF3Cz9Nz94pMLh6tGPDlbJlsZh8dX2I5iomVCY3FVbzwDr1bhhiUSL+ qSjc91Cv+RT6LX+pNrNUgDcGA02fD1av/UgNsuRa/epJvXKzjEgUPbw7WKkFCTUF5Vfr 4+LhaVuNaLPNYUuvXTZRwTZMulyIAdxpH+27VvOhFsg+F+fb+Ttraat/BqsuIona4aly I+48IvDUrX1O6NLQB0vxxWUxBBtQ06Subi5hUzqBCj/nKRJMP6PPRL/+VWeg5xYIB+s7 mt/w== X-Gm-Message-State: AGRZ1gL8k3v6HDI0DBUjdoscsHcvYNrzCfnDvzsdlXlVG1hTGTpZdjxY eeg36OoXmqVhxpEq07H/oFc= X-Google-Smtp-Source: AJdET5c7V8HaZFqYshCL+pgUFJ03wRGiXHYg85KCOxm0DwIhtVSZhNqyNyLyjSLwmelhtttx78J4gA== X-Received: by 2002:a05:6000:1008:: with SMTP id a8mr11440811wrx.271.1540729605685; Sun, 28 Oct 2018 05:26:45 -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.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Oct 2018 05:26:45 -0700 (PDT) From: Martin Blumenstingl <martin.blumenstingl@googlemail.com> 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 <martin.blumenstingl@googlemail.com> Subject: [PATCH 5/7] ARM: dts: meson8b: ec100: add iio-hwmon for the chip temperature Date: Sun, 28 Oct 2018 13:26:27 +0100 Message-Id: <20181028122629.10144-6-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 Content-Transfer-Encoding: 8bit Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: <linux-iio.vger.kernel.org> X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
meson-saradc: add chip temperature support
|
expand
|
diff --git a/arch/arm/boot/dts/meson8b-ec100.dts b/arch/arm/boot/dts/meson8b-ec100.dts index 0872f6e3abf5..0cebe849a920 100644 --- a/arch/arm/boot/dts/meson8b-ec100.dts +++ b/arch/arm/boot/dts/meson8b-ec100.dts @@ -64,6 +64,11 @@ timeout-ms = <20000>; }; + iio-hwmon { + compatible = "iio-hwmon"; + io-channels = <&saradc 8>; + }; + leds { compatible = "gpio-leds";
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 <martin.blumenstingl@googlemail.com> --- arch/arm/boot/dts/meson8b-ec100.dts | 5 +++++ 1 file changed, 5 insertions(+)