Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

reset: simple: add support for Sophgo SG2042

Reuse reset-simple driver for the Sophgo SG2042 reset generator.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Link: https://lore.kernel.org/r/1cfd7b3ba447942784c4f7aa595e962399e9f617.1706577450.git.unicorn_wang@outlook.com
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>

authored by

Chen Wang and committed by
Philipp Zabel
a6166a4d 41197eb5

+4 -1
+2 -1
drivers/reset/Kconfig
··· 213 213 214 214 config RESET_SIMPLE 215 215 bool "Simple Reset Controller Driver" if COMPILE_TEST || EXPERT 216 - default ARCH_ASPEED || ARCH_BCMBCA || ARCH_BITMAIN || ARCH_REALTEK || ARCH_STM32 || (ARCH_INTEL_SOCFPGA && ARM64) || ARCH_SUNXI || ARC 216 + default ARCH_ASPEED || ARCH_BCMBCA || ARCH_BITMAIN || ARCH_REALTEK || ARCH_SOPHGO || ARCH_STM32 || (ARCH_INTEL_SOCFPGA && ARM64) || ARCH_SUNXI || ARC 217 217 depends on HAS_IOMEM 218 218 help 219 219 This enables a simple reset controller driver for reset lines that ··· 228 228 - RCC reset controller in STM32 MCUs 229 229 - Allwinner SoCs 230 230 - SiFive FU740 SoCs 231 + - Sophgo SoCs 231 232 232 233 config RESET_SOCFPGA 233 234 bool "SoCFPGA Reset Driver" if COMPILE_TEST && (!ARM || !ARCH_INTEL_SOCFPGA)
+2
drivers/reset/reset-simple.c
··· 151 151 { .compatible = "snps,dw-high-reset" }, 152 152 { .compatible = "snps,dw-low-reset", 153 153 .data = &reset_simple_active_low }, 154 + { .compatible = "sophgo,sg2042-reset", 155 + .data = &reset_simple_active_low }, 154 156 { /* sentinel */ }, 155 157 }; 156 158