[PATCH v5 0/3] riscv: sophgo: add clock support for Sophgo CV1800 SoCs

Inochi Amaoto inochiama at outlook.com
Tue Dec 26 18:52:02 PST 2023


Add clock controller support for the Sophgo CV1800B and CV1812H.

This patch follow this patch series:
https://lore.kernel.org/all/IA1PR20MB495399CAF2EEECC206ADA7ABBBD5A@IA1PR20MB4953.namprd20.prod.outlook.com/

Changed from v4:
1. improve code for patch 2
2. remove the already applied bindings
https://lore.kernel.org/all/IA1PR20MB49535E448097F6FFC1218C39BB90A@IA1PR20MB4953.namprd20.prod.outlook.com/

Changed from v3:
1. improve comment of patch 3
2. cleanup the include of patch 2

Changed from v2:
1. remove clock-names from bindings.
2. remove clock-frequency node of DT from previous patch.
3. change some unused clock to bypass mode to avoid unlockable PLL.

Changed from v1:
1. fix license issues.

Inochi Amaoto (3):
  clk: sophgo: Add CV1800 series clock controller driver
  riscv: dts: sophgo: add clock generator for Sophgo CV1800 series SoC
  riscv: dts: sophgo: add uart clock for Sophgo CV1800 series SoC

 arch/riscv/boot/dts/sophgo/cv1800b.dtsi |    4 +
 arch/riscv/boot/dts/sophgo/cv1812h.dtsi |    4 +
 arch/riscv/boot/dts/sophgo/cv18xx.dtsi  |   22 +-
 drivers/clk/Kconfig                     |    1 +
 drivers/clk/Makefile                    |    1 +
 drivers/clk/sophgo/Kconfig              |   12 +
 drivers/clk/sophgo/Makefile             |    7 +
 drivers/clk/sophgo/clk-cv1800.c         | 1530 +++++++++++++++++++++++
 drivers/clk/sophgo/clk-cv1800.h         |  123 ++
 drivers/clk/sophgo/clk-cv18xx-common.c  |   66 +
 drivers/clk/sophgo/clk-cv18xx-common.h  |   81 ++
 drivers/clk/sophgo/clk-cv18xx-ip.c      |  905 ++++++++++++++
 drivers/clk/sophgo/clk-cv18xx-ip.h      |  265 ++++
 drivers/clk/sophgo/clk-cv18xx-pll.c     |  425 +++++++
 drivers/clk/sophgo/clk-cv18xx-pll.h     |  119 ++
 15 files changed, 3560 insertions(+), 5 deletions(-)
 create mode 100644 drivers/clk/sophgo/Kconfig
 create mode 100644 drivers/clk/sophgo/Makefile
 create mode 100644 drivers/clk/sophgo/clk-cv1800.c
 create mode 100644 drivers/clk/sophgo/clk-cv1800.h
 create mode 100644 drivers/clk/sophgo/clk-cv18xx-common.c
 create mode 100644 drivers/clk/sophgo/clk-cv18xx-common.h
 create mode 100644 drivers/clk/sophgo/clk-cv18xx-ip.c
 create mode 100644 drivers/clk/sophgo/clk-cv18xx-ip.h
 create mode 100644 drivers/clk/sophgo/clk-cv18xx-pll.c
 create mode 100644 drivers/clk/sophgo/clk-cv18xx-pll.h

--
2.43.0




More information about the linux-riscv mailing list