Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2352270ybh; Mon, 16 Mar 2020 01:21:28 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuaIruejSV66q9KhVkMuJ7t5+9WRG6kd0m93uboyCIEsM2GwasBAh/0fCGY7jZLYU/Z+0VN X-Received: by 2002:aca:b1d4:: with SMTP id a203mr1258470oif.91.1584346888316; Mon, 16 Mar 2020 01:21:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584346888; cv=none; d=google.com; s=arc-20160816; b=GXJvsi2zpLabD4b4xPky5GL8QnO92B0QJjxUpxMQen3iayNxvvaqoebKYkkuIETHfu 7MgmYXkENB8Zr64wnSw20qtMrD9bQLobu1yv5dVqlKOqhdOklj6H/gc9HrMbG9QeIaUs 2v3DX6fhXuywpt51+VSULbEPg2/FVG+eHuHKF+pITPgylx/mwEcFoYH8dGRM7OQrEzhQ kDDsnWSzWsgBSBoO7yhT75OqeErqRisVi54W7b1pYpDkkCOKz3oiSNd1OBOIWNpw6L2T n3TmZHqLFb3thM7DhN1pyKOU4l43ZuMZjU+O9cowmYSmq3owRYg775Act/l6zvYO0f+D NzTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:autocrypt:from:references:cc:to:subject :dkim-signature; bh=baY2r6Aevv7unA5KNfidu3v/cfCtBoZwuj2oPxp0WE8=; b=A+tvagLi2AcaW4Z9mhaNltZtuAffFP7+pS1fKPgpWgn16lCCV+X9cmfWsRFVYUht7Q m3pLA2WH70MLDyhd75fmkdn3bs/bjiIvAT10EOb7jRmEjyiR40x5TfNSagKZUuGp680L Y4qTDywGuZR1vE/NpgujL0q8XQR7pQdem9aGQU8fkU3FMbl4WTr231McDuI8gsEkgsj4 5KLGB0gtz6iadIseGUvYJ0FQVWVHNK4LcZNTvy84cz07jEti4sWUQoCcEoRfE/OGo8bC BlgV3hMePo9yhgPYqf4uPwidrd6y2kudzFrq1InUdeDS7GDEv4BWP8g1DUXKrJ/FjsG5 pbkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=wYHEGcq1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y65si8848774oie.92.2020.03.16.01.21.15; Mon, 16 Mar 2020 01:21:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=wYHEGcq1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730075AbgCPIUo (ORCPT + 99 others); Mon, 16 Mar 2020 04:20:44 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:37612 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730004AbgCPIUn (ORCPT ); Mon, 16 Mar 2020 04:20:43 -0400 Received: by mail-wr1-f67.google.com with SMTP id 6so19942658wre.4 for ; Mon, 16 Mar 2020 01:20:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:autocrypt:organization:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=baY2r6Aevv7unA5KNfidu3v/cfCtBoZwuj2oPxp0WE8=; b=wYHEGcq1r6Hy7rtt4oW+YzIRzZCdfmidvrzTMcoGNOExpXVlFZ7mfGgmRoWwDFW9E+ Hagj76DMBAOCz3McMyzNLZAuhxWWbZoavHULcF9ykgI/jdofdDHp7gLcpY3LvpTbv9ag CQzp3AMqw3qwqYAB7pyvDTKossur0Qkr9u3A/JV48KSgGZgNTBApJr8bNoO5RhsDOejV 6/D55cN+GW0a0iLKySvxNE5cWr4CV6gyF+uYttqjyHIPJaxXPLs8fskgHWtwUUEgMA0E QjU4XsI/ocSeA+JN1MwabQEVGgQ5YZXt3Y9cZbhV2NyuFwc/Lf9RdhmwqbSfnpnx5KGs m5ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:autocrypt :organization:message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=baY2r6Aevv7unA5KNfidu3v/cfCtBoZwuj2oPxp0WE8=; b=T0OIosNfuRT7EEzO36SBpSIiyMeDmenpgISOm1c2Rb2VBowb4ETk3RTDOBe1/38HbM zQ1ZT4DF5bwBzl0VnU2AD96a3ZATXI1ga/lvtPOzR6XADg5lLLgQZ3dBsLVpp6WsPrAm zct9dmjrmvk0FRYtsasVJZTv5I99NO4v49uYH8pJH5eI0ZMnBbX3XiM9BFfXnTMm2Jbu 7meEnnia3MSA+HKiLsjHUhxNWIJtq0kdnDXeSuUHfehfno3zHCrpx47CrLrcv/6yRB56 4zEBGUZeBFaYe5yu0/Z1YZX0bmIf7sdsvKe7vKxQNScu/VGofcwz73uygZMdroWCawr4 vbEQ== X-Gm-Message-State: ANhLgQ1GaAfTCbC9uL/MurWmOs11BozyxzNrGCpB8nOyvTt5Y7J2+sgn jx2F+dyaBrqDrYQMHJmSRCFLmA== X-Received: by 2002:adf:bc4a:: with SMTP id a10mr4123904wrh.7.1584346839801; Mon, 16 Mar 2020 01:20:39 -0700 (PDT) Received: from [10.1.2.12] (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id a1sm34792776wro.72.2020.03.16.01.20.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 16 Mar 2020 01:20:39 -0700 (PDT) Subject: Re: [PATCH] arm64: dts: meson: add thermal zones to meson gx devices To: Christian Hewitt , Rob Herring , Mark Rutland , Kevin Hilman , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Nick Xie References: <1584328854-28575-1-git-send-email-christianshewitt@gmail.com> From: Neil Armstrong Autocrypt: addr=narmstrong@baylibre.com; prefer-encrypt=mutual; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDAaRl+8JUTjc0CNOTpCeik 80TZcE6f8M76Xa6yU8VcNko94Ck7iB4vj70q76P/J7kt98hklrr85/3NU3oti3nrIHmHABEB AAHNKE5laWwgQXJtc3Ryb25nIDxuYXJtc3Ryb25nQGJheWxpYnJlLmNvbT7CwHsEEwEKACUC GyMGCwkIBwMCBhUIAgkKCwQWAgMBAh4BAheABQJXDO2CAhkBAAoJEBaat7Gkz/iubGIH/iyk RqvgB62oKOFlgOTYCMkYpm2aAOZZLf6VKHKc7DoVwuUkjHfIRXdslbrxi4pk5VKU6ZP9AKsN NtMZntB8WrBTtkAZfZbTF7850uwd3eU5cN/7N1Q6g0JQihE7w4GlIkEpQ8vwSg5W7hkx3yQ6 2YzrUZh/b7QThXbNZ7xOeSEms014QXazx8+txR7jrGF3dYxBsCkot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5jeCCspj4jNsWiYhljjIbrEj300g8RUT2U0 FcEoiV7AjJWWQ5pi8lZJX6nmB0lc69Jw03V6mblgeZ/1oTZmOepkagwy2zLDXxihf0GowUif GphBDeP8elWBNK+ajl5rmpAMNRoKxpN/xR4NzBg62AjyIvigdywa1RehSTfccQARAQABwsBf BBgBAgAJBQJNWQbPAhsMAAoJEBaat7Gkz/iuteIH+wZuRDqK0ysAh+czshtG6JJlLW6eXJJR Vi7dIPpgFic2LcbkSlvB8E25Pcfz/+tW+04Urg4PxxFiTFdFCZO+prfd4Mge7/OvUcwoSub7 ZIPo8726ZF5/xXzajahoIu9/hZ4iywWPAHRvprXaim5E/vKjcTeBMJIqZtS4u/UK3EpAX59R XVxVpM8zJPbk535ELUr6I5HQXnihQm8l6rt9TNuf8p2WEDxc8bPAZHLjNyw9a/CdeB97m2Tr zR8QplXA5kogS4kLe/7/JmlDMO8Zgm9vKLHSUeesLOrjdZ59EcjldNNBszRZQgEhwaarfz46 BSwxi7g3Mu7u5kUByanqHyA= Organization: Baylibre Message-ID: <90c9133e-3a56-d6d6-abf0-9a3c269bc54a@baylibre.com> Date: Mon, 16 Mar 2020 09:20:38 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <1584328854-28575-1-git-send-email-christianshewitt@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16/03/2020 04:20, Christian Hewitt wrote: > Adapt and update current VIM2 thermal zones support so that zones are > available on all meson GXBB/GXL/GXM devices - similar to changes made > for G12A/G12B/SM1 devices. > > Suggested-by: Nick Xie > Signed-off-by: Christian Hewitt > --- > arch/arm64/boot/dts/amlogic/meson-gx.dtsi | 52 +++++++++++++ > .../boot/dts/amlogic/meson-gxm-khadas-vim2.dts | 87 ++++------------------ > arch/arm64/boot/dts/amlogic/meson-gxm.dtsi | 28 +++++++ > 3 files changed, 95 insertions(+), 72 deletions(-) > > diff --git a/arch/arm64/boot/dts/amlogic/meson-gx.dtsi b/arch/arm64/boot/dts/amlogic/meson-gx.dtsi > index 40db06e..03f79fe 100644 > --- a/arch/arm64/boot/dts/amlogic/meson-gx.dtsi > +++ b/arch/arm64/boot/dts/amlogic/meson-gx.dtsi > @@ -12,6 +12,7 @@ > #include > #include > #include > +#include > > / { > interrupt-parent = <&gic>; > @@ -83,6 +84,7 @@ > enable-method = "psci"; > next-level-cache = <&l2>; > clocks = <&scpi_dvfs 0>; > + #cooling-cells = <2>; > }; > > cpu1: cpu@1 { > @@ -92,6 +94,7 @@ > enable-method = "psci"; > next-level-cache = <&l2>; > clocks = <&scpi_dvfs 0>; > + #cooling-cells = <2>; > }; > > cpu2: cpu@2 { > @@ -101,6 +104,7 @@ > enable-method = "psci"; > next-level-cache = <&l2>; > clocks = <&scpi_dvfs 0>; > + #cooling-cells = <2>; > }; > > cpu3: cpu@3 { > @@ -110,6 +114,7 @@ > enable-method = "psci"; > next-level-cache = <&l2>; > clocks = <&scpi_dvfs 0>; > + #cooling-cells = <2>; > }; > > l2: l2-cache0 { > @@ -117,6 +122,53 @@ > }; > }; > > + thermal-zones { > + cpu-thermal { > + polling-delay-passive = <250>; /* milliseconds */ > + polling-delay = <1000>; /* milliseconds */ > + > + thermal-sensors = <&scpi_sensors 0>; > + > + trips { > + cpu_passive: cpu-passive { > + temperature = <80000>; /* millicelsius */ > + hysteresis = <2000>; /* millicelsius */ > + type = "passive"; > + }; > + > + cpu_hot: cpu-hot { > + temperature = <90000>; /* millicelsius */ > + hysteresis = <2000>; /* millicelsius */ > + type = "hot"; > + }; > + > + cpu_critical: cpu-critical { > + temperature = <110000>; /* millicelsius */ > + hysteresis = <2000>; /* millicelsius */ > + type = "critical"; > + }; > + }; > + > + cpu_cooling_maps: cooling-maps { > + map0 { > + trip = <&cpu_passive>; > + cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; > + }; > + > + map1 { > + trip = <&cpu_hot>; > + cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; > + }; > + }; > + }; > + }; > + > arm-pmu { > compatible = "arm,cortex-a53-pmu"; > interrupts = , > diff --git a/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts b/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts > index d5dc128..27eeab7 100644 > --- a/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts > +++ b/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts > @@ -8,7 +8,6 @@ > /dts-v1/; > > #include > -#include > > #include "meson-gxm.dtsi" > > @@ -100,49 +99,6 @@ > clock-names = "ext_clock"; > }; > > - thermal-zones { > - cpu-thermal { > - polling-delay-passive = <250>; /* milliseconds */ > - polling-delay = <1000>; /* milliseconds */ > - > - thermal-sensors = <&scpi_sensors 0>; > - > - trips { > - cpu_alert0: cpu-alert0 { > - temperature = <70000>; /* millicelsius */ > - hysteresis = <2000>; /* millicelsius */ > - type = "active"; > - }; > - > - cpu_alert1: cpu-alert1 { > - temperature = <80000>; /* millicelsius */ > - hysteresis = <2000>; /* millicelsius */ > - type = "passive"; > - }; > - }; > - > - cooling-maps { > - map0 { > - trip = <&cpu_alert0>; > - cooling-device = <&gpio_fan THERMAL_NO_LIMIT 1>; > - }; > - > - map1 { > - trip = <&cpu_alert1>; > - cooling-device = <&gpio_fan 2 THERMAL_NO_LIMIT>, > - <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > - <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > - <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > - <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > - <&cpu4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > - <&cpu5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > - <&cpu6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > - <&cpu7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; > - }; > - }; > - }; > - }; > - > hdmi_5v: regulator-hdmi-5v { > compatible = "regulator-fixed"; > > @@ -198,36 +154,23 @@ > hdmi-phandle = <&hdmi_tx>; > }; > > -&cpu0 { > - #cooling-cells = <2>; > -}; > - > -&cpu1 { > - #cooling-cells = <2>; > -}; > - > -&cpu2 { > - #cooling-cells = <2>; > -}; > - > -&cpu3 { > - #cooling-cells = <2>; > -}; > - > -&cpu4 { > - #cooling-cells = <2>; > -}; > > -&cpu5 { > - #cooling-cells = <2>; > -}; > - > -&cpu6 { > - #cooling-cells = <2>; > -}; > +&cpu_cooling_maps { > + map0 { > + cooling-device = <&gpio_fan THERMAL_NO_LIMIT 1>; > + }; > > -&cpu7 { > - #cooling-cells = <2>; > + map1 { > + cooling-device = <&gpio_fan 2 THERMAL_NO_LIMIT>, > + <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; > + }; > }; > > ðmac { > diff --git a/arch/arm64/boot/dts/amlogic/meson-gxm.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxm.dtsi > index 5ff64a0..b6f89f1 100644 > --- a/arch/arm64/boot/dts/amlogic/meson-gxm.dtsi > +++ b/arch/arm64/boot/dts/amlogic/meson-gxm.dtsi > @@ -49,6 +49,7 @@ > enable-method = "psci"; > next-level-cache = <&l2>; > clocks = <&scpi_dvfs 1>; > + #cooling-cells = <2>; > }; > > cpu5: cpu@101 { > @@ -58,6 +59,7 @@ > enable-method = "psci"; > next-level-cache = <&l2>; > clocks = <&scpi_dvfs 1>; > + #cooling-cells = <2>; > }; > > cpu6: cpu@102 { > @@ -67,6 +69,7 @@ > enable-method = "psci"; > next-level-cache = <&l2>; > clocks = <&scpi_dvfs 1>; > + #cooling-cells = <2>; > }; > > cpu7: cpu@103 { > @@ -76,6 +79,7 @@ > enable-method = "psci"; > next-level-cache = <&l2>; > clocks = <&scpi_dvfs 1>; > + #cooling-cells = <2>; > }; > }; > }; > @@ -124,6 +128,30 @@ > compatible = "amlogic,meson-gxm-aoclkc", "amlogic,meson-gx-aoclkc"; > }; > > +&cpu_cooling_maps { > + map0 { > + cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; > + }; > + > + map1 { > + cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; > + }; > +}; > + > &saradc { > compatible = "amlogic,meson-gxm-saradc", "amlogic,meson-saradc"; > }; > Reviewed-by: Neil Armstrong