[PATCH 2/2] clk: imx: imx8mq: Add hdmi phy 27m as proper hw clock

Alexander Stein alexander.stein at ew.tq-group.com
Tue Sep 27 07:06:38 PDT 2022


So it can be referenced by IMX8MQ_CLK_HDMI_PHY_27MHZ in device tree files.

Signed-off-by: Alexander Stein <alexander.stein at ew.tq-group.com>
---
 drivers/clk/imx/clk-imx8mq.c             | 1 +
 include/dt-bindings/clock/imx8mq-clock.h | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/clk/imx/clk-imx8mq.c b/drivers/clk/imx/clk-imx8mq.c
index 783f98b05441..7cecb964cf1f 100644
--- a/drivers/clk/imx/clk-imx8mq.c
+++ b/drivers/clk/imx/clk-imx8mq.c
@@ -305,6 +305,7 @@ static int imx8mq_clocks_probe(struct platform_device *pdev)
 	hws[IMX8MQ_CLK_EXT2] = imx_obtain_fixed_clk_hw(np, "clk_ext2");
 	hws[IMX8MQ_CLK_EXT3] = imx_obtain_fixed_clk_hw(np, "clk_ext3");
 	hws[IMX8MQ_CLK_EXT4] = imx_obtain_fixed_clk_hw(np, "clk_ext4");
+	hws[IMX8MQ_CLK_HDMI_PHY_27MHZ] = imx_obtain_fixed_clk_hw(np, "hdmi_phy_27m");
 
 	np = of_find_compatible_node(NULL, NULL, "fsl,imx8mq-anatop");
 	base = of_iomap(np, 0);
diff --git a/include/dt-bindings/clock/imx8mq-clock.h b/include/dt-bindings/clock/imx8mq-clock.h
index afa74d7ba100..6401cc836c31 100644
--- a/include/dt-bindings/clock/imx8mq-clock.h
+++ b/include/dt-bindings/clock/imx8mq-clock.h
@@ -425,7 +425,8 @@
 #define IMX8MQ_CLK_MON_VIDEO_PLL2_DIV		300
 #define IMX8MQ_CLK_MON_SEL			301
 #define IMX8MQ_CLK_MON_CLK2_OUT			302
+#define IMX8MQ_CLK_HDMI_PHY_27MHZ		303
 
-#define IMX8MQ_CLK_END				303
+#define IMX8MQ_CLK_END				304
 
 #endif /* __DT_BINDINGS_CLOCK_IMX8MQ_H */
-- 
2.25.1




More information about the linux-arm-kernel mailing list