armbian_build/patch/kernel/archive/sunxi-6.6/patches.megous/dt-bindings-axp20x-adc-allow-to-use-TS-pin-as-GPADC.patch
The-going 25b0741531 sunxi-6.6: megous patches: revert commit changes e103e2e1daa2d
Undo changes that are made massively and create a lot of noise.
e103e2e1da
2025-01-19 20:22:11 +01:00

35 lines
1.1 KiB
Diff

From 657573538871c95a8f78e25c5df6caf2dbb1f0e5 Mon Sep 17 00:00:00 2001
From: Icenowy Zheng <icenowy@aosc.io>
Date: Tue, 10 Sep 2019 12:02:23 +0800
Subject: 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>
---
.../devicetree/bindings/iio/adc/x-powers,axp209-adc.yaml | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/Documentation/devicetree/bindings/iio/adc/x-powers,axp209-adc.yaml b/Documentation/devicetree/bindings/iio/adc/x-powers,axp209-adc.yaml
index d40689f233f2..74f051a86927 100644
--- a/Documentation/devicetree/bindings/iio/adc/x-powers,axp209-adc.yaml
+++ b/Documentation/devicetree/bindings/iio/adc/x-powers,axp209-adc.yaml
@@ -61,6 +61,11 @@ properties:
"#io-channel-cells":
const: 1
+ x-powers,ts-as-gpadc:
+ description: |
+ Boolean. Defines whether the TS pin should be used
+ as GPADC rather than battery temperature sensor pin.
+
additionalProperties: false
examples:
--
2.35.3