linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 RESEND] arm64: dts: ls1028a-rdb: Add iio-hwmon compatibility table
@ 2025-01-09 11:24 Martyn Welch
  2025-02-18  9:46 ` Shawn Guo
  0 siblings, 1 reply; 2+ messages in thread
From: Martyn Welch @ 2025-01-09 11:24 UTC (permalink / raw)
  To: Shawn Guo, Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: kernel, linux-arm-kernel, devicetree, linux-kernel, Martyn Welch

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

Signed-off-by: Martyn Welch <martyn.welch@collabora.com>
---

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(-)

diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts b/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts
index 757a34ba7da3..f23cf156734d 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts
@@ -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>;
 			};
-- 
2.45.2



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v2 RESEND] arm64: dts: ls1028a-rdb: Add iio-hwmon compatibility table
  2025-01-09 11:24 [PATCH v2 RESEND] arm64: dts: ls1028a-rdb: Add iio-hwmon compatibility table Martyn Welch
@ 2025-02-18  9:46 ` Shawn Guo
  0 siblings, 0 replies; 2+ messages in thread
From: Shawn Guo @ 2025-02-18  9:46 UTC (permalink / raw)
  To: Martyn Welch
  Cc: Shawn Guo, Rob Herring, Krzysztof Kozlowski, Conor Dooley, kernel,
	linux-arm-kernel, devicetree, linux-kernel

On Thu, Jan 09, 2025 at 11:24:57AM +0000, Martyn Welch wrote:
> Add an iio-hwmon map to utilise the iio framework and access power
> information via the hwmon framework at the same time.
> 
> Signed-off-by: Martyn Welch <martyn.welch@collabora.com>

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

Shawn



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-02-18 10:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-09 11:24 [PATCH v2 RESEND] arm64: dts: ls1028a-rdb: Add iio-hwmon compatibility table Martyn Welch
2025-02-18  9:46 ` Shawn Guo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).