From patchwork Fri Jan 26 15:19:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Rossak X-Patchwork-Id: 10186307 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A0CA160383 for ; Fri, 26 Jan 2018 15:21:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 921FF29C0C for ; Fri, 26 Jan 2018 15:21:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 85BEE29C19; Fri, 26 Jan 2018 15:21:25 +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=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID 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 1B63F29C12 for ; Fri, 26 Jan 2018 15:21:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753476AbeAZPVM (ORCPT ); Fri, 26 Jan 2018 10:21:12 -0500 Received: from mail-wr0-f194.google.com ([209.85.128.194]:46249 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752894AbeAZPUK (ORCPT ); Fri, 26 Jan 2018 10:20:10 -0500 Received: by mail-wr0-f194.google.com with SMTP id g21so815400wrb.13; Fri, 26 Jan 2018 07:20:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=g61JScaEOzqyAkzOl5H2jDONPw41Hfux8fDovMvXXps=; b=A2U3B2s/PrTqU6nI8FPUtErKFib3Wi0vOe4IlZLNnIzsWRQ1yhPQVe1/RHt5p7C06l du7H3xdK9o+dPECZCeDoxiWQMPWFrLPVf9c3ITTbV7ixhN5ncG0h3mq5FTSR1qTJfyy/ Vfg4A/yHAdGWeI5iXWM2dTzAvnnyno67l/IwxoKuEChQIVRm5dSdZWtC6lSw+29lc/Gr MeFzKPAH24JBMcJvzXw8c+eYUEknRiA/MhG1m+KA90Le/Wt3rqbIPK7HdnsMRhLATImW PWPeURfvndMzVImeZoPsn7UWAf6FfoLSRx7v44Il/ayt5u7LPjSGC1hDAdZ8ItKt7NlE bjSA== 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; bh=g61JScaEOzqyAkzOl5H2jDONPw41Hfux8fDovMvXXps=; b=bL7R0NsbTviBkuCj7+ny+TLHe80QFQfl4gb8XkCZMo7ToDsdGa6egwH4J0NzxTvreW YR1Vx4OGEzNLKKt0iigMZifJlWAu7+0AwNwdZvjKkwc84aVbq1QTaKVjhEW3iwbvITRm fh7/7mj+MBJTahZAP91LFdBJoZkdQixld3Gm/xDAvGjlUiWYdCg5Wv7tw+qF0lCKbx9+ JyP1FSQUGJR1owzigZWijQDhWPW/RYxygzE62U8OhKsxjXltwFOdIypc8iQwcm6XZ0n7 RDiSX/W+Y0sBsZh1P4qcZsyijApcoEQ62yKU1TuHjTHPBuDp1cjPhOpXNBpUoCNBBIEj D6wQ== X-Gm-Message-State: AKwxyteSRaajgNxgFE0joV31pUtUSyxecEgfWWt9eCxBUf+2hIOmu+NO hRKsI/h54C4IiP3H5f8lLAE= X-Google-Smtp-Source: AH8x224dU7HmwP4FiopqtyXzSd3y+GNCHrtXGx3kapGPcA8UOxmigPsq2TbSPG+V6Ec8qmzTESvZ9w== X-Received: by 10.223.198.198 with SMTP id c6mr11752793wrh.159.1516980008820; Fri, 26 Jan 2018 07:20:08 -0800 (PST) Received: from debian-laptop.fritz.box (p578F04D2.dip0.t-ipconnect.de. [87.143.4.210]) by smtp.gmail.com with ESMTPSA id e15sm4586130wmd.26.2018.01.26.07.20.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Jan 2018 07:20:08 -0800 (PST) From: Philipp Rossak To: lee.jones@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, maxime.ripard@free-electrons.com, wens@csie.org, linux@armlinux.org.uk, jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, davem@davemloft.net, hans.verkuil@cisco.com, mchehab@kernel.org, rask@formelder.dk, clabbe.montjoie@gmail.com, sean@mess.org, krzk@kernel.org, quentin.schulz@free-electrons.com, icenowy@aosc.io, edu.molinas@gmail.com, singhalsimran0@gmail.com Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Subject: [PATCH 13/16] arm: dts: sun8i: h3: add thermal zone to H3 Date: Fri, 26 Jan 2018 16:19:38 +0100 Message-Id: <20180126151941.12183-14-embed3d@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180126151941.12183-1-embed3d@gmail.com> References: <20180126151941.12183-1-embed3d@gmail.com> Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds the thermal zones to the H3. We have only one sensor and that is placed in the cpu. Signed-off-by: Philipp Rossak --- arch/arm/boot/dts/sun8i-h3.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3.dtsi b/arch/arm/boot/dts/sun8i-h3.dtsi index fbb007e5798e..3f83f6a27c74 100644 --- a/arch/arm/boot/dts/sun8i-h3.dtsi +++ b/arch/arm/boot/dts/sun8i-h3.dtsi @@ -72,6 +72,15 @@ }; }; + thermal-zones { + cpu-thermal { + /* milliseconds */ + polling-delay-passive = <250>; + polling-delay = <1000>; + thermal-sensors = <&ths 0>; + }; + }; + timer { compatible = "arm,armv7-timer"; interrupts = ,