Skip to contentSkip to conversation

riscv: defconfig: sophgo: enable clks for sg2042

PATCH Applied Chen Wang 4 participants 7 messages Aug 5, 2024 – Aug 19, 2024 RISC-V

lore
Share & tools
lore

Chen Wang

author
#0 lore raw

PATCH 1/1 riscv: defconfig: sophgo: enable clks for sg2042

From: Chen Wang <[email protected]>

Enable clk generators for sg2042 due to many peripherals rely on these clocks.

---
 arch/riscv/configs/defconfig | 3 +++
 1 file changed, 3 insertions(+)
arch/riscv/configs/defconfig +3 -0
index 0d678325444f..d43a028909e5 100644
@@ -249,6 +249,9 @@ CONFIG_VIRTIO_BALLOON=y
 CONFIG_VIRTIO_INPUT=y
 CONFIG_VIRTIO_MMIO=y
 CONFIG_CLK_SOPHGO_CV1800=y
+CONFIG_CLK_SOPHGO_SG2042_PLL=y
+CONFIG_CLK_SOPHGO_SG2042_CLKGEN=y
+CONFIG_CLK_SOPHGO_SG2042_RPGATE=y
 CONFIG_SUN8I_DE2_CCU=m
 CONFIG_RENESAS_OSTM=y
 CONFIG_SUN50I_IOMMU=y

base-commit: de9c2c66ad8e787abec7c9d7eff4f8c3cdd28aed

Signature · 1 line
2.34.1
#1 lore raw
Quoted 15 lines · Chen Wang

From: Chen Wang <[email protected]>

Enable clk generators for sg2042 due to many peripherals rely on these clocks.

---
 arch/riscv/configs/defconfig | 3 +++
 1 file changed, 3 insertions(+)
arch/riscv/configs/defconfig +0 -0
index 0d678325444f..d43a028909e5 100644

arch/riscv/configs/defconfig CONFIG_VIRTIO_BALLOON=y · line 257

Quoted 9 lines
arch/riscv/configs/defconfig +3 -0
@@ -249,6 +249,9 @@ CONFIG_VIRTIO_BALLOON=y
 CONFIG_VIRTIO_INPUT=y
 CONFIG_VIRTIO_MMIO=y
 CONFIG_CLK_SOPHGO_CV1800=y
+CONFIG_CLK_SOPHGO_SG2042_PLL=y
+CONFIG_CLK_SOPHGO_SG2042_CLKGEN=y
+CONFIG_CLK_SOPHGO_SG2042_RPGATE=y
 CONFIG_SUN8I_DE2_CCU=m
 CONFIG_RENESAS_OSTM=y
 CONFIG_SUN50I_IOMMU=y

Are these all critical to boot or could they be modules?

/Emil

Quoted 10 lines

base-commit: de9c2c66ad8e787abec7c9d7eff4f8c3cdd28aed --
2.34.1

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv

#2 lore raw
Quoted 27 lines · Emil Renner Berthing
Quoted 15 lines · Chen Wang

From: Chen Wang <[email protected]>

Enable clk generators for sg2042 due to many peripherals rely on these clocks.

---
  arch/riscv/configs/defconfig | 3 +++
  1 file changed, 3 insertions(+)
arch/riscv/configs/defconfig +0 -0
index 0d678325444f..d43a028909e5 100644

arch/riscv/configs/defconfig CONFIG_VIRTIO_BALLOON=y · line 257

Quoted 9 lines
arch/riscv/configs/defconfig +3 -0
@@ -249,6 +249,9 @@ CONFIG_VIRTIO_BALLOON=y
  CONFIG_VIRTIO_INPUT=y
  CONFIG_VIRTIO_MMIO=y
  CONFIG_CLK_SOPHGO_CV1800=y
+CONFIG_CLK_SOPHGO_SG2042_PLL=y
+CONFIG_CLK_SOPHGO_SG2042_CLKGEN=y
+CONFIG_CLK_SOPHGO_SG2042_RPGATE=y
  CONFIG_SUN8I_DE2_CCU=m
  CONFIG_RENESAS_OSTM=y
  CONFIG_SUN50I_IOMMU=y

