From patchwork Fri Nov 23 12:18:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 10695729 X-Patchwork-Delegate: eduardo.valentin@ti.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2C55413BF for ; Fri, 23 Nov 2018 12:19:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1B2192AB2C for ; Fri, 23 Nov 2018 12:19:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0CFE72BA85; Fri, 23 Nov 2018 12:19:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 62FF52BA6D for ; Fri, 23 Nov 2018 12:19:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2409754AbeKWXCn (ORCPT ); Fri, 23 Nov 2018 18:02:43 -0500 Received: from mail-ed1-f65.google.com ([209.85.208.65]:44256 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387898AbeKWXCn (ORCPT ); Fri, 23 Nov 2018 18:02:43 -0500 Received: by mail-ed1-f65.google.com with SMTP id y56so10085307edd.11; Fri, 23 Nov 2018 04:18:42 -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:mime-version :content-transfer-encoding; bh=0UFvpLh8JCCWiGkqWwfjN9rWDhTen85Z4fj+eExc9wc=; b=UCpHKBtdATIFPupPEQWgqgLvt99ORdn1VOI83onH6zM9WKyC0i1WzomFK+dzACbDSM CE4QmvI/oL6oqrmhq3ebrTHYOz/tGHiYjD17yZW5bp7Tz3xn/iWK0zrnEaAAZqbgfYyF 4gs3/s4fA7W31LiYl/I4lxZ/jyPFRzKCJ64pRtjhpJO5s0xXbBjvpf+kYR1coTIAg5Mx CHU7wYGB0EJ7qNoIxJdEjy+G/eLfjHd0b3ScwNr0wpKYKMeF1+BTLrurF0j+C8lBgMcS txIS2f3GKjsKabEuX+8AJ9dVnD6nmi6qduTEF/3nYNRkySRZId2uJeqxxJ4wJIC+o81P Bj5w== 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:mime-version :content-transfer-encoding; bh=0UFvpLh8JCCWiGkqWwfjN9rWDhTen85Z4fj+eExc9wc=; b=OTVTVuFmEQiOHtP3tGYVpPkIOTvyfW7ms8vKEXqCliTUEqRGJBoxZpZ8rq00AAHzJT Ii3viFderqJazWiastfegmp5xW2+m3Nd7Ho4jxI90UN172vdONKIF56VtLbRSFAF0UwL e0HsAGKSFP/Q8aTtokp/qzM/O/XYr7Vy1Ay7yKtgtXTeZ26Rgw4IMeOnRLcMsmamowgj GlJ2sCTebN87pE15o1b+EoV41yaPLApX1RCkhQycR0pIvmpBGpmLiWI8I2K7WsVstZdZ kGqiEL1ilEPX7BrLzt84qTIzeI/8Zq535s21y9ttH5k74UT/EmkkPMkzeJOfgoAHgbqn S8tg== X-Gm-Message-State: AGRZ1gLfn2kH5UeTfaruM9AGHby8iROCpSNNjCGw2L0KJxfI6crwPIi7 mHfa7BucDD7mSWUktu2txtE= X-Google-Smtp-Source: AJdET5dRh0SHLpv6o/qLRhiHcYU0PiYSsTJYNf6kOd7ZZMsRoiKE4k0vqeX1d1DnaJkOr/BC6NVPmg== X-Received: by 2002:a17:906:14d8:: with SMTP id y24-v6mr11441079ejc.216.1542975522020; Fri, 23 Nov 2018 04:18:42 -0800 (PST) Received: from localhost (pD9E51040.dip0.t-ipconnect.de. [217.229.16.64]) by smtp.gmail.com with ESMTPSA id e53sm13775000ede.90.2018.11.23.04.18.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 23 Nov 2018 04:18:40 -0800 (PST) From: Thierry Reding To: Thierry Reding Cc: Jon Hunter , Mikko Perttunen , Rob Herring , linux-tegra@vger.kernel.org, devicetree@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] dt-bindings: thermal: tegra-bpmp: Add Tegra194 support Date: Fri, 23 Nov 2018 13:18:37 +0100 Message-Id: <20181123121839.18573-1-thierry.reding@gmail.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Thierry Reding The thermal controller implementation on Tegra194 is very similar to the implementation on Tegra186. Add a compatible string for the new generation. Signed-off-by: Thierry Reding --- .../thermal/nvidia,tegra186-bpmp-thermal.txt | 3 ++- .../dt-bindings/thermal/tegra194-bpmp-thermal.h | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 include/dt-bindings/thermal/tegra194-bpmp-thermal.h diff --git a/Documentation/devicetree/bindings/thermal/nvidia,tegra186-bpmp-thermal.txt b/Documentation/devicetree/bindings/thermal/nvidia,tegra186-bpmp-thermal.txt index 276387dd6815..e17c07be270b 100644 --- a/Documentation/devicetree/bindings/thermal/nvidia,tegra186-bpmp-thermal.txt +++ b/Documentation/devicetree/bindings/thermal/nvidia,tegra186-bpmp-thermal.txt @@ -15,7 +15,8 @@ Required properties: - compatible: Array of strings. One of: - - "nvidia,tegra186-bpmp-thermal". + - "nvidia,tegra186-bpmp-thermal" + - "nvidia,tegra194-bpmp-thermal" - #thermal-sensor-cells: Cell for sensor index. Single-cell integer. Must be <1>. diff --git a/include/dt-bindings/thermal/tegra194-bpmp-thermal.h b/include/dt-bindings/thermal/tegra194-bpmp-thermal.h new file mode 100644 index 000000000000..aa7fb08135ca --- /dev/null +++ b/include/dt-bindings/thermal/tegra194-bpmp-thermal.h @@ -0,0 +1,15 @@ +/* + * This header provides constants for binding nvidia,tegra194-bpmp-thermal. + */ + +#ifndef _DT_BINDINGS_THERMAL_TEGRA194_BPMP_THERMAL_H +#define _DT_BINDINGS_THERMAL_TEGRA194_BPMP_THERMAL_H + +#define TEGRA194_BPMP_THERMAL_ZONE_CPU 2 +#define TEGRA194_BPMP_THERMAL_ZONE_GPU 3 +#define TEGRA194_BPMP_THERMAL_ZONE_AUX 4 +#define TEGRA194_BPMP_THERMAL_ZONE_PLLX 5 +#define TEGRA194_BPMP_THERMAL_ZONE_AO 6 +#define TEGRA194_BPMP_THERMAL_ZONE_TJ_MAX 7 + +#endif From patchwork Fri Nov 23 12:18:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 10695725 X-Patchwork-Delegate: eduardo.valentin@ti.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7A7CC13AD for ; Fri, 23 Nov 2018 12:18:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 68C1E2B463 for ; Fri, 23 Nov 2018 12:18:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5CEC52B48C; Fri, 23 Nov 2018 12:18:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F23412B463 for ; Fri, 23 Nov 2018 12:18:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2409777AbeKWXCq (ORCPT ); Fri, 23 Nov 2018 18:02:46 -0500 Received: from mail-ed1-f67.google.com ([209.85.208.67]:41199 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388006AbeKWXCo (ORCPT ); Fri, 23 Nov 2018 18:02:44 -0500 Received: by mail-ed1-f67.google.com with SMTP id z28so10089821edi.8; Fri, 23 Nov 2018 04:18:44 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=ZdolHecX+PD3w9d/01mrC0dlHHqNTHapniWeqqzgLrM=; b=BXNUDd3jG58bw9PdNCGdYunSRzlret0k7K2cM9QciXTh7HOe08+80XrylslpS9l/3Y T+i/zeO+Rl86JnvpmB5nAlrId4YEW6VWBiuARmZsAIh8rblwNitJRQpgHHZDC65kJmZg wjr2VIiOvSudmeTc27rpE77hUF44Yx9GTKALcj7KBuqznCVyDmR11NoAdQMiQiI8ggvx WEmhDUX9LSTMtwEZJUJ5+4ih8gk6Bffu4oKjDpLKMZrGDg22ho6Zo7YMUWbuLAs034EL wuTgIJvOSkzLVlj0ed06h17TJY73GLC7wRjqa/ml0VdvDNIzFc0RNs405tv8nAs5KryX bbEg== 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:mime-version:content-transfer-encoding; bh=ZdolHecX+PD3w9d/01mrC0dlHHqNTHapniWeqqzgLrM=; b=MrsjVEDs5OlK7MVjKGbplQGnpJpyUK0fuASz3hKt7wz67HwBMhFBUimQGaSU/+IpoI Ixzw03REDhR9dQRao3izcZbdzt9pYL5TpL7Ja0hHE0CXONXAjr3jQDJMoK28XMUxJ5nn fDDQrgJa+s0saYW3IQTQ3KhnS3+cKI71D6Y0LeTQ+LdfSqYxpO7rkwJFvN0sJXiTM2vX wuBNr6wp332LsI1UcfXrVaagR1zVTOmzyteDdHJ+qd8HM7j8yQLOXeWhnZv4juROs/18 5h9tltAbT3cNyhDxpeaeCQG/gA4x6keKU5nvIIVJMo9MCKW2kWPycGWsU0flpAt8kMyo VDPg== X-Gm-Message-State: AA+aEWYclv7J9/kIrrb1QuNgZnzn1FVwrvMRu6AMMie8poEY0ruczbR5 EYP7ZO63DkqX+YhydrXNfLw= X-Google-Smtp-Source: AFSGD/VSH7EEAqvhJRJdu8wkEFNUK+Noh9VCiorZI41YuoJvhj71yuLvPwhEpb9HzTToLdYOqZMXCA== X-Received: by 2002:a50:98c5:: with SMTP id j63mr12562905edb.273.1542975523606; Fri, 23 Nov 2018 04:18:43 -0800 (PST) Received: from localhost (pD9E51040.dip0.t-ipconnect.de. [217.229.16.64]) by smtp.gmail.com with ESMTPSA id e35sm9188084eda.13.2018.11.23.04.18.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 23 Nov 2018 04:18:42 -0800 (PST) From: Thierry Reding To: Thierry Reding Cc: Jon Hunter , Mikko Perttunen , Rob Herring , linux-tegra@vger.kernel.org, devicetree@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] arm64: tegra: Add thermal zones on Tegra194 Date: Fri, 23 Nov 2018 13:18:38 +0100 Message-Id: <20181123121839.18573-2-thierry.reding@gmail.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181123121839.18573-1-thierry.reding@gmail.com> References: <20181123121839.18573-1-thierry.reding@gmail.com> MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Thierry Reding The NVIDIA Tegra194 SoC defines six thermal zones. Define all of them in device tree. Signed-off-by: Thierry Reding Acked-by: Eduardo Valentin --- arch/arm64/boot/dts/nvidia/tegra194.dtsi | 39 ++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra194.dtsi b/arch/arm64/boot/dts/nvidia/tegra194.dtsi index cbba7395a286..39169f6b6166 100644 --- a/arch/arm64/boot/dts/nvidia/tegra194.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra194.dtsi @@ -5,6 +5,7 @@ #include #include #include +#include / { compatible = "nvidia,tegra194"; @@ -938,6 +939,44 @@ mbox-names = "rx", "tx"; }; + thermal-zones { + cpu { + thermal-sensors = <&{/bpmp/thermal} + TEGRA194_BPMP_THERMAL_ZONE_CPU>; + status = "disabled"; + }; + + gpu { + thermal-sensors = <&{/bpmp/thermal} + TEGRA194_BPMP_THERMAL_ZONE_GPU>; + status = "disabled"; + }; + + aux { + thermal-sensors = <&{/bpmp/thermal} + TEGRA194_BPMP_THERMAL_ZONE_AUX>; + status = "disabled"; + }; + + pllx { + thermal-sensors = <&{/bpmp/thermal} + TEGRA194_BPMP_THERMAL_ZONE_PLLX>; + status = "disabled"; + }; + + ao { + thermal-sensors = <&{/bpmp/thermal} + TEGRA194_BPMP_THERMAL_ZONE_AO>; + status = "disabled"; + }; + + tj { + thermal-sensors = <&{/bpmp/thermal} + TEGRA194_BPMP_THERMAL_ZONE_TJ_MAX>; + status = "disabled"; + }; + }; + timer { compatible = "arm,armv8-timer"; interrupts = X-Patchwork-Id: 10695727 X-Patchwork-Delegate: eduardo.valentin@ti.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AD07C13BF for ; Fri, 23 Nov 2018 12:19:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1496D2B478 for ; Fri, 23 Nov 2018 12:18:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 082522B49A; Fri, 23 Nov 2018 12:18:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A43702B478 for ; Fri, 23 Nov 2018 12:18:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2504161AbeKWXCs (ORCPT ); Fri, 23 Nov 2018 18:02:48 -0500 Received: from mail-ed1-f66.google.com ([209.85.208.66]:34338 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387898AbeKWXCq (ORCPT ); Fri, 23 Nov 2018 18:02:46 -0500 Received: by mail-ed1-f66.google.com with SMTP id b3so10127466ede.1; Fri, 23 Nov 2018 04:18:46 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=DiJ8mgydcFLQgRIq3IKKEyTIgKLQiadTZ8mklrWjrmY=; b=rJN7EmtV1SvfEM4enPwsWtkcwsBRnOLFsaIw+26j2GgY5V//qCAQTQmrReX6hqNp0u 5JnwX3u0sp0jSb1AtJAqYopVsRLV/VvyZK5WqSZN5obxn7frxM03v6eFnq0aZDMK8hUc uT4i/QUgGpHwEyV7j7gZuCW4Q7ZCDvfOfLkYVWq9EaSmGiU4YmX1jQ6uAkk29OPvRu14 hZEudBRz7x3z2cDwyMxhK2AIA/QFXd0WRcobfNUilskZ320qlz2BNiloVGceuiw9C/Th xn+I1GuBifWgdkgSOFT6//04mDDCOuJZ+oBdJZNgqDO6kLDOzODsQ7hk97h8Cqs2aTgO LmMA== 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:mime-version:content-transfer-encoding; bh=DiJ8mgydcFLQgRIq3IKKEyTIgKLQiadTZ8mklrWjrmY=; b=tc17paB70Vm9TibCVhrInD4dl9ubns0jj3WBdSyDNXifutu2RMoECSWvrTzvPiSc/t m0f1Lk7fPv7cuO6dA7pxMPpxtDOLngUKCBHdsXN+ShNTjyZLKTLBUUzHuuve3qY73TGL ElHkJB8p4ZgzEcm43Lo7mvg5pOQOol6MWRYZVSPvzBtShAaUCqkIjjPAhOwp2WopNsvu yHYwNUTvw1j+LaM1pf9eFFVLOA8zBm+kuf27rPm5B3EYify9ytxR2wFyV48kp4m76TW1 hlg6aoI0ktQC0aoSt6OKaXR6UytvmzDO9PeiJdIzML+mmTZ/VF+Ta1Pzmk1tV3p7AIyu 15ug== X-Gm-Message-State: AA+aEWYy/WCCWJfRTzceU+cEgUBu0Us0A0u5onEmJOqn1mhB2Csdcr9H Psd3NCJ/pkrPlbQB0pRHodY= X-Google-Smtp-Source: AFSGD/VdFbOsPlP1AqdLvv+GIAS+xc/RexjBk/2YbR0ykvvR9El3sojinb+O+TpFstJ2fTgyH09d0A== X-Received: by 2002:a50:d643:: with SMTP id c3mr1554525edj.178.1542975525202; Fri, 23 Nov 2018 04:18:45 -0800 (PST) Received: from localhost (pD9E51040.dip0.t-ipconnect.de. [217.229.16.64]) by smtp.gmail.com with ESMTPSA id c11-v6sm6641048ejm.67.2018.11.23.04.18.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 23 Nov 2018 04:18:44 -0800 (PST) From: Thierry Reding To: Thierry Reding Cc: Jon Hunter , Mikko Perttunen , Rob Herring , linux-tegra@vger.kernel.org, devicetree@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] arm64: tegra: p2972: Enable the CPU, GPU and AUX thermal zones Date: Fri, 23 Nov 2018 13:18:39 +0100 Message-Id: <20181123121839.18573-3-thierry.reding@gmail.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181123121839.18573-1-thierry.reding@gmail.com> References: <20181123121839.18573-1-thierry.reding@gmail.com> MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Thierry Reding Enable these thermal zones to be able to monitor their temperatures and control the fan to cool down the system if necessary. Signed-off-by: Thierry Reding Acked-by: Eduardo Valentin --- .../boot/dts/nvidia/tegra194-p2972-0000.dts | 91 ++++++++++++++++++- 1 file changed, 90 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/nvidia/tegra194-p2972-0000.dts b/arch/arm64/boot/dts/nvidia/tegra194-p2972-0000.dts index cbae8e8b1281..e29f8f6117c8 100644 --- a/arch/arm64/boot/dts/nvidia/tegra194-p2972-0000.dts +++ b/arch/arm64/boot/dts/nvidia/tegra194-p2972-0000.dts @@ -43,8 +43,97 @@ }; }; - fan { + fan: fan { compatible = "pwm-fan"; pwms = <&pwm4 0 45334>; + + cooling-levels = <0 64 128 255>; + cooling-min-state = <0>; + cooling-max-state = <3>; + #cooling-cells = <2>; + }; + + thermal-zones { + cpu { + polling-delay = <0>; + polling-delay-passive = <500>; + status = "okay"; + + trips { + cpu_trip_critical: critical { + temperature = <96500>; + hysteresis = <0>; + type = "critical"; + }; + + cpu_trip_hot: hot { + temperature = <70000>; + hysteresis = <2000>; + type = "hot"; + }; + + cpu_trip_active: active { + temperature = <50000>; + hysteresis = <2000>; + type = "active"; + }; + + cpu_trip_passive: passive { + temperature = <30000>; + hysteresis = <2000>; + type = "passive"; + }; + }; + + cooling-maps { + cpu-critical { + cooling-device = <&fan 3 3>; + trip = <&cpu_trip_critical>; + }; + + cpu-hot { + cooling-device = <&fan 2 2>; + trip = <&cpu_trip_hot>; + }; + + cpu-active { + cooling-device = <&fan 1 1>; + trip = <&cpu_trip_active>; + }; + + cpu-passive { + cooling-device = <&fan 0 0>; + trip = <&cpu_trip_passive>; + }; + }; + }; + + gpu { + polling-delay = <0>; + polling-delay-passive = <500>; + status = "okay"; + + trips { + gpu_alert0: critical { + temperature = <99000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + + aux { + polling-delay = <0>; + polling-delay-passive = <500>; + status = "okay"; + + trips { + aux_alert0: critical { + temperature = <90000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; }; };