[PATCH 8/8] phy: phy-rockchip-inno-usb2.c: Fix crash if phyclk isn't found

2025-08-10 Thread David Jander
in rockchip_usb2phy_clk480m_register() rphy->clk is checked for NULL, but clk_get() will return an error instead of NULL if the clk isn't found. Signed-off-by: David Jander --- drivers/phy/rockchip/phy-rockchip-inno-usb2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/phy/rockchi

[PATCH 5/8] aiodev: rockchip_saradc.c: Add support for RK3576

2025-08-10 Thread David Jander
The RK3576 has a SARADC v2 with 8 channels and 12 bit resolution. Signed-off-by: David Jander --- drivers/aiodev/Kconfig | 2 +- drivers/aiodev/rockchip_saradc.c | 7 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/aiodev/Kconfig b/drivers/aiodev/Kconfig i

[PATCH 6/8] gpio: gpio-rockchip.c: Add support for GPIO_TYPE_V2_2

2025-08-10 Thread David Jander
This is the version found in the RK3576. Signed-off-by: David Jander --- drivers/gpio/gpio-rockchip.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-rockchip.c b/drivers/gpio/gpio-rockchip.c index 2c13e97b97..db8a045e8b 100644 --- a/drivers/gpio/gpio-rock

[PATCH 1/8] clk: rockchip: clk-pll.c: Fix macro name confusion

2025-08-10 Thread David Jander
RK3399_PLLCON() and RK3588_PLLCON() are identical, but using the RK3399 name in an RK3588 function seems confusing. Signed-off-by: David Jander --- drivers/clk/rockchip/clk-pll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/rockchip/clk-pll.c b/drivers/clk/rock

[PATCH 7/8] arm: dts: rk3576.dtsi: Add gpio aliases

2025-08-10 Thread David Jander
These are needed for the GPIO driver to probe. Signed-off-by: David Jander --- arch/arm/dts/rk3576.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/dts/rk3576.dtsi b/arch/arm/dts/rk3576.dtsi index cf7c69b3b5..e4b63784d9 100644 --- a/arch/arm/dts/rk3576.dtsi +++ b/arch/ar

[PATCH 2/8] clk: rockchip: Introduce rockchip_grf_type enum from kernel driver

2025-08-10 Thread David Jander
The MUXGRF macro from the kernel clk driver has an extra field that was left out of the barebox driver, since it required a dynamically allocated hashmap that might have been overly complicated to port. Until now, this wasn't strictly necessary, but for upcoming RK3576 support this extra parameter