]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/msm/dsi/phy: Use the header with clock IDs
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Mon, 27 Jan 2025 13:21:05 +0000 (14:21 +0100)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Wed, 26 Feb 2025 10:15:48 +0000 (12:15 +0200)
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>
drivers/gpu/drm/msm/dsi/phy/dsi_phy.h
drivers/gpu/drm/msm/dsi/phy/dsi_phy_10nm.c
drivers/gpu/drm/msm/dsi/phy/dsi_phy_14nm.c
drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm.c
drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm_8960.c
drivers/gpu/drm/msm/dsi/phy/dsi_phy_7nm.c

index 8985818bb2e0934e9084a420c90e2269c2e1c414..1925418d9999a24263d6621299cae78f1fb9455c 100644 (file)
@@ -6,6 +6,7 @@
 #ifndef __DSI_PHY_H__
 #define __DSI_PHY_H__
 
+#include <dt-bindings/clock/qcom,dsi-phy-28nm.h>
 #include <linux/clk-provider.h>
 #include <linux/delay.h>
 #include <linux/regulator/consumer.h>
@@ -84,9 +85,7 @@ struct msm_dsi_dphy_timing {
        u8 hs_halfbyte_en_ckln;
 };
 
-#define DSI_BYTE_PLL_CLK               0
-#define DSI_PIXEL_PLL_CLK              1
-#define NUM_PROVIDED_CLKS              2
+#define NUM_PROVIDED_CLKS              (DSI_PIXEL_PLL_CLK + 1)
 
 #define DSI_LANE_MAX                   5
 
index 677c6257181195892fdeb45e262f39c5ac974177..9812b4d69197928ca143e1504c8ee4b4345a232d 100644 (file)
@@ -3,6 +3,7 @@
  * Copyright (c) 2018, The Linux Foundation
  */
 
+#include <dt-bindings/clock/qcom,dsi-phy-28nm.h>
 #include <linux/clk.h>
 #include <linux/clk-provider.h>
 #include <linux/iopoll.h>
index 2c3cbe0f2870e7d68b9563957de8621f7cd36b78..3a1c8ece6657c988cfb0c26af39b5d145bc576f8 100644 (file)
@@ -3,6 +3,7 @@
  * Copyright (c) 2016, The Linux Foundation. All rights reserved.
  */
 
+#include <dt-bindings/clock/qcom,dsi-phy-28nm.h>
 #include <linux/clk.h>
 #include <linux/clk-provider.h>
 #include <linux/delay.h>
index 1383e3a4e0500178ba2fc7f7af16d5a67b975520..90348a2af3e9dac72924561b23b169a268abc3b0 100644 (file)
@@ -3,6 +3,7 @@
  * Copyright (c) 2015, The Linux Foundation. All rights reserved.
  */
 
+#include <dt-bindings/clock/qcom,dsi-phy-28nm.h>
 #include <linux/clk.h>
 #include <linux/clk-provider.h>
 
index 5311ab7f3c7095bada7ccda55b24d62d998d75ce..f3643320ff2f2bae5301bb94f1fe19fa03db584c 100644 (file)
@@ -3,6 +3,7 @@
  * Copyright (c) 2012-2015, The Linux Foundation. All rights reserved.
  */
 
+#include <dt-bindings/clock/qcom,dsi-phy-28nm.h>
 #include <linux/clk-provider.h>
 #include <linux/delay.h>
 
index 798168180c1ab6c96ec2384f854302720cb27932..e496a95c34e92130ecdb2b3032a4779d15dcdeaf 100644 (file)
@@ -3,6 +3,7 @@
  * Copyright (c) 2018, The Linux Foundation
  */
 
+#include <dt-bindings/clock/qcom,dsi-phy-28nm.h>
 #include <linux/clk.h>
 #include <linux/clk-provider.h>
 #include <linux/iopoll.h>