[PW_SID:971605] reset: spacemit: add K1 reset support#524
[PW_SID:971605] reset: spacemit: add K1 reset support#524linux-riscv-bot wants to merge 6 commits into
Conversation
There are additional SpacemiT syscon CCUs whose registers control both clocks and resets: RCPU, RCPU2, and APBC2. Unlike those defined previously, these will (initially) support only resets. They do not incorporate power domain functionality. Previously the clock properties were required for all compatible nodes. Make that requirement only apply to the three existing CCUs (APBC, APMU, and MPMU), so that the new reset-only CCUs can go without specifying them. Define the index values for resets associated with all SpacemiT K1 syscon nodes, including those with clocks already defined, as well as the new ones (without clocks). Signed-off-by: Alex Elder <elder@riscstar.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Yixun Lan <dlan@gentoo.org> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
Move the definitions of register offsets and fields used by the SpacemiT K1 SoC CCUs into a separate header file, so that they can be shared by the reset driver that will be found under drivers/reset. Signed-off-by: Alex Elder <elder@riscstar.com> Reviewed-by: Haylen Chu <heylenay@4d2.org> Reviewed-by: Yixun Lan <dlan@gentoo.org> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
Add a new reset_name field to the spacemit_ccu_data structure. If it is non-null, the CCU implements a reset controller, and the name will be used in the name for the auxiliary device that implements it. Define a new type to hold an auxiliary device as well as the regmap pointer that will be needed by CCU reset controllers. Set up code to initialize and add an auxiliary device for any CCU that implements reset functionality. Make it optional for a CCU to implement a clock controller. This doesn't apply to any of the existing CCUs but will for some new ones that will be added soon. Signed-off-by: Alex Elder <elder@riscstar.com> Reviewed-by: Haylen Chu <heylenay@4d2.org> Reviewed-by: Yixun Lan <dlan@gentoo.org> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
Three CCUs on the SpacemiT K1 SoC implement only resets, not clocks. Define the CCU data for these resets so their auxiliary devices get created. Signed-off-by: Alex Elder <elder@riscstar.com> Reviewed-by: Yixun Lan <dlan@gentoo.org> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
Implement reset support for SpacemiT CCUs. A SpacemiT reset controller device is an auxiliary device associated with a clock controller (CCU). This patch defines the reset controllers for the MPMU, APBC, and MPMU CCUs, which already define clock controllers. It also adds RCPU, RCPU2, and ACPB2 CCUs, which only define resets. Signed-off-by: Alex Elder <elder@riscstar.com> Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de> Reviewed-by: Yixun Lan <dlan@gentoo.org> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
Define syscon nodes for the RCPU, RCPU2, and APBC2 SpacemiT CCUS, which currently support resets but not clocks in the SpacemiT K1. Signed-off-by: Alex Elder <elder@riscstar.com> Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de> Reviewed-by: Yixun Lan <dlan@gentoo.org> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "[v11,1/6] dt-bindings: soc: spacemit: define spacemit,k1-ccu resets" |
|
Patch 1: "[v11,1/6] dt-bindings: soc: spacemit: define spacemit,k1-ccu resets" |
|
Patch 1: "[v11,1/6] dt-bindings: soc: spacemit: define spacemit,k1-ccu resets" |
|
Patch 1: "[v11,1/6] dt-bindings: soc: spacemit: define spacemit,k1-ccu resets" |
|
Patch 1: "[v11,1/6] dt-bindings: soc: spacemit: define spacemit,k1-ccu resets" |
|
Patch 1: "[v11,1/6] dt-bindings: soc: spacemit: define spacemit,k1-ccu resets" |
|
Patch 1: "[v11,1/6] dt-bindings: soc: spacemit: define spacemit,k1-ccu resets" |
|
Patch 1: "[v11,1/6] dt-bindings: soc: spacemit: define spacemit,k1-ccu resets" |
|
Patch 1: "[v11,1/6] dt-bindings: soc: spacemit: define spacemit,k1-ccu resets" |
|
Patch 1: "[v11,1/6] dt-bindings: soc: spacemit: define spacemit,k1-ccu resets" |
|
Patch 1: "[v11,1/6] dt-bindings: soc: spacemit: define spacemit,k1-ccu resets" |
|
Patch 1: "[v11,1/6] dt-bindings: soc: spacemit: define spacemit,k1-ccu resets" |
|
Patch 2: "[v11,2/6] soc: spacemit: create a header for clock/reset registers" |
|
Patch 2: "[v11,2/6] soc: spacemit: create a header for clock/reset registers" |
|
Patch 2: "[v11,2/6] soc: spacemit: create a header for clock/reset registers" |
|
Patch 2: "[v11,2/6] soc: spacemit: create a header for clock/reset registers" |
|
Patch 2: "[v11,2/6] soc: spacemit: create a header for clock/reset registers" |
|
Patch 2: "[v11,2/6] soc: spacemit: create a header for clock/reset registers" |
|
Patch 2: "[v11,2/6] soc: spacemit: create a header for clock/reset registers" |
|
Patch 2: "[v11,2/6] soc: spacemit: create a header for clock/reset registers" |
|
Patch 2: "[v11,2/6] soc: spacemit: create a header for clock/reset registers" |
|
Patch 2: "[v11,2/6] soc: spacemit: create a header for clock/reset registers" |
|
Patch 2: "[v11,2/6] soc: spacemit: create a header for clock/reset registers" |
|
Patch 2: "[v11,2/6] soc: spacemit: create a header for clock/reset registers" |
|
Patch 4: "[v11,4/6] clk: spacemit: define three reset-only CCUs" |
|
Patch 4: "[v11,4/6] clk: spacemit: define three reset-only CCUs" |
|
Patch 4: "[v11,4/6] clk: spacemit: define three reset-only CCUs" |
|
Patch 4: "[v11,4/6] clk: spacemit: define three reset-only CCUs" |
|
Patch 5: "[v11,5/6] reset: spacemit: add support for SpacemiT CCU resets" |
|
Patch 5: "[v11,5/6] reset: spacemit: add support for SpacemiT CCU resets" |
|
Patch 5: "[v11,5/6] reset: spacemit: add support for SpacemiT CCU resets" |
|
Patch 5: "[v11,5/6] reset: spacemit: add support for SpacemiT CCU resets" |
|
Patch 5: "[v11,5/6] reset: spacemit: add support for SpacemiT CCU resets" |
|
Patch 5: "[v11,5/6] reset: spacemit: add support for SpacemiT CCU resets" |
|
Patch 5: "[v11,5/6] reset: spacemit: add support for SpacemiT CCU resets" |
|
Patch 5: "[v11,5/6] reset: spacemit: add support for SpacemiT CCU resets" |
|
Patch 5: "[v11,5/6] reset: spacemit: add support for SpacemiT CCU resets" |
|
Patch 5: "[v11,5/6] reset: spacemit: add support for SpacemiT CCU resets" |
|
Patch 5: "[v11,5/6] reset: spacemit: add support for SpacemiT CCU resets" |
|
Patch 5: "[v11,5/6] reset: spacemit: add support for SpacemiT CCU resets" |
|
Patch 6: "[v11,6/6] riscv: dts: spacemit: add reset support for the K1 SoC" |
|
Patch 6: "[v11,6/6] riscv: dts: spacemit: add reset support for the K1 SoC" |
|
Patch 6: "[v11,6/6] riscv: dts: spacemit: add reset support for the K1 SoC" |
|
Patch 6: "[v11,6/6] riscv: dts: spacemit: add reset support for the K1 SoC" |
|
Patch 6: "[v11,6/6] riscv: dts: spacemit: add reset support for the K1 SoC" |
|
Patch 6: "[v11,6/6] riscv: dts: spacemit: add reset support for the K1 SoC" |
|
Patch 6: "[v11,6/6] riscv: dts: spacemit: add reset support for the K1 SoC" |
|
Patch 6: "[v11,6/6] riscv: dts: spacemit: add reset support for the K1 SoC" |
|
Patch 6: "[v11,6/6] riscv: dts: spacemit: add reset support for the K1 SoC" |
|
Patch 6: "[v11,6/6] riscv: dts: spacemit: add reset support for the K1 SoC" |
|
Patch 6: "[v11,6/6] riscv: dts: spacemit: add reset support for the K1 SoC" |
|
Patch 6: "[v11,6/6] riscv: dts: spacemit: add reset support for the K1 SoC" |
PR for series 971605 applied to workflow__riscv__fixes
Name: reset: spacemit: add K1 reset support
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=971605
Version: 11