Skip to contentSkip to conversation

socfpga: fix the serial console on DE1-SoC

PATCH In review Jade Lovelace 3 participants 3 messages Feb 11, 2023 – Feb 12, 2023 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 socfpga: fix the serial console on DE1-SoC

Previously, the TX LED would flash but nothing would appear on the serial port, and the board would appear dead with a build of the socfpga_cyclone5_defconfig. I have verified that adding the frequency to the uart will fix the serial console on my board.

Thanks to @ehoffman on the Rocketboards forum:
https://forum.rocketboards.org/t/cyclonev-programming-fpga-from-u-boot/2230/30

---

 arch/arm/dts/socfpga_cyclone5_de1_soc.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm/dts/socfpga_cyclone5_de1_soc.dts +1 -0
index ff1e61e0cb..b71496bfb5 100644
@@ -75,6 +75,7 @@
 };
 
 &uart0 {
+	clock-frequency = <100000000>;
 	u-boot,dm-pre-reloc;
 };
 
Signature · 1 line
2.39.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 19 lines · Jade Lovelace

Previously, the TX LED would flash but nothing would appear on the serial port, and the board would appear dead with a build of the socfpga_cyclone5_defconfig. I have verified that adding the frequency to the uart will fix the serial console on my board.

Thanks to @ehoffman on the Rocketboards forum:
https://forum.rocketboards.org/t/cyclonev-programming-fpga-from-u-boot/2230/30

---

  arch/arm/dts/socfpga_cyclone5_de1_soc.dts | 1 +
  1 file changed, 1 insertion(+)
arch/arm/dts/socfpga_cyclone5_de1_soc.dts +0 -0
index ff1e61e0cb..b71496bfb5 100644

arch/arm/dts/socfpga_cyclone5_de1_soc.dts line 80

Quoted 6 lines
arch/arm/dts/socfpga_cyclone5_de1_soc.dts +1 -0
@@ -75,6 +75,7 @@
  };
 
  &uart0 {
+	clock-frequency = <100000000>;
  	u-boot,dm-pre-reloc;
  };

Tom, can you pick this one directly for current release ?

#2 lore raw
In reply to Jade Lovelace
Quoted 9 lines · Jade Lovelace

Previously, the TX LED would flash but nothing would appear on the serial port, and the board would appear dead with a build of the socfpga_cyclone5_defconfig. I have verified that adding the frequency to the uart will fix the serial console on my board.

Thanks to @ehoffman on the Rocketboards forum:
https://forum.rocketboards.org/t/cyclonev-programming-fpga-from-u-boot/2230/30

[...]

Applied to u-boot/master, thanks!

Signature · 1 line
Tom