[PATCH v2 7/7] PM / devfreq: rockchip-dfi: add RK3576 support
Choi Chanwoo
cwchoi00 at gmail.com
Sat Nov 14 17:00:08 PST 2026
On 9/22/2026 6:15 AM, Sebastian Reichel wrote:
> Add RK3576 support to the DFI driver exposing the same functionality
> as found on previous chips. This uses the RK3588 init for getting the
> DRAM type info from the GRF registers. In contrast to RK3588 it uses
> a newer DDRMON controller IP, though (version 0x40).
>
> Co-developed-by: Nicolas Frattaroli <nicolas.frattaroli at collabora.com>
> Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli at collabora.com>
> Signed-off-by: Sebastian Reichel <sebastian.reichel at collabora.com>
> ---
> drivers/devfreq/event/rockchip-dfi.c | 17 +++++++++++++++++
> 1 file changed, 17 insertions(+)
>
> diff --git a/drivers/devfreq/event/rockchip-dfi.c b/drivers/devfreq/event/rockchip-dfi.c
> index 8ba97af78e3d..a895e566b4b9 100644
> --- a/drivers/devfreq/event/rockchip-dfi.c
> +++ b/drivers/devfreq/event/rockchip-dfi.c
> @@ -858,6 +858,10 @@ static const char * const rk3399_clk_names[] = {
> "pclk_ddr_mon",
> };
>
> +static const char * const rk3576_clk_names[] = {
> + "pclk_ddr_mon_ch0", "pclk_ddr_mon_ch1",
> +};
> +
> static const char * const rk3588_clk_names[] = {
> "pclk_ddr_mon_ch0", "pclk_ddr_mon_ch1", "pclk_ddr_mon_ch2",
> "pclk_ddr_mon_ch3",
> @@ -887,6 +891,18 @@ static const struct rockchip_dfi_variant rk3568_variant = {
> .reg_access = 0x2c,
> };
>
> +static const struct rockchip_dfi_variant rk3576_variant = {
> + .init = rk3588_dfi_init,
> + .stride = 0x10000,
> + .max_channels = 2,
> + .clk_names = rk3576_clk_names,
> + .num_clks = ARRAY_SIZE(rk3576_clk_names),
> + .reg_write_access = 0x28,
> + .reg_read_access = 0x2c,
> + .reg_access = 0x34,
> + .reg_clock_cycles = 0x30,
> +};
> +
> static const struct rockchip_dfi_variant rk3588_variant = {
> .init = rk3588_dfi_init,
> .stride = 0x4000,
> @@ -903,6 +919,7 @@ static const struct rockchip_dfi_variant rk3588_variant = {
> static const struct of_device_id rockchip_dfi_id_match[] = {
> { .compatible = "rockchip,rk3399-dfi", .data = &rk3399_variant },
> { .compatible = "rockchip,rk3568-dfi", .data = &rk3568_variant },
> + { .compatible = "rockchip,rk3576-dfi", .data = &rk3576_variant },
> { .compatible = "rockchip,rk3588-dfi", .data = &rk3588_variant },
> { },
> };
>
Acked-by: Chanwoo Choi <cw00.choi at samsung.com>
--
Best Regards,
Chanwoo Choi
Principal Engineer, Samsung Electronics
More information about the Linux-rockchip
mailing list