10053963403c905ddbdb4fe2bba65c852c86243d
[openwrt/openwrt.git] /
1 From 8bfdbba339bd363633e2232777fd749000011a41 Mon Sep 17 00:00:00 2001
2 From: Annaliese McDermond <nh6z@nh6z.net>
3 Date: Sun, 2 Aug 2020 18:25:07 +0000
4 Subject: [PATCH] dtoverlays: Add the iio_hwmon driver to correct ADC
5 issues
6
7 The Linux kernel maintainers removed the hwmon driver for the
8 ads1015 used on this board. They deprecated it in favor of using
9 the IIO version of the driver with the iio_hwmon bridge. This
10 patch updates the DRAWS dtoverlay to support that usage.
11
12 Signed-off-by: Annaliese McDermond <nh6z@nh6z.net>
13 ---
14 arch/arm/boot/dts/overlays/draws-overlay.dts | 8 ++++++++
15 1 file changed, 8 insertions(+)
16
17 --- a/arch/arm/boot/dts/overlays/draws-overlay.dts
18 +++ b/arch/arm/boot/dts/overlays/draws-overlay.dts
19 @@ -45,6 +45,13 @@
20 gpios = <&gpio 7 0>;
21 status = "okay";
22 };
23 +
24 + iio-hwmon {
25 + compatible = "iio-hwmon";
26 + status = "okay";
27 + io-channels = <&tla2024 4>, <&tla2024 5>, <&tla2024 6>,
28 + <&tla2024 7>;
29 + };
30 };
31 };
32
33 @@ -91,6 +98,7 @@
34 reg = <0x48>;
35 #address-cells = <1>;
36 #size-cells = <0>;
37 + #io-channel-cells = <1>;
38
39 adc_ch4: channel@4 {
40 reg = <4>;