]> git.baikalelectronics.ru Git - kernel.git/commit
clk: imx: imx8qxp-lpcg: add parsing clocks from device tree
authorDong Aisheng <aisheng.dong@nxp.com>
Wed, 29 Jul 2020 08:00:15 +0000 (16:00 +0800)
committerShawn Guo <shawnguo@kernel.org>
Mon, 26 Oct 2020 02:54:00 +0000 (10:54 +0800)
commit889eb0f238315b902e4e921c7f04841574ccb7a4
treef6c88cda9daae4423194499d89caa647f45d4033
parent30e4c8ab78139161abf0c3305058c62a2cc632a2
clk: imx: imx8qxp-lpcg: add parsing clocks from device tree

One LPCG controller supports up to 8 clock outputs while each of them
is fixed to 4 bits.  It supports only gating function with fixed bits.
So we can use the clk-indices to fetch the corresponding clock idx from
device tree. With this way, we can write a generic LPCG clock drivers.

This patch add that support to parse clocks from device tree.

Cc: Shawn Guo <shawnguo@kernel.org>
Cc: Sascha Hauer <kernel@pengutronix.de>
Cc: Michael Turquette <mturquette@baylibre.com>
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/clk/imx/clk-imx8qxp-lpcg.c
drivers/clk/imx/clk-lpcg-scu.c
drivers/clk/imx/clk-scu.h