Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3226127imu; Sat, 24 Nov 2018 00:32:33 -0800 (PST) X-Google-Smtp-Source: AFSGD/WdxtFoktI013PT+CQZDcIsuX9EGW0g5Njpy5YkO2Y/LHyWa17mzG8PHf90erUehSa8cT3z X-Received: by 2002:a17:902:7581:: with SMTP id j1mr19262194pll.308.1543048353182; Sat, 24 Nov 2018 00:32:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543048353; cv=none; d=google.com; s=arc-20160816; b=DeNM0rVe8LxO7hTlAFOVwrdoWnhd008ZT8ssgmhcIDIcjECzGd9lAN/U8eGcclj4tq kY8IG8bKelKUre8TCTnFzZT0bMlHL0eVpv7Ivw3rnn2Pf5qENB5DocYRzIvzcPDjHxp8 uIi2dtZ/YyRUNRKJpF6XtWznQQe1CFtxF58dtDSNQJTNPfeqij5ZJw8W3u+wGkG8tQkT biDLvop2mZJ6cPm2utsbKj9TFyYZalYbiBXqR8uvnr3GL2dvMRuzPlK9QcFOzBMlHTu3 WalCPdsGeNHI8Wc9EZyjNwahk6nIGXNip5eLBVgqTQGzSxw2ryUvGICdw6p7+FB7GXgV t7Ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ZdolHecX+PD3w9d/01mrC0dlHHqNTHapniWeqqzgLrM=; b=lIBQ8z3M3pqSe7y6gFCwiHVwf0BtLviy3gphQZtOI9R21w9s2UQ8XkqZKdg5V3bbFe fTfcQQPXJeMgrMinJLuwQiQYOReyRFXo3so6qltmFXnVaQqXWzPm8xS0NAH67QjtY/ps Rf8ZIkhTjpmTsDyrnWvrVoTi/nfhxh74gAQyd+PFxyn2Y9BbzdiWbaNaIeqwDFXm8Kfk kofD1q1zCUaYVS+2/19mugnCBr+NcP8XGb4yVsWfg/XKXKmbQuTsW2YvG2YnP6pB04K7 dx950wHpGUI37rtUBiceA25loDdozuSTUox7/sl7eMpKmpE0cRV3FV6Phg911ZICtTfi I9dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BXNUDd3j; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ay4si24156498plb.235.2018.11.24.00.32.18; Sat, 24 Nov 2018 00:32:33 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=BXNUDd3j; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2409772AbeKWXCp (ORCPT + 99 others); Fri, 23 Nov 2018 18:02:45 -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-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 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Thierry Reding The NVIDIA Tegra194 SoC defines six thermal zones. Define all of them in device tree. Signed-off-by: Thierry Reding --- 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 =