Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp3392275ybn; Fri, 27 Sep 2019 05:49:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqzXDzxpn9bceeqO+jeS38AR8V9TB8tzpSqEFcv2DVV7+h0FEq8IVNST51PBi0XjqCsezRgl X-Received: by 2002:a17:906:4b15:: with SMTP id y21mr1173661eju.112.1569588556435; Fri, 27 Sep 2019 05:49:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569588556; cv=none; d=google.com; s=arc-20160816; b=yvWixhNfNFXnJFtAreAVkHfKWkfQCPnWOUmZMCE0E93cZBDaIToeYRg+VBbGl9lkFt f3d77c8doxOAORfadA1FXGowZ7FgYltfqt8MK75Q6Xx6Ms6fOJyxbPtkSONE0G192WHK iTmLZAYEuaDhLlf6BcgPRwuUq3OYa/QcA1EuesFrWQVO3q5b/ppaelOgFYKXIt5uha8o eiJG+IA1YG96YGLlDoz2fOAaYpcUDUL8oToaiw1NtCSOXTy17sFgJse9NI2U+0URjM5p jiRkA+joj8BA9SqPccXDBDgd442ojeCn1bR8LHnLV0zuIhD93llW1sUiq/Vwqo80BMfn ZnkA== 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=bn1Yyb+y0E2XtXZ6uMo4FglNk7nmGiqm3716bVhGUbI=; b=A828GFgCf9TlmeJDlsrv+6I6t4CS8WWiE15PNUmZtv/tszUkRRmjCgPtd9u8LmOknN WupRt9LDOEV2YbXB2wWaKPWTed2389BJxgPG6KqKYl/rkwgWOt76OT5SotGFT2tAzqcQ uTU/nZQmwhXya+gZav52WPa2+EmCs00hE5J8mgU4MOwaGv4EJMnfae5ujC1pGZXapjFe vTtJNk2wlkLUolxItv+X+qE2cpEelRFkPyqe+Da1asKPHpjmNhBJi4w88OEZh1KSly05 JNww0YdRJzfyz2vjiwIv9vGNp6Scrv0fIT9WY3YEy6e6Jx3bE+uF6iFEDm2lM4camnvl FA3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=K9an5A5G; 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 y49si1351309edb.138.2019.09.27.05.48.51; Fri, 27 Sep 2019 05:49:16 -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=K9an5A5G; 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 S1727842AbfI0MsS (ORCPT + 99 others); Fri, 27 Sep 2019 08:48:18 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:54233 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727608AbfI0MsA (ORCPT ); Fri, 27 Sep 2019 08:48:00 -0400 Received: by mail-wm1-f65.google.com with SMTP id i16so6458871wmd.3 for ; Fri, 27 Sep 2019 05:47:58 -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=bn1Yyb+y0E2XtXZ6uMo4FglNk7nmGiqm3716bVhGUbI=; b=K9an5A5Gt5DdTP1cbKeOnKPTzPSiEKvpVGCm8o+7tsv9wzJAzXCZQBkX6JTSgHJ3Iy DPThePWfO71M0t+mxHEuEsRhkwldfeXD1BaL8mC/W6JKaUnbKMuInIXBTEV7efhLceyo 58mKE6MqQ+fKAbEq0Qvoms8kWyqEzkdaSC7bjdiQnDtU9bdL9J1j6uB5mt4V0z5BjJSp mZnYJHg65mnQCBv67lKtmfTJsFQG0JL9F8DRFVW8T6IOiVEDmEkHNSVeaOS1pdwSnRD0 TDWHkBhhgCdux/1r1YwrjhbyufN74ljk8VlruZdl4fsfZGa/EazKqD6ZS/P+FkEPJfQ+ 5/gg== 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=bn1Yyb+y0E2XtXZ6uMo4FglNk7nmGiqm3716bVhGUbI=; b=CHom8ce9pqdBUmMVebUC5pwjVKDLGHoNuZ9Dy06K7H77BAHeJz9DlbOuc9211Vrem3 j04tZ3p3HHL38eLKtdHGKycpSxHQGQ0MXj+tg3EVHWOektHu+Iv2bUHHxeV4ctuY5KTh F/rrNZvqZQgwT0dxioMnFpatLqFAVfYByXUnqqH2BdrkYU57nXyZmTXyVb90l/v6ievJ 2DqXY+23Dgp7JoMDgk1EKoEKfduwCe0opfsDikO0TDGZBwPz/kzDuDIy1137T1L1G136 PbhruxoO9LCpqgUdwqQ6pZATbXQov5hicLwka9M0LPsE05WlX+NZAoLVeBpWmtfIprgb Owuw== X-Gm-Message-State: APjAAAXgUz5mDhd8zyujP2DS+6NttGE36CPyYuWv7YkuXz9qrfG2Njsj 41nTMUZTvOR2iZnl2nE4Mm43vw== X-Received: by 2002:a1c:4945:: with SMTP id w66mr6962094wma.40.1569588477438; Fri, 27 Sep 2019 05:47:57 -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.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Sep 2019 05:47:56 -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 5/7] arm64: dts: amlogic: g12a: add cooling properties Date: Fri, 27 Sep 2019 14:47:46 +0200 Message-Id: <20190927124750.12467-6-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 G12A 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-g12a.dtsi | 24 +++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi index 733a9d46fc4b..3ab6497548ca 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi @@ -18,6 +18,7 @@ reg = <0x0 0x0>; enable-method = "psci"; next-level-cache = <&l2>; + #cooling-cells = <2>; }; cpu1: cpu@1 { @@ -26,6 +27,7 @@ reg = <0x0 0x1>; enable-method = "psci"; next-level-cache = <&l2>; + #cooling-cells = <2>; }; cpu2: cpu@2 { @@ -34,6 +36,7 @@ reg = <0x0 0x2>; enable-method = "psci"; next-level-cache = <&l2>; + #cooling-cells = <2>; }; cpu3: cpu@3 { @@ -42,6 +45,7 @@ reg = <0x0 0x3>; enable-method = "psci"; next-level-cache = <&l2>; + #cooling-cells = <2>; }; l2: l2-cache0 { @@ -113,3 +117,23 @@ &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>, + <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu3 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>, + <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; +}; -- 2.17.1