diff mbox series

[09/10] ARM: dts: at91: sama5d2: add rtc_adc_trigger node

Message ID 1576686157-11939-10-git-send-email-eugen.hristev@microchip.com (mailing list archive)
State New, archived
Headers show
Series Enhancements to at91-sama5d2_adc and rtc trigger | expand

Commit Message

Eugen Hristev Dec. 18, 2019, 4:24 p.m. UTC
From: Eugen Hristev <eugen.hristev@microchip.com>

Add node for the AT91 RTC ADC Trigger.
This is a child node of the RTC and uses the same register map.
Add a link in the ADC node to this new node. This represents the internal
hardware line that is connected from the ADC to the RTC device.

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
---
 arch/arm/boot/dts/sama5d2.dtsi | 11 +++++++++++
 1 file changed, 11 insertions(+)
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/sama5d2.dtsi b/arch/arm/boot/dts/sama5d2.dtsi
index 5652048..c2df369 100644
--- a/arch/arm/boot/dts/sama5d2.dtsi
+++ b/arch/arm/boot/dts/sama5d2.dtsi
@@ -694,6 +694,16 @@ 
 				reg = <0xf80480b0 0x30>;
 				interrupts = <74 IRQ_TYPE_LEVEL_HIGH 7>;
 				clocks = <&clk32k>;
+				#address-cells = <1>;
+				#size-cells = <1>;
+				ranges = <0 0xf80480b0 0x10>;
+
+				rtc_adc_trigger: rtc-adc-trigger {
+					reg = <0x0 0x10>;
+					compatible = "microchip,rtc-adc-trigger";
+					status = "disabled";
+				};
+
 			};
 
 			i2s0: i2s@f8050000 {
@@ -856,6 +866,7 @@ 
 				atmel,max-sample-rate-hz = <20000000>;
 				atmel,startup-time-ms = <4>;
 				atmel,trigger-edge-type = <IRQ_TYPE_EDGE_RISING>;
+				atmel,rtc-trigger = <&rtc_adc_trigger>;
 				#io-channel-cells = <1>;
 				status = "disabled";
 			};