diff mbox series

[08/12] clk: sunxi: Add missing clock compatible

Message ID 20210625130547.2177920-9-maxime@cerno.tech
State RFC
Delegated to: Andre Przywara
Headers show
Series Random Fixes for the CHIP Pro | expand

Commit Message

Maxime Ripard June 25, 2021, 1:05 p.m. UTC
The NextThingCo GR8 is a derivative of the sun5i family, and thus should
be considered similar to the A10s and A13 as far as clocks go.

The compatible was missing from the clock driver so far, leading to all
the drivers depending on it being non-functional.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
---
 drivers/clk/sunxi/clk_a10s.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Andre Przywara June 25, 2021, 1:38 p.m. UTC | #1
On Fri, 25 Jun 2021 15:05:43 +0200
Maxime Ripard <maxime@cerno.tech> wrote:

> The NextThingCo GR8 is a derivative of the sun5i family, and thus should
> be considered similar to the A10s and A13 as far as clocks go.
> 
> The compatible was missing from the clock driver so far, leading to all
> the drivers depending on it being non-functional.
> 
> Signed-off-by: Maxime Ripard <maxime@cerno.tech>

Compared the Linux clock drivers between the two compatibles, and the
GR8 has just a few clocks more, mostly audio related, so they are
indeed compatible as far as U-Boot is concerned:

Reviewed-by: Andre Przywara <andre.przywara@arm.com>

Cheers,
Andre

> ---
>  drivers/clk/sunxi/clk_a10s.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/clk/sunxi/clk_a10s.c b/drivers/clk/sunxi/clk_a10s.c
> index 184f61ab234c..99d8a8ab1b2e 100644
> --- a/drivers/clk/sunxi/clk_a10s.c
> +++ b/drivers/clk/sunxi/clk_a10s.c
> @@ -59,6 +59,8 @@ static const struct udevice_id a10s_ccu_ids[] = {
>  	  .data = (ulong)&a10s_ccu_desc },
>  	{ .compatible = "allwinner,sun5i-a13-ccu",
>  	  .data = (ulong)&a10s_ccu_desc },
> +	{ .compatible = "nextthing,gr8-ccu",
> +	  .data = (ulong)&a10s_ccu_desc },
>  	{ }
>  };
>
diff mbox series

Patch

diff --git a/drivers/clk/sunxi/clk_a10s.c b/drivers/clk/sunxi/clk_a10s.c
index 184f61ab234c..99d8a8ab1b2e 100644
--- a/drivers/clk/sunxi/clk_a10s.c
+++ b/drivers/clk/sunxi/clk_a10s.c
@@ -59,6 +59,8 @@  static const struct udevice_id a10s_ccu_ids[] = {
 	  .data = (ulong)&a10s_ccu_desc },
 	{ .compatible = "allwinner,sun5i-a13-ccu",
 	  .data = (ulong)&a10s_ccu_desc },
+	{ .compatible = "nextthing,gr8-ccu",
+	  .data = (ulong)&a10s_ccu_desc },
 	{ }
 };