Skip to contentSkip to conversation

ARM: dts: aspeed: yosemite5: Add MP5998 power monitor

PATCH Superseded Daniel Hsu 2 participants 2 messages Mar 5 – Mar 26

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Daniel Hsu

author
#0 lore raw

PATCH 1/1 ARM: dts: aspeed: yosemite5: Add MP5998 power monitor

Add the MP5998 power monitor device on I2C bus with address 0x46 for the Yosemite5 platform.

This allows the hwmon driver to probe the device and expose the power monitoring telemetry to userspace.

---
 arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite5.dts | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite5.dts +5 -0
index 2486981f3d6b..6287f80d70d9 100644
@@ -422,6 +422,11 @@ power-sensor@45 {
 		shunt-resistor = <1000>;
 	};
 
+	power-monitor@46 {
+		compatible = "mps,mp5998";
+		reg = <0x46>;
+	};
+
 	power-monitor@47 {
 		compatible = "ti,tps25990";
 		reg = <0x47>;
Signature · 1 line
2.43.0
maintainer
#1 lore raw

Hi Daniel,

Quoted 2 lines · Daniel Hsu

Add the MP5998 power monitor device on I2C bus with address 0x46 for the Yosemite5 platform.

I would rather you describe the purpose of the power monitoring. Why is this instance of an MP5998 necessary in the system design? The address of the sensor is evident from the details in the patch and isn't necessary to describe here.

Quoted 3 lines

This allows the hwmon driver to probe the device and expose the power monitoring telemetry to userspace.

I would prefer you reword or remove this sentence. The purpose of the devicetree is to describe the hardware. What the firmware/kernel chooses to do with that information is a separate problem.

Andrew

Quoted 24 lines

---
 arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite5.dts | 5 +++++

 1 file changed, 5 insertions(+)
(quoted diff) +0 -0

yosemite5.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook- yosemite5.dts
index 2486981f3d6b..6287f80d70d9 100644

arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite5.dts +0 -0
@@ -422,6 +422,11 @@ power-sensor@45 {
  		shunt-resistor = <1000>;
  	};

arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite5.dts +5 -0
+	power-monitor@46 {
+		compatible = "mps,mp5998";
+		reg = <0x46>;
+	};
+

  power-monitor@47 {
  compatible = "ti,tps25990";
  reg = <0x47>;