From patchwork Sun Jan 28 23:29:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Rossak X-Patchwork-Id: 10188557 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 69D766056F for ; Sun, 28 Jan 2018 23:31:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 65359286D1 for ; Sun, 28 Jan 2018 23:31:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 59D02286D3; Sun, 28 Jan 2018 23:31:11 +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 072E9286D2 for ; Sun, 28 Jan 2018 23:31:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753069AbeA1XbJ (ORCPT ); Sun, 28 Jan 2018 18:31:09 -0500 Received: from mail-wr0-f196.google.com ([209.85.128.196]:46758 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753698AbeA1X3s (ORCPT ); Sun, 28 Jan 2018 18:29:48 -0500 Received: by mail-wr0-f196.google.com with SMTP id g21so5272678wrb.13; Sun, 28 Jan 2018 15:29:47 -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=ErmVdAMUrzJlGY9GkoRZa7HaY57Odu80o20htr8SSv82BQmj11B0bpvcW5lBndaQYz 72K1+i8JYV4dYz3H/fmtqi9e/TMs1dt2/iJ3oMDXWisRDPK4Ce/Weec6dyVDWxvGM2A+ XazIld2xRhAeEvGRegGdJr7Yt0mfLSurmUf/iU7y9tfwef4CDApvw5ABaD/yrEloePZf p6sIeXVWVZgoLg17C0931z+T+p0LsxC7YX5vDneD3opORbdcu6muPIiOB1wBnqySLppY DklPdGZcw1geArWRFCTwuArxZ34hDzPoiDp6sgpJAKVCXRdAI6oDleysExp8LSAq+W7+ Ol7g== 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=kCCINvQBHJbxlyjs3OR+jPidChNY/cEO2idUzI3lzCPFpon/aIb98n+ULU/8U4p07u kui5sLMVjZa8wp6/HWPsfO5EGxHrW3SLWBWur5D6DdnpDAYjAqCSUp103/N1DP/iF65f iDhfB0twIsjGLIwRUJwCSszT4lZGMeOoxj9SNo/LKUDdIYJxIDB442RCMlTEwl9LP+i2 YBTTI91jWUeIABgleg89LDghLxd6qhwzqC6wftkkIbIkROd0osfm9CT31QUqdikOUgAB RhjjGoMxMUJ4Ber0zF99dFnzWZ9lNjBUeszFrtT4x0QYycAl7t6qs+lvmpWeQjTviyYo F3GA== X-Gm-Message-State: AKwxytdImcXNCrdW/0Y/uYK6BOnk9amxuy7vIVufHktRgxioP8uLOTIC ufKjfGJt3zZ0+ZJfYn2Az3w= X-Google-Smtp-Source: AH8x225mtnOEeVNoJNFsSdddaNQCZQtCDNqNKrrbOyiaQKRJ2hkwtAPGFJgdwIPK68h7UMqPJdEi+g== X-Received: by 10.223.158.194 with SMTP id b2mr19001620wrf.265.1517182186708; Sun, 28 Jan 2018 15:29:46 -0800 (PST) Received: from debian-laptop.fritz.box (p578F04D2.dip0.t-ipconnect.de. [87.143.4.210]) by smtp.gmail.com with ESMTPSA id m86sm11839223wmi.40.2018.01.28.15.29.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Jan 2018 15:29:46 -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 v2 13/16] arm: dts: sun8i: h3: add thermal zone to H3 Date: Mon, 29 Jan 2018 00:29:16 +0100 Message-Id: <20180128232919.12639-14-embed3d@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180128232919.12639-1-embed3d@gmail.com> References: <20180128232919.12639-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 = ,