]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
dt-bindings: thermal: tegra-bpmp: Add Tegra194 support
authorThierry Reding <treding@nvidia.com>
Fri, 23 Nov 2018 12:18:37 +0000 (13:18 +0100)
committerEduardo Valentin <edubezval@gmail.com>
Wed, 2 Jan 2019 12:47:13 +0000 (04:47 -0800)
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 <treding@nvidia.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Documentation/devicetree/bindings/thermal/nvidia,tegra186-bpmp-thermal.txt
include/dt-bindings/thermal/tegra194-bpmp-thermal.h [new file with mode: 0644]

index 276387dd6815e334ae7d6a9e7d05f1509efd8f5f..e17c07be270b7ebfe26c1b45a0d02974b0663d84 100644 (file)
@@ -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 (file)
index 0000000..aa7fb08
--- /dev/null
@@ -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