Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6118765ybi; Wed, 31 Jul 2019 08:38:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqzMPddpHfUqmZen8x5QCSxbJZplpa2oLYQ7WQ9VfF0CxDg8s/ZhMX3FiWUL+VI7zsxMHBtR X-Received: by 2002:a17:90a:fa12:: with SMTP id cm18mr3551905pjb.137.1564587500985; Wed, 31 Jul 2019 08:38:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564587500; cv=none; d=google.com; s=arc-20160816; b=FfG27RqXmHRMpKdB9/zym0A/dVc+/i/i5QhAV6dRPhE5KMEUw3EQIBZfxWmVaNX/90 WovCF43EJNwPu8B1eYXFG4NVNswpPLrGf9aOcCLmiXi+D/2+xcx7P6goHBVuf7z5aZNJ sfPIs+Ajz4Dc3h8HCRRXWlGRiTSv2iYNrKTAWxfKj18ZJqGEOsM1TCN/kJ6pCgdH9jXc 5Nu/CMEla5XH+K7k4B+eavkM207DgZO0pYvF5qaLnXsSISioAjSH6dbzss9yWXL3tLNb +HqBizF6aEk0cY0ajQ5W6HflJePs9HPddfcu9o2uNlB7TmiFUwlarTPLSD0uBnvGEQsb xNzw== 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=+6gJ8AQ+8bL1C5uonG6TfemRUot9hgKsCIvxaaOHaM0=; b=kHlyZnwuEAOOZHYkEDh2plH4FTm3Z+1Aj8xa659SBL7xtHZNVzzXIFyFSQYOB0O3uz bagrWKrBhi4DC3iNrYw1EKSqxD6E6+eM7IAqdCi0Cq580HFYi5iTSyfjEIESZnatQHvC 7DeGKcv7+oN9AaqEmNoo5H1TY2ojp5su5u2zw4hljAg/oG1J31V2k8XryskJRftvkp/7 59EoR/BSfobCyaq6xAPmspaXyHbhqvibaikoUz2hEqV6LGNJFvI4kegWUYiJbo2XIqn3 v4KbMyn1UpdkCPR661HjDpPm/DbAVWpKCEjxkzfoAXfzOdf0ZLkm7SClfxjgEsYWicWx Or8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=bpMaWmEB; 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 b5si34424127pgi.324.2019.07.31.08.38.06; Wed, 31 Jul 2019 08:38:20 -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=bpMaWmEB; 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 S1729406AbfGaPfx (ORCPT + 99 others); Wed, 31 Jul 2019 11:35:53 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:50733 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729041AbfGaPfh (ORCPT ); Wed, 31 Jul 2019 11:35:37 -0400 Received: by mail-wm1-f68.google.com with SMTP id v15so61331289wml.0 for ; Wed, 31 Jul 2019 08:35:36 -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=+6gJ8AQ+8bL1C5uonG6TfemRUot9hgKsCIvxaaOHaM0=; b=bpMaWmEB0gYIdBRiCkZ0Njf50rEB/8dTwJKP8YnC2iKk5DZgQ4+wDGjKSBizhNT5mX 5GxGglVZYHkf88xrTqV8T/3QUt1mywoY6JqqDc/OKAJqSwtvZ1StvCgO9WI0vG9Kxs3A pECJgUpFI+b/qMezVjG8piiGEminumNEOX7DAd0cIWFhtI8azf2cZ10uBUfyDiaKnfun 8EoKqZhkC+SrY1GkwKqvhnujO/2XsiMSfQxhLC1QEP+jDtVmKO5MkjQob+3GpcofwES2 Pgl19CK+52aBci57jDSOaFoYw6kvlG0doYNoCs3+h9/SYq5UF2DFkd3KsXEXrYMrIPDk x4ag== 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=+6gJ8AQ+8bL1C5uonG6TfemRUot9hgKsCIvxaaOHaM0=; b=II0LMOXxLEI/FMwSl9TYTdgWmNzpIgtxiKTGkahxcUTHeUMVJ73QDEzANEGtlqyI6B czf7cnZIj3PYuI/FChIf/nFwuCdmIF2h7h34zOnx9PnX45toX5vHttC/+P91Sbq/Aktm 1LJcFucOL60WaDDmkSb/Eek4GKjF6nPwPEFke7iS4jngEMkQcYriTpfnDCm/jsbsfhOu VHCXkDYL9Z6gsjhFOv2YdPoomh8X4LBDBkdR1hL9kl4cRAFFa19bNTOzfVRWfYdc7A8w jKweuvyl3JgIg/6jbGsYX11UTGSVV4dn9d+vicWdOE7ltwhx/rq99uy7rGR8T02CZPSf GFlA== X-Gm-Message-State: APjAAAVujQIjHJ0oPPW5yyNG+SKV2Mfwa7ViIo1wwud3a/ddoYlDcS0f 50R19dQ2vSJZusqweOD+Oiz7IA== X-Received: by 2002:a7b:c081:: with SMTP id r1mr62192131wmh.76.1564587335879; Wed, 31 Jul 2019 08:35:35 -0700 (PDT) Received: from glaroque-ThinkPad-T480.baylibre.local (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id i13sm62834396wrr.73.2019.07.31.08.35.34 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 31 Jul 2019 08:35:35 -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 v2 4/6] arm64: dts: meson: sei510: Add minimal thermal zone Date: Wed, 31 Jul 2019 17:35:27 +0200 Message-Id: <20190731153529.30159-5-glaroque@baylibre.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190731153529.30159-1-glaroque@baylibre.com> References: <20190731153529.30159-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 DDR and CPU sensor 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