reset: zte: Add a zx297520v3 reset driver
PATCH v14 1/1 reset: zte: Add a zx297520v3 reset driver
This drives the MFD child devices created by the zte-zx297520v3-crm driver.
---
v14: Stand-alone submission of the reset driver for inclusion. The DT bindings are already upstream, so the driver builds as-is.
I have removed the line from MAINTAINERS because it will conflict with the patch submitted to the MFD tree for the MFD driver linked below:
https://lore.kernel.org/mfd/[email protected]/
v12: Correct SSC reset from bit 24 to bit 28 in matrix+0x94.
v10:
Add ZSP reset in matrixcrm
v9:
Remove HSIC and USB PHY resets, the phy driver will access them through the shared regmap directly
Sort include files alphabetically
Depend on HAS_IOMEM due to "select MFD_SYSCON" (Sashiko). This has some, but not consistent, precedent in the same file
v8: Select MFD_SYSCON for COMPILE_TESTing this driver without the MFD parent driver.
v7:
Add MODULE_DEVICE_TABLE (Philipp)
Add DDR control and LSP resets
v6:
Add a comment wrt checking all bits in .status() (Philipp) include cleanup (Philipp, Sashiko)
v5:
Make top and matrix MFD children instead of aux devices Split USB PHY reset into its own reset ID
Remove USB reset wait code - this will be handled via syscon from a future minimal phy-zx29-usb driver
--- drivers/reset/Kconfig | 13 ++ drivers/reset/Makefile | 1 + drivers/reset/reset-zte-zx297520v3.c | 237 +++++++++++++++++++++++++++++++++++ 3 files changed, 251 insertions(+)
drivers/reset/Kconfig +13 -0
@@ -438,6 +438,19 @@ config RESET_UNIPHIER_GLUE on UniPhier SoCs. Say Y if you want to control reset signals provided by the glue layer. +config RESET_ZTE_ZX297520V3 + tristate "ZTE zx297520v3 Reset Driver" + depends on HAS_IOMEM + depends on MFD_ZTE_ZX297520V3_CRM || COMPILE_TEST + default SOC_ZX297520V3 + select MFD_SYSCON + help + This enables the reset controllers for ZTE zx297520v3 SoCs. The reset + controllers are required for booting this board and are part of the + clock and reset management controllers on this board, so you will also + need MFD_ZTE_ZX297520V3_CRM. Enable this if you are building a kernel + for a ZTE zx297520v3 based board. + config RESET_ZYNQ bool "ZYNQ Reset Driver" if COMPILE_TEST default ARCH_ZYNQ
drivers/reset/Makefile +1 -0
@@ -53,5 +53,6 @@ obj-$(CONFIG_RESET_TI_TPS380X) += reset-tps380x.o obj-$(CONFIG_RESET_TN48M_CPLD) += reset-tn48m.o obj-$(CONFIG_RESET_UNIPHIER) += reset-uniphier.o obj-$(CONFIG_RESET_UNIPHIER_GLUE) += reset-uniphier-glue.o +obj-$(CONFIG_RESET_ZTE_ZX297520V3) += reset-zte-zx297520v3.o obj-$(CONFIG_RESET_ZYNQ) += reset-zynq.o obj-$(CONFIG_RESET_ZYNQMP) += reset-zynqmp.o
drivers/reset/reset-zte-zx297520v3.c new file +237 -0
237 lines not on this page · raw message
---
base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
change-id: 20261109-zx29reset-3f6a4f4bbd8a
Best regards,
Signature · 1 line
Stefan Dösinger <[email protected]>
Quoted 4 lines · Stefan Dösinger
This drives the MFD child devices created by the zte-zx297520v3-crm driver.
[...]
Applied to reset/next, thanks!
[1/1] reset: zte: Add a zx297520v3 reset driver
https://git.kernel.org/pub/scm/linux/kernel/git/pza/linux.git/commit/?id=fbcd5a23e147
regards
Philipp