* [PATCH v3 1/3] ARM: dts: imx6sx: Remove LDB endpoint
@ 2023-07-12 11:52 Fabio Estevam
2023-07-12 11:53 ` [PATCH v3 2/3] ARM: dts: imx6sx: Describe the default LCDIF1 parent Fabio Estevam
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Fabio Estevam @ 2023-07-12 11:52 UTC (permalink / raw)
To: shawnguo
Cc: hs, linux-arm-kernel, sboyd, abelvesa, linux-clk, Fabio Estevam,
stable
From: Fabio Estevam <festevam@denx.de>
Remove the LDB endpoint description from the common imx6sx.dtsi
as it causes regression for boards that has the LCDIF connected
directly to a parallel display.
Let the LDB endpoint be described in the board devicetree file
instead.
Cc: stable@vger.kernel.org
Fixes: b74edf626c4f ("ARM: dts: imx6sx: Add LDB support")
Signed-off-by: Fabio Estevam <festevam@denx.de>
---
Changes since v2:
- Rebased against 6.5-rc1.
arch/arm/boot/dts/nxp/imx/imx6sx.dtsi | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/arch/arm/boot/dts/nxp/imx/imx6sx.dtsi b/arch/arm/boot/dts/nxp/imx/imx6sx.dtsi
index 3a4308666552..41c900929758 100644
--- a/arch/arm/boot/dts/nxp/imx/imx6sx.dtsi
+++ b/arch/arm/boot/dts/nxp/imx/imx6sx.dtsi
@@ -863,7 +863,6 @@ port@0 {
reg = <0>;
ldb_from_lcdif1: endpoint {
- remote-endpoint = <&lcdif1_to_ldb>;
};
};
@@ -1309,11 +1308,8 @@ lcdif1: lcdif@2220000 {
power-domains = <&pd_disp>;
status = "disabled";
- ports {
- port {
- lcdif1_to_ldb: endpoint {
- remote-endpoint = <&ldb_from_lcdif1>;
- };
+ port {
+ lcdif1_to_ldb: endpoint {
};
};
};
--
2.34.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 7+ messages in thread* [PATCH v3 2/3] ARM: dts: imx6sx: Describe the default LCDIF1 parent
2023-07-12 11:52 [PATCH v3 1/3] ARM: dts: imx6sx: Remove LDB endpoint Fabio Estevam
@ 2023-07-12 11:53 ` Fabio Estevam
2023-07-30 3:13 ` Shawn Guo
2023-07-12 11:53 ` [PATCH v3 3/3] clk: imx: imx6sx: Remove hardcoded " Fabio Estevam
2023-07-30 3:12 ` [PATCH v3 1/3] ARM: dts: imx6sx: Remove LDB endpoint Shawn Guo
2 siblings, 1 reply; 7+ messages in thread
From: Fabio Estevam @ 2023-07-12 11:53 UTC (permalink / raw)
To: shawnguo; +Cc: hs, linux-arm-kernel, sboyd, abelvesa, linux-clk, Fabio Estevam
From: Fabio Estevam <festevam@denx.de>
A suitable default for the LCDIF parent is the PLL5 clock, so
describe it in the device tree.
The imx6sx clock driver harcodes PLL5 as the LCDIF1 parent, but
in preparation for removing such hardcoding, describe the parent
relationship via devicetree.
There are some boards that may want to use a different parent
for the LCDIF due to EMI reasons, for example.
With this approch, the user can change the LCDIF parent in the board
devicetree if needed.
Signed-off-by: Fabio Estevam <festevam@denx.de>
---
Changes since v2:
- Rebased against 6.5-rc1.
arch/arm/boot/dts/nxp/imx/imx6sx.dtsi | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm/boot/dts/nxp/imx/imx6sx.dtsi b/arch/arm/boot/dts/nxp/imx/imx6sx.dtsi
index 41c900929758..0d549e1f3ced 100644
--- a/arch/arm/boot/dts/nxp/imx/imx6sx.dtsi
+++ b/arch/arm/boot/dts/nxp/imx/imx6sx.dtsi
@@ -1305,6 +1305,10 @@ lcdif1: lcdif@2220000 {
<&clks IMX6SX_CLK_LCDIF_APB>,
<&clks IMX6SX_CLK_DISPLAY_AXI>;
clock-names = "pix", "axi", "disp_axi";
+ assigned-clocks = <&clks IMX6SX_CLK_LCDIF1_PRE_SEL>,
+ <&clks IMX6SX_CLK_LCDIF1_SEL>;
+ assigned-clock-parents = <&clks IMX6SX_CLK_PLL5_VIDEO_DIV>,
+ <&clks IMX6SX_CLK_LCDIF1_PODF>;
power-domains = <&pd_disp>;
status = "disabled";
--
2.34.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 7+ messages in thread* Re: [PATCH v3 2/3] ARM: dts: imx6sx: Describe the default LCDIF1 parent
2023-07-12 11:53 ` [PATCH v3 2/3] ARM: dts: imx6sx: Describe the default LCDIF1 parent Fabio Estevam
@ 2023-07-30 3:13 ` Shawn Guo
0 siblings, 0 replies; 7+ messages in thread
From: Shawn Guo @ 2023-07-30 3:13 UTC (permalink / raw)
To: Fabio Estevam
Cc: hs, linux-arm-kernel, sboyd, abelvesa, linux-clk, Fabio Estevam
On Wed, Jul 12, 2023 at 08:53:00AM -0300, Fabio Estevam wrote:
> From: Fabio Estevam <festevam@denx.de>
>
> A suitable default for the LCDIF parent is the PLL5 clock, so
> describe it in the device tree.
>
> The imx6sx clock driver harcodes PLL5 as the LCDIF1 parent, but
> in preparation for removing such hardcoding, describe the parent
> relationship via devicetree.
>
> There are some boards that may want to use a different parent
> for the LCDIF due to EMI reasons, for example.
>
> With this approch, the user can change the LCDIF parent in the board
> devicetree if needed.
>
> Signed-off-by: Fabio Estevam <festevam@denx.de>
Applied, thanks!
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH v3 3/3] clk: imx: imx6sx: Remove hardcoded LCDIF1 parent
2023-07-12 11:52 [PATCH v3 1/3] ARM: dts: imx6sx: Remove LDB endpoint Fabio Estevam
2023-07-12 11:53 ` [PATCH v3 2/3] ARM: dts: imx6sx: Describe the default LCDIF1 parent Fabio Estevam
@ 2023-07-12 11:53 ` Fabio Estevam
2023-08-15 12:34 ` Fabio Estevam
2023-07-30 3:12 ` [PATCH v3 1/3] ARM: dts: imx6sx: Remove LDB endpoint Shawn Guo
2 siblings, 1 reply; 7+ messages in thread
From: Fabio Estevam @ 2023-07-12 11:53 UTC (permalink / raw)
To: shawnguo; +Cc: hs, linux-arm-kernel, sboyd, abelvesa, linux-clk, Fabio Estevam
From: Fabio Estevam <festevam@denx.de>
It is not a good idea to hardcode the LCDIF1 parent inside the
clock driver because some users may want to use a different clock
parent for LCDIF1. One of the reasons could be related to EMI tests.
Remove the harcoded LCDIF1 parent as this is better described via
devicetree.
Signed-off-by: Fabio Estevam <festevam@denx.de>
---
Changes since v2:
- Rebased against 6.5-rc1.
drivers/clk/imx/clk-imx6sx.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/clk/imx/clk-imx6sx.c b/drivers/clk/imx/clk-imx6sx.c
index 3f1502933e59..b110258b9036 100644
--- a/drivers/clk/imx/clk-imx6sx.c
+++ b/drivers/clk/imx/clk-imx6sx.c
@@ -498,10 +498,6 @@ static void __init imx6sx_clocks_init(struct device_node *ccm_node)
clk_set_parent(hws[IMX6SX_CLK_EIM_SLOW_SEL]->clk, hws[IMX6SX_CLK_PLL2_PFD2]->clk);
clk_set_rate(hws[IMX6SX_CLK_EIM_SLOW]->clk, 132000000);
- /* set parent clock for LCDIF1 pixel clock */
- clk_set_parent(hws[IMX6SX_CLK_LCDIF1_PRE_SEL]->clk, hws[IMX6SX_CLK_PLL5_VIDEO_DIV]->clk);
- clk_set_parent(hws[IMX6SX_CLK_LCDIF1_SEL]->clk, hws[IMX6SX_CLK_LCDIF1_PODF]->clk);
-
/* Set the parent clks of PCIe lvds1 and pcie_axi to be pcie ref, axi */
if (clk_set_parent(hws[IMX6SX_CLK_LVDS1_SEL]->clk, hws[IMX6SX_CLK_PCIE_REF_125M]->clk))
pr_err("Failed to set pcie bus parent clk.\n");
--
2.34.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 7+ messages in thread* Re: [PATCH v3 3/3] clk: imx: imx6sx: Remove hardcoded LCDIF1 parent
2023-07-12 11:53 ` [PATCH v3 3/3] clk: imx: imx6sx: Remove hardcoded " Fabio Estevam
@ 2023-08-15 12:34 ` Fabio Estevam
2023-08-15 12:49 ` Fabio Estevam
0 siblings, 1 reply; 7+ messages in thread
From: Fabio Estevam @ 2023-08-15 12:34 UTC (permalink / raw)
To: shawnguo, abelvesa; +Cc: hs, linux-arm-kernel, sboyd, linux-clk, Fabio Estevam
Hi Abel,
On Wed, Jul 12, 2023 at 8:53 AM Fabio Estevam <festevam@gmail.com> wrote:
>
> From: Fabio Estevam <festevam@denx.de>
>
> It is not a good idea to hardcode the LCDIF1 parent inside the
> clock driver because some users may want to use a different clock
> parent for LCDIF1. One of the reasons could be related to EMI tests.
>
> Remove the harcoded LCDIF1 parent as this is better described via
> devicetree.
>
> Signed-off-by: Fabio Estevam <festevam@denx.de>
> ---
> Changes since v2:
> - Rebased against 6.5-rc1.
Shawn has already applied patches 1/3 and 2/3.
Could this one go via your tree, please?
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v3 3/3] clk: imx: imx6sx: Remove hardcoded LCDIF1 parent
2023-08-15 12:34 ` Fabio Estevam
@ 2023-08-15 12:49 ` Fabio Estevam
0 siblings, 0 replies; 7+ messages in thread
From: Fabio Estevam @ 2023-08-15 12:49 UTC (permalink / raw)
To: shawnguo, abelvesa; +Cc: hs, linux-arm-kernel, sboyd, linux-clk, Fabio Estevam
On Tue, Aug 15, 2023 at 9:34 AM Fabio Estevam <festevam@gmail.com> wrote:
>
> Hi Abel,
>
> On Wed, Jul 12, 2023 at 8:53 AM Fabio Estevam <festevam@gmail.com> wrote:
> >
> > From: Fabio Estevam <festevam@denx.de>
> >
> > It is not a good idea to hardcode the LCDIF1 parent inside the
> > clock driver because some users may want to use a different clock
> > parent for LCDIF1. One of the reasons could be related to EMI tests.
> >
> > Remove the harcoded LCDIF1 parent as this is better described via
> > devicetree.
> >
> > Signed-off-by: Fabio Estevam <festevam@denx.de>
> > ---
> > Changes since v2:
> > - Rebased against 6.5-rc1.
>
> Shawn has already applied patches 1/3 and 2/3.
>
> Could this one go via your tree, please?
Actually, please discard this one. I missed adding the following
suggestion from Stephen:
"Do you need to check for the DT property and skip these clk_set_parent()
calls if they're present? How does this work if the DT isn't updated at
the same time?"
I will revisit this after 6.6-rc1 is out.
Thanks
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v3 1/3] ARM: dts: imx6sx: Remove LDB endpoint
2023-07-12 11:52 [PATCH v3 1/3] ARM: dts: imx6sx: Remove LDB endpoint Fabio Estevam
2023-07-12 11:53 ` [PATCH v3 2/3] ARM: dts: imx6sx: Describe the default LCDIF1 parent Fabio Estevam
2023-07-12 11:53 ` [PATCH v3 3/3] clk: imx: imx6sx: Remove hardcoded " Fabio Estevam
@ 2023-07-30 3:12 ` Shawn Guo
2 siblings, 0 replies; 7+ messages in thread
From: Shawn Guo @ 2023-07-30 3:12 UTC (permalink / raw)
To: Fabio Estevam
Cc: hs, linux-arm-kernel, sboyd, abelvesa, linux-clk, Fabio Estevam,
stable
On Wed, Jul 12, 2023 at 08:52:59AM -0300, Fabio Estevam wrote:
> From: Fabio Estevam <festevam@denx.de>
>
> Remove the LDB endpoint description from the common imx6sx.dtsi
> as it causes regression for boards that has the LCDIF connected
> directly to a parallel display.
>
> Let the LDB endpoint be described in the board devicetree file
> instead.
>
> Cc: stable@vger.kernel.org
> Fixes: b74edf626c4f ("ARM: dts: imx6sx: Add LDB support")
> Signed-off-by: Fabio Estevam <festevam@denx.de>
Applied, thanks!
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2023-08-15 12:50 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-12 11:52 [PATCH v3 1/3] ARM: dts: imx6sx: Remove LDB endpoint Fabio Estevam
2023-07-12 11:53 ` [PATCH v3 2/3] ARM: dts: imx6sx: Describe the default LCDIF1 parent Fabio Estevam
2023-07-30 3:13 ` Shawn Guo
2023-07-12 11:53 ` [PATCH v3 3/3] clk: imx: imx6sx: Remove hardcoded " Fabio Estevam
2023-08-15 12:34 ` Fabio Estevam
2023-08-15 12:49 ` Fabio Estevam
2023-07-30 3:12 ` [PATCH v3 1/3] ARM: dts: imx6sx: Remove LDB endpoint Shawn Guo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).