Skip to contentSkip to conversation

arm64: dts: ls1028a-rdb: Add iio-hwmon compatibility table

PATCH RESEND In review Martyn Welch 2 participants 2 messages Jan 9, 2025 – Feb 18, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND v2 1/1 arm64: dts: ls1028a-rdb: Add iio-hwmon compatibility table

Add an iio-hwmon map to utilise the iio framework and access power information via the hwmon framework at the same time.

---

Changes since v1:
- Added missed PATCH keyword in subject
- Simplified commit message

 arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts +8 -1
index 757a34ba7da3..f23cf156734d 100644
@@ -94,6 +94,12 @@ simple-audio-card,codec {
 			system-clock-frequency = <25000000>;
 		};
 	};
+
+	iio-hwmon {
+		compatible = "iio-hwmon";
+		io-channels = <&ina220 0>, <&ina220 1>,
+			<&ina220 2>, <&ina220 3>;
+	};
 };
 
 &can0 {
@@ -253,8 +259,9 @@ i2c@2 {
 			#size-cells = <0>;
 			reg = <0x02>;
 
-			current-monitor@40 {
+			ina220: current-monitor@40 {
 				compatible = "ti,ina220";
+				#io-channel-cells = <1>;
 				reg = <0x40>;
 				shunt-resistor = <500>;
 			};
Signature · 1 line
2.45.2
#1 lore raw
Quoted 4 lines · Martyn Welch

Add an iio-hwmon map to utilise the iio framework and access power information via the hwmon framework at the same time.

I do not quite understand "compatibility table" in the subject. Could you elaborate a bit?

Shawn