From patchwork Sun Oct 28 12:26:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 10658555 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 5121E13BF for ; Sun, 28 Oct 2018 12:27:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4002F29603 for ; Sun, 28 Oct 2018 12:27:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 34179299CB; Sun, 28 Oct 2018 12:27:36 +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 AA4B229603 for ; Sun, 28 Oct 2018 12:27:35 +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=XG5Ecq2qXCwUlrNWiesQKF3R+tApMSSiPDuHeDrFbz8=; b=nN15HjMej2o6Uq 5XQPU2Xb6dH2KxtMerSDCmNKBIc/trwFy9FQcAdbSKgPgNdgIAsYMe2V3C+wlEAzIEoXtM0YtZ9GQ rKRKbJZWyOzz8DMS3g9Byrc8ox7vIl3GXvjeMDuixsrsSok2RefhvVqbddcBEeD5w4CYU2XuBPW0E DC4obdXXK6tT49aEY3cH/ScYKWGfZZJ8MksAyCtvr9dfoIJcP2Unp2mf6Whob6seRMrSAEcAy5AlS qheESaqSMDl7/Aj/NTnGWuFHab1WDFPU48iYiM4xYK8zz/XBvyRW5QomKJpRNP/T623Lk0pr1AMAI w0O8sYRGCcO4apWfg07w==; 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 1gGkAD-0002oM-1t; Sun, 28 Oct 2018 12:27:29 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gGk9h-0001dM-OO for linux-amlogic@lists.infradead.org; Sun, 28 Oct 2018 12:27:12 +0000 Received: by mail-wr1-x444.google.com with SMTP id y16so5716387wrw.3 for ; 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=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=BrMO0UAUR3md5IYefKHYavIEtdIJPqtGfHHY80g/c3ZMdgnfjjQSm2I2zxHn0iPQNr Dzmf4wAUgACAUA9IhZ8uIH3fkgK9Pr9MP0EZjlQf38xueEkbOrH0WE6w3nLdtLUgRCAm NTKup6DSCDkDfZc55ljvShaBOIU2aQnlfJRg39fdFqi/Le9Wt32wnqyT/itwFIm7Zvwj x63taQQpiZZ7FIoKctnPx9/IAkum1kFb8n/CSzbJ5tkrkbQfVFJSGMMyMIahKmo2/UBF se+/tCH8xFKOyV1Nk3+2yGOCwzZ4OqboqfFC+DMvxNbgqP3quRjEM0vhU+cIJqBl//D/ 9W2A== X-Gm-Message-State: AGRZ1gLqxU8aEt8Vd8f1TPsJr2jg1Hb2O3M+JKr4wL2DWV6LiwkSk4zY mrNacAl4VrW4PL3MeX9yvi8oysNG 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 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181028_052657_817512_715F7021 X-CRM114-Status: GOOD ( 10.24 ) 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-ec100.dts | 5 +++++ 1 file changed, 5 insertions(+) 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";