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

reset: reset-meson: add support for the Meson-S4 SoC Reset Controller

Compared to the A1 SoCs the number of RESET registers is different
and the offset for the level registers is the same. Add a new
compatible string and struct meson_reset_param to add support for the
reset controller on the S4 SoC.

Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Link: https://lore.kernel.org/r/20220107023931.13251-4-zelong.dong@amlogic.com

authored by

Zelong Dong and committed by
Philipp Zabel
636728d0 52f988d7

+6
+6
drivers/reset/reset-meson.c
··· 98 98 .level_offset = 0x40, 99 99 }; 100 100 101 + static const struct meson_reset_param meson_s4_param = { 102 + .reg_count = 6, 103 + .level_offset = 0x40, 104 + }; 105 + 101 106 static const struct of_device_id meson_reset_dt_ids[] = { 102 107 { .compatible = "amlogic,meson8b-reset", .data = &meson8b_param}, 103 108 { .compatible = "amlogic,meson-gxbb-reset", .data = &meson8b_param}, 104 109 { .compatible = "amlogic,meson-axg-reset", .data = &meson8b_param}, 105 110 { .compatible = "amlogic,meson-a1-reset", .data = &meson_a1_param}, 111 + { .compatible = "amlogic,meson-s4-reset", .data = &meson_s4_param}, 106 112 { /* sentinel */ }, 107 113 }; 108 114 MODULE_DEVICE_TABLE(of, meson_reset_dt_ids);