Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp7273770ybp; Wed, 16 Oct 2019 06:27:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqzLE6oVIet2zzkE8Ivy88ThdaSzeMxbY+oVVJjOot9G+lqlME9ldCowW+JesnDl/9r19gy6 X-Received: by 2002:a17:906:5907:: with SMTP id h7mr19343742ejq.328.1571232453114; Wed, 16 Oct 2019 06:27:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571232453; cv=none; d=google.com; s=arc-20160816; b=UeG3kNnJo1lCkN3KSTJ85T4vT3Bwr1WdAs6lknZ3eeF3NdrwBGmSp2ZgR/pLen5loa E1mIxSQSCUJDcP96x2Ex6G18AcgfkmYVwA9Y+CE/FmtASOwfiQv6hyNnw+NOgiQbV83s 9aQJqbvfS9uVb19ceCWGcQdLZujQYTkCjBjYE6tuscJHh2pQzv7rrQjKxoxmJ+15T5tS 2W22omPVlsCpbZiZk800e6XBCVyHk1zWm0AajaM3ZkeaaxEKRKTSXUiWHU0BRs8XZ3O0 43Pq7pQIzRLYFCcOiWkyNOhXA1aahrjVG6yi9iMJFBxjRkCgA/IqI8B2tZnHNpT2F5n7 B2+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=NdVzA6qPVlAmhSw+AF0RzsUEa7rtQhimXzVFQeLQmeY=; b=rDCi50zR/0NAJVvifEKTZL7XknbXatLVb1j0tN83ExlyHkJUm71H+mXEp7x7o4vtXU 5xuZaP++IqNfnrb4zuOL518rz5jSLOUb3hhyVzxK6trlr2hH+GigFZYvLMdkYs1DS7fw oA0647iwtjNA6rxXDC3t0J7Mf9jblP8j+fpiHMXjb3+7+GnMTOEDfBCCcnW2PkYCANuI Lkouvf9r/osHeXogxnWMHoULyt5ubr3djcJkO19ygKDKbDCrX4olRXk4B+zNh7wmyLWP orLuPhFI01V/RDrgfWMwZzBlxOv+GucBwiNAxX9GAtSHjDUXDom/S0PKhM+7IVVIZZIx 5g4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zYuc2eZ9; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ch10si15034290ejb.89.2019.10.16.06.27.08; Wed, 16 Oct 2019 06:27:33 -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=@linaro.org header.s=google header.b=zYuc2eZ9; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389959AbfJPJIb (ORCPT + 99 others); Wed, 16 Oct 2019 05:08:31 -0400 Received: from mail-vs1-f68.google.com ([209.85.217.68]:37039 "EHLO mail-vs1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730579AbfJPJIa (ORCPT ); Wed, 16 Oct 2019 05:08:30 -0400 Received: by mail-vs1-f68.google.com with SMTP id p13so15114034vsr.4 for ; Wed, 16 Oct 2019 02:08:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NdVzA6qPVlAmhSw+AF0RzsUEa7rtQhimXzVFQeLQmeY=; b=zYuc2eZ9oGLA1uBehnPVw3qQghPYysUXj+5+wQkhQ8Q0vhUZYyls8WZWwVTpZaz/f0 xx8XuURCVETsEjW7RrxU1lVytuaF9SDoyRLW/7wZZGtdLI8npkck9Gwy33hWjJsm9t8V HNuJYmlMK0sCHnbt1jceoZARW15VMQkafTKURVi4D+6C9YBX2PowbgGNj8IZdSgFQXQy /kELXCPaXG+99tz2Wh2H+ep7a8hf4uHc7CHJoWN2CoezsBwtXMFbvWs0xSs7WBraLDdG sXnrjlzPIDxhfFwhCBi1hoys4BDH/gpaAv4sVVTUG00b5u/K0RO0PDYFLJ6I94sGrokH L3pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NdVzA6qPVlAmhSw+AF0RzsUEa7rtQhimXzVFQeLQmeY=; b=Xzdg8OCmkKq9K3QQW40CeNkEpE6EmBPzg//rrTOjgIO/472yj0U8g9Dd9GhowZ+tXk g1SIAmjloZ2ogttMwsOpF35IljimIYBG8W+OFpwR0TJJKheon9c0Fl4sWpCQxNpO4zCW QgyuU2SVpMon+oln63kEUzfHqeduw6T6joW206FJVsOQxpL1IECJqyELNeqKEfBxv2Nw M/smh4iZ9VWsMYO1Y0u8EkUoxEpr26c3iIsKiPZuAHzVRemMks35/SpJ/065v42mo6Oy MsMKlxyaXAUyEjQo+VMzdcgIbxrD/5FsDEUuQPvLFSkuio3LjwrRBTEDAyZwac4Nw5k1 kzIw== X-Gm-Message-State: APjAAAVd/MlpuHVlrs9S0LwUfM6ifKonNcfwFD9pA2TSbHKPol5Qq8tq KPoxG2mprW7JSCA34nWwI6wkqnoYOMvnckicz1z0Rw== X-Received: by 2002:a67:edce:: with SMTP id e14mr16990631vsp.182.1571216909051; Wed, 16 Oct 2019 02:08:29 -0700 (PDT) MIME-Version: 1.0 References: <20191004090114.30694-1-glaroque@baylibre.com> <20191004090114.30694-5-glaroque@baylibre.com> In-Reply-To: <20191004090114.30694-5-glaroque@baylibre.com> From: Amit Kucheria Date: Wed, 16 Oct 2019 14:38:18 +0530 Message-ID: Subject: Re: [PATCH v7 4/7] arm64: dts: meson: g12: Add minimal thermal zone To: Guillaume La Roque Cc: Zhang Rui , Eduardo Valentin , Daniel Lezcano , Linux PM list , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , LKML , lakml , linux-amlogic@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 4, 2019 at 2:31 PM Guillaume La Roque wrote: > > Add minimal thermal zone for two temperature sensor > One is located close to the DDR and the other one is > located close to the PLLs (between the CPU and GPU) > > Acked-by: Martin Blumenstingl > Reviewed-by: Neil Armstrong > Tested-by: Christian Hewitt > Tested-by: Kevin Hilman > Signed-off-by: Guillaume La Roque Reviewed-by: Amit Kucheria > --- > .../boot/dts/amlogic/meson-g12-common.dtsi | 57 +++++++++++++++++++ > 1 file changed, 57 insertions(+) > > diff --git a/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi > index 0660d9ef6a86..a98c16e163c2 100644 > --- a/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi > +++ b/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi > @@ -12,6 +12,7 @@ > #include > #include > #include > +#include > > / { > interrupt-parent = <&gic>; > @@ -94,6 +95,61 @@ > #size-cells = <2>; > ranges; > > + thermal-zones { > + cpu_thermal: cpu-thermal { > + polling-delay = <1000>; > + polling-delay-passive = <100>; > + thermal-sensors = <&cpu_temp>; > + > + trips { > + cpu_passive: cpu-passive { > + temperature = <85000>; /* millicelsius */ > + hysteresis = <2000>; /* millicelsius */ > + type = "passive"; > + }; > + > + cpu_hot: cpu-hot { > + temperature = <95000>; /* millicelsius */ > + hysteresis = <2000>; /* millicelsius */ > + type = "hot"; > + }; > + > + cpu_critical: cpu-critical { > + temperature = <110000>; /* millicelsius */ > + hysteresis = <2000>; /* millicelsius */ > + type = "critical"; > + }; > + }; > + }; > + > + ddr_thermal: ddr-thermal { > + polling-delay = <1000>; > + polling-delay-passive = <100>; > + thermal-sensors = <&ddr_temp>; > + > + trips { > + ddr_passive: ddr-passive { > + temperature = <85000>; /* millicelsius */ > + hysteresis = <2000>; /* millicelsius */ > + type = "passive"; > + }; > + > + ddr_critical: ddr-critical { > + temperature = <110000>; /* millicelsius */ > + hysteresis = <2000>; /* millicelsius */ > + type = "critical"; > + }; > + }; > + > + cooling-maps { > + map { > + trip = <&ddr_passive>; > + cooling-device = <&mali THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; > + }; > + }; > + }; > + }; > + > ethmac: ethernet@ff3f0000 { > compatible = "amlogic,meson-axg-dwmac", > "snps,dwmac-3.70a", > @@ -2412,6 +2468,7 @@ > assigned-clock-rates = <0>, /* Do Nothing */ > <800000000>, > <0>; /* Do Nothing */ > + #cooling-cells = <2>; > }; > }; > > -- > 2.17.1 >