diff mbox series

[v2] ARM: dts: aspeed: rainier: Add iio-hwmon bridge for temp sensors

Message ID 20210401003314.167178-1-rashmica.g@gmail.com
State New
Headers show
Series [v2] ARM: dts: aspeed: rainier: Add iio-hwmon bridge for temp sensors | expand

Commit Message

Rashmica Gupta April 1, 2021, 12:33 a.m. UTC
Add iio-hwmon bridges for the dps310 and si7020 sensors so we can
access them via the hwmon subsystem.

Signed-off-by: Rashmica Gupta <rashmica.g@gmail.com>
---
 arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts b/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts
index fefb0b8fd6d5..7a2bcc373852 100644
--- a/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts
+++ b/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts
@@ -173,6 +173,16 @@  i2c2mux3: i2c@3 {
 		};
 	};
 
+	iio-hwmon-dps310 {
+		compatible = "iio-hwmon";
+		io-channels = <&dps 0>;
+	};
+
+	iio-hwmon-si7020 {
+		compatible = "iio-hwmon";
+		io-channels = <&humidity 1>;
+	};
+
 	leds {
 		compatible = "gpio-leds";
 
@@ -1972,9 +1982,10 @@  &i2c7 {
 	multi-master;
 	status = "okay";
 
-	si7021-a20@20 {
+	humidity: si7021-a20@20 {
 		compatible = "silabs,si7020";
 		reg = <0x20>;
+		#io-channel-cells = <1>;
 	};
 
 	tmp275@48 {