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

Reply via email to