Skip to contentSkip to conversation

ARM: dts: at91: sama7g5: fix clock id for ebi node

PATCH In review Mihai Sain 3 participants 3 messages Feb 23, 2023 – Feb 24, 2023 Arm (32-bit)

lore
Share & tools
lore

Mihai Sain

author
#0 lore raw

PATCH 1/1 ARM: dts: at91: sama7g5: fix clock id for ebi node

The PMC_MCK1 clock id for the ebi node is 23.

Fixes 4ce85577ac ("ARM: dts: at91: sama7g5/sama7g5ek: align with Linux DT")
---
 arch/arm/dts/sama7g5.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/dts/sama7g5.dtsi +1 -1
index d38090d7dd..a802153af8 100644
@@ -150,7 +150,7 @@
 				  0x1 0x0 0x48000000 0x8000000
 				  0x2 0x0 0x50000000 0x8000000
 				  0x3 0x0 0x58000000 0x8000000>;
-			clocks = <&pmc PMC_TYPE_CORE 13>; /* PMC_MCK1 */
+			clocks = <&pmc PMC_TYPE_CORE 23>; /* PMC_MCK1 */
 			status = "disabled";
 
 			nand_controller: nand-controller {
Signature · 1 line
2.39.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 13 lines · Mihai Sain

The PMC_MCK1 clock id for the ebi node is 23.

Fixes 4ce85577ac ("ARM: dts: at91: sama7g5/sama7g5ek: align with Linux DT")
---
  arch/arm/dts/sama7g5.dtsi | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/dts/sama7g5.dtsi +0 -0
index d38090d7dd..a802153af8 100644

arch/arm/dts/sama7g5.dtsi line 156

Quoted 8 lines
arch/arm/dts/sama7g5.dtsi +1 -1
@@ -150,7 +150,7 @@
  				  0x1 0x0 0x48000000 0x8000000
  				  0x2 0x0 0x50000000 0x8000000
  				  0x3 0x0 0x58000000 0x8000000>;
-			clocks = <&pmc PMC_TYPE_CORE 13>; /* PMC_MCK1 */
+			clocks = <&pmc PMC_TYPE_CORE 23>; /* PMC_MCK1 */
  			status = "disabled";
 
  			nand_controller: nand-controller {

Hi Mihai,

It appears PMC_MCK1 = PMC_MAIN(3) + 10 , in Linux. In U-boot indeed it's 23.

Thanks for fixing it,

PS. I will amend the commit as it appears 4ce85577ac does not exist

Reviewed-by on v1 1/1
#2 lore raw
In reply to Mihai Sain
Quoted 4 lines · Mihai Sain

The PMC_MCK1 clock id for the ebi node is 23.

Fixes 4ce85577ac ("ARM: dts: at91: sama7g5/sama7g5ek: align with Linux DT")
Quoted 17 lines
---
 arch/arm/dts/sama7g5.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/dts/sama7g5.dtsi +1 -1
index d38090d7dd..a802153af8 100644
@@ -150,7 +150,7 @@
 				  0x1 0x0 0x48000000 0x8000000
 				  0x2 0x0 0x50000000 0x8000000
 				  0x3 0x0 0x58000000 0x8000000>;
-			clocks = <&pmc PMC_TYPE_CORE 13>; /* PMC_MCK1 */
+			clocks = <&pmc PMC_TYPE_CORE 23>; /* PMC_MCK1 */
 			status = "disabled";
 
 			nand_controller: nand-controller {