arm64: tegra: Add temperature sensor on P2888
authorThierry Reding <treding@nvidia.com>
Wed, 28 Nov 2018 17:26:34 +0000 (18:26 +0100)
committerThierry Reding <treding@nvidia.com>
Mon, 3 Dec 2018 15:31:35 +0000 (16:31 +0100)
The P2888 processor module contains a TI TMP451 temperature sensor with
two channels. These are used to measure the temperatures at different
locations on the module.

Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm64/boot/dts/nvidia/tegra194-p2888.dtsi

index de70b5f..22a1c26 100644 (file)
                                        };
                                };
                        };
+
+                       temperature-sensor@4c {
+                               compatible = "ti,tmp451";
+                               reg = <0x4c>;
+
+                               interrupt-parent = <&gpio>;
+                               interrupts = <TEGRA194_MAIN_GPIO(H, 2)
+                                             IRQ_TYPE_LEVEL_LOW>;
+
+                               #thermal-sensor-cells = <1>;
+                       };
                };
        };