[U-Boot] [PATCH 15/27] arm64: zynqmp: Enable iio-hwmon for ina226 on zcu111
Michal Simek
michal.simek at xilinx.com
Mon Oct 14 10:16:18 UTC 2019
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: Michal Simek <michal.simek at xilinx.com>
---
arch/arm/dts/zynqmp-zcu111-revA.dts | 99 +++++++++++++++++++++++++----
1 file changed, 85 insertions(+), 14 deletions(-)
diff --git a/arch/arm/dts/zynqmp-zcu111-revA.dts b/arch/arm/dts/zynqmp-zcu111-revA.dts
index d23e4ea156e5..e0e955cb8efa 100644
--- a/arch/arm/dts/zynqmp-zcu111-revA.dts
+++ b/arch/arm/dts/zynqmp-zcu111-revA.dts
@@ -64,6 +64,63 @@
linux,default-trigger = "heartbeat";
};
};
+
+ ina226-u67 {
+ compatible = "iio-hwmon";
+ io-channels = <&u67 0>, <&u67 1>, <&u67 2>, <&u67 3>;
+ };
+ ina226-u59 {
+ compatible = "iio-hwmon";
+ io-channels = <&u59 0>, <&u59 1>, <&u59 2>, <&u59 3>;
+ };
+ ina226-u61 {
+ compatible = "iio-hwmon";
+ io-channels = <&u61 0>, <&u61 1>, <&u61 2>, <&u61 3>;
+ };
+ ina226-u60 {
+ compatible = "iio-hwmon";
+ io-channels = <&u60 0>, <&u60 1>, <&u60 2>, <&u60 3>;
+ };
+ ina226-u64 {
+ compatible = "iio-hwmon";
+ io-channels = <&u64 0>, <&u64 1>, <&u64 2>, <&u64 3>;
+ };
+ ina226-u69 {
+ compatible = "iio-hwmon";
+ io-channels = <&u69 0>, <&u69 1>, <&u69 2>, <&u69 3>;
+ };
+ ina226-u66 {
+ compatible = "iio-hwmon";
+ io-channels = <&u66 0>, <&u66 1>, <&u66 2>, <&u66 3>;
+ };
+ ina226-u65 {
+ compatible = "iio-hwmon";
+ io-channels = <&u65 0>, <&u65 1>, <&u65 2>, <&u65 3>;
+ };
+ ina226-u63 {
+ compatible = "iio-hwmon";
+ io-channels = <&u63 0>, <&u63 1>, <&u63 2>, <&u63 3>;
+ };
+ ina226-u3 {
+ compatible = "iio-hwmon";
+ io-channels = <&u3 0>, <&u3 1>, <&u3 2>, <&u3 3>;
+ };
+ ina226-u71 {
+ compatible = "iio-hwmon";
+ io-channels = <&u71 0>, <&u71 1>, <&u71 2>, <&u71 3>;
+ };
+ ina226-u77 {
+ compatible = "iio-hwmon";
+ io-channels = <&u77 0>, <&u77 1>, <&u77 2>, <&u77 3>;
+ };
+ ina226-u73 {
+ compatible = "iio-hwmon";
+ io-channels = <&u73 0>, <&u73 1>, <&u73 2>, <&u73 3>;
+ };
+ ina226-u79 {
+ compatible = "iio-hwmon";
+ io-channels = <&u79 0>, <&u79 1>, <&u79 2>, <&u79 3>;
+ };
};
&dcc {
@@ -160,73 +217,87 @@
reg = <0>;
/* PS_PMBUS */
/* PMBUS_ALERT done via pca9544 */
- ina226 at 40 { /* u67 */
+ u67: ina226 at 40 { /* u67 */
compatible = "ti,ina226";
+ #io-channel-cells = <1>;
reg = <0x40>;
shunt-resistor = <2000>;
};
- ina226 at 41 { /* u59 */
+ u59: ina226 at 41 { /* u59 */
compatible = "ti,ina226";
+ #io-channel-cells = <1>;
reg = <0x41>;
shunt-resistor = <5000>;
};
- ina226 at 42 { /* u61 */
+ u61: ina226 at 42 { /* u61 */
compatible = "ti,ina226";
+ #io-channel-cells = <1>;
reg = <0x42>;
shunt-resistor = <5000>;
};
- ina226 at 43 { /* u60 */
+ u60: ina226 at 43 { /* u60 */
compatible = "ti,ina226";
+ #io-channel-cells = <1>;
reg = <0x43>;
shunt-resistor = <5000>;
};
- ina226 at 45 { /* u64 */
+ u64: ina226 at 45 { /* u64 */
compatible = "ti,ina226";
+ #io-channel-cells = <1>;
reg = <0x45>;
shunt-resistor = <5000>;
};
- ina226 at 46 { /* u69 */
+ u69: ina226 at 46 { /* u69 */
compatible = "ti,ina226";
+ #io-channel-cells = <1>;
reg = <0x46>;
shunt-resistor = <2000>;
};
- ina226 at 47 { /* u66 */
+ u66: ina226 at 47 { /* u66 */
compatible = "ti,ina226";
+ #io-channel-cells = <1>;
reg = <0x47>;
shunt-resistor = <5000>;
};
- ina226 at 48 { /* u65 */
+ u65: ina226 at 48 { /* u65 */
compatible = "ti,ina226";
+ #io-channel-cells = <1>;
reg = <0x48>;
shunt-resistor = <5000>;
};
- ina226 at 49 { /* u63 */
+ u63: ina226 at 49 { /* u63 */
compatible = "ti,ina226";
+ #io-channel-cells = <1>;
reg = <0x49>;
shunt-resistor = <5000>;
};
- ina226 at 4a { /* u3 */
+ u3: ina226 at 4a { /* u3 */
compatible = "ti,ina226";
+ #io-channel-cells = <1>;
reg = <0x4a>;
shunt-resistor = <5000>;
};
- ina226 at 4b { /* u71 */
+ u71: ina226 at 4b { /* u71 */
compatible = "ti,ina226";
+ #io-channel-cells = <1>;
reg = <0x4b>;
shunt-resistor = <5000>;
};
- ina226 at 4c { /* u77 */
+ u77: ina226 at 4c { /* u77 */
compatible = "ti,ina226";
+ #io-channel-cells = <1>;
reg = <0x4c>;
shunt-resistor = <5000>;
};
- ina226 at 4d { /* u73 */
+ u73: ina226 at 4d { /* u73 */
compatible = "ti,ina226";
+ #io-channel-cells = <1>;
reg = <0x4d>;
shunt-resistor = <5000>;
};
- ina226 at 4e { /* u79 */
+ u79: ina226 at 4e { /* u79 */
compatible = "ti,ina226";
+ #io-channel-cells = <1>;
reg = <0x4e>;
shunt-resistor = <5000>;
};
--
2.17.1
More information about the U-Boot
mailing list