Are these all critical to boot or could they be modules?

Quoted 1 line

/Emil

Since 6.11, sg2042.dtsi has been changed and uart now has dependency on clocks and boot into minimal console will fail without this.

The sg2042 clock is configured as builtin to facilitate bootup in initramfs with defconfig build.

Regards.

Chen

Quoted 9 lines
Quoted 9 lines

base-commit: de9c2c66ad8e787abec7c9d7eff4f8c3cdd28aed --
2.34.1

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv

#3 lore raw
In reply to Chen Wang
Quoted 25 lines · Chen Wang

From: Chen Wang <[email protected]>

Enable clk generators for sg2042 due to many peripherals rely on these clocks.

---
  arch/riscv/configs/defconfig | 3 +++
  1 file changed, 3 insertions(+)
arch/riscv/configs/defconfig +3 -0
index 0d678325444f..d43a028909e5 100644
@@ -249,6 +249,9 @@ CONFIG_VIRTIO_BALLOON=y
  CONFIG_VIRTIO_INPUT=y
  CONFIG_VIRTIO_MMIO=y
  CONFIG_CLK_SOPHGO_CV1800=y
+CONFIG_CLK_SOPHGO_SG2042_PLL=y
+CONFIG_CLK_SOPHGO_SG2042_CLKGEN=y
+CONFIG_CLK_SOPHGO_SG2042_RPGATE=y
  CONFIG_SUN8I_DE2_CCU=m
  CONFIG_RENESAS_OSTM=y
  CONFIG_SUN50I_IOMMU=y
Quoted 1 line

base-commit: de9c2c66ad8e787abec7c9d7eff4f8c3cdd28aed

Hi,Palmer,

Could you please have a look on this patch and pick it for next tree? These clk drivers are required for sg2042 to boot into minimal console.

Thanks,

Chen

#4 lore raw

Hi, Palmer,

Could you please pick this into riscv/for-next?

Thanks,

Chen

Quoted 42 lines · Chen Wang
Quoted 25 lines · Chen Wang

From: Chen Wang <[email protected]>

Enable clk generators for sg2042 due to many peripherals rely on these clocks.

---
  arch/riscv/configs/defconfig | 3 +++

  1 file changed, 3 insertions(+)
arch/riscv/configs/defconfig +0 -0
index 0d678325444f..d43a028909e5 100644
@@ -249,6 +249,9 @@ CONFIG_VIRTIO_BALLOON=y

  CONFIG_VIRTIO_INPUT=y
  CONFIG_VIRTIO_MMIO=y
  CONFIG_CLK_SOPHGO_CV1800=y

arch/riscv/configs/defconfig +3 -0
+CONFIG_CLK_SOPHGO_SG2042_PLL=y
+CONFIG_CLK_SOPHGO_SG2042_CLKGEN=y
+CONFIG_CLK_SOPHGO_SG2042_RPGATE=y

  CONFIG_SUN8I_DE2_CCU=m
  CONFIG_RENESAS_OSTM=y
  CONFIG_SUN50I_IOMMU=y

Quoted 1 line

base-commit: de9c2c66ad8e787abec7c9d7eff4f8c3cdd28aed

Hi,Palmer,

Could you please have a look on this patch and pick it for next tree? These clk drivers are required for sg2042 to boot into minimal console.

Thanks,

Chen

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv

#6 lore raw
Quoted 7 lines · Conor Dooley

From: Conor Dooley <[email protected]>

Quoted 4 lines · Chen Wang

Enable clk generators for sg2042 due to many peripherals rely on these clocks.

Quoted 7 lines

Applied to riscv-config-for-next, thanks!

[1/1] riscv: defconfig: sophgo: enable clks for sg2042

       https://git.kernel.org/conor/c/3ccedd259cc3

Thanks,
Conor.

Thanks a lot.

Regards,

Chen