build/patch/kernel/archive/sunxi-5.10/megous/dt-bindings-axp20x-adc-allow-to-use-TS-pin-as-GPADC.patch

34 lines
1.1 KiB
Diff
Raw Normal View History

From fe440c8beeae04bdc9ec11abbe7cdc46ec064ab4 Mon Sep 17 00:00:00 2001
From: Icenowy Zheng <icenowy@aosc.io>
Date: Tue, 10 Sep 2019 12:02:23 +0800
Subject: [PATCH 260/351] dt-bindings: axp20x-adc: allow to use TS pin as GPADC
The AXP series PMICs allow to use the TS pin as GPADC rather than the
battery temperature sensor.
Add the property to enable this mode.
Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
---
Documentation/devicetree/bindings/iio/adc/axp20x_adc.txt | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/Documentation/devicetree/bindings/iio/adc/axp20x_adc.txt b/Documentation/devicetree/bindings/iio/adc/axp20x_adc.txt
index 7a6313913923..b504a0257bce 100644
--- a/Documentation/devicetree/bindings/iio/adc/axp20x_adc.txt
+++ b/Documentation/devicetree/bindings/iio/adc/axp20x_adc.txt
@@ -7,6 +7,10 @@ Required properties:
- "x-powers,axp813-adc",
- #io-channel-cells: should be 1,
+Optional properties:
+ - x-powers,ts-as-gpadc: Boolean. Defines whether the TS pin should be used
+ as GPADC rather than battery temperature sensor pin.
+
Example:
&axp22x {
--
2.34.0