Commit 526a63f0 authored by Michal Simek's avatar Michal Simek

arm64: zynqmp: Enable iio-hwmon for ina226 on zcu100

ina226 hwmon driver is deprecated and it is recommended to use new iio
based driver. The patch is enabling iio-hwmon driver to export
functionality from IIO to hwmon interface to be able to use lm-sensors
package.
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
parent c8e75cd4
...@@ -103,6 +103,11 @@ sdio_pwrseq: sdio-pwrseq { ...@@ -103,6 +103,11 @@ sdio_pwrseq: sdio-pwrseq {
reset-gpios = <&gpio 7 GPIO_ACTIVE_LOW>; /* WIFI_EN */ reset-gpios = <&gpio 7 GPIO_ACTIVE_LOW>; /* WIFI_EN */
post-power-on-delay-ms = <10>; post-power-on-delay-ms = <10>;
}; };
ina226 {
compatible = "iio-hwmon";
io-channels = <&u35 0>, <&u35 1>, <&u35 2>, <&u35 3>;
};
}; };
&dcc { &dcc {
...@@ -191,8 +196,9 @@ i2csw_5: i2c@5 { ...@@ -191,8 +196,9 @@ i2csw_5: i2c@5 {
#size-cells = <0>; #size-cells = <0>;
reg = <5>; reg = <5>;
/* PS_PMBUS */ /* PS_PMBUS */
ina226@40 { /* u35 */ u35: ina226@40 { /* u35 */
compatible = "ti,ina226"; compatible = "ti,ina226";
#io-channel-cells = <1>;
reg = <0x40>; reg = <0x40>;
shunt-resistor = <10000>; shunt-resistor = <10000>;
/* MIO31 is alert which should be routed to PMUFW */ /* MIO31 is alert which should be routed to PMUFW */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment