diff mbox series

[3/3] ARM: dts: sun8i: r40: add rtp node

Message ID 20211119191456.510435-4-boger@wirenboard.com (mailing list archive)
State New, archived
Headers show
Series Enable RTP (GPADC) controller on Allwinner R40 | expand

Commit Message

Evgeny Boger Nov. 19, 2021, 7:14 p.m. UTC
R40 SoC has touchscreen controller also serving as general-purpose ADC.
The hardware is very similar to A31, except that R40 has separate
calibrated thermal sensor IP, so temperature sensing channel in RTP is
not documented and is not to be used.

Signed-off-by: Evgeny Boger <boger@wirenboard.com>
---
 arch/arm/boot/dts/sun8i-r40.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/sun8i-r40.dtsi b/arch/arm/boot/dts/sun8i-r40.dtsi
index 1d87fc0c24ee..3e98f24c1400 100644
--- a/arch/arm/boot/dts/sun8i-r40.dtsi
+++ b/arch/arm/boot/dts/sun8i-r40.dtsi
@@ -786,6 +786,14 @@  ths: thermal-sensor@1c24c00 {
 			#thermal-sensor-cells = <1>;
 		};
 
+		rtp: rtp@1c25000 {
+			compatible = "allwinner,sun8i-r40-ts",
+				     "allwinner,sun6i-a31-ts";
+			reg = <0x01c25000 0x100>;
+			interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
+			#thermal-sensor-cells = <0>;
+		};
+
 		uart0: serial@1c28000 {
 			compatible = "snps,dw-apb-uart";
 			reg = <0x01c28000 0x400>;