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

drm/msm/dsi/phy: Use the header with clock IDs

Use the header with clock IDs to bind the interface between driver and
DTS.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/634149/
Link: https://lore.kernel.org/r/20250127132105.107138-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>

authored by

Krzysztof Kozlowski and committed by
Dmitry Baryshkov
5100ae76 d1f28e30

+7 -3
+2 -3
drivers/gpu/drm/msm/dsi/phy/dsi_phy.h
··· 6 6 #ifndef __DSI_PHY_H__ 7 7 #define __DSI_PHY_H__ 8 8 9 + #include <dt-bindings/clock/qcom,dsi-phy-28nm.h> 9 10 #include <linux/clk-provider.h> 10 11 #include <linux/delay.h> 11 12 #include <linux/regulator/consumer.h> ··· 85 84 u8 hs_halfbyte_en_ckln; 86 85 }; 87 86 88 - #define DSI_BYTE_PLL_CLK 0 89 - #define DSI_PIXEL_PLL_CLK 1 90 - #define NUM_PROVIDED_CLKS 2 87 + #define NUM_PROVIDED_CLKS (DSI_PIXEL_PLL_CLK + 1) 91 88 92 89 #define DSI_LANE_MAX 5 93 90
+1
drivers/gpu/drm/msm/dsi/phy/dsi_phy_10nm.c
··· 3 3 * Copyright (c) 2018, The Linux Foundation 4 4 */ 5 5 6 + #include <dt-bindings/clock/qcom,dsi-phy-28nm.h> 6 7 #include <linux/clk.h> 7 8 #include <linux/clk-provider.h> 8 9 #include <linux/iopoll.h>
+1
drivers/gpu/drm/msm/dsi/phy/dsi_phy_14nm.c
··· 3 3 * Copyright (c) 2016, The Linux Foundation. All rights reserved. 4 4 */ 5 5 6 + #include <dt-bindings/clock/qcom,dsi-phy-28nm.h> 6 7 #include <linux/clk.h> 7 8 #include <linux/clk-provider.h> 8 9 #include <linux/delay.h>
+1
drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm.c
··· 3 3 * Copyright (c) 2015, The Linux Foundation. All rights reserved. 4 4 */ 5 5 6 + #include <dt-bindings/clock/qcom,dsi-phy-28nm.h> 6 7 #include <linux/clk.h> 7 8 #include <linux/clk-provider.h> 8 9
+1
drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm_8960.c
··· 3 3 * Copyright (c) 2012-2015, The Linux Foundation. All rights reserved. 4 4 */ 5 5 6 + #include <dt-bindings/clock/qcom,dsi-phy-28nm.h> 6 7 #include <linux/clk-provider.h> 7 8 #include <linux/delay.h> 8 9
+1
drivers/gpu/drm/msm/dsi/phy/dsi_phy_7nm.c
··· 3 3 * Copyright (c) 2018, The Linux Foundation 4 4 */ 5 5 6 + #include <dt-bindings/clock/qcom,dsi-phy-28nm.h> 6 7 #include <linux/clk.h> 7 8 #include <linux/clk-provider.h> 8 9 #include <linux/iopoll.h>