From patchwork Sun Oct 28 12:26:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 10658553 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 6738213A4 for ; Sun, 28 Oct 2018 12:27:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 55F6A29603 for ; Sun, 28 Oct 2018 12:27:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4A080299CB; Sun, 28 Oct 2018 12:27:27 +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 C0A2429603 for ; Sun, 28 Oct 2018 12:27:26 +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=VnpScaNYsRS8zDtiReXWDaAs/WbzvXMtH/K8vWAug0I=; b=s2d+6/THhElNij 6Brh5pxOq1tiAByGUuU05Uk9yhuVCjdM0ktaXXpdRspCQMO9EIcYCSBU7FxKgn6Wf7382TMxr/nsa pYqBrAI6NRyPJFtZdi0zyAooqQtyHDVaQqtLj/XqG4fBFpfNlRxRAKBbWlRSxVDL6+afeH64o6d17 4b9ZaJLX+8BuLY5mXvrwqRzASMjpEdus6mSM2i8FsY0GQ0BXd9S4L5u+pjgAwR5VTPXTbd7YzvaWy uHIX30Yqd3/TYjRhnk9Ebe9HcEZHgnZ/vx8gVbr8GtaE04+GvnCRqGKTcZoZdMS9NUEuN+sgYnuJp wVfhhReZak3YZ3XM1v4w==; 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 1gGkA3-0002dY-2e; Sun, 28 Oct 2018 12:27:19 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gGk9d-0001jL-Jn for linux-amlogic@lists.infradead.org; Sun, 28 Oct 2018 12:27:03 +0000 Received: by mail-wr1-x441.google.com with SMTP id w5-v6so5720935wrt.2 for ; Sun, 28 Oct 2018 05:26:49 -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=3J5GHlWtAlCs+VfsWg4QkmqLnd69uQtdQjrYYdsyxB4=; b=PfcyN/BOGV3BV2HlkQ47S5i9WmknSxc8hLWPK2RnCgMuZvJcsvQfBePWmi8CXka6LY 5hDmjH74u14hFDry0uL62qHXZnk3OXY7xytdNQ3SRvum04hGyYF8YcIqrmr+w/wCSSmF h1DXDOHjIl6X+0Qg0qJDDQ3k/0IMNR5ZazTQG9LHwUgDKvXATpUQycp3RHRfyHYoaJUU UZXLqmdZdck7QK5G+7lHbRrbk+K4MhnF7qbhf47+AUQr5DlVqDRC119rSlkcCzaj3MqM GP4ghlFa9lZIcOdvaqUSCNJoByCk1cPOg1iByoIKMy5Zh8H115p/0qNWKiFgLUzHE+dA PUAg== 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=3J5GHlWtAlCs+VfsWg4QkmqLnd69uQtdQjrYYdsyxB4=; b=I88VW8gMKLezk4gHeBqnRPm0P9o/FzdUHRRoi/LV70dXEwRe2qupUX02WOSwCXk1xf Q1zZmBRBvV9ro7YoGhp2f1Hg3kMuS0S1oSzY5mYr/mZ3SY/n//j20acH4G2Q6Zm17b8z Izb7KAUO2jEoO9OrglSsa+WbXlyXChUefktcMmUT4lqAm9CoX+n8jZGa0sB0OrpqU8jj By1wvZBBkKgEGJi63PMjfVWJuCIOwhw+LiTNcoC6f/bF8pHgd/ejhE2tY8cBZIAd0kOy 3a+Vn6gQcEOMqpE2Cmlmfydk4+yxi368IGv7gsDKAyrY9JN2gF24PL6GXiI6tOiNp7eN Wu6g== X-Gm-Message-State: AGRZ1gJVDH4pirItl+YzOVGgAIlZgJJASUwLiWnX9+bRNLCABLcpOV+Y 6mIqfZ/YvQaat1NPpYiHCpKDdqTp X-Google-Smtp-Source: AJdET5chTPzwQ7WDx5/7UYEXfh4zhBaCFjzqcQf2WfY8geykRU/T0qvcVe8TGkbpA+YxrSFo6acFaw== X-Received: by 2002:adf:94a3:: with SMTP id 32-v6mr10587099wrr.98.1540729607918; Sun, 28 Oct 2018 05:26:47 -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.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Oct 2018 05:26:47 -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 7/7] ARM: dts: meson8m2: mxiii-plus: add iio-hwmon for the chip temperature Date: Sun, 28 Oct 2018 13:26:29 +0100 Message-Id: <20181028122629.10144-8-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_052653_683597_40DAA20B X-CRM114-Status: UNSURE ( 9.94 ) X-CRM114-Notice: Please train this message. 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/meson8m2-mxiii-plus.dts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/meson8m2-mxiii-plus.dts b/arch/arm/boot/dts/meson8m2-mxiii-plus.dts index f5853610b20b..d1d3c828c039 100644 --- a/arch/arm/boot/dts/meson8m2-mxiii-plus.dts +++ b/arch/arm/boot/dts/meson8m2-mxiii-plus.dts @@ -44,6 +44,11 @@ }; }; + iio-hwmon { + compatible = "iio-hwmon"; + io-channels = <&saradc 8>; + }; + vcc_3v3: regulator-vcc3v3 { compatible = "regulator-fixed"; regulator-name = "VCC3V3";