Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp3391917ybn; Fri, 27 Sep 2019 05:48:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqxDJohc6UdlqZdDsJT1UfSc33LRWNQMrIDFdye6zLPCXUikmkEMoZcDavbc8GHu30CcLwLd X-Received: by 2002:a17:906:2794:: with SMTP id j20mr7504166ejc.291.1569588533356; Fri, 27 Sep 2019 05:48:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569588533; cv=none; d=google.com; s=arc-20160816; b=Pd6+gyVeUuqVXBfgM2kiubHh7bmuX5ddK81YykcPlJABSpIAmtU9VDiNiSifU2z9IG gCDm46PQ9kAE2TgXfzJBXWVtQbiXIl03C01J8JIlJQeWwwZbTqoZlyRiwRbdeLC2rMRX GHGCaXghiVoG1HkSpWcp3dLw3KpcJx276HR5s0EZBxFNNpRRGWhI8qlddLtQBskjQbPu TLYdyWNAba9H1v1gYECU8D7qO1DCVZpuZ9xZC2gw506kseHAUijlaoKtRWdpFaGg108F 90FYSmedHeHt/IHli/Qnhjn+n0d1CaGBk7F5dMdavWyMqrM7APrqBj/37xiFMOysl+XT jF5A== 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=9YGH/6YIzv9K3Mh8Ek1+NGOAz5VU0/WuYChxnvTMt8w=; b=cxrvU1v3pVFeY0pEzNPgYRx36k3xq6clhmVn7ZXDmzjAbpLjvm+S6KCk+H4t0AGblx GbYn1dLdOOO7olskDX4WLnLcMzYQ9laMxpP+VrQMmBq6OSga5UjSw3XP27nyDXhpFEx9 y7umdZyXLwOFFxMOhaPf/nHRJXOKol0RjIjHsq90DmMyxRuafi6hbwaOV1hU+fnR2Zhk 4FAJUtefj9cqMerUmQbmQ5wNZIVTSbwkNxe9C3Im8+uPrjbYqNJDfygKPufSPVf/X9q9 vlD0XBL1zpUKji+qm7ApvDso8NEDwF8xiH+5IEpx+6D6CedEARWzBt9Dau1GXF26QK/r G0bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b="hDxy/YRB"; 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 y44si1431443edb.251.2019.09.27.05.48.28; Fri, 27 Sep 2019 05:48:53 -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="hDxy/YRB"; 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 S1727881AbfI0MsE (ORCPT + 99 others); Fri, 27 Sep 2019 08:48:04 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:50332 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726251AbfI0MsC (ORCPT ); Fri, 27 Sep 2019 08:48:02 -0400 Received: by mail-wm1-f65.google.com with SMTP id 5so6476149wmg.0 for ; Fri, 27 Sep 2019 05:48:00 -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=9YGH/6YIzv9K3Mh8Ek1+NGOAz5VU0/WuYChxnvTMt8w=; b=hDxy/YRBspG0UsSQWGlFqgvS2mZSISRc0P+ym8WjN83WN3p6w5of5YxEmAQzevScLO 8IDs68ixRtxeAGWv7HYDzCm/wtJDyTOXBsWhowLWClhZTaQ31cT2Jn2WmkFDHCN58fCy lgQhI/+0Jb4llEQUf8ueqYRquLjEFP9fQk9SxnEZwDTzP/xLSgq9iVy/7C4BDHz6Oetf LDpbqM3FTEAMXqLLcZjaXDXUT5Y+HYx/XOnDKSUmtNrjhNkgeVHHXk9MVecBmVmDmH1Z FWsyNWIPIqf3gUUUmvrtXYjaE77OQR1k5Gry9Hk9wt+LK0AdVWJVHDKdWEQQF78eVLC1 H5bA== 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=9YGH/6YIzv9K3Mh8Ek1+NGOAz5VU0/WuYChxnvTMt8w=; b=Agkg5CKeoHPDRvYSKJ7yBT9j39zoKDA4dXQn19MOyf2FaxpGiXtjbovp2EcdfnwxAy uHWtGncCiIarKj2q+4+06PjLQSTEf+LRk5jpRhJBJuQkT2G6EFcHRzR20g5/xNkgQb73 CNaq7RTSR1eT3uMgCdbQ2GN+z8PWYf+Nzt6uC7qdQoONTbkGCZCCi3ih01oSE86PPoLM PgaAQwRpRZAnOTtV6lou8hAccGAML8DJ3OmEii8QcLuFsv8/EA1E/6CJW7l+5YPXMzKo 5NPDo3AT+pF+LnCVWNhF+q0d3cu8AWVM/6LafPAHwveMlzTq54hFh/kYUr2/KzKhm7QU qjAA== X-Gm-Message-State: APjAAAX02FXakj1d1YJMpnkbgMRpPkMI/8AIGF6Wqm3BDEzB6G6OX/Tb NZSx3cGMewXvuh0tgrHsGFi+Fw== X-Received: by 2002:a05:600c:2:: with SMTP id g2mr7054051wmc.111.1569588480357; Fri, 27 Sep 2019 05:48:00 -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 h9sm2985564wrv.30.2019.09.27.05.47.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Sep 2019 05:47:59 -0700 (PDT) From: Guillaume La Roque To: amit.kucheria@linaro.org, rui.zhang@intel.com, edubezval@gmail.com, daniel.lezcano@linaro.org Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org Subject: [PATCH v5 6/7] arm64: dts: amlogic: g12b: add missing cooling info Date: Fri, 27 Sep 2019 14:47:49 +0200 Message-Id: <20190927124750.12467-9-glaroque@baylibre.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190927124750.12467-1-glaroque@baylibre.com> References: <20190927124750.12467-1-glaroque@baylibre.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add missing #colling-cells field for G12B SoC Add cooling-map for passive and hot trip point Tested-by: Christian Hewitt Tested-by: Kevin Hilman Signed-off-by: Guillaume La Roque --- arch/arm64/boot/dts/amlogic/meson-g12b.dtsi | 29 +++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12b.dtsi index 98ae8a7c8b41..4bb89bce758f 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12b.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-g12b.dtsi @@ -49,6 +49,7 @@ reg = <0x0 0x0>; enable-method = "psci"; next-level-cache = <&l2>; + #cooling-cells = <2>; }; cpu1: cpu@1 { @@ -57,6 +58,7 @@ reg = <0x0 0x1>; enable-method = "psci"; next-level-cache = <&l2>; + #cooling-cells = <2>; }; cpu100: cpu@100 { @@ -65,6 +67,7 @@ reg = <0x0 0x100>; enable-method = "psci"; next-level-cache = <&l2>; + #cooling-cells = <2>; }; cpu101: cpu@101 { @@ -73,6 +76,7 @@ reg = <0x0 0x101>; enable-method = "psci"; next-level-cache = <&l2>; + #cooling-cells = <2>; }; cpu102: cpu@102 { @@ -81,6 +85,7 @@ reg = <0x0 0x102>; enable-method = "psci"; next-level-cache = <&l2>; + #cooling-cells = <2>; }; cpu103: cpu@103 { @@ -89,6 +94,7 @@ reg = <0x0 0x103>; enable-method = "psci"; next-level-cache = <&l2>; + #cooling-cells = <2>; }; l2: l2-cache0 { @@ -219,3 +225,26 @@ &sd_emmc_a { amlogic,dram-access-quirk; }; + +&cpu_thermal { + cooling-maps { + map0 { + trip = <&cpu_passive>; + cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu100 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu101 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu102 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu103 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>, + <&cpu100 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu101 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu102 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu103 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; +}; -- 2.17.1