clk: imx: imx8ulp: Add tpm5 clock as critical gate clock
authorJacky Bai <ping.bai@nxp.com>
Fri, 31 Mar 2023 06:38:13 +0000 (14:38 +0800)
committerAbel Vesa <abel.vesa@linaro.org>
Sun, 9 Apr 2023 14:12:49 +0000 (17:12 +0300)
commit66d72c62d20eb571b7ab624813b1b98b626ab493
tree7eaf5223d812b82c643da09d715e753a4ba85359
parent4883200d8c0b20cc3bf90fcd3b837a344a31ac66
clk: imx: imx8ulp: Add tpm5 clock as critical gate clock

The TPM5 is used for broadcast timer purpose and registered
with TIMER_OF_DECLARE. As the clock driver is not ready at
that stage, so the TPM5 clock is configured in bootloader(TF-A).
if we just remove the TPM5 clock from linux will introduce a
risk that the TPM5's parent clock will be gated, then lead to
TPM's channel control config can NOT be written into register
successfully.

Due to the above reason, we still need to add the TPM5 clock
into linux clock but register it as a simple critical gate
clock to make sure its parent is always on.

Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Jacky Bai <ping.bai@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Abel Vesa <abel.vesa@linaro.org>
Link: https://lore.kernel.org/r/20230331063814.2462059-5-peng.fan@oss.nxp.com
Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
drivers/clk/imx/clk-imx8ulp.c