Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp3391860ybn; Fri, 27 Sep 2019 05:48:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqxWR+y91j57YmDxtjqHMtE2O5kGr2/jrhOoY4qG/zv40SiG065APcxRG3nEtouhMFY2paB+ X-Received: by 2002:a50:cfc7:: with SMTP id i7mr4172643edk.89.1569588528871; Fri, 27 Sep 2019 05:48:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569588528; cv=none; d=google.com; s=arc-20160816; b=kzXFtT7JN9FRtpffjW4AZekrKZLULwooumgbR0B46KbKSZ7lHWYH5/ta8doePmYGbn zugBCE9vitcx7c4V0DNrYhGgvOZjpBNMeyZk+3n8ecRGNqXWE9M5DUjJ+KDMJf/PduIn UM5NwEeOPFlpl/NonGrnNrKENyeG/0t8sgROjOsqroEJ2cqcjggCjg0tlS2N2KrjSQAD ypuJtiiChDSGRBsQl6sEfoTvl4m8jwh4kyHu1h5f828edsdDc/OOAzOQym1OiWe0oaB1 bngS8MEn/AwBw5siOmbiSyUNuq5lDbSbiAwzAqEeP4qqmaraylCzKjuS/WqEWSG/FPNA p+Rw== 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=zgQiYOcXjLpErtmewmC1NSKjM9uImyZ40PA0XfnXK5mUrKPbCV5xJ+RMFJEfn/5QMO /iS55c+5Y/DQBcpCxNyHc4r1IpQHrr/OYtajAEcc3+cJQS41brjjm2VsoTLE3HN1t0AD 2YmLJZBMCl3aibqASanPt+EeBXRH/BRpnJQ3WPDIrCn76oUeWHClGsmGJdJu6KAbA7+v RllIC2myyniKkxXK0FwgbQMtNIb9IRWhJt+Rw+CSBZ1C4LaDsviVqE75hqf8zPqBAKmw KoDS9T8ycYCZ2Q0enkMXuk6z6/9JCXi2FRMtY5pAiVFiEg9rKccJb+dtuOGVRZjDEEdW jePA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=2MT30Ajv; 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 c54si1450174edb.230.2019.09.27.05.48.24; Fri, 27 Sep 2019 05:48:48 -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=2MT30Ajv; 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 S1727864AbfI0MsD (ORCPT + 99 others); Fri, 27 Sep 2019 08:48:03 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:55135 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727794AbfI0MsB (ORCPT ); Fri, 27 Sep 2019 08:48:01 -0400 Received: by mail-wm1-f65.google.com with SMTP id p7so6464597wmp.4 for ; Fri, 27 Sep 2019 05:47:59 -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=2MT30AjvrRdgpYjxek0G/IQMSjSWVI1gZhCEbSL7a8z99LpxjoKz1byBdebm0V0Yx7 FA0cmbSiJhbtvsWoFwWjIaMvzVku1xSb7N3xo+A+QVrnjiiDIcCyFAKdAX1+HyWXuX1o CSODkgR+T0E3hEQylJolYDaocIGgFEd4G1ec8XAfIeURroHViYinZ6un9+pI8amrrHEc 0JhP4yjrYbA5fzxHsehOiX7rC1sLN27QhukbAnGj3+I7v+7b8CxeMgMQ2VxdEpLDT+53 F/HvxXbZUqn5Ps5iX5XZ2ogNMXCWjGg7bnzEE4XpIeNoHGiBz8wdWa9BUJC2gPNsBh8w 63VQ== 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=FStpy809XWE1KsjZqZuypDKhLWyGQaGw/AKIlE1MlMGosyrwyGh81AJVDiT2XH6+FA waX5QijwZYh4hIfi0VQzgFk3zQSCvqgOK4tWI0xux2Cx3aUBsxiyrNefJ0QY7NNg33Tp VMj5V4QecjHyBGZqIu/TrkaqwZrm0A5V2vKgw7JjJr1ztqQpvoCIAzeFNoKR/63te81k g2IRhbhusAqsxz955IDco4uc/gw+Xd0eaW46S+dF3we+/7J4gYueuR/vYnNvuZ6tTWm6 RyopLEmumaOXDzcx18QM1mwVk7GfEExuFmX2KSt8BHJQiRemLR0r10skzXHZEBZiIEfw Pekg== X-Gm-Message-State: APjAAAU2BskmklIMAg+bhgI713Veh9QWTW3HcEP7a/KMxazBzzi+Vyji kYUEFid98fvDfsiIyOuoD3X9jw== X-Received: by 2002:a1c:d142:: with SMTP id i63mr7282512wmg.53.1569588479333; Fri, 27 Sep 2019 05:47:59 -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.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Sep 2019 05:47:58 -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 cooling properties Date: Fri, 27 Sep 2019 14:47:48 +0200 Message-Id: <20190927124750.12467-8-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