]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.9.4/arm64-dts-mt8173-fix-auxadc-node.patch
5.1-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 4.9.4 / arm64-dts-mt8173-fix-auxadc-node.patch
CommitLineData
75c6bbc2
GKH
1From a3207d644fb89e5d7d5e01f00c04dcfc6d2d44d5 Mon Sep 17 00:00:00 2001
2From: Matthias Brugger <matthias.bgg@gmail.com>
3Date: Wed, 26 Oct 2016 16:15:00 +0200
4Subject: arm64: dts: mt8173: Fix auxadc node
5
6From: Matthias Brugger <matthias.bgg@gmail.com>
7
8commit a3207d644fb89e5d7d5e01f00c04dcfc6d2d44d5 upstream.
9
10The devicetree node for mt8173-auxadc lacks the clock and
11io-channel-cells property. This leads to a non-working driver.
12
13 mt6577-auxadc 11001000.auxadc: failed to get auxadc clock
14 mt6577-auxadc: probe of 11001000.auxadc failed with error -2
15
16Fix these fields to get the device up and running.
17
18Fixes: 748c7d4de46a ("ARM64: dts: mt8173: Add thermal/auxadc device
19nodes")
20Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
21Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
22
23---
24 arch/arm64/boot/dts/mediatek/mt8173.dtsi | 3 +++
25 1 file changed, 3 insertions(+)
26
27--- a/arch/arm64/boot/dts/mediatek/mt8173.dtsi
28+++ b/arch/arm64/boot/dts/mediatek/mt8173.dtsi
29@@ -450,6 +450,9 @@
30 auxadc: auxadc@11001000 {
31 compatible = "mediatek,mt8173-auxadc";
32 reg = <0 0x11001000 0 0x1000>;
33+ clocks = <&pericfg CLK_PERI_AUXADC>;
34+ clock-names = "main";
35+ #io-channel-cells = <1>;
36 };
37
38 uart0: serial@11002000 {