Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp4084207ybh; Tue, 6 Aug 2019 06:07:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqyslFrPaGBA9OjiJ9j6jrg58o6avMKWbgWpIeeO8sFYgI5hBHmD/iJ0ySRNJZeGicph7Fup X-Received: by 2002:a17:902:7686:: with SMTP id m6mr3103879pll.239.1565096820869; Tue, 06 Aug 2019 06:07:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565096820; cv=none; d=google.com; s=arc-20160816; b=GVwc9P3Gt2jBsjeN0gXtI0fVOkKo4dTEdaULz8tmqrvLaP1WZA87Oluo8nselZWylA Gp6pp0/emPPPLFpd7K8k5jsC6SaIBrxP+LIEkRmBeORmOV4Og/Zl/T4X27d2YpEFi7fy PAl+BBeQHcxJOsqA4Dej3dYSKHw7Rx8rNso+ApIGnZ9i29kbd1lSC0pfMtAygxT5l2e3 qf/GJ7xq7d/XvFk4zbTEOp87bRku381qeQP3NYBtC2DEE4/ExrgKUQP9JEHtJhockppt m6MTK+hJCvujpRC9epAEpk8nqQwBlklIybkpXICHqEHN3XrYggDaMt7cvcESCyDd/4Gv lQaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=qwty+uxLKW1T/NpMTHcmh0LshwdYZ4vWjP/ELdKEa2o=; b=LV8e4oBbQ0srEgzGbKT3aJF6Vpss6/vhHFekEGL5xF+PeSf6zn/1piYvRbVsu2hN3x NqsNy+pReB2ZE7a6Ma+1SrnvYvMtj41o5aK5p4tmKHbvEOXtstSFHkTPvjy2XifC6Vp7 C6AN++r11reLiw+nc5G69KrpnH9yu1zrpJZwt3x7ltfTwGLdE0BhpNofEO1cu6HNvlgT m4A86dAej9TRw15ERbywGDzsNs6G5LqkYVPty7zly0cAfA71qCMubQ8j1cxOO3g2R7gs hS82sNcAxWE9F4OwgQ6+DEIXAjAtyTxF6Tkl56tptUTH5n/24BD9TAYwN+vxVb5xZXaF Xmqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=D8KntWaH; 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 d14si12680644pgm.346.2019.08.06.06.06.43; Tue, 06 Aug 2019 06:07:00 -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=D8KntWaH; 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 S1732325AbfHFNFe (ORCPT + 99 others); Tue, 6 Aug 2019 09:05:34 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:41953 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731813AbfHFNFR (ORCPT ); Tue, 6 Aug 2019 09:05:17 -0400 Received: by mail-wr1-f65.google.com with SMTP id c2so84608951wrm.8 for ; Tue, 06 Aug 2019 06:05:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=qwty+uxLKW1T/NpMTHcmh0LshwdYZ4vWjP/ELdKEa2o=; b=D8KntWaHGtZ31QHHDa61n2oMLWd4F23GRShXo3nHC6VQoVhNaFY7sDI/Csy/6Me9yf BI/24N1NVcDWsyki+QKrIraE8cg+2vsh/62upOMDFf0UoUPZtP9yavFP8NT+cp4QwCTe 6onwk+WuG++MfoPTDsWpopIQOXhv6h8asue7aGwn0YDIHZ9qw49q/yI4XBOQ4kqMv4/k TQXpXB450iCNK8XIcGfFP8l8OwXWAJ8/N2Q3g3D9Dqzb7GW7QcS7Ua4M9lLgtffPhsQT HtHqzc+9c7n9a7CHlTaMzkEyLLYjEDjyCxvwxljpqgjQXKx69nTdjyotbyRsqgePoLm6 5vlA== 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=qwty+uxLKW1T/NpMTHcmh0LshwdYZ4vWjP/ELdKEa2o=; b=lYa4qDz1S5RAnEJVKOouCMWOjA98lJ1A/Dlwl+7R5K6lOTrIa8f/WMEDzuemie3b/w wuCROQI628t6wzJ6QyC05prntqax6hU5m4uYEM/nljFLYGAWaOpkNVLNvqZl7okgAC1e GuRFrk6/QwF2AxKDQM34W07c74LIUBhbYJoORCd960tI1iaw4ynqRAp7rol2fEJqx9x3 vsxkytyg1TK+xCPNzhrTUjUDFFgt0sQtiG6gg/LxKKUWmQwFadeRhPtdGwWH938hE65i 9rMcgNCHWjTO+bZMsAuzjbFP+1Mwn++CFhTrbUmxIvHQER0yI+O1gbMvFQR1v2+bt8tg JvZQ== X-Gm-Message-State: APjAAAVaqEejUC+78Jgm0URbLcAY1s8gWuIN60qDspwKRoR02w9aDnJb YWCrnHmho9WcW20qy2mHEFrRkQ== X-Received: by 2002:adf:e94a:: with SMTP id m10mr3455716wrn.245.1565096714776; Tue, 06 Aug 2019 06:05:14 -0700 (PDT) Received: from glaroque-ThinkPad-T480.local (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id j33sm201888738wre.42.2019.08.06.06.05.13 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 06 Aug 2019 06:05:14 -0700 (PDT) From: Guillaume La Roque To: daniel.lezcano@linaro.org, khilman@baylibre.com Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 4/6] arm64: dts: meson: sei510: Add minimal thermal zone Date: Tue, 6 Aug 2019 15:05:04 +0200 Message-Id: <20190806130506.8753-5-glaroque@baylibre.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190806130506.8753-1-glaroque@baylibre.com> References: <20190806130506.8753-1-glaroque@baylibre.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add minimal thermal zone for two temperature sensor One is located close to the DDR and the other one is located close to the PLLs (between the CPU and GPU) Signed-off-by: Guillaume La Roque --- .../boot/dts/amlogic/meson-g12a-sei510.dts | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts b/arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts index 979449968a5f..2c16a2cba0a3 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts +++ b/arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts @@ -10,6 +10,7 @@ #include #include #include +#include / { compatible = "seirobotics,sei510", "amlogic,g12a"; @@ -33,6 +34,53 @@ ethernet0 = ðmac; }; + thermal-zones { + cpu-thermal { + polling-delay = <1000>; + polling-delay-passive = <100>; + thermal-sensors = <&cpu_temp>; + + trips { + cpu_critical: cpu-critical { + temperature = <110000>; /* millicelsius */ + hysteresis = <2000>; /* millicelsius */ + type = "critical"; + }; + }; + + cooling-maps { + map { + trip = <&cpu_critical>; + 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>; + }; + }; + }; + + ddr-thermal { + polling-delay = <1000>; + polling-delay-passive = <100>; + thermal-sensors = <&ddr_temp>; + + trips { + ddr_critical: ddr-critical { + temperature = <110000>; /* millicelsius */ + hysteresis = <2000>; /* millicelsius */ + type = "critical"; + }; + }; + + cooling-maps { + map { + trip = <&ddr_critical>; + cooling-device = <&mali THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + }; + }; + mono_dac: audio-codec-0 { compatible = "maxim,max98357a"; #sound-dai-cells = <0>; @@ -321,6 +369,7 @@ operating-points-v2 = <&cpu_opp_table>; clocks = <&clkc CLKID_CPU_CLK>; clock-latency = <50000>; + #cooling-cells = <2>; }; &cpu1 { @@ -328,6 +377,7 @@ operating-points-v2 = <&cpu_opp_table>; clocks = <&clkc CLKID_CPU_CLK>; clock-latency = <50000>; + #cooling-cells = <2>; }; &cpu2 { @@ -335,6 +385,7 @@ operating-points-v2 = <&cpu_opp_table>; clocks = <&clkc CLKID_CPU_CLK>; clock-latency = <50000>; + #cooling-cells = <2>; }; &cpu3 { @@ -342,6 +393,7 @@ operating-points-v2 = <&cpu_opp_table>; clocks = <&clkc CLKID_CPU_CLK>; clock-latency = <50000>; + #cooling-cells = <2>; }; &cvbs_vdac_port { @@ -368,6 +420,10 @@ status = "okay"; }; +&mali { + #cooling-cells = <2>; +}; + &hdmi_tx { status = "okay"; pinctrl-0 = <&hdmitx_hpd_pins>, <&hdmitx_ddc_pins>; -- 2.17.1