u-boot/drivers/clk/rockchip
Eugen Hristev bb52f1c604 reset: rockchip: implement rk3588 lookup table
The current DT bindings for the rk3588 clock use a different ID than the
one that is supposed to be written to the hardware registers.
Thus, we cannot use directly the id provided in the phandle, but rather
use a lookup table to correctly setup the hardware.

This approach has been implemented already in Linux, by commit :
f1c506d152ff ("clk: rockchip: add clock controller for the RK3588")

Hence, implement a similar approach using the lookup table, and adapt
the existing reset driver to work with SoCs using lookup table.
The file rst-rk3588.c has been copied as much as possible from Linux.

Adapt the clk rk3588 driver as well to bind the reset driver with the
lookup table.

Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Signed-off-by: Eugen Hristev <eugen.hristev@collabora.com>
2023-05-17 17:36:18 +08:00
..
clk_pll.c clk: rockchip: pll: Add pll_rk3588 type for rk3588 2023-02-28 18:07:27 +08:00
clk_px30.c clk: rockchip: correct trivial typo in debug message 2023-05-09 18:28:44 +08:00
clk_rk322x.c clk: rockchip: correct trivial typo in debug message 2023-05-09 18:28:44 +08:00
clk_rk3036.c clk: rockchip: correct trivial typo in debug message 2023-05-09 18:28:44 +08:00
clk_rk3066.c rockchip: rk3066: add clock driver for rk3066 soc 2022-04-18 11:25:13 +08:00
clk_rk3128.c rockchip: rk3128-cru: sync the clock dt-binding header from Linux 2022-12-19 10:56:12 +08:00
clk_rk3188.c clk: rockchip: correct trivial typo in debug message 2023-05-09 18:28:44 +08:00
clk_rk3288.c clk: rockchip: correct trivial typo in debug message 2023-05-09 18:28:44 +08:00
clk_rk3308.c clk: rockchip: correct trivial typo in debug message 2023-05-09 18:28:44 +08:00
clk_rk3328.c clk: rockchip: correct trivial typo in debug message 2023-05-09 18:28:44 +08:00
clk_rk3368.c clk: rockchip: correct trivial typo in debug message 2023-05-09 18:28:44 +08:00
clk_rk3399.c clk: rockchip: correct trivial typo in debug message 2023-05-09 18:28:44 +08:00
clk_rk3568.c clk: rockchip: correct trivial typo in debug message 2023-05-09 18:28:44 +08:00
clk_rk3588.c reset: rockchip: implement rk3588 lookup table 2023-05-17 17:36:18 +08:00
clk_rv1108.c clk: rockchip: correct trivial typo in debug message 2023-05-09 18:28:44 +08:00
clk_rv1126.c clk: rockchip: correct trivial typo in debug message 2023-05-09 18:28:44 +08:00
Makefile clk: rockchip: Add rk3588 clk support 2023-02-28 18:07:27 +08:00