From: Claudiu Beznea <claudiu.beznea...@bp.renesas.com> The USB PWRRDY is a SYSC signal that need to be controlled, in case of RZ/G3S SoC, before/after the power to the USB PHYs is turned on/off. Add the USB PWRRDY signal.
Signed-off-by: Claudiu Beznea <claudiu.beznea...@bp.renesas.com> --- Changes in v3: - none, this patch is new and obtained from [1] [1] https://lore.kernel.org/all/20241126092050.1825607-3-claudiu.beznea...@bp.renesas.com/ drivers/soc/renesas/r9a08g045-sysc.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/soc/renesas/r9a08g045-sysc.c b/drivers/soc/renesas/r9a08g045-sysc.c index d2c9e3b77f41..7e6b5edf9666 100644 --- a/drivers/soc/renesas/r9a08g045-sysc.c +++ b/drivers/soc/renesas/r9a08g045-sysc.c @@ -5,11 +5,21 @@ * Copyright (C) 2024 Renesas Electronics Corp. */ +#include <linux/array_size.h> #include <linux/bits.h> #include <linux/init.h> #include "rz-sysc.h" +static const struct rz_sysc_signal_init_data rzg3s_sysc_signals_init_data[] __initconst = { + { + .name = "usb-pwrrdy", + .offset = 0xd70, + .mask = BIT(0), + .refcnt_incr_val = 0 + } +}; + static const struct rz_sysc_soc_id_init_data rzg3s_sysc_soc_id_init_data __initconst = { .family = "RZ/G3S", .id = 0x85e0447, @@ -33,4 +43,6 @@ static const struct regmap_config rzg3s_sysc_regmap __initconst = { const struct rz_sysc_init_data rzg3s_sysc_init_data __initconst = { .soc_id_init_data = &rzg3s_sysc_soc_id_init_data, .regmap_cfg = &rzg3s_sysc_regmap, + .signals_init_data = rzg3s_sysc_signals_init_data, + .num_signals = ARRAY_SIZE(rzg3s_sysc_signals_init_data), }; -- 2.43.0