arm64: dts: mt8173: Fix auxadc node
authorMatthias Brugger <matthias.bgg@gmail.com>
Wed, 26 Oct 2016 14:15:00 +0000 (16:15 +0200)
committerMatthias Brugger <matthias.bgg@gmail.com>
Mon, 31 Oct 2016 00:14:43 +0000 (01:14 +0100)
The devicetree node for mt8173-auxadc lacks the clock and
io-channel-cells property. This leads to a non-working driver.

mt6577-auxadc 11001000.auxadc: failed to get auxadc clock
mt6577-auxadc: probe of 11001000.auxadc failed with error -2

Fix these fields to get the device up and running.

Fixes: 748c7d4de46a ("ARM64: dts: mt8173: Add thermal/auxadc device
nodes")
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
arch/arm64/boot/dts/mediatek/mt8173.dtsi

index 1c71e256601dc44b9a2d30ce7cb54db8b4811ee7..6c03c1702bb32ff1766d478c872034d725e85e1b 100644 (file)
                auxadc: auxadc@11001000 {
                        compatible = "mediatek,mt8173-auxadc";
                        reg = <0 0x11001000 0 0x1000>;
+                       clocks = <&pericfg CLK_PERI_AUXADC>;
+                       clock-names = "main";
+                       #io-channel-cells = <1>;
                };
 
                uart0: serial@11002000 {