Skip to content

Basic clock and reset support for StarFive JH8100 RISC-V SoC

Sia Jee Heng linux-clk linux-devicetree linux-riscv lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest16 patches 41 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16reset: starfive: Rename file name "jh71x0" to "common"drivers/clk/starfive/clk-starfive-jh7110-sys.c drivers/reset/starfive/Kconfig drivers/reset/starfive/Makefile +5 more+15 -151 reply
2/16reset: starfive: Convert the word "jh71x0" to "starfive"drivers/clk/starfive/clk-starfive-jh7110-sys.c drivers/reset/starfive/reset-starfive-common.c drivers/reset/starfive/reset-starfive-common.h +3 more+44 -441 reply
3/16clk: starfive: Rename file name "jh71x0" to "common"drivers/clk/starfive/Kconfig drivers/clk/starfive/Makefile drivers/clk/starfive/clk-starfive-common.c +4 more+12 -121 reply
4/16clk: starfive: Convert the word "jh71x0" to "starfive"drivers/clk/starfive/clk-starfive-common.c drivers/clk/starfive/clk-starfive-common.h drivers/clk/starfive/clk-starfive-jh7100-audio.c +7 more+908 -8971 reply
5/16dt-bindings: clock: Add StarFive JH8100 System clock and reset generatorDocumentation/devicetree/bindings/clock/starfive,jh8100-syscrg.yaml include/dt-bindings/clock/starfive,jh8100-crg.h include/dt-bindings/reset/starfive,jh8100-crg.h+212 -04 replies
6/16clk: starfive: Add JH8100 System clock generator driverMAINTAINERS drivers/clk/starfive/Kconfig drivers/clk/starfive/Makefile +4 more+495 -112 replies
7/16dt-bindings: clock: Add StarFive JH8100 System-North-West clock and reset generatorDocumentation/devicetree/bindings/clock/starfive,jh8100-syscrg-nw.yaml include/dt-bindings/clock/starfive,jh8100-crg.h include/dt-bindings/reset/starfive,jh8100-crg.h+179 -05 replies
8/16clk: starfive: Add JH8100 System-North-West clock generator driverdrivers/clk/starfive/Kconfig drivers/clk/starfive/jh8100/Makefile drivers/clk/starfive/jh8100/clk-sys-nw.c+277 -00 replies
9/16dt-bindings: clock: Add StarFive JH8100 System-North-East clock and reset generatorDocumentation/devicetree/bindings/clock/starfive,jh8100-syscrg-ne.yaml include/dt-bindings/clock/starfive,jh8100-crg.h include/dt-bindings/reset/starfive,jh8100-crg.h+398 -02 replies
10/16clk: starfive: Add JH8100 System-North-East clock generator driverdrivers/clk/starfive/Kconfig drivers/clk/starfive/jh8100/Makefile drivers/clk/starfive/jh8100/clk-sys-ne.c+575 -00 replies
11/16dt-bindings: clock: Add StarFive JH8100 System-South-West clock and reset generatorDocumentation/devicetree/bindings/clock/starfive,jh8100-syscrg-sw.yaml include/dt-bindings/clock/starfive,jh8100-crg.h include/dt-bindings/reset/starfive,jh8100-crg.h+90 -02 replies
12/16clk: starfive: Add JH8100 System-South-West clock generator driverdrivers/clk/starfive/Kconfig drivers/clk/starfive/jh8100/Makefile drivers/clk/starfive/jh8100/clk-sys-sw.c+145 -00 replies
13/16dt-bindings: clock: Add StarFive JH8100 Always-On clock and reset generatorDocumentation/devicetree/bindings/clock/starfive,jh8100-aoncrg.yaml include/dt-bindings/clock/starfive,jh8100-crg.h include/dt-bindings/reset/starfive,jh8100-crg.h+164 -02 replies
14/16clk: starfive: Add JH8100 Always-On clock generator driverdrivers/clk/starfive/Kconfig drivers/clk/starfive/jh8100/Makefile drivers/clk/starfive/jh8100/clk-aon.c+284 -00 replies
15/16reset: starfive: Add StarFive JH8100 reset driverMAINTAINERS drivers/reset/starfive/Kconfig drivers/reset/starfive/Makefile +1 more+119 -00 replies
16/16riscv: dts: starfive: jh8100: Add clocks and resets nodesarch/riscv/boot/dts/starfive/jh8100-clk.dtsi arch/riscv/boot/dts/starfive/jh8100.dtsi+295 -08 replies

