From patchwork Sat Jan 12 13:06:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 10760989 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 E7FAB91E for ; Sat, 12 Jan 2019 13:12:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D5A0D29282 for ; Sat, 12 Jan 2019 13:12:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C9C52292EA; Sat, 12 Jan 2019 13:12:08 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 8A26329282 for ; Sat, 12 Jan 2019 13:12:08 +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=OgXficcnMKI0/c/aTlDa0KuFz8em7W/Ud2HL3K71xaI=; b=tWLpEH5a3QADsh Im3QlYJAj9stpk1zO25dm/QBegpLyeT7exVareL7hNMWREybNSkE2LyFC+NGTOIw57SLwn4Lp4jq5 wX5OcPnlrxljPB4qK1FpKEtiPIMc1Zo5fViQRkdNHnf7oc09O6evRcRGY1apQeF2S0hUK9V1cjgut lfcrVB4jcbcdS0udSk4zurWI4ctrcTcr9XPyppr0UpTYMEmb63jLTvSoF7O/r4OI6aZSsYUY+roKF dS6BQDytWHspMvB12Ydwc5Z8EE8D/OGOSNm3xwwXcWgXNxQQDlrIQhynqk74rB5KVtwfSVMXVFyok 81bwqhGuFm88B6f4Oq7g==; 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 1giJ53-0002lS-1V; Sat, 12 Jan 2019 13:12:05 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1giJ09-0007qp-LD; Sat, 12 Jan 2019 13:07:09 +0000 Received: by mail-wr1-x443.google.com with SMTP id 96so18060169wrb.2; Sat, 12 Jan 2019 05:07:00 -0800 (PST) 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=tvVOVw+uJ/NYlsQPCS926U6L3ZI+t9KgIAVNoiuYO3Q=; b=JtAaer6HEDFiWaLeOIH0/8LzIGdzppw9B1QdfxxmSQ+wBGHNKH/f/y1U7psRoR6bmK 4eDsTGHkMQUl7L+jj5FS1zUIN17JWkFvP5Tu3qsAiBxOLxub7GESVQ3IP6IfDajUrS93 vGiC6vvItxDzIWQCsECTFO9+ANMhYiYUMREycCELnG2ywNblWMSsapKqRfJzwmQIOuE5 HupJHVB1mqJsmP48ey8DNhyjmfX5AhKvaiwnlQd6QrkcXJI+2YI+/oZ1XXMcOOfFQHgz 9PWPwJkjbR/Eu5ir4RX2X1q1AQh2PkWdr8Rh1VQN1sDYCrPXAWAaWgl73Qc84sDb8iED sRHw== 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=tvVOVw+uJ/NYlsQPCS926U6L3ZI+t9KgIAVNoiuYO3Q=; b=lLjPMKBKDdksfS1QzCnpuk2EL4daglv5/1PBwNvUjYXvnEy7oKFvh4zkGr651+QB46 MNEWRSJ5GMUpyLgxMAubFGNlZtnxbZ+XkgbC69CLmmUjB302SC50SsjS+ZoKxBN8SZ3t QdrDrih6/gEAE8HVj3H+LA7c5r5+FwKv3Xku+eFGIW3AnfU6bfqh76QR4dJCwIz9w7JV /+IToFescFVcHbQFCEDaO4srgR3GI3mJKflNj3MAu9hPjXHz0ZMZ5ca4MiXYzDqmpZ+g b0cNiONI4FWpm8lE+DaefZfi2To0wwijZMzYX9pJ2xMGp+hQzLNozGJkSUrTujMQfh8a n2bw== X-Gm-Message-State: AJcUukcQP/KD+DWH/5rX2B62WV53d2sZoqZIGPIES2ce/EURip9B603Y 6MnJ1amM5UG2euOXqhOiZjIkDbNl X-Google-Smtp-Source: ALg8bN4+1n9EJa6KyREXsijp+byyuXSYwf5FBrOHQvmPSU3bVcW8xDYR/SFpgYajq7HzAoZGO3lzcA== X-Received: by 2002:adf:f1cb:: with SMTP id z11mr17100664wro.35.1547298418976; Sat, 12 Jan 2019 05:06:58 -0800 (PST) Received: from blackbox.darklights.net (p200300DCD7329F008D685E3E728ED25E.dip0.t-ipconnect.de. [2003:dc:d732:9f00:8d68:5e3e:728e:d25e]) by smtp.googlemail.com with ESMTPSA id o5sm37804630wmg.25.2019.01.12.05.06.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 12 Jan 2019 05:06:58 -0800 (PST) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, khilman@baylibre.com Subject: [PATCH 4/6] ARM: dts: meson8b: ec100: add iio-hwmon for the chip temperature Date: Sat, 12 Jan 2019 14:06:47 +0100 Message-Id: <20190112130649.23838-5-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190112130649.23838-1-martin.blumenstingl@googlemail.com> References: <20190112130649.23838-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-20190112_050702_028311_9387A366 X-CRM114-Status: GOOD ( 10.65 ) 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: Martin Blumenstingl , linux-arm-kernel@lists.infradead.org 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 d50fc2f60fa3..cba0006e2de0 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";