lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20240930202639.37606-1-jihed.chaibi.dev@gmail.com>
Date: Mon, 30 Sep 2024 22:26:39 +0200
From: Jihed Chaibi <jihed.chaibi.dev@...il.com>
To: claudiu.beznea@...on.dev,
	nicolas.ferre@...rochip.com,
	alexandre.belloni@...tlin.com,
	conor+dt@...nel.org,
	robh+dt@...nel.org,
	krzysztof.kozlowski+dt@...aro.org
Cc: devicetree@...r.kernel.org,
	linux-arm-kernel@...ts.infradead.org,
	linux-kernel@...r.kernel.org,
	jihed.chaibi.dev@...il.com
Subject: [PATCH] ARM: dts: microchip: sam9x7: Add missing usart-mode property

Add the atmel,usart-mode property to UART nodes in Microchip SAM9X75
boards' device trees (boards which inherit sam9x7.dtsi). This ensures
compliance with the atmel at91-usart.yaml schema and resolves errors
that occur during DT validation, such as:

arch/arm/boot/dts/microchip/at91-sam9x75_curiosity.dtb: serial@200:
serial@...' does not match '^spi(@.*|-([0-9]|[1-9][0-9]+))?$'
from schema: http://devicetree.org/schemas/serial/atmel,at91-usart.yaml#

arch/arm/boot/dts/microchip/at91-sam9x75_curiosity.dtb:
serial@200: atmel,use-dma-rx: False schema does not allow True
from schema: http://devicetree.org/schemas/serial/atmel,at91-usart.yaml#

arch/arm/boot/dts/microchip/at91-sam9x75_curiosity.dtb:
serial@200: atmel,fifo-size: False schema does not allow 16
from schema: http://devicetree.org/schemas/serial/atmel,at91-usart.yaml#


By adding "atmel,usart-mode = <AT91_USART_MODE_SERIAL>" to UART nodes
0 up until 12, these errors are resolved, ensuring proper DTB validation.

This issue has been tested on the sam9x75 (sam9x75eb & sam9x75_curiosity)
boards, both of which inherit the sam9x7.dtsi file.

Signed-off-by: Jihed Chaibi <jihed.chaibi.dev@...il.com>
---
 arch/arm/boot/dts/microchip/sam9x7.dtsi | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/arch/arm/boot/dts/microchip/sam9x7.dtsi b/arch/arm/boot/dts/microchip/sam9x7.dtsi
index 29950159bb94..d3f7238eda85 100644
--- a/arch/arm/boot/dts/microchip/sam9x7.dtsi
+++ b/arch/arm/boot/dts/microchip/sam9x7.dtsi
@@ -166,6 +166,7 @@ flx4: flexcom@...00000 {
 			uart4: serial@200 {
 				compatible = "microchip,sam9x60-usart", "atmel,at91sam9260-usart";
 				reg = <0x200 0x200>;
+				atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
 				interrupts = <13 IRQ_TYPE_LEVEL_HIGH 7>;
 				dmas = <&dma0
 					(AT91_XDMAC_DT_MEM_IF(0) |
@@ -234,6 +235,7 @@ flx5: flexcom@...04000 {
 			uart5: serial@200 {
 				compatible = "microchip,sam9x60-usart", "atmel,at91sam9260-usart";
 				reg = <0x200 0x200>;
+				atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
 				interrupts = <14 IRQ_TYPE_LEVEL_HIGH 7>;
 				dmas = <&dma0
 					(AT91_XDMAC_DT_MEM_IF(0) |
@@ -375,6 +377,7 @@ flx11: flexcom@...20000 {
 			uart11: serial@200 {
 				compatible = "microchip,sam9x60-usart", "atmel,at91sam9260-usart";
 				reg = <0x200 0x200>;
+				atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
 				interrupts = <32 IRQ_TYPE_LEVEL_HIGH 7>;
 				dmas = <&dma0
 					(AT91_XDMAC_DT_MEM_IF(0) |
@@ -424,6 +427,7 @@ flx12: flexcom@...24000 {
 			uart12: serial@200 {
 				compatible = "microchip,sam9x60-usart", "atmel,at91sam9260-usart";
 				reg = <0x200 0x200>;
+				atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
 				interrupts = <33 IRQ_TYPE_LEVEL_HIGH 7>;
 				dmas = <&dma0
 					(AT91_XDMAC_DT_MEM_IF(0) |
@@ -595,6 +599,7 @@ flx6: flexcom@...10000 {
 			uart6: serial@200 {
 				compatible = "microchip,sam9x60-usart", "atmel,at91sam9260-usart";
 				reg = <0x200 0x200>;
+				atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
 				interrupts = <9 IRQ_TYPE_LEVEL_HIGH 7>;
 				dmas = <&dma0
 					(AT91_XDMAC_DT_MEM_IF(0) |
@@ -644,6 +649,7 @@ flx7: flexcom@...14000 {
 			uart7: serial@200 {
 				compatible = "microchip,sam9x60-usart", "atmel,at91sam9260-usart";
 				reg = <0x200 0x200>;
+				atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
 				interrupts = <10 IRQ_TYPE_LEVEL_HIGH 7>;
 				dmas = <&dma0
 					(AT91_XDMAC_DT_MEM_IF(0) |
@@ -693,6 +699,7 @@ flx8: flexcom@...18000 {
 			uart8: serial@200 {
 				compatible = "microchip,sam9x60-usart", "atmel,at91sam9260-usart";
 				reg = <0x200 0x200>;
+				atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
 				interrupts = <11 IRQ_TYPE_LEVEL_HIGH 7>;
 				dmas = <&dma0
 					(AT91_XDMAC_DT_MEM_IF(0) |
@@ -742,6 +749,7 @@ flx0: flexcom@...1c000 {
 			uart0: serial@200 {
 				compatible = "microchip,sam9x60-usart", "atmel,at91sam9260-usart";
 				reg = <0x200 0x200>;
+				atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
 				interrupts = <5 IRQ_TYPE_LEVEL_HIGH 7>;
 				dmas = <&dma0
 					(AT91_XDMAC_DT_MEM_IF(0) |
@@ -810,6 +818,7 @@ flx1: flexcom@...20000 {
 			uart1: serial@200 {
 				compatible = "microchip,sam9x60-usart", "atmel,at91sam9260-usart";
 				reg = <0x200 0x200>;
+				atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
 				interrupts = <6 IRQ_TYPE_LEVEL_HIGH 7>;
 				dmas = <&dma0
 					(AT91_XDMAC_DT_MEM_IF(0) |
@@ -878,6 +887,7 @@ flx2: flexcom@...24000 {
 			uart2: serial@200 {
 				compatible = "microchip,sam9x60-usart", "atmel,at91sam9260-usart";
 				reg = <0x200 0x200>;
+				atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
 				interrupts = <7 IRQ_TYPE_LEVEL_HIGH 7>;
 				dmas = <&dma0
 					(AT91_XDMAC_DT_MEM_IF(0) |
@@ -946,6 +956,7 @@ flx3: flexcom@...28000 {
 			uart3: serial@200 {
 				compatible = "microchip,sam9x60-usart", "atmel,at91sam9260-usart";
 				reg = <0x200 0x200>;
+				atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
 				interrupts = <8 IRQ_TYPE_LEVEL_HIGH 7>;
 				dmas = <&dma0
 					(AT91_XDMAC_DT_MEM_IF(0) |
@@ -1067,6 +1078,7 @@ flx9: flexcom@...40000 {
 			uart9: serial@200 {
 				compatible = "microchip,sam9x60-usart", "atmel,at91sam9260-usart";
 				reg = <0x200 0x200>;
+				atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
 				interrupts = <15 IRQ_TYPE_LEVEL_HIGH 7>;
 				dmas = <&dma0
 					(AT91_XDMAC_DT_MEM_IF(0) |
@@ -1116,6 +1128,7 @@ flx10: flexcom@...44000 {
 			uart10: serial@200 {
 				compatible = "microchip,sam9x60-usart", "atmel,at91sam9260-usart";
 				reg = <0x200 0x200>;
+				atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
 				interrupts = <16 IRQ_TYPE_LEVEL_HIGH 7>;
 				dmas = <&dma0
 					(AT91_XDMAC_DT_MEM_IF(0) |
-- 
2.39.2


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