Reviews trailers per patch

All 16 patches have a Reviewed-by or Acked-by.

PatchLey Foon TanEmil Renner Berthing
1/16R-b R-b
2/16R-b R-b
3/16R-b R-b
4/16R-b R-b
5/16R-b
6/16R-b
7/16R-b
8/16R-b
9/16R-b
10/16R-b
11/16R-b
12/16R-b
13/16R-b
14/16R-b
15/16R-b
16/16R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v1 00/16] Basic clock and reset support for StarFive JH8100 RISC-V SoC

This patch series enabled basic clock & reset support for StarFive JH8100 SoC.

This patch series depends on the Initial device tree support for StarFive JH8100 SoC patch series which can be found at below link:
https://lore.kernel.org/lkml/[email protected]/

StarFive JH8100 shares a similar clock and reset design with JH7110. To facilitate the reuse of the file and its functionalities, files containing the 'jh71x0' naming convention are renamed to use the 'common' wording. Internal functions that contain the 'jh71x0' naming convention are renamed to use 'starfive.' This is accomplished through patches 1, 2, 3, and 4.

Patch 5 adds documentation to describe System (SYSCRG) Clock & Reset binding.
Patch 6 adds SYSCRG clock driver.

patch 7 adds documentation to describe System-North-West (SYSCRG-NW) Clock & Reset binding.
Patch 8 adds SYSCRG-NW clock driver.

patch 9 adds documentation to describe System-North-East (SYSCRG-NE) Clock & Reset binding.
Patch 10 adds SYSCRG-NE clock driver.

patch 11 adds documentation to describe System-South-West (SYSCRG-SW) Clock & Reset binding.
Patch 12 adds SYSCRG-SW clock driver.

patch 13 adds documentation to describe Always-On (AON) Clock & Reset binding.
Patch 14 adds AON clock driver.

Patch 15 adds support for the auxiliary reset driver.

Patch 16 adds clocks and reset nodes to the JH8100 device tree.

Sia Jee Heng (16):
reset: starfive: Rename file name "jh71x0" to "common"
reset: starfive: Convert the word "jh71x0" to "starfive"
clk: starfive: Rename file name "jh71x0" to "common"
clk: starfive: Convert the word "jh71x0" to "starfive"
dt-bindings: clock: Add StarFive JH8100 System clock and reset
generator
clk: starfive: Add JH8100 System clock generator driver
dt-bindings: clock: Add StarFive JH8100 System-North-West clock and
reset generator
clk: starfive: Add JH8100 System-North-West clock generator driver
dt-bindings: clock: Add StarFive JH8100 System-North-East clock and
reset generator
clk: starfive: Add JH8100 System-North-East clock generator driver
dt-bindings: clock: Add StarFive JH8100 System-South-West clock and
reset generator
clk: starfive: Add JH8100 System-South-West clock generator driver
dt-bindings: clock: Add StarFive JH8100 Always-On clock and reset
generator
clk: starfive: Add JH8100 Always-On clock generator driver
reset: starfive: Add StarFive JH8100 reset driver
riscv: dts: starfive: jh8100: Add clocks and resets nodes

 .../clock/starfive,jh8100-aoncrg.yaml         |  77 +++
 .../clock/starfive,jh8100-syscrg-ne.yaml      | 158 +++++
 .../clock/starfive,jh8100-syscrg-nw.yaml      | 119 ++++
 .../clock/starfive,jh8100-syscrg-sw.yaml      |  66 ++
 .../clock/starfive,jh8100-syscrg.yaml         |  66 ++
 MAINTAINERS                                   |  15 +
 arch/riscv/boot/dts/starfive/jh8100-clk.dtsi  | 180 ++++++
 arch/riscv/boot/dts/starfive/jh8100.dtsi      | 115 ++++
 drivers/clk/starfive/Kconfig                  |  49 +-
 drivers/clk/starfive/Makefile                 |   3 +-
 drivers/clk/starfive/clk-starfive-common.c    | 327 ++++++++++
 drivers/clk/starfive/clk-starfive-common.h    | 130 ++++
 .../clk/starfive/clk-starfive-jh7100-audio.c  | 127 ++--
 drivers/clk/starfive/clk-starfive-jh7100.c    | 503 ++++++++--------
 .../clk/starfive/clk-starfive-jh7110-aon.c    |  62 +-
 .../clk/starfive/clk-starfive-jh7110-isp.c    |  72 +--
 .../clk/starfive/clk-starfive-jh7110-stg.c    |  94 +--
 .../clk/starfive/clk-starfive-jh7110-sys.c    | 523 ++++++++--------
 .../clk/starfive/clk-starfive-jh7110-vout.c   |  74 +--
 drivers/clk/starfive/clk-starfive-jh7110.h    |   4 +-
 drivers/clk/starfive/clk-starfive-jh71x0.c    | 327 ----------
 drivers/clk/starfive/clk-starfive-jh71x0.h    | 123 ----
 drivers/clk/starfive/jh8100/Makefile          |   7 +
 drivers/clk/starfive/jh8100/clk-aon.c         | 275 +++++++++
 .../clk/starfive/jh8100/clk-starfive-jh8100.h |  11 +
 drivers/clk/starfive/jh8100/clk-sys-ne.c      | 566 ++++++++++++++++++
 drivers/clk/starfive/jh8100/clk-sys-nw.c      | 268 +++++++++
 drivers/clk/starfive/jh8100/clk-sys-sw.c      | 136 +++++
 drivers/clk/starfive/jh8100/clk-sys.c         | 455 ++++++++++++++
 drivers/reset/starfive/Kconfig                |  14 +-
 drivers/reset/starfive/Makefile               |   4 +-
 ...rfive-jh71x0.c => reset-starfive-common.c} |  68 +--
 .../reset/starfive/reset-starfive-common.h    |  14 +
 .../reset/starfive/reset-starfive-jh7100.c    |   4 +-
 .../reset/starfive/reset-starfive-jh7110.c    |   8 +-
 .../reset/starfive/reset-starfive-jh71x0.h    |  14 -
 .../reset/starfive/reset-starfive-jh8100.c    | 102 ++++
 .../dt-bindings/clock/starfive,jh8100-crg.h   | 430 +++++++++++++
 .../dt-bindings/reset/starfive,jh8100-crg.h   | 127 ++++
 ...rfive-jh71x0.h => reset-starfive-common.h} |  10 +-
 40 files changed, 4485 insertions(+), 1242 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/clock/starfive,jh8100-aoncrg.yaml
 create mode 100644 Documentation/devicetree/bindings/clock/starfive,jh8100-syscrg-ne.yaml
 create mode 100644 Documentation/devicetree/bindings/clock/starfive,jh8100-syscrg-nw.yaml
 create mode 100644 Documentation/devicetree/bindings/clock/starfive,jh8100-syscrg-sw.yaml
 create mode 100644 Documentation/devicetree/bindings/clock/starfive,jh8100-syscrg.yaml
 create mode 100644 arch/riscv/boot/dts/starfive/jh8100-clk.dtsi
 create mode 100644 drivers/clk/starfive/clk-starfive-common.c
 create mode 100644 drivers/clk/starfive/clk-starfive-common.h
 delete mode 100644 drivers/clk/starfive/clk-starfive-jh71x0.c
 delete mode 100644 drivers/clk/starfive/clk-starfive-jh71x0.h
 create mode 100644 drivers/clk/starfive/jh8100/Makefile
 create mode 100644 drivers/clk/starfive/jh8100/clk-aon.c
 create mode 100644 drivers/clk/starfive/jh8100/clk-starfive-jh8100.h
 create mode 100644 drivers/clk/starfive/jh8100/clk-sys-ne.c
 create mode 100644 drivers/clk/starfive/jh8100/clk-sys-nw.c
 create mode 100644 drivers/clk/starfive/jh8100/clk-sys-sw.c
 create mode 100644 drivers/clk/starfive/jh8100/clk-sys.c
 rename drivers/reset/starfive/{reset-starfive-jh71x0.c => reset-starfive-common.c} (55%)
 create mode 100644 drivers/reset/starfive/reset-starfive-common.h
 delete mode 100644 drivers/reset/starfive/reset-starfive-jh71x0.h
 create mode 100644 drivers/reset/starfive/reset-starfive-jh8100.c
 create mode 100644 include/dt-bindings/clock/starfive,jh8100-crg.h
 create mode 100644 include/dt-bindings/reset/starfive,jh8100-crg.h
 rename include/soc/starfive/{reset-starfive-jh71x0.h => reset-starfive-common.h} (50%)
Signature · 1 line
2.34.1