[PATCH v1 2/2] reset: starfive: jhb100: Add System-1 reset controller support

From: Changhuang Liang

Date: Sat Nov 28 2026 - 03:36:33 EST


Add the reset controller of the JHB100 System-1 clock and reset
generator (SYS1CRG) to the JHB100 reset driver. Its reset IDs do not map
one-to-one to the hardware reset bits, so the controller is registered
with a reset ID map.

Signed-off-by: Changhuang Liang <changhuang.liang@xxxxxxxxxxxxxxxx>
---
.../reset/starfive/reset-starfive-jhb100.c | 23 +++++++++++++++++++
1 file changed, 23 insertions(+)

diff --git a/drivers/reset/starfive/reset-starfive-jhb100.c b/drivers/reset/starfive/reset-starfive-jhb100.c
index 883f67ff1fa6..2170c88810db 100644
--- a/drivers/reset/starfive/reset-starfive-jhb100.c
+++ b/drivers/reset/starfive/reset-starfive-jhb100.c
@@ -38,6 +38,25 @@ static const struct jh71x0_reset_info jhb100_sys0_info = {
.map = jhb100_sys0_map,
};

+static const unsigned int jhb100_sys1_map[] = {
+ [JHB100_SYS1RST_SYS1_IOMUX_PRESETN] = 1,
+ [JHB100_SYS1RST_MAIN_RSTN_CHIPTOP_SENSOR] = 5,
+ [JHB100_SYS1RST_VOUT_RSTN_HOST0] = 8,
+ [JHB100_SYS1RST_VOUT_RSTN_HOST1] = 9,
+ [JHB100_SYS1RST_HOSTSS1_RSTN_BUS_ESPI] = 10,
+ [JHB100_SYS1RST_HOSTSS1_RSTN_BUS_PCIE] = 11,
+ [JHB100_SYS1RST_HOSTSS1_RSTN_CRG] = 12,
+ [JHB100_SYS1RST_BMCPERIPH3_RSTN_CRG] = 13,
+ [JHB100_SYS1RST_BMCPERIPH3_RSTN_BUS] = 14,
+};
+
+static const struct jh71x0_reset_info jhb100_sys1_info = {
+ .nr_resets = ARRAY_SIZE(jhb100_sys1_map),
+ .assert_offset = 0x54,
+ .status_offset = 0x58,
+ .map = jhb100_sys1_map,
+};
+
static int jhb100_reset_probe(struct auxiliary_device *adev,
const struct auxiliary_device_id *id)
{
@@ -59,6 +78,10 @@ static const struct auxiliary_device_id jhb100_reset_ids[] = {
.name = "clk_starfive_jh71x0.jhb100-r-sys0",
.driver_data = (kernel_ulong_t)&jhb100_sys0_info,
},
+ {
+ .name = "clk_starfive_jh71x0.jhb100-r-sys1",
+ .driver_data = (kernel_ulong_t)&jhb100_sys1_info,
+ },
{ /* sentinel */ }
};
MODULE_DEVICE_TABLE(auxiliary, jhb100_reset_ids);
--
2.25.1