Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp328250ybf; Thu, 27 Feb 2020 22:15:00 -0800 (PST) X-Google-Smtp-Source: APXvYqzNM/xbCCdGbbGyCM6W77y45w9EwT+twpE3q2gdV1GKUTCcXG/3CEzGLDrXjrCBwQA6x5MQ X-Received: by 2002:a05:6830:c7:: with SMTP id x7mr2001631oto.272.1582870500123; Thu, 27 Feb 2020 22:15:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582870500; cv=none; d=google.com; s=arc-20160816; b=o2t0Hso1h2bAMOQAJqc0BL10vW1oTIxPXVndbB2gMOWyu7todgsEgxuYSW3TkmLbHP 1dOYzvnBeAAAZWHkjoDogqOweFSllzTk3ow3kGlsaRdin234lCAJKJloAOB8HeSs0wk2 q/d4opNu3Q9WYre6uV0YAuYthMVWKf9QQ2J+SCfILrVpoGkdAusYRfdksHSXhAkhmWND aaA3Fbg2HRWYH3PGW9igCpNWRxg00dZcxjgo8IhFB5oLlLWf55HZ5rcREmk0AFmkMPXk DHhWsjD+XFrZVyjh+hPbyKWZZZhSkQ8/t5Y4DLhjC3zDA8IUHGvnTsW8mGn6guY+G3xU XpVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=7dy/Kujh8oupW/pVHgPs57WktyNPAbW19eFPb391nVY=; b=nI3IqESqlO5fAPSwud6F70TqmzIhu9/U4U9D2mGATCAaEQX/oPkxbR3C3DEHd/VkUG 8WTnm1qVRl3A5XpaL7TkLZZV1PLZ4xI8IMc/Afx5EfITVFkQLncpjf7yaKaRYV3UgKV5 iLx6H9jYPv3/ozDXJz4bSA3/ZKpuo+3KJWTk1SXk7+Se2x0joPDVyNLdLadR3qmr0JTB 0PJs6HJaSONSoYuofInyk+/SIJd+SmUVQNxkDMw+3ZWstYfZL3XaflevcwLYK9Ar2Txb 0/nQxnozLy5sYw2n/mABZ9UcXKF+4ovR5kRnnjvKTN+5Z7Jlq8aE7gBpLcACZOeHIgHq pwjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fsxo5mfK; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l6si1056397otk.134.2020.02.27.22.14.47; Thu, 27 Feb 2020 22:15:00 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=fsxo5mfK; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726751AbgB1GNT (ORCPT + 99 others); Fri, 28 Feb 2020 01:13:19 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:34130 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725805AbgB1GNT (ORCPT ); Fri, 28 Feb 2020 01:13:19 -0500 Received: by mail-lj1-f196.google.com with SMTP id x7so2049012ljc.1; Thu, 27 Feb 2020 22:13:17 -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; bh=7dy/Kujh8oupW/pVHgPs57WktyNPAbW19eFPb391nVY=; b=fsxo5mfKJg6j7cF0VkdAc/Hf3t4sJlFk33XPf59uRYualOkUrk/UJzxZ7KWH04ia5n xj09T9DCmsQsThEtDPqXm6TCNRL/V0/Lo5ep2lfIavLQJo3HYvJKrTSzdqx/Yzf5mO00 VF7rP+MEuKyBGOJkzXioIcKPm3D4Bd/8L7gC18p0gjCpv47SQ7fmbsA7MChCo3obBPzc cZHCMZpRZKtIIDnVpEcx/ZiwPUmgcs//DbDVz7kuc/Fsh19/Pip/fLXsvHsw4p91DTD4 JHfZNCChQdQ5o0KyQF7A4LgJmrUTZZks0/rLgCEwkJERmzE26+Ey7oxRSzBYMq74e4ae u+7A== 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; bh=7dy/Kujh8oupW/pVHgPs57WktyNPAbW19eFPb391nVY=; b=Bj3SXKYXHSdFaMnYbat2KP4+3qR4N/AxWC3if7FmWMCzjGBTS+3Xf2SufybpWNjp/T IoM9CmdBSl+e41SiIe0Se4dTTtApt+fzqrPwix0TfEA4iO8jKYR7qaL6HPEqxvRnNBD3 0Bx7KFi2Mfqc0e85iGJfVQxfnsu93P8MP3L29sh3jXsld/9f/OdCU+gt600kmOMmZmLa +357FzULS+nLDrCLmI9zsZr+z2UvphaDkIHPDEU3ws/0zXYsVqNZzF6KKhNuM87CQOjW aFAQSUtQc6LsVHU6ygZkBDetQ7JtaDBTwHK3tbSzwlkc7Bgo/X97ewQseOvRGl3t6HEW NIPg== X-Gm-Message-State: ANhLgQ2VUveI7sHNUIKFhjd+0MJXzLRuMB07jd9FyYBV2nk8MIjzb6J/ ZmMabyYR5mWgCTxv148iI3U= X-Received: by 2002:a2e:9a93:: with SMTP id p19mr1812515lji.177.1582870397017; Thu, 27 Feb 2020 22:13:17 -0800 (PST) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id f14sm4149299lfh.40.2020.02.27.22.13.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 27 Feb 2020 22:13:16 -0800 (PST) From: Christian Hewitt To: 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: Christian Hewitt , Nick Xie Subject: [PATCH] arm64: dts: meson: add thermal zones to gxl-s905x-khadas-vim Date: Fri, 28 Feb 2020 10:12:26 +0400 Message-Id: <1582870346-74145-1-git-send-email-christianshewitt@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add thermal zones to the VIM1 board, copying the zone config from the existing VIM2 board. Suggested-by: Nick Xie Signed-off-by: Christian Hewitt --- .../dts/amlogic/meson-gxl-s905x-khadas-vim.dts | 50 ++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-khadas-vim.dts b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-khadas-vim.dts index 440bc23..2c198c4 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-khadas-vim.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-khadas-vim.dts @@ -6,6 +6,7 @@ /dts-v1/; #include +#include #include "meson-gxl-s905x-p212.dtsi" @@ -63,6 +64,39 @@ }; }; }; + + 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_alert1>; + 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>; + }; + }; + }; + }; }; &cec_AO { @@ -72,6 +106,22 @@ hdmi-phandle = <&hdmi_tx>; }; +&cpu0 { + #cooling-cells = <2>; +}; + +&cpu1 { + #cooling-cells = <2>; +}; + +&cpu2 { + #cooling-cells = <2>; +}; + +&cpu3 { + #cooling-cells = <2>; +}; + &hdmi_tx { status = "okay"; pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>; -- 2.7.4