| From f62a24351651801900a50ffe8af78a1bed9725d8 Mon Sep 17 00:00:00 2001 |
| From: Sasha Levin <sashal@kernel.org> |
| Date: Thu, 12 Sep 2024 12:33:07 +0300 |
| Subject: ARM: dts: microchip: sam9x60: Add missing property atmel,usart-mode |
| |
| From: Andrei Simion <andrei.simion@microchip.com> |
| |
| [ Upstream commit 2f9d013a0c6f1b9109ada5acb28ee26eefc77c03 ] |
| |
| Add the atmel,usart-mode property to the UART nodes. This ensures |
| compliance with the atmel,at91-usart.yaml schema and resolves the errors |
| below: |
| serial@200: $nodename:0: 'serial@200' does not match |
| '^spi(@.*|-([0-9]|[1-9][0-9]+))?$' |
| serial@200: atmel,use-dma-rx: False schema does not allow True |
| serial@200: atmel,use-dma-tx: False schema does not allow True |
| serial@200: atmel,fifo-size: False schema does not allow [[16]] |
| |
| These errors indicate that the property |
| atmel,usart-mode = <AT91_USART_MODE_SERIAL> is missing for |
| UART nodes 0, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, and 12. |
| |
| Fixes: 99c808335877 ("ARM: dts: at91: sam9x60: Add missing flexcom definitions") |
| Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com> |
| Signed-off-by: Andrei Simion <andrei.simion@microchip.com> |
| Link: https://lore.kernel.org/r/20240912093307.40488-1-andrei.simion@microchip.com |
| [claudiu.beznea: move the atmel,usart-mode close to vendor specific |
| properties to cope with DTS coding style] |
| Signed-off-by: Claudiu Beznea <claudiu.beznea@tuxon.dev> |
| Signed-off-by: Sasha Levin <sashal@kernel.org> |
| --- |
| arch/arm/boot/dts/microchip/sam9x60.dtsi | 12 ++++++++++++ |
| 1 file changed, 12 insertions(+) |
| |
| diff --git a/arch/arm/boot/dts/microchip/sam9x60.dtsi b/arch/arm/boot/dts/microchip/sam9x60.dtsi |
| index d077afd5024db..2492cd14c4e78 100644 |
| --- a/arch/arm/boot/dts/microchip/sam9x60.dtsi |
| +++ b/arch/arm/boot/dts/microchip/sam9x60.dtsi |
| @@ -186,6 +186,7 @@ AT91_XDMAC_DT_PER_IF(1) | |
| dma-names = "tx", "rx"; |
| clocks = <&pmc PMC_TYPE_PERIPHERAL 13>; |
| clock-names = "usart"; |
| + atmel,usart-mode = <AT91_USART_MODE_SERIAL>; |
| atmel,use-dma-rx; |
| atmel,use-dma-tx; |
| atmel,fifo-size = <16>; |
| @@ -384,6 +385,7 @@ AT91_XDMAC_DT_PER_IF(1) | |
| dma-names = "tx", "rx"; |
| clocks = <&pmc PMC_TYPE_PERIPHERAL 32>; |
| clock-names = "usart"; |
| + atmel,usart-mode = <AT91_USART_MODE_SERIAL>; |
| atmel,use-dma-rx; |
| atmel,use-dma-tx; |
| atmel,fifo-size = <16>; |
| @@ -433,6 +435,7 @@ AT91_XDMAC_DT_PER_IF(1) | |
| dma-names = "tx", "rx"; |
| clocks = <&pmc PMC_TYPE_PERIPHERAL 33>; |
| clock-names = "usart"; |
| + atmel,usart-mode = <AT91_USART_MODE_SERIAL>; |
| atmel,use-dma-rx; |
| atmel,use-dma-tx; |
| atmel,fifo-size = <16>; |
| @@ -590,6 +593,7 @@ AT91_XDMAC_DT_PER_IF(1) | |
| dma-names = "tx", "rx"; |
| clocks = <&pmc PMC_TYPE_PERIPHERAL 9>; |
| clock-names = "usart"; |
| + atmel,usart-mode = <AT91_USART_MODE_SERIAL>; |
| atmel,use-dma-rx; |
| atmel,use-dma-tx; |
| atmel,fifo-size = <16>; |
| @@ -639,6 +643,7 @@ AT91_XDMAC_DT_PER_IF(1) | |
| dma-names = "tx", "rx"; |
| clocks = <&pmc PMC_TYPE_PERIPHERAL 10>; |
| clock-names = "usart"; |
| + atmel,usart-mode = <AT91_USART_MODE_SERIAL>; |
| atmel,use-dma-rx; |
| atmel,use-dma-tx; |
| atmel,fifo-size = <16>; |
| @@ -688,6 +693,7 @@ AT91_XDMAC_DT_PER_IF(1) | |
| dma-names = "tx", "rx"; |
| clocks = <&pmc PMC_TYPE_PERIPHERAL 11>; |
| clock-names = "usart"; |
| + atmel,usart-mode = <AT91_USART_MODE_SERIAL>; |
| atmel,use-dma-rx; |
| atmel,use-dma-tx; |
| atmel,fifo-size = <16>; |
| @@ -737,6 +743,7 @@ AT91_XDMAC_DT_PER_IF(1) | |
| dma-names = "tx", "rx"; |
| clocks = <&pmc PMC_TYPE_PERIPHERAL 5>; |
| clock-names = "usart"; |
| + atmel,usart-mode = <AT91_USART_MODE_SERIAL>; |
| atmel,use-dma-rx; |
| atmel,use-dma-tx; |
| atmel,fifo-size = <16>; |
| @@ -805,6 +812,7 @@ AT91_XDMAC_DT_PER_IF(1) | |
| dma-names = "tx", "rx"; |
| clocks = <&pmc PMC_TYPE_PERIPHERAL 6>; |
| clock-names = "usart"; |
| + atmel,usart-mode = <AT91_USART_MODE_SERIAL>; |
| atmel,use-dma-rx; |
| atmel,use-dma-tx; |
| atmel,fifo-size = <16>; |
| @@ -873,6 +881,7 @@ AT91_XDMAC_DT_PER_IF(1) | |
| dma-names = "tx", "rx"; |
| clocks = <&pmc PMC_TYPE_PERIPHERAL 7>; |
| clock-names = "usart"; |
| + atmel,usart-mode = <AT91_USART_MODE_SERIAL>; |
| atmel,use-dma-rx; |
| atmel,use-dma-tx; |
| atmel,fifo-size = <16>; |
| @@ -941,6 +950,7 @@ AT91_XDMAC_DT_PER_IF(1) | |
| dma-names = "tx", "rx"; |
| clocks = <&pmc PMC_TYPE_PERIPHERAL 8>; |
| clock-names = "usart"; |
| + atmel,usart-mode = <AT91_USART_MODE_SERIAL>; |
| atmel,use-dma-rx; |
| atmel,use-dma-tx; |
| atmel,fifo-size = <16>; |
| @@ -1064,6 +1074,7 @@ AT91_XDMAC_DT_PER_IF(1) | |
| dma-names = "tx", "rx"; |
| clocks = <&pmc PMC_TYPE_PERIPHERAL 15>; |
| clock-names = "usart"; |
| + atmel,usart-mode = <AT91_USART_MODE_SERIAL>; |
| atmel,use-dma-rx; |
| atmel,use-dma-tx; |
| atmel,fifo-size = <16>; |
| @@ -1113,6 +1124,7 @@ AT91_XDMAC_DT_PER_IF(1) | |
| dma-names = "tx", "rx"; |
| clocks = <&pmc PMC_TYPE_PERIPHERAL 16>; |
| clock-names = "usart"; |
| + atmel,usart-mode = <AT91_USART_MODE_SERIAL>; |
| atmel,use-dma-rx; |
| atmel,use-dma-tx; |
| atmel,fifo-size = <16>; |
| -- |
| 2.43.0 |
| |