[PATCH v1 18/23] board: nbxv3: enable JC42 + QorIQ TMU + PMBus thermal

Vincent Jardin <[email protected]>
Newsgroups org.u-boot-project.lists.u-boot
Message-ID <[email protected]>
Add the U-Boot temperature command on Nodebox v3 across the various
thermal sources the board supports:
  - the JC42 SPD temperature sensors of the two DDR4 SODIMMs
  - the QorIQ TMU of the lx2160a
  - the MPQ8785 die temperature, spawned by the PMBus regulator driver

Signed-off-by: Vincent Jardin <[email protected]>
---

 arch/arm/dts/fsl-lx2160a-nbxv3.dts | 12 ++++++++++++
 configs/nbxv3_tfa_defconfig        |  5 +++++
 2 files changed, 17 insertions(+)

diff --git a/arch/arm/dts/fsl-lx2160a-nbxv3.dts b/arch/arm/dts/fsl-lx2160a-nbxv3.dts
index 2047709f5b7..ad10326ad48 100644
--- a/arch/arm/dts/fsl-lx2160a-nbxv3.dts
+++ b/arch/arm/dts/fsl-lx2160a-nbxv3.dts
@@ -111,6 +111,18 @@
 			"", "", "", "";
 	};
 
+	temp@18 {
+		compatible = "jedec,jc-42.4-temp";
+		reg = <0x18>;
+		label = "ddr-top";
+	};
+
+	temp@19 {
+		compatible = "jedec,jc-42.4-temp";
+		reg = <0x19>;
+		label = "ddr-bottom";
+	};
+
 	regulator@10 {
 		compatible = "mps,mpq8785";
 		reg = <0x10>;
diff --git a/configs/nbxv3_tfa_defconfig b/configs/nbxv3_tfa_defconfig
index 7af9124bc6e..8113e51c672 100644
--- a/configs/nbxv3_tfa_defconfig
+++ b/configs/nbxv3_tfa_defconfig
@@ -41,6 +41,7 @@ CONFIG_CMD_I2C=y
 CONFIG_CMD_MMC=y
 CONFIG_CMD_PCI=y
 CONFIG_CMD_SPI=y
+CONFIG_CMD_TEMPERATURE=y
 CONFIG_CMD_USB=y
 CONFIG_CMD_LOG=y
 CONFIG_OF_CONTROL=y
@@ -73,6 +74,10 @@ CONFIG_PCIE_LAYERSCAPE_GEN4=y
 CONFIG_DM_SERIAL=y
 CONFIG_PL01X_SERIAL=y
 CONFIG_NXP_FSPI=y
+CONFIG_DM_THERMAL=y
+CONFIG_IMX_TMU=y
+CONFIG_DM_THERMAL_JC42=y
+CONFIG_PMBUS_THERMAL=y
 CONFIG_USB=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
-- 
2.43.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.