• Dong Aisheng's avatar
    clk: imx: scu: add two cells binding support · 77d8f306
    Dong Aisheng authored
    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@kernel.org>
    Cc: Shawn Guo <shawnguo@kernel.org>
    Cc: Sascha Hauer <kernel@pengutronix.de>
    Cc: Michael Turquette <mturquette@baylibre.com>
    Signed-off-by: default avatarDong Aisheng <aisheng.dong@nxp.com>
    Reviewed-by: default avatarStephen Boyd <sboyd@kernel.org>
    Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
    77d8f306
clk-imx8qxp.c 9.54 KB