[PATCH v7 03/11] clk: imx: scu: add two cells binding support

Stephen Boyd sboyd at kernel.org
Tue Oct 13 20:40:31 EDT 2020


Quoting Dong Aisheng (2020-07-29 01:00:10)
> This patch implements the new two cells binding for SCU clocks.
> The usage is as follows:
> clocks = <&uart0_clk IMX_SC_R_UART_0 IMX_SC_PM_CLK_PER>
> 
> Due to each SCU clock is associated with a power domain, without power
> on the domain, the SCU clock can't work. So we create platform devices
> for each domain clock respectively and manually attach the required domain
> before register the clock devices, then we can register clocks in the
> clock platform driver accordingly.
> 
> Note because we do not have power domain info in device tree and the SCU
> resource ID is the same for power domain and clock, so we use resource ID
> to find power domains.
> 
> Later, we will also use this clock platform driver to support suspend/resume
> and runtime pm.
> 
> Cc: Stephen Boyd <sboyd at kernel.org>
> Cc: Shawn Guo <shawnguo at kernel.org>
> Cc: Sascha Hauer <kernel at pengutronix.de>
> Cc: Michael Turquette <mturquette at baylibre.com>
> Signed-off-by: Dong Aisheng <aisheng.dong at nxp.com>
> ---

Reviewed-by: Stephen Boyd <sboyd at kernel.org>



More information about the linux-arm-kernel mailing list