* [PATCH 1/2] dt-bindings: display/msm/dsi-phy: Add header with exposed clock IDs
@ 2025-01-27 13:21 Krzysztof Kozlowski
2025-01-27 13:21 ` [PATCH 2/2] drm/msm/dsi/phy: Use the header with " Krzysztof Kozlowski
` (4 more replies)
0 siblings, 5 replies; 11+ messages in thread
From: Krzysztof Kozlowski @ 2025-01-27 13:21 UTC (permalink / raw)
To: Rob Clark, Abhinav Kumar, Dmitry Baryshkov, Sean Paul,
Marijn Suijten, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Simona Vetter, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Bjorn Andersson,
Michael Turquette, Stephen Boyd, Krishna Manikandan,
linux-arm-msm, dri-devel, freedreno, devicetree, linux-kernel,
linux-clk
Cc: Krzysztof Kozlowski
DSI phys, from earliest (28 nm) up to newest (3 nm) generation, provide
two clocks. The respective clock ID is used by drivers and DTS, so it
should be documented as explicit ABI.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
Patch for Display tree, although with Ack from clock.
---
.../devicetree/bindings/display/msm/dsi-phy-common.yaml | 2 ++
MAINTAINERS | 1 +
include/dt-bindings/clock/qcom,dsi-phy-28nm.h | 9 +++++++++
3 files changed, 12 insertions(+)
create mode 100644 include/dt-bindings/clock/qcom,dsi-phy-28nm.h
diff --git a/Documentation/devicetree/bindings/display/msm/dsi-phy-common.yaml b/Documentation/devicetree/bindings/display/msm/dsi-phy-common.yaml
index 6b57ce41c95f..d0ce85a08b6d 100644
--- a/Documentation/devicetree/bindings/display/msm/dsi-phy-common.yaml
+++ b/Documentation/devicetree/bindings/display/msm/dsi-phy-common.yaml
@@ -15,6 +15,8 @@ description:
properties:
"#clock-cells":
const: 1
+ description:
+ See include/dt-bindings/clock/qcom,dsi-phy-28nm.h for clock IDs.
"#phy-cells":
const: 0
diff --git a/MAINTAINERS b/MAINTAINERS
index eb75c95f6c45..30103e3918ea 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -7398,6 +7398,7 @@ T: git https://gitlab.freedesktop.org/drm/msm.git
F: Documentation/devicetree/bindings/display/msm/
F: drivers/gpu/drm/ci/xfails/msm*
F: drivers/gpu/drm/msm/
+F: include/dt-bindings/clock/qcom,dsi-phy-28nm.h
F: include/uapi/drm/msm_drm.h
DRM DRIVER FOR NOVATEK NT35510 PANELS
diff --git a/include/dt-bindings/clock/qcom,dsi-phy-28nm.h b/include/dt-bindings/clock/qcom,dsi-phy-28nm.h
new file mode 100644
index 000000000000..ab94d58377a1
--- /dev/null
+++ b/include/dt-bindings/clock/qcom,dsi-phy-28nm.h
@@ -0,0 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause */
+
+#ifndef _DT_BINDINGS_CLK_QCOM_DSI_PHY_28NM_H
+#define _DT_BINDINGS_CLK_QCOM_DSI_PHY_28NM_H
+
+#define DSI_BYTE_PLL_CLK 0
+#define DSI_PIXEL_PLL_CLK 1
+
+#endif
--
2.43.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 2/2] drm/msm/dsi/phy: Use the header with clock IDs
2025-01-27 13:21 [PATCH 1/2] dt-bindings: display/msm/dsi-phy: Add header with exposed clock IDs Krzysztof Kozlowski
@ 2025-01-27 13:21 ` Krzysztof Kozlowski
2025-01-27 13:54 ` Dmitry Baryshkov
2025-01-27 22:52 ` Stephen Boyd
2025-01-27 13:56 ` [PATCH 1/2] dt-bindings: display/msm/dsi-phy: Add header with exposed " Dmitry Baryshkov
` (3 subsequent siblings)
4 siblings, 2 replies; 11+ messages in thread
From: Krzysztof Kozlowski @ 2025-01-27 13:21 UTC (permalink / raw)
To: Rob Clark, Abhinav Kumar, Dmitry Baryshkov, Sean Paul,
Marijn Suijten, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Simona Vetter, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Bjorn Andersson,
Michael Turquette, Stephen Boyd, Krishna Manikandan,
linux-arm-msm, dri-devel, freedreno, devicetree, linux-kernel,
linux-clk
Cc: Krzysztof Kozlowski
Use the header with clock IDs to bind the interface between driver and
DTS.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
drivers/gpu/drm/msm/dsi/phy/dsi_phy.h | 5 ++---
drivers/gpu/drm/msm/dsi/phy/dsi_phy_10nm.c | 1 +
drivers/gpu/drm/msm/dsi/phy/dsi_phy_14nm.c | 1 +
drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm.c | 1 +
drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm_8960.c | 1 +
drivers/gpu/drm/msm/dsi/phy/dsi_phy_7nm.c | 1 +
6 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/msm/dsi/phy/dsi_phy.h b/drivers/gpu/drm/msm/dsi/phy/dsi_phy.h
index fdb6c648e16f..7541ffde6521 100644
--- a/drivers/gpu/drm/msm/dsi/phy/dsi_phy.h
+++ b/drivers/gpu/drm/msm/dsi/phy/dsi_phy.h
@@ -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>
@@ -85,9 +86,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
diff --git a/drivers/gpu/drm/msm/dsi/phy/dsi_phy_10nm.c b/drivers/gpu/drm/msm/dsi/phy/dsi_phy_10nm.c
index 677c62571811..9812b4d69197 100644
--- a/drivers/gpu/drm/msm/dsi/phy/dsi_phy_10nm.c
+++ b/drivers/gpu/drm/msm/dsi/phy/dsi_phy_10nm.c
@@ -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>
diff --git a/drivers/gpu/drm/msm/dsi/phy/dsi_phy_14nm.c b/drivers/gpu/drm/msm/dsi/phy/dsi_phy_14nm.c
index 2c3cbe0f2870..3a1c8ece6657 100644
--- a/drivers/gpu/drm/msm/dsi/phy/dsi_phy_14nm.c
+++ b/drivers/gpu/drm/msm/dsi/phy/dsi_phy_14nm.c
@@ -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>
diff --git a/drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm.c b/drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm.c
index 1383e3a4e050..90348a2af3e9 100644
--- a/drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm.c
+++ b/drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm.c
@@ -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>
diff --git a/drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm_8960.c b/drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm_8960.c
index 5311ab7f3c70..f3643320ff2f 100644
--- a/drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm_8960.c
+++ b/drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm_8960.c
@@ -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>
diff --git a/drivers/gpu/drm/msm/dsi/phy/dsi_phy_7nm.c b/drivers/gpu/drm/msm/dsi/phy/dsi_phy_7nm.c
index ed8192d56b06..305042c29b2b 100644
--- a/drivers/gpu/drm/msm/dsi/phy/dsi_phy_7nm.c
+++ b/drivers/gpu/drm/msm/dsi/phy/dsi_phy_7nm.c
@@ -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>
--
2.43.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH 2/2] drm/msm/dsi/phy: Use the header with clock IDs
2025-01-27 13:21 ` [PATCH 2/2] drm/msm/dsi/phy: Use the header with " Krzysztof Kozlowski
@ 2025-01-27 13:54 ` Dmitry Baryshkov
2025-01-27 22:52 ` Stephen Boyd
1 sibling, 0 replies; 11+ messages in thread
From: Dmitry Baryshkov @ 2025-01-27 13:54 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Rob Clark, Abhinav Kumar, Sean Paul, Marijn Suijten,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
Simona Vetter, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Bjorn Andersson, Michael Turquette, Stephen Boyd,
Krishna Manikandan, linux-arm-msm, dri-devel, freedreno,
devicetree, linux-kernel, linux-clk
On Mon, Jan 27, 2025 at 02:21:05PM +0100, Krzysztof Kozlowski wrote:
> Use the header with clock IDs to bind the interface between driver and
> DTS.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
> drivers/gpu/drm/msm/dsi/phy/dsi_phy.h | 5 ++---
> drivers/gpu/drm/msm/dsi/phy/dsi_phy_10nm.c | 1 +
> drivers/gpu/drm/msm/dsi/phy/dsi_phy_14nm.c | 1 +
> drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm.c | 1 +
> drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm_8960.c | 1 +
> drivers/gpu/drm/msm/dsi/phy/dsi_phy_7nm.c | 1 +
> 6 files changed, 7 insertions(+), 3 deletions(-)
>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/2] dt-bindings: display/msm/dsi-phy: Add header with exposed clock IDs
2025-01-27 13:21 [PATCH 1/2] dt-bindings: display/msm/dsi-phy: Add header with exposed clock IDs Krzysztof Kozlowski
2025-01-27 13:21 ` [PATCH 2/2] drm/msm/dsi/phy: Use the header with " Krzysztof Kozlowski
@ 2025-01-27 13:56 ` Dmitry Baryshkov
2025-01-27 14:37 ` Krzysztof Kozlowski
2025-01-27 22:52 ` Stephen Boyd
` (2 subsequent siblings)
4 siblings, 1 reply; 11+ messages in thread
From: Dmitry Baryshkov @ 2025-01-27 13:56 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Rob Clark, Abhinav Kumar, Sean Paul, Marijn Suijten,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
Simona Vetter, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Bjorn Andersson, Michael Turquette, Stephen Boyd,
Krishna Manikandan, linux-arm-msm, dri-devel, freedreno,
devicetree, linux-kernel, linux-clk
On Mon, Jan 27, 2025 at 02:21:04PM +0100, Krzysztof Kozlowski wrote:
> DSI phys, from earliest (28 nm) up to newest (3 nm) generation, provide
> two clocks. The respective clock ID is used by drivers and DTS, so it
> should be documented as explicit ABI.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>
> ---
>
> Patch for Display tree, although with Ack from clock.
> ---
> .../devicetree/bindings/display/msm/dsi-phy-common.yaml | 2 ++
> MAINTAINERS | 1 +
> include/dt-bindings/clock/qcom,dsi-phy-28nm.h | 9 +++++++++
> 3 files changed, 12 insertions(+)
> create mode 100644 include/dt-bindings/clock/qcom,dsi-phy-28nm.h
>
> diff --git a/include/dt-bindings/clock/qcom,dsi-phy-28nm.h b/include/dt-bindings/clock/qcom,dsi-phy-28nm.h
> new file mode 100644
> index 000000000000..ab94d58377a1
> --- /dev/null
> +++ b/include/dt-bindings/clock/qcom,dsi-phy-28nm.h
I think this should be dt-bindings/phy/qcom,foo.h
Other than that LGTM
> @@ -0,0 +1,9 @@
> +/* SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause */
> +
> +#ifndef _DT_BINDINGS_CLK_QCOM_DSI_PHY_28NM_H
> +#define _DT_BINDINGS_CLK_QCOM_DSI_PHY_28NM_H
> +
> +#define DSI_BYTE_PLL_CLK 0
> +#define DSI_PIXEL_PLL_CLK 1
> +
> +#endif
> --
> 2.43.0
>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/2] dt-bindings: display/msm/dsi-phy: Add header with exposed clock IDs
2025-01-27 13:56 ` [PATCH 1/2] dt-bindings: display/msm/dsi-phy: Add header with exposed " Dmitry Baryshkov
@ 2025-01-27 14:37 ` Krzysztof Kozlowski
2025-01-28 12:05 ` Dmitry Baryshkov
0 siblings, 1 reply; 11+ messages in thread
From: Krzysztof Kozlowski @ 2025-01-27 14:37 UTC (permalink / raw)
To: Dmitry Baryshkov
Cc: Rob Clark, Abhinav Kumar, Sean Paul, Marijn Suijten,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
Simona Vetter, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Bjorn Andersson, Michael Turquette, Stephen Boyd,
Krishna Manikandan, linux-arm-msm, dri-devel, freedreno,
devicetree, linux-kernel, linux-clk
On 27/01/2025 14:56, Dmitry Baryshkov wrote:
> On Mon, Jan 27, 2025 at 02:21:04PM +0100, Krzysztof Kozlowski wrote:
>> DSI phys, from earliest (28 nm) up to newest (3 nm) generation, provide
>> two clocks. The respective clock ID is used by drivers and DTS, so it
>> should be documented as explicit ABI.
>>
>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>>
>> ---
>>
>> Patch for Display tree, although with Ack from clock.
>> ---
>> .../devicetree/bindings/display/msm/dsi-phy-common.yaml | 2 ++
>> MAINTAINERS | 1 +
>> include/dt-bindings/clock/qcom,dsi-phy-28nm.h | 9 +++++++++
>> 3 files changed, 12 insertions(+)
>> create mode 100644 include/dt-bindings/clock/qcom,dsi-phy-28nm.h
>>
>
>> diff --git a/include/dt-bindings/clock/qcom,dsi-phy-28nm.h b/include/dt-bindings/clock/qcom,dsi-phy-28nm.h
>> new file mode 100644
>> index 000000000000..ab94d58377a1
>> --- /dev/null
>> +++ b/include/dt-bindings/clock/qcom,dsi-phy-28nm.h
>
> I think this should be dt-bindings/phy/qcom,foo.h
Both options - clock or phy - work for me, although with slight
preference of keeping foo constants only in foo (so clock -> clock)
because then clock maintainer sees it as well. Also because I would
judge by type of constants (so again clock constants -> clock
directory), not type of device. We have several MFD devices, like PMICs,
which have a clock, so bindings should go to mfd? But mfd is not a real
device, but Linux subsystem.
For many other archs, e.g Mediatek, pretty often even for the same
device, the binding headers are split between clock and reset. I know
that Qualcomm GCC has it in one file, with exceptions (ipq, qca8k). Also
these other archs have bindings file in e.g. soc or arm, but the header
in respective subsystem
With exceptions of am654 and pisatchio-usb headers, we don't store clock
constants in phy.
Unless someone insists or there is existing qcom convention, then I
rather prefer to keep it in clock.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 2/2] drm/msm/dsi/phy: Use the header with clock IDs
2025-01-27 13:21 ` [PATCH 2/2] drm/msm/dsi/phy: Use the header with " Krzysztof Kozlowski
2025-01-27 13:54 ` Dmitry Baryshkov
@ 2025-01-27 22:52 ` Stephen Boyd
1 sibling, 0 replies; 11+ messages in thread
From: Stephen Boyd @ 2025-01-27 22:52 UTC (permalink / raw)
To: Abhinav Kumar, Bjorn Andersson, Conor Dooley, David Airlie,
Dmitry Baryshkov, Krishna Manikandan, Krzysztof Kozlowski,
Krzysztof Kozlowski, Maarten Lankhorst, Marijn Suijten,
Maxime Ripard, Michael Turquette, Rob Clark, Rob Herring,
Sean Paul, Simona Vetter, Thomas Zimmermann, devicetree,
dri-devel, freedreno, linux-arm-msm, linux-clk, linux-kernel
Cc: Krzysztof Kozlowski
Quoting Krzysztof Kozlowski (2025-01-27 05:21:05)
> diff --git a/drivers/gpu/drm/msm/dsi/phy/dsi_phy.h b/drivers/gpu/drm/msm/dsi/phy/dsi_phy.h
> index fdb6c648e16f..7541ffde6521 100644
> --- a/drivers/gpu/drm/msm/dsi/phy/dsi_phy.h
> +++ b/drivers/gpu/drm/msm/dsi/phy/dsi_phy.h
> @@ -6,6 +6,7 @@
> #ifndef __DSI_PHY_H__
> #define __DSI_PHY_H__
>
> +#include <dt-bindings/clock/qcom,dsi-phy-28nm.h>
It doesn't matter but I think most folks prefer putting the dt-bindings
after linux includes.
> #include <linux/clk-provider.h>
> #include <linux/delay.h>
> #include <linux/regulator/consumer.h>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/2] dt-bindings: display/msm/dsi-phy: Add header with exposed clock IDs
2025-01-27 13:21 [PATCH 1/2] dt-bindings: display/msm/dsi-phy: Add header with exposed clock IDs Krzysztof Kozlowski
2025-01-27 13:21 ` [PATCH 2/2] drm/msm/dsi/phy: Use the header with " Krzysztof Kozlowski
2025-01-27 13:56 ` [PATCH 1/2] dt-bindings: display/msm/dsi-phy: Add header with exposed " Dmitry Baryshkov
@ 2025-01-27 22:52 ` Stephen Boyd
2025-02-14 10:50 ` Krzysztof Kozlowski
2025-02-27 4:37 ` Dmitry Baryshkov
4 siblings, 0 replies; 11+ messages in thread
From: Stephen Boyd @ 2025-01-27 22:52 UTC (permalink / raw)
To: Abhinav Kumar, Bjorn Andersson, Conor Dooley, David Airlie,
Dmitry Baryshkov, Krishna Manikandan, Krzysztof Kozlowski,
Krzysztof Kozlowski, Maarten Lankhorst, Marijn Suijten,
Maxime Ripard, Michael Turquette, Rob Clark, Rob Herring,
Sean Paul, Simona Vetter, Thomas Zimmermann, devicetree,
dri-devel, freedreno, linux-arm-msm, linux-clk, linux-kernel
Cc: Krzysztof Kozlowski
Quoting Krzysztof Kozlowski (2025-01-27 05:21:04)
> DSI phys, from earliest (28 nm) up to newest (3 nm) generation, provide
> two clocks. The respective clock ID is used by drivers and DTS, so it
> should be documented as explicit ABI.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>
> ---
Acked-by: Stephen Boyd <sboyd@kernel.org>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/2] dt-bindings: display/msm/dsi-phy: Add header with exposed clock IDs
2025-01-27 14:37 ` Krzysztof Kozlowski
@ 2025-01-28 12:05 ` Dmitry Baryshkov
0 siblings, 0 replies; 11+ messages in thread
From: Dmitry Baryshkov @ 2025-01-28 12:05 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Rob Clark, Abhinav Kumar, Sean Paul, Marijn Suijten,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
Simona Vetter, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Bjorn Andersson, Michael Turquette, Stephen Boyd,
Krishna Manikandan, linux-arm-msm, dri-devel, freedreno,
devicetree, linux-kernel, linux-clk
On Mon, Jan 27, 2025 at 03:37:05PM +0100, Krzysztof Kozlowski wrote:
> On 27/01/2025 14:56, Dmitry Baryshkov wrote:
> > On Mon, Jan 27, 2025 at 02:21:04PM +0100, Krzysztof Kozlowski wrote:
> >> DSI phys, from earliest (28 nm) up to newest (3 nm) generation, provide
> >> two clocks. The respective clock ID is used by drivers and DTS, so it
> >> should be documented as explicit ABI.
> >>
> >> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> >>
> >> ---
> >>
> >> Patch for Display tree, although with Ack from clock.
> >> ---
> >> .../devicetree/bindings/display/msm/dsi-phy-common.yaml | 2 ++
> >> MAINTAINERS | 1 +
> >> include/dt-bindings/clock/qcom,dsi-phy-28nm.h | 9 +++++++++
> >> 3 files changed, 12 insertions(+)
> >> create mode 100644 include/dt-bindings/clock/qcom,dsi-phy-28nm.h
> >>
> >
> >> diff --git a/include/dt-bindings/clock/qcom,dsi-phy-28nm.h b/include/dt-bindings/clock/qcom,dsi-phy-28nm.h
> >> new file mode 100644
> >> index 000000000000..ab94d58377a1
> >> --- /dev/null
> >> +++ b/include/dt-bindings/clock/qcom,dsi-phy-28nm.h
> >
> > I think this should be dt-bindings/phy/qcom,foo.h
>
>
> Both options - clock or phy - work for me, although with slight
> preference of keeping foo constants only in foo (so clock -> clock)
> because then clock maintainer sees it as well. Also because I would
> judge by type of constants (so again clock constants -> clock
> directory), not type of device. We have several MFD devices, like PMICs,
> which have a clock, so bindings should go to mfd? But mfd is not a real
> device, but Linux subsystem.
>
> For many other archs, e.g Mediatek, pretty often even for the same
> device, the binding headers are split between clock and reset. I know
> that Qualcomm GCC has it in one file, with exceptions (ipq, qca8k). Also
> these other archs have bindings file in e.g. soc or arm, but the header
> in respective subsystem
>
> With exceptions of am654 and pisatchio-usb headers, we don't store clock
> constants in phy.
>
> Unless someone insists or there is existing qcom convention, then I
> rather prefer to keep it in clock.
Acked-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/2] dt-bindings: display/msm/dsi-phy: Add header with exposed clock IDs
2025-01-27 13:21 [PATCH 1/2] dt-bindings: display/msm/dsi-phy: Add header with exposed clock IDs Krzysztof Kozlowski
` (2 preceding siblings ...)
2025-01-27 22:52 ` Stephen Boyd
@ 2025-02-14 10:50 ` Krzysztof Kozlowski
2025-02-14 11:31 ` Dmitry Baryshkov
2025-02-27 4:37 ` Dmitry Baryshkov
4 siblings, 1 reply; 11+ messages in thread
From: Krzysztof Kozlowski @ 2025-02-14 10:50 UTC (permalink / raw)
To: Rob Clark, Abhinav Kumar, Dmitry Baryshkov, Sean Paul,
Marijn Suijten, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Simona Vetter, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Bjorn Andersson,
Michael Turquette, Stephen Boyd, Krishna Manikandan,
linux-arm-msm, dri-devel, freedreno, devicetree, linux-kernel,
linux-clk
On 27/01/2025 14:21, Krzysztof Kozlowski wrote:
> DSI phys, from earliest (28 nm) up to newest (3 nm) generation, provide
> two clocks. The respective clock ID is used by drivers and DTS, so it
> should be documented as explicit ABI.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>
> ---
>
> Patch for Display tree, although with Ack from clock.
Any more comments from DRM side? Can it be merged?
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/2] dt-bindings: display/msm/dsi-phy: Add header with exposed clock IDs
2025-02-14 10:50 ` Krzysztof Kozlowski
@ 2025-02-14 11:31 ` Dmitry Baryshkov
0 siblings, 0 replies; 11+ messages in thread
From: Dmitry Baryshkov @ 2025-02-14 11:31 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Rob Clark, Abhinav Kumar, Sean Paul, Marijn Suijten,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
Simona Vetter, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Bjorn Andersson, Michael Turquette, Stephen Boyd,
Krishna Manikandan, linux-arm-msm, dri-devel, freedreno,
devicetree, linux-kernel, linux-clk
On Fri, Feb 14, 2025 at 11:50:14AM +0100, Krzysztof Kozlowski wrote:
> On 27/01/2025 14:21, Krzysztof Kozlowski wrote:
> > DSI phys, from earliest (28 nm) up to newest (3 nm) generation, provide
> > two clocks. The respective clock ID is used by drivers and DTS, so it
> > should be documented as explicit ABI.
> >
> > Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> >
> > ---
> >
> > Patch for Display tree, although with Ack from clock.
>
>
> Any more comments from DRM side? Can it be merged?
Yes, it can.
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/2] dt-bindings: display/msm/dsi-phy: Add header with exposed clock IDs
2025-01-27 13:21 [PATCH 1/2] dt-bindings: display/msm/dsi-phy: Add header with exposed clock IDs Krzysztof Kozlowski
` (3 preceding siblings ...)
2025-02-14 10:50 ` Krzysztof Kozlowski
@ 2025-02-27 4:37 ` Dmitry Baryshkov
4 siblings, 0 replies; 11+ messages in thread
From: Dmitry Baryshkov @ 2025-02-27 4:37 UTC (permalink / raw)
To: Rob Clark, Abhinav Kumar, Sean Paul, Marijn Suijten,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
Simona Vetter, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Bjorn Andersson, Michael Turquette, Stephen Boyd,
Krishna Manikandan, linux-arm-msm, dri-devel, freedreno,
devicetree, linux-kernel, linux-clk, Krzysztof Kozlowski
On Mon, 27 Jan 2025 14:21:04 +0100, Krzysztof Kozlowski wrote:
> DSI phys, from earliest (28 nm) up to newest (3 nm) generation, provide
> two clocks. The respective clock ID is used by drivers and DTS, so it
> should be documented as explicit ABI.
>
>
Applied, thanks!
[1/2] dt-bindings: display/msm/dsi-phy: Add header with exposed clock IDs
https://gitlab.freedesktop.org/lumag/msm/-/commit/d1f28e30a525
[2/2] drm/msm/dsi/phy: Use the header with clock IDs
https://gitlab.freedesktop.org/lumag/msm/-/commit/5100ae76b5ab
Best regards,
--
Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2025-02-27 4:37 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-27 13:21 [PATCH 1/2] dt-bindings: display/msm/dsi-phy: Add header with exposed clock IDs Krzysztof Kozlowski
2025-01-27 13:21 ` [PATCH 2/2] drm/msm/dsi/phy: Use the header with " Krzysztof Kozlowski
2025-01-27 13:54 ` Dmitry Baryshkov
2025-01-27 22:52 ` Stephen Boyd
2025-01-27 13:56 ` [PATCH 1/2] dt-bindings: display/msm/dsi-phy: Add header with exposed " Dmitry Baryshkov
2025-01-27 14:37 ` Krzysztof Kozlowski
2025-01-28 12:05 ` Dmitry Baryshkov
2025-01-27 22:52 ` Stephen Boyd
2025-02-14 10:50 ` Krzysztof Kozlowski
2025-02-14 11:31 ` Dmitry Baryshkov
2025-02-27 4:37 ` Dmitry Baryshkov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox