Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: imx7ulp: do not export out IMX7ULP_CLK_MIPI_PLL clock

The mipi pll clock comes from the MIPI PHY PLL output, so
it should not be a fixed clock.

MIPI PHY PLL is in the MIPI DSI space, and it is used as
the bit clock for transferring the pixel data out and its
output clock is configured according to the display mode.

So it should be used only for MIPI DSI and not be exported
out for other usages.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>

authored by

Fancy Fang and committed by
Shawn Guo
72b2429d 8f5d4819

+2 -3
-1
Documentation/devicetree/bindings/clock/imx7ulp-clock.txt
··· 82 82 <&scg1 IMX7ULP_CLK_APLL_PFD0>, 83 83 <&scg1 IMX7ULP_CLK_UPLL>, 84 84 <&scg1 IMX7ULP_CLK_SOSC_BUS_CLK>, 85 - <&scg1 IMX7ULP_CLK_MIPI_PLL>, 86 85 <&scg1 IMX7ULP_CLK_FIRC_BUS_CLK>, 87 86 <&scg1 IMX7ULP_CLK_ROSC>, 88 87 <&scg1 IMX7ULP_CLK_SPLL_BUS_CLK>;
+1 -2
drivers/clk/imx/clk-imx7ulp.c
··· 28 28 static const char * const ddr_sels[] = { "apll_pfd_sel", "dummy", "dummy", "dummy", }; 29 29 static const char * const nic_sels[] = { "firc", "ddr_clk", }; 30 30 static const char * const periph_plat_sels[] = { "dummy", "nic1_bus_clk", "nic1_clk", "ddr_clk", "apll_pfd2", "apll_pfd1", "apll_pfd0", "upll", }; 31 - static const char * const periph_bus_sels[] = { "dummy", "sosc_bus_clk", "mpll", "firc_bus_clk", "rosc", "nic1_bus_clk", "nic1_clk", "spll_bus_clk", }; 31 + static const char * const periph_bus_sels[] = { "dummy", "sosc_bus_clk", "dummy", "firc_bus_clk", "rosc", "nic1_bus_clk", "nic1_clk", "spll_bus_clk", }; 32 32 static const char * const arm_sels[] = { "divcore", "dummy", "dummy", "hsrun_divcore", }; 33 33 34 34 /* used by sosc/sirc/firc/ddr/spll/apll dividers */ ··· 75 75 clks[IMX7ULP_CLK_SOSC] = imx_obtain_fixed_clk_hw(np, "sosc"); 76 76 clks[IMX7ULP_CLK_SIRC] = imx_obtain_fixed_clk_hw(np, "sirc"); 77 77 clks[IMX7ULP_CLK_FIRC] = imx_obtain_fixed_clk_hw(np, "firc"); 78 - clks[IMX7ULP_CLK_MIPI_PLL] = imx_obtain_fixed_clk_hw(np, "mpll"); 79 78 clks[IMX7ULP_CLK_UPLL] = imx_obtain_fixed_clk_hw(np, "upll"); 80 79 81 80 /* SCG1 */
+1
include/dt-bindings/clock/imx7ulp-clock.h
··· 49 49 #define IMX7ULP_CLK_NIC1_DIV 36 50 50 #define IMX7ULP_CLK_NIC1_BUS_DIV 37 51 51 #define IMX7ULP_CLK_NIC1_EXT_DIV 38 52 + /* IMX7ULP_CLK_MIPI_PLL is unsupported and shouldn't be used in DT */ 52 53 #define IMX7ULP_CLK_MIPI_PLL 39 53 54 #define IMX7ULP_CLK_SIRC 40 54 55 #define IMX7ULP_CLK_SOSC_BUS_CLK 41