From: Hal Feng <hal.feng@starfivetech.com> To: <linux-riscv@lists.infradead.org>, <devicetree@vger.kernel.org>, <linux-clk@vger.kernel.org> Cc: Conor Dooley <conor@kernel.org>, Palmer Dabbelt <palmer@dabbelt.com>, "Rob Herring" <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Stephen Boyd <sboyd@kernel.org>, "Michael Turquette" <mturquette@baylibre.com>, Philipp Zabel <p.zabel@pengutronix.de>, Emil Renner Berthing <emil.renner.berthing@canonical.com>, Hal Feng <hal.feng@starfivetech.com>, <linux-kernel@vger.kernel.org> Subject: [PATCH v2 00/14] Basic clock and reset support for StarFive JH7110 RISC-V SoC Date: Fri, 18 Nov 2022 09:06:13 +0800 [thread overview] Message-ID: <20221118010627.70576-1-hal.feng@starfivetech.com> (raw) The original patch series "Basic StarFive JH7110 RISC-V SoC support" [1] is split into 3 patch series. They respectively add basic clock&reset, pinctrl and device tree support for StarFive JH7110 SoC. These patch series are independent, but the Visionfive2 board can boot up successfully only if all these patches series applied. This one adds basic clock&reset support. This patch series is pulled out from the patch 7~21 of v1 [1]. You can simply get or review the patches at the link [2]. [1]: https://lore.kernel.org/all/20220929143225.17907-1-hal.feng@linux.starfivetech.com/ [2]: https://github.com/hal-feng/linux/commits/visionfive2-minimal Changes since v1: - Rebased on tag v6.1-rc5. - Rewrote the clock and reset drivers using auxiliary bus framework, so patch 8, 9, 15 were dropped and all patches changed a lot. (by Stephen) - Split Patch 14 into two patches. One is for factoring out the common JH71X0 code, the another one is for renaming. (by Stephen) - Created a subdirectory for StarFive reset drivers. - Factored out common JH71X0 reset code. - Renamed the common clock and reset code from "*starfive*" or "*STARFIVE*" to "*jh71x0*" or "*JH71X0*". - Combined JH7110 system and always-on clock DT binding headers in one file named "include/dt-bindings/clock/starfive-jh7110.h". - Renamed clock definitions "JH7110_SYSCLK_PCLK2_MUX_FUNC_PCLK" and "JH7110_SYSCLK_U2_PCLK_MUX_PCLK" to "JH7110_SYSCLK_PCLK2_MUX_FUNC" and "JH7110_SYSCLK_PCLK2_MUX". - Rewrote the DT bindings of clock and reset for using auxiliary bus. - Registered an auxiliary device for reset controller in clock drivers. - Changed clock names "CODAJ*" and "WAVE*" to "codaj*" and "wave*". Changed clock names "u2_pclk_mux_func_pclk" and "u2_pclk_mux_pclk" to "pclk2_mux_func" and "pclk2_mux". - Changed the flags of clock apb0 and noc_bus_isp_axi to CLK_IS_CRITICAL as suggested by StarFive SDK group. - Registered clock gmac0_gtxc as a gate clock instead of a div clock as suggested by StarFive SDK group. - Changed the frequency of clock pll2_out to 1188MHz as suggested by StarFive SDK group. - Fixed the bug that the clock JH7110_AONCLK_GMAC0_GTXCLK was not handled in JH7110 always-on clock driver. - Registered the reset driver as an auxiliary driver. - Reworded the commit messages. v1: https://lore.kernel.org/all/20220929143225.17907-1-hal.feng@linux.starfivetech.com/ Emil Renner Berthing (10): clk: starfive: Factor out common JH7100 and JH7110 code reset: Create subdirectory for StarFive drivers reset: starfive: Factor out common JH71X0 reset code reset: starfive: jh71x0: Use 32bit I/O on 32bit registers dt-bindings: clock: Add StarFive JH7110 system and always-on clock definitions dt-bindings: reset: Add StarFive JH7110 system and always-on reset definitions dt-bindings: clock: Add StarFive JH7110 system clock and reset generator dt-bindings: clock: Add StarFive JH7110 always-on clock and reset generator clk: starfive: Add StarFive JH7110 system clock driver clk: starfive: Add StarFive JH7110 always-on clock driver Hal Feng (4): clk: starfive: Rename "jh7100" to "jh71x0" for the common code reset: starfive: Rename "jh7100" to "jh71x0" for the common code reset: starfive: Add StarFive JH7110 reset driver clk: starfive: jh71x0: Don't register aux devices if JH7110 reset is disabled .../clock/starfive,jh7110-aoncrg.yaml | 76 ++ .../clock/starfive,jh7110-syscrg.yaml | 80 ++ MAINTAINERS | 16 +- drivers/clk/starfive/Kconfig | 25 + drivers/clk/starfive/Makefile | 6 +- .../clk/starfive/clk-starfive-jh7100-audio.c | 74 +- drivers/clk/starfive/clk-starfive-jh7100.c | 713 +++++------------- drivers/clk/starfive/clk-starfive-jh7100.h | 112 --- .../clk/starfive/clk-starfive-jh7110-aon.c | 165 ++++ .../clk/starfive/clk-starfive-jh7110-sys.c | 650 ++++++++++++++++ drivers/clk/starfive/clk-starfive-jh71x0.c | 396 ++++++++++ drivers/clk/starfive/clk-starfive-jh71x0.h | 122 +++ drivers/reset/Kconfig | 8 +- drivers/reset/Makefile | 2 +- drivers/reset/reset-starfive-jh7100.c | 173 ----- drivers/reset/starfive/Kconfig | 20 + drivers/reset/starfive/Makefile | 5 + .../reset/starfive/reset-starfive-jh7100.c | 74 ++ .../reset/starfive/reset-starfive-jh7110.c | 67 ++ .../reset/starfive/reset-starfive-jh71x0.c | 130 ++++ .../reset/starfive/reset-starfive-jh71x0.h | 21 + include/dt-bindings/clock/starfive-jh7110.h | 234 ++++++ include/dt-bindings/reset/starfive-jh7110.h | 154 ++++ 23 files changed, 2466 insertions(+), 857 deletions(-) create mode 100644 Documentation/devicetree/bindings/clock/starfive,jh7110-aoncrg.yaml create mode 100644 Documentation/devicetree/bindings/clock/starfive,jh7110-syscrg.yaml delete mode 100644 drivers/clk/starfive/clk-starfive-jh7100.h create mode 100644 drivers/clk/starfive/clk-starfive-jh7110-aon.c create mode 100644 drivers/clk/starfive/clk-starfive-jh7110-sys.c create mode 100644 drivers/clk/starfive/clk-starfive-jh71x0.c create mode 100644 drivers/clk/starfive/clk-starfive-jh71x0.h delete mode 100644 drivers/reset/reset-starfive-jh7100.c create mode 100644 drivers/reset/starfive/Kconfig create mode 100644 drivers/reset/starfive/Makefile create mode 100644 drivers/reset/starfive/reset-starfive-jh7100.c create mode 100644 drivers/reset/starfive/reset-starfive-jh7110.c create mode 100644 drivers/reset/starfive/reset-starfive-jh71x0.c create mode 100644 drivers/reset/starfive/reset-starfive-jh71x0.h create mode 100644 include/dt-bindings/clock/starfive-jh7110.h create mode 100644 include/dt-bindings/reset/starfive-jh7110.h base-commit: 094226ad94f471a9f19e8f8e7140a09c2625abaa -- 2.38.1 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv
WARNING: multiple messages have this Message-ID (diff)
From: Hal Feng <hal.feng@starfivetech.com> To: <linux-riscv@lists.infradead.org>, <devicetree@vger.kernel.org>, <linux-clk@vger.kernel.org> Cc: Conor Dooley <conor@kernel.org>, Palmer Dabbelt <palmer@dabbelt.com>, "Rob Herring" <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Stephen Boyd <sboyd@kernel.org>, "Michael Turquette" <mturquette@baylibre.com>, Philipp Zabel <p.zabel@pengutronix.de>, Emil Renner Berthing <emil.renner.berthing@canonical.com>, Hal Feng <hal.feng@starfivetech.com>, <linux-kernel@vger.kernel.org> Subject: [PATCH v2 00/14] Basic clock and reset support for StarFive JH7110 RISC-V SoC Date: Fri, 18 Nov 2022 09:06:13 +0800 [thread overview] Message-ID: <20221118010627.70576-1-hal.feng@starfivetech.com> (raw) The original patch series "Basic StarFive JH7110 RISC-V SoC support" [1] is split into 3 patch series. They respectively add basic clock&reset, pinctrl and device tree support for StarFive JH7110 SoC. These patch series are independent, but the Visionfive2 board can boot up successfully only if all these patches series applied. This one adds basic clock&reset support. This patch series is pulled out from the patch 7~21 of v1 [1]. You can simply get or review the patches at the link [2]. [1]: https://lore.kernel.org/all/20220929143225.17907-1-hal.feng@linux.starfivetech.com/ [2]: https://github.com/hal-feng/linux/commits/visionfive2-minimal Changes since v1: - Rebased on tag v6.1-rc5. - Rewrote the clock and reset drivers using auxiliary bus framework, so patch 8, 9, 15 were dropped and all patches changed a lot. (by Stephen) - Split Patch 14 into two patches. One is for factoring out the common JH71X0 code, the another one is for renaming. (by Stephen) - Created a subdirectory for StarFive reset drivers. - Factored out common JH71X0 reset code. - Renamed the common clock and reset code from "*starfive*" or "*STARFIVE*" to "*jh71x0*" or "*JH71X0*". - Combined JH7110 system and always-on clock DT binding headers in one file named "include/dt-bindings/clock/starfive-jh7110.h". - Renamed clock definitions "JH7110_SYSCLK_PCLK2_MUX_FUNC_PCLK" and "JH7110_SYSCLK_U2_PCLK_MUX_PCLK" to "JH7110_SYSCLK_PCLK2_MUX_FUNC" and "JH7110_SYSCLK_PCLK2_MUX". - Rewrote the DT bindings of clock and reset for using auxiliary bus. - Registered an auxiliary device for reset controller in clock drivers. - Changed clock names "CODAJ*" and "WAVE*" to "codaj*" and "wave*". Changed clock names "u2_pclk_mux_func_pclk" and "u2_pclk_mux_pclk" to "pclk2_mux_func" and "pclk2_mux". - Changed the flags of clock apb0 and noc_bus_isp_axi to CLK_IS_CRITICAL as suggested by StarFive SDK group. - Registered clock gmac0_gtxc as a gate clock instead of a div clock as suggested by StarFive SDK group. - Changed the frequency of clock pll2_out to 1188MHz as suggested by StarFive SDK group. - Fixed the bug that the clock JH7110_AONCLK_GMAC0_GTXCLK was not handled in JH7110 always-on clock driver. - Registered the reset driver as an auxiliary driver. - Reworded the commit messages. v1: https://lore.kernel.org/all/20220929143225.17907-1-hal.feng@linux.starfivetech.com/ Emil Renner Berthing (10): clk: starfive: Factor out common JH7100 and JH7110 code reset: Create subdirectory for StarFive drivers reset: starfive: Factor out common JH71X0 reset code reset: starfive: jh71x0: Use 32bit I/O on 32bit registers dt-bindings: clock: Add StarFive JH7110 system and always-on clock definitions dt-bindings: reset: Add StarFive JH7110 system and always-on reset definitions dt-bindings: clock: Add StarFive JH7110 system clock and reset generator dt-bindings: clock: Add StarFive JH7110 always-on clock and reset generator clk: starfive: Add StarFive JH7110 system clock driver clk: starfive: Add StarFive JH7110 always-on clock driver Hal Feng (4): clk: starfive: Rename "jh7100" to "jh71x0" for the common code reset: starfive: Rename "jh7100" to "jh71x0" for the common code reset: starfive: Add StarFive JH7110 reset driver clk: starfive: jh71x0: Don't register aux devices if JH7110 reset is disabled .../clock/starfive,jh7110-aoncrg.yaml | 76 ++ .../clock/starfive,jh7110-syscrg.yaml | 80 ++ MAINTAINERS | 16 +- drivers/clk/starfive/Kconfig | 25 + drivers/clk/starfive/Makefile | 6 +- .../clk/starfive/clk-starfive-jh7100-audio.c | 74 +- drivers/clk/starfive/clk-starfive-jh7100.c | 713 +++++------------- drivers/clk/starfive/clk-starfive-jh7100.h | 112 --- .../clk/starfive/clk-starfive-jh7110-aon.c | 165 ++++ .../clk/starfive/clk-starfive-jh7110-sys.c | 650 ++++++++++++++++ drivers/clk/starfive/clk-starfive-jh71x0.c | 396 ++++++++++ drivers/clk/starfive/clk-starfive-jh71x0.h | 122 +++ drivers/reset/Kconfig | 8 +- drivers/reset/Makefile | 2 +- drivers/reset/reset-starfive-jh7100.c | 173 ----- drivers/reset/starfive/Kconfig | 20 + drivers/reset/starfive/Makefile | 5 + .../reset/starfive/reset-starfive-jh7100.c | 74 ++ .../reset/starfive/reset-starfive-jh7110.c | 67 ++ .../reset/starfive/reset-starfive-jh71x0.c | 130 ++++ .../reset/starfive/reset-starfive-jh71x0.h | 21 + include/dt-bindings/clock/starfive-jh7110.h | 234 ++++++ include/dt-bindings/reset/starfive-jh7110.h | 154 ++++ 23 files changed, 2466 insertions(+), 857 deletions(-) create mode 100644 Documentation/devicetree/bindings/clock/starfive,jh7110-aoncrg.yaml create mode 100644 Documentation/devicetree/bindings/clock/starfive,jh7110-syscrg.yaml delete mode 100644 drivers/clk/starfive/clk-starfive-jh7100.h create mode 100644 drivers/clk/starfive/clk-starfive-jh7110-aon.c create mode 100644 drivers/clk/starfive/clk-starfive-jh7110-sys.c create mode 100644 drivers/clk/starfive/clk-starfive-jh71x0.c create mode 100644 drivers/clk/starfive/clk-starfive-jh71x0.h delete mode 100644 drivers/reset/reset-starfive-jh7100.c create mode 100644 drivers/reset/starfive/Kconfig create mode 100644 drivers/reset/starfive/Makefile create mode 100644 drivers/reset/starfive/reset-starfive-jh7100.c create mode 100644 drivers/reset/starfive/reset-starfive-jh7110.c create mode 100644 drivers/reset/starfive/reset-starfive-jh71x0.c create mode 100644 drivers/reset/starfive/reset-starfive-jh71x0.h create mode 100644 include/dt-bindings/clock/starfive-jh7110.h create mode 100644 include/dt-bindings/reset/starfive-jh7110.h base-commit: 094226ad94f471a9f19e8f8e7140a09c2625abaa -- 2.38.1
next reply other threads:[~2022-11-18 1:07 UTC|newest] Thread overview: 112+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-11-18 1:06 Hal Feng [this message] 2022-11-18 1:06 ` [PATCH v2 00/14] Basic clock and reset support for StarFive JH7110 RISC-V SoC Hal Feng 2022-11-18 1:06 ` [PATCH v2 01/14] clk: starfive: Factor out common JH7100 and JH7110 code Hal Feng 2022-11-18 1:06 ` Hal Feng 2022-11-18 16:22 ` Emil Renner Berthing 2022-11-18 16:22 ` Emil Renner Berthing 2022-11-21 6:25 ` Hal Feng 2022-11-21 6:25 ` Hal Feng 2022-11-18 1:06 ` [PATCH v2 02/14] clk: starfive: Rename "jh7100" to "jh71x0" for the common code Hal Feng 2022-11-18 1:06 ` Hal Feng 2022-11-18 16:26 ` Emil Renner Berthing 2022-11-18 16:26 ` Emil Renner Berthing 2022-11-21 7:16 ` Hal Feng 2022-11-21 7:16 ` Hal Feng 2022-11-21 11:32 ` Emil Renner Berthing 2022-11-21 11:32 ` Emil Renner Berthing 2022-11-21 13:13 ` Hal Feng 2022-11-21 13:13 ` Hal Feng 2022-11-18 1:06 ` [PATCH v2 03/14] reset: Create subdirectory for StarFive drivers Hal Feng 2022-11-18 1:06 ` Hal Feng 2022-11-18 16:29 ` Emil Renner Berthing 2022-11-18 16:29 ` Emil Renner Berthing 2022-11-18 1:06 ` [PATCH v2 04/14] reset: starfive: Factor out common JH71X0 reset code Hal Feng 2022-11-18 1:06 ` Hal Feng 2022-11-18 16:39 ` Emil Renner Berthing 2022-11-18 16:39 ` Emil Renner Berthing 2022-11-21 9:23 ` Hal Feng 2022-11-21 9:23 ` Hal Feng 2022-11-21 11:26 ` Emil Renner Berthing 2022-11-21 11:26 ` Emil Renner Berthing 2022-11-18 1:06 ` [PATCH v2 05/14] reset: starfive: Rename "jh7100" to "jh71x0" for the common code Hal Feng 2022-11-18 1:06 ` Hal Feng 2022-11-18 1:06 ` [PATCH v2 06/14] reset: starfive: jh71x0: Use 32bit I/O on 32bit registers Hal Feng 2022-11-18 1:06 ` Hal Feng 2022-11-18 1:06 ` [PATCH v2 07/14] dt-bindings: clock: Add StarFive JH7110 system and always-on clock definitions Hal Feng 2022-11-18 1:06 ` Hal Feng 2022-11-21 8:45 ` Krzysztof Kozlowski 2022-11-21 8:45 ` Krzysztof Kozlowski 2022-11-22 1:02 ` Hal Feng 2022-11-22 1:02 ` Hal Feng 2022-11-22 7:41 ` Krzysztof Kozlowski 2022-11-22 7:41 ` Krzysztof Kozlowski 2022-11-22 8:04 ` Hal Feng 2022-11-22 8:04 ` Hal Feng 2022-11-23 9:34 ` Krzysztof Kozlowski 2022-11-23 9:34 ` Krzysztof Kozlowski 2022-11-18 1:06 ` [PATCH v2 08/14] dt-bindings: reset: Add StarFive JH7110 system and always-on reset definitions Hal Feng 2022-11-18 1:06 ` Hal Feng 2022-11-18 16:47 ` Emil Renner Berthing 2022-11-18 16:47 ` Emil Renner Berthing 2022-11-22 1:20 ` Hal Feng 2022-11-22 1:20 ` Hal Feng 2022-11-21 8:45 ` Krzysztof Kozlowski 2022-11-21 8:45 ` Krzysztof Kozlowski 2022-11-21 8:50 ` Krzysztof Kozlowski 2022-11-21 8:50 ` Krzysztof Kozlowski 2022-11-22 1:26 ` Hal Feng 2022-11-22 1:26 ` Hal Feng 2022-11-18 1:06 ` [PATCH v2 09/14] dt-bindings: clock: Add StarFive JH7110 system clock and reset generator Hal Feng 2022-11-18 1:06 ` Hal Feng 2022-11-18 16:50 ` Emil Renner Berthing 2022-11-18 16:50 ` Emil Renner Berthing 2022-11-21 8:47 ` Krzysztof Kozlowski 2022-11-21 8:47 ` Krzysztof Kozlowski 2022-11-22 1:45 ` Hal Feng 2022-11-22 1:45 ` Hal Feng 2022-11-21 8:47 ` Krzysztof Kozlowski 2022-11-21 8:47 ` Krzysztof Kozlowski 2022-11-25 6:41 ` Hal Feng 2022-11-25 6:41 ` Hal Feng 2022-11-30 9:47 ` Hal Feng 2022-11-30 9:47 ` Hal Feng 2022-11-30 11:48 ` Krzysztof Kozlowski 2022-11-30 11:48 ` Krzysztof Kozlowski 2022-11-30 15:12 ` Hal Feng 2022-11-30 15:12 ` Hal Feng 2022-11-30 15:19 ` Krzysztof Kozlowski 2022-11-30 15:19 ` Krzysztof Kozlowski 2022-11-30 18:05 ` Hal Feng 2022-11-30 18:05 ` Hal Feng 2022-12-01 10:21 ` Krzysztof Kozlowski 2022-12-01 10:21 ` Krzysztof Kozlowski 2022-12-02 2:06 ` Hal Feng 2022-12-02 2:06 ` Hal Feng 2022-11-18 1:06 ` [PATCH v2 10/14] dt-bindings: clock: Add StarFive JH7110 always-on " Hal Feng 2022-11-18 1:06 ` Hal Feng 2022-11-21 8:49 ` Krzysztof Kozlowski 2022-11-21 8:49 ` Krzysztof Kozlowski 2022-11-21 11:38 ` Emil Renner Berthing 2022-11-21 11:38 ` Emil Renner Berthing 2022-11-21 13:24 ` Krzysztof Kozlowski 2022-11-21 13:24 ` Krzysztof Kozlowski 2022-11-18 1:06 ` [PATCH v2 11/14] clk: starfive: Add StarFive JH7110 system clock driver Hal Feng 2022-11-18 1:06 ` Hal Feng 2022-11-18 17:03 ` Emil Renner Berthing 2022-11-18 17:03 ` Emil Renner Berthing 2022-11-25 2:33 ` Hal Feng 2022-11-25 2:33 ` Hal Feng 2022-11-18 1:06 ` [PATCH v2 12/14] clk: starfive: Add StarFive JH7110 always-on " Hal Feng 2022-11-18 1:06 ` Hal Feng 2022-11-18 1:06 ` [PATCH v2 13/14] reset: starfive: Add StarFive JH7110 reset driver Hal Feng 2022-11-18 1:06 ` Hal Feng 2022-11-18 17:14 ` Emil Renner Berthing 2022-11-18 17:14 ` Emil Renner Berthing 2022-11-22 5:55 ` Hal Feng 2022-11-22 5:55 ` Hal Feng 2022-11-18 1:06 ` [PATCH v2 14/14] clk: starfive: jh71x0: Don't register aux devices if JH7110 reset is disabled Hal Feng 2022-11-18 1:06 ` Hal Feng 2022-11-18 17:18 ` Emil Renner Berthing 2022-11-18 17:18 ` Emil Renner Berthing 2022-11-22 6:12 ` Hal Feng 2022-11-22 6:12 ` Hal Feng
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20221118010627.70576-1-hal.feng@starfivetech.com \ --to=hal.feng@starfivetech.com \ --cc=conor@kernel.org \ --cc=devicetree@vger.kernel.org \ --cc=emil.renner.berthing@canonical.com \ --cc=krzysztof.kozlowski+dt@linaro.org \ --cc=linux-clk@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-riscv@lists.infradead.org \ --cc=mturquette@baylibre.com \ --cc=p.zabel@pengutronix.de \ --cc=palmer@dabbelt.com \ --cc=robh+dt@kernel.org \ --cc=sboyd@kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.