Skip to contentSkip to conversation

arm64: dts: mt8173: Fix auxadc node

PATCH Applied Matthias Brugger 1 participant 2 messages Oct 26, 2016 – Oct 31, 2016

Subsystems (2)
lore
Share & tools
lore

Matthias Brugger

author maintainer
#0 lore raw

PATCH 1/1 arm64: dts: mt8173: Fix auxadc node

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")

---
 arch/arm64/boot/dts/mediatek/mt8173.dtsi | 3 +++
 1 file changed, 3 insertions(+)
arch/arm64/boot/dts/mediatek/mt8173.dtsi +3 -0
index 1c71e25..6c03c17 100644
@@ -450,6 +450,9 @@
 		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 {
Signature · 1 line
2.10.1
author maintainer Applied
#1 lore raw
Quoted 6 lines · Matthias Brugger

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
Quoted 6 lines

Fix these fields to get the device up and running.

Fixes 748c7d4de46a ("ARM64: dts: mt8173: Add thermal/auxadc device

nodes")

---

Applied.