aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/dts/zynqmp-zcu104-revC.dts
diff options
context:
space:
mode:
authorMichal Simek2019-08-26 09:40:23 +0200
committerMichal Simek2019-10-24 13:37:02 +0200
commit3d82d7167f139e35418bbdb21afcc3f21bdc71d4 (patch)
tree2b8c4b23f0a63dc169211bb116e6d78618d6cc13 /arch/arm/dts/zynqmp-zcu104-revC.dts
parent5c0970947596b54feccb4d80c809bbdf76912b15 (diff)
arm64: zynqmp: Enable iio-hwmon for ina226 on zcu104
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@xilinx.com>
Diffstat (limited to 'arch/arm/dts/zynqmp-zcu104-revC.dts')
-rw-r--r--arch/arm/dts/zynqmp-zcu104-revC.dts8
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm/dts/zynqmp-zcu104-revC.dts b/arch/arm/dts/zynqmp-zcu104-revC.dts
index 8d8cabfcb28..4044eea1271 100644
--- a/arch/arm/dts/zynqmp-zcu104-revC.dts
+++ b/arch/arm/dts/zynqmp-zcu104-revC.dts
@@ -41,6 +41,11 @@
device_type = "memory";
reg = <0x0 0x0 0x0 0x80000000>;
};
+
+ ina226 {
+ compatible = "iio-hwmon";
+ io-channels = <&u183 0>, <&u183 1>, <&u183 2>, <&u183 3>;
+ };
};
&can1 {
@@ -150,8 +155,9 @@
#address-cells = <1>;
#size-cells = <0>;
reg = <3>;
- ina226@40 { /* u183 */
+ u183: ina226@40 { /* u183 */
compatible = "ti,ina226";
+ #io-channel-cells = <1>;
reg = <0x40>;
shunt-resistor = <5000>;
};