Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3e09b155 authored by Mikko Perttunen's avatar Mikko Perttunen Committed by Thierry Reding
Browse files

dt-bindings: Add bindings for nvidia,tegra186-bpmp-thermal



In Tegra186, the BPMP (Boot and Power Management Processor) implements
an interface that is used to read system temperatures, including CPU
cluster and GPU temperatures. This binding describes the thermal sensor
that is exposed by BPMP.

Signed-off-by: default avatarMikko Perttunen <mperttunen@nvidia.com>
Acked-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent 4d1dc401
Loading
Loading
Loading
Loading
+32 −0
Original line number Original line Diff line number Diff line
NVIDIA Tegra186 BPMP thermal sensor

In Tegra186, the BPMP (Boot and Power Management Processor) implements an
interface that is used to read system temperatures, including CPU cluster
and GPU temperatures. This binding describes the thermal sensor that is
exposed by BPMP.

The BPMP thermal node must be located directly inside the main BPMP node. See
../firmware/nvidia,tegra186-bpmp.txt for details of the BPMP binding.

This node represents a thermal sensor. See thermal.txt for details of the
core thermal binding.

Required properties:
- compatible:
    Array of strings.
    One of:
    - "nvidia,tegra186-bpmp-thermal".
- #thermal-sensor-cells: Cell for sensor index.
    Single-cell integer.
    Must be <1>.

Example:

bpmp {
	...

	bpmp_thermal: thermal {
		compatible = "nvidia,tegra186-bpmp-thermal";
		#thermal-sensor-cells = <1>;
	};
};
+14 −0
Original line number Original line Diff line number Diff line
/*
 * This header provides constants for binding nvidia,tegra186-bpmp-thermal.
 */

#ifndef _DT_BINDINGS_THERMAL_TEGRA186_BPMP_THERMAL_H
#define _DT_BINDINGS_THERMAL_TEGRA186_BPMP_THERMAL_H

#define TEGRA186_BPMP_THERMAL_ZONE_CPU 2
#define TEGRA186_BPMP_THERMAL_ZONE_GPU 3
#define TEGRA186_BPMP_THERMAL_ZONE_AUX 4
#define TEGRA186_BPMP_THERMAL_ZONE_PLLX 5
#define TEGRA186_BPMP_THERMAL_ZONE_AO 6

#endif