[PATCH] ARM: zynq: Add #io-channel-cells to (x)adc node for iio-hwmon

Moritz Fischer mdf at kernel.org
Wed Mar 8 12:08:40 PST 2017


Fix issue when exposing xadc via iio-hwmon by adding missing

OF: /iio_hwmon: could not get #io-channel-cells for
/amba/adc at f8007100

Signed-off-by: Moritz Fischer <mdf at kernel.org>
Cc: Michal Simek <michal.simek at xilinx.com>
Cc: Sören Brinkmann <soren.brinkmann at xilinx.com>
Cc: Julia Cartwright <julia at ni.com>
Cc: linux-kernel at vger.kernel.org
---
 arch/arm/boot/dts/zynq-7000.dtsi | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/boot/dts/zynq-7000.dtsi b/arch/arm/boot/dts/zynq-7000.dtsi
index f3ac9bf..98233a8 100644
--- a/arch/arm/boot/dts/zynq-7000.dtsi
+++ b/arch/arm/boot/dts/zynq-7000.dtsi
@@ -72,6 +72,7 @@
 			interrupts = <0 7 4>;
 			interrupt-parent = <&intc>;
 			clocks = <&clkc 12>;
+			#io-channel-cells = <1>;
 		};
 
 		can0: can at e0008000 {
-- 
2.7.4




More information about the linux-arm-kernel mailing list