Skip to contentSkip to conversation

ARM: debug: at91: add UART0 for sama5d2 DEBUG_LL

PATCH New [email protected] 1 participant 2 messages Sep 5, 2025 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ARM: debug: at91: add UART0 for sama5d2 DEBUG_LL

From: Nicolas Ferre <[email protected]>

Add the UART0 that is by default console on some boards like the SAMA5D29-Curiosity.

---
 arch/arm/Kconfig.debug | 10 ++++++++++
 1 file changed, 10 insertions(+)
arch/arm/Kconfig.debug +10 -0
index 366f162e147d..c941adbc850b 100644
@@ -174,6 +174,14 @@ choice
 		    at91sam9263, at91sam9g45, at91sam9m10,
 		    sama5d3
 
+	config DEBUG_AT91_SAMA5D2_UART0
+		bool "Kernel low-level debugging on SAMA5D2 UART0"
+		select DEBUG_AT91_UART
+		depends on SOC_SAMA5D2
+		help
+		  Say Y here if you want kernel low-level debugging support
+		  on the UART0 port of sama5d2.
+
 	config DEBUG_AT91_SAMA5D2_UART1
 		bool "Kernel low-level debugging on SAMA5D2 UART1"
 		select DEBUG_AT91_UART
@@ -1635,6 +1643,7 @@ config DEBUG_UART_PHYS
 	default 0xf1012000 if DEBUG_MVEBU_UART0_ALTERNATE
 	default 0xf1012100 if DEBUG_MVEBU_UART1_ALTERNATE
 	default 0xf7fc9000 if DEBUG_BERLIN_UART
+	default 0xf801c000 if DEBUG_AT91_SAMA5D2_UART0
 	default 0xf8020000 if DEBUG_AT91_SAMA5D2_UART1
 	default 0xf8b00000 if DEBUG_HIX5HD2_UART
 	default 0xf991e000 if DEBUG_QCOM_UARTDM
@@ -1707,6 +1716,7 @@ config DEBUG_UART_VIRT
 	default 0xf7000400 if DEBUG_S3C64XX_UART && DEBUG_S3C_UART1
 	default 0xf7000800 if DEBUG_S3C64XX_UART && DEBUG_S3C_UART2
 	default 0xf7000c00 if DEBUG_S3C64XX_UART && DEBUG_S3C_UART3
+	default 0xf701c000 if DEBUG_AT91_SAMA5D2_UART0
 	default 0xf7020000 if DEBUG_AT91_SAMA5D2_UART1
 	default 0xf7fc9000 if DEBUG_BERLIN_UART
 	default 0xf8007000 if DEBUG_HIP04_UART
Signature · 1 line
2.43.0
#1 lore raw

PATCH 2/2 ARM: debug: at91: add sama7d65 debug uarts for DEBUG_LL

From: Nicolas Ferre <[email protected]>

Add USART6 on Flexcom6 for AT91 DEBUG_LL with associated physical and virtual addresses. It's the debug console on SAMA765 Curiosity board. Add the possibility to use USART3 as well because it's the debug console on some other SAMA7D65 boards.

---
 arch/arm/Kconfig.debug | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
arch/arm/Kconfig.debug +20 -0
index c941adbc850b..1f4c473b81ac 100644
@@ -207,6 +207,22 @@ choice
 		  their output to the USART1 port on SAMV7 based
 		  machines.
 
+	config DEBUG_AT91_SAMA7D65_FLEXCOM3
+		bool "Kernel low-level debugging on SAMA7D65 FLEXCOM3"
+		select DEBUG_AT91_UART
+		depends on SOC_SAMA7D65
+		help
+		  Say Y here if you want kernel low-level debugging support
+		  on the FLEXCOM3 port IOSET 1 of SAMA7D65.
+
+	config DEBUG_AT91_SAMA7D65_FLEXCOM6
+		bool "Kernel low-level debugging on SAMA7D65 FLEXCOM6"
+		select DEBUG_AT91_UART
+		depends on SOC_SAMA7D65
+		help
+		  Say Y here if you want kernel low-level debugging support
+		  on the FLEXCOM6 port IOSET 4 of SAMA7D65.
+
 	config DEBUG_AT91_SAMA7G5_FLEXCOM3
 		bool "Kernel low-level debugging on SAMA7G5 FLEXCOM3"
 		select DEBUG_AT91_UART
@@ -1627,6 +1643,8 @@ config DEBUG_UART_PHYS
 	default 0xd4018000 if DEBUG_MMP_UART3
 	default 0xe0000000 if DEBUG_SPEAR13XX
 	default 0xe0064200 if DEBUG_AT91_LAN966_FLEXCOM
+	default 0xe182c200 if DEBUG_AT91_SAMA7D65_FLEXCOM3
+	default 0xe2020200 if DEBUG_AT91_SAMA7D65_FLEXCOM6
 	default 0xe1824200 if DEBUG_AT91_SAMA7G5_FLEXCOM3
 	default 0xe4007000 if DEBUG_HIP04_UART
 	default 0xe6c40000 if DEBUG_RMOBILE_SCIFA0
@@ -1690,6 +1708,8 @@ config DEBUG_UART_VIRT
 	default 0xc8821000 if DEBUG_RV1108_UART1
 	default 0xc8912000 if DEBUG_RV1108_UART0
 	default 0xe0010fe0 if ARCH_RPC
+	default 0xfc82c200 if DEBUG_AT91_SAMA7D65_FLEXCOM3
+	default 0xfd020200 if DEBUG_AT91_SAMA7D65_FLEXCOM6
 	default 0xe0824200 if DEBUG_AT91_SAMA7G5_FLEXCOM3
 	default 0xf0010000 if DEBUG_ASM9260_UART
 	default 0xf0100000 if DEBUG_DIGICOLOR_UA0
Signature · 1 line
2.43.0