* [PATCH 0/2] clk: imx8mp: clock names and clock source fixes @ 2022-06-03 15:15 Andrey Zhizhikin 2022-06-03 15:15 ` [PATCH 1/2] clk: imx8mp: fix root clock names for ecspi Andrey Zhizhikin 2022-06-03 15:15 ` [PATCH 2/2] clk: imx8mp: use usb_core_ref for usb_root_clk Andrey Zhizhikin 0 siblings, 2 replies; 8+ messages in thread From: Andrey Zhizhikin @ 2022-06-03 15:15 UTC (permalink / raw) To: u-boot; +Cc: lukma, seanga2, ealbert, festevam, marex, Andrey Zhizhikin This series addresses few fixes for clock sub-system for i.MX8MP SOC. One is dealing with incorrect names used, while the second one addresses root clock selection which has been apparently omitted during merge and caused the warning to be reported during boot. Andrey Zhizhikin (2): clk: imx8mp: fix root clock names for ecspi clk: imx8mp: use usb_core_ref for usb_root_clk drivers/clk/imx/clk-imx8mp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) base-commit: 3053b781465711fd05b88ab141b1f2b55a875516 -- 2.25.1 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 1/2] clk: imx8mp: fix root clock names for ecspi 2022-06-03 15:15 [PATCH 0/2] clk: imx8mp: clock names and clock source fixes Andrey Zhizhikin @ 2022-06-03 15:15 ` Andrey Zhizhikin 2022-06-03 15:52 ` Fabio Estevam 2022-06-15 11:11 ` sbabic 2022-06-03 15:15 ` [PATCH 2/2] clk: imx8mp: use usb_core_ref for usb_root_clk Andrey Zhizhikin 1 sibling, 2 replies; 8+ messages in thread From: Andrey Zhizhikin @ 2022-06-03 15:15 UTC (permalink / raw) To: u-boot Cc: lukma, seanga2, ealbert, festevam, marex, Andrey Zhizhikin, Peng Fan, Stefano Babic, uboot-imx Root clock name contained underscore, which does not match to the actual clock name. Correct the name to match what is present in the FDT. Fixes: 87f958810fcb ("clk: imx8mp: Add ECSPI clocks") Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com> Cc: Fabio Estevam <festevam@denx.de> Cc: Peng Fan <peng.fan@nxp.com> Cc: Stefano Babic <sbabic@denx.de> Cc: uboot-imx <uboot-imx@nxp.com> --- drivers/clk/imx/clk-imx8mp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/clk/imx/clk-imx8mp.c b/drivers/clk/imx/clk-imx8mp.c index ac727b7e40..cbed86a684 100644 --- a/drivers/clk/imx/clk-imx8mp.c +++ b/drivers/clk/imx/clk-imx8mp.c @@ -122,15 +122,15 @@ static const char *imx8mp_gic_sels[] = {"clock-osc-24m", "sys_pll2_200m", "sys_p "sys_pll2_100m", "sys_pll1_800m", "sys_pll2_500m", "clk_ext4", "audio_pll2_out" }; -static const char *imx8mp_ecspi1_sels[] = {"clock-osc_24m", "sys_pll2_200m", "sys_pll1_40m", +static const char *imx8mp_ecspi1_sels[] = {"clock-osc-24m", "sys_pll2_200m", "sys_pll1_40m", "sys_pll1_160m", "sys_pll1_800m", "sys_pll3_out", "sys_pll2_250m", "audio_pll2_out", }; -static const char *imx8mp_ecspi2_sels[] = {"clock-osc_24m", "sys_pll2_200m", "sys_pll1_40m", +static const char *imx8mp_ecspi2_sels[] = {"clock-osc-24m", "sys_pll2_200m", "sys_pll1_40m", "sys_pll1_160m", "sys_pll1_800m", "sys_pll3_out", "sys_pll2_250m", "audio_pll2_out", }; -static const char *imx8mp_ecspi3_sels[] = {"clock-osc_24m", "sys_pll2_200m", "sys_pll1_40m", +static const char *imx8mp_ecspi3_sels[] = {"clock-osc-24m", "sys_pll2_200m", "sys_pll1_40m", "sys_pll1_160m", "sys_pll1_800m", "sys_pll3_out", "sys_pll2_250m", "audio_pll2_out", }; -- 2.25.1 ^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH 1/2] clk: imx8mp: fix root clock names for ecspi 2022-06-03 15:15 ` [PATCH 1/2] clk: imx8mp: fix root clock names for ecspi Andrey Zhizhikin @ 2022-06-03 15:52 ` Fabio Estevam 2022-06-15 11:11 ` sbabic 1 sibling, 0 replies; 8+ messages in thread From: Fabio Estevam @ 2022-06-03 15:52 UTC (permalink / raw) To: Andrey Zhizhikin Cc: u-boot, lukma, seanga2, ealbert, marex, Peng Fan, Stefano Babic, uboot-imx On 03/06/2022 12:15, Andrey Zhizhikin wrote: > Root clock name contained underscore, which does not match to the > actual > clock name. > > Correct the name to match what is present in the FDT. > > Fixes: 87f958810fcb ("clk: imx8mp: Add ECSPI clocks") > Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com> > Cc: Fabio Estevam <festevam@denx.de> > Cc: Peng Fan <peng.fan@nxp.com> > Cc: Stefano Babic <sbabic@denx.de> > Cc: uboot-imx <uboot-imx@nxp.com> Reviewed-by: Fabio Estevam <festevam@denx.de> ^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 1/2] clk: imx8mp: fix root clock names for ecspi 2022-06-03 15:15 ` [PATCH 1/2] clk: imx8mp: fix root clock names for ecspi Andrey Zhizhikin 2022-06-03 15:52 ` Fabio Estevam @ 2022-06-15 11:11 ` sbabic 1 sibling, 0 replies; 8+ messages in thread From: sbabic @ 2022-06-15 11:11 UTC (permalink / raw) To: Andrey Zhizhikin, u-boot > Root clock name contained underscore, which does not match to the actual > clock name. > Correct the name to match what is present in the FDT. > Fixes: 87f958810fcb ("clk: imx8mp: Add ECSPI clocks") > Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com> > Cc: Fabio Estevam <festevam@denx.de> > Cc: Peng Fan <peng.fan@nxp.com> > Cc: Stefano Babic <sbabic@denx.de> > Cc: uboot-imx <uboot-imx@nxp.com> > Reviewed-by: Fabio Estevam <festevam@denx.de> Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic@denx.de ===================================================================== ^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 2/2] clk: imx8mp: use usb_core_ref for usb_root_clk 2022-06-03 15:15 [PATCH 0/2] clk: imx8mp: clock names and clock source fixes Andrey Zhizhikin 2022-06-03 15:15 ` [PATCH 1/2] clk: imx8mp: fix root clock names for ecspi Andrey Zhizhikin @ 2022-06-03 15:15 ` Andrey Zhizhikin 2022-06-03 15:53 ` Fabio Estevam ` (2 more replies) 1 sibling, 3 replies; 8+ messages in thread From: Andrey Zhizhikin @ 2022-06-03 15:15 UTC (permalink / raw) To: u-boot Cc: lukma, seanga2, ealbert, festevam, marex, Andrey Zhizhikin, Peng Fan, Stefano Babic Upstream commit 7a2c3be95a50 ("clk: imx8mp: Fill in DWC3 USB, USB PHY, HSIOMIX clock") added usb_core_ref for USB Controller but never set it to be used as a clock source, using rather "osc_32k" instead. This produces following boot log message: "clk_register: failed to get osc_32k device (parent of usb_root_clk)" Fix the USB controller clock source by using usb_core_ref instead of osc_32k. Fixes: 7a2c3be95a50 ("clk: imx8mp: Fill in DWC3 USB, USB PHY, HSIOMIX clock") Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com> Cc: Fabio Estevam <festevam@denx.de> Cc: Peng Fan <peng.fan@nxp.com> Cc: Stefano Babic <sbabic@denx.de> --- drivers/clk/imx/clk-imx8mp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-imx8mp.c b/drivers/clk/imx/clk-imx8mp.c index cbed86a684..ffbc1d1ba9 100644 --- a/drivers/clk/imx/clk-imx8mp.c +++ b/drivers/clk/imx/clk-imx8mp.c @@ -300,7 +300,7 @@ static int imx8mp_clk_probe(struct udevice *dev) clk_dm(IMX8MP_CLK_UART2_ROOT, imx_clk_gate4("uart2_root_clk", "uart2", base + 0x44a0, 0)); clk_dm(IMX8MP_CLK_UART3_ROOT, imx_clk_gate4("uart3_root_clk", "uart3", base + 0x44b0, 0)); clk_dm(IMX8MP_CLK_UART4_ROOT, imx_clk_gate4("uart4_root_clk", "uart4", base + 0x44c0, 0)); - clk_dm(IMX8MP_CLK_USB_ROOT, imx_clk_gate4("usb_root_clk", "osc_32k", base + 0x44d0, 0)); + clk_dm(IMX8MP_CLK_USB_ROOT, imx_clk_gate4("usb_root_clk", "usb_core_ref", base + 0x44d0, 0)); clk_dm(IMX8MP_CLK_USB_PHY_ROOT, imx_clk_gate4("usb_phy_root_clk", "usb_phy_ref", base + 0x44f0, 0)); clk_dm(IMX8MP_CLK_USDHC1_ROOT, imx_clk_gate4("usdhc1_root_clk", "usdhc1", base + 0x4510, 0)); clk_dm(IMX8MP_CLK_USDHC2_ROOT, imx_clk_gate4("usdhc2_root_clk", "usdhc2", base + 0x4520, 0)); -- 2.25.1 ^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH 2/2] clk: imx8mp: use usb_core_ref for usb_root_clk 2022-06-03 15:15 ` [PATCH 2/2] clk: imx8mp: use usb_core_ref for usb_root_clk Andrey Zhizhikin @ 2022-06-03 15:53 ` Fabio Estevam 2022-06-04 11:52 ` Tommaso Merciai 2022-06-15 11:11 ` sbabic 2 siblings, 0 replies; 8+ messages in thread From: Fabio Estevam @ 2022-06-03 15:53 UTC (permalink / raw) To: Andrey Zhizhikin Cc: u-boot, lukma, seanga2, ealbert, marex, Peng Fan, Stefano Babic On 03/06/2022 12:15, Andrey Zhizhikin wrote: > Upstream commit 7a2c3be95a50 ("clk: imx8mp: Fill in DWC3 USB, USB PHY, > HSIOMIX clock") added usb_core_ref for USB Controller but never set it > to be used as a clock source, using rather "osc_32k" instead. > > This produces following boot log message: > "clk_register: failed to get osc_32k device (parent of usb_root_clk)" > > Fix the USB controller clock source by using usb_core_ref instead of > osc_32k. > > Fixes: 7a2c3be95a50 ("clk: imx8mp: Fill in DWC3 USB, USB PHY, HSIOMIX > clock") > Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com> > Cc: Fabio Estevam <festevam@denx.de> > Cc: Peng Fan <peng.fan@nxp.com> > Cc: Stefano Babic <sbabic@denx.de> Reviewed-by: Fabio Estevam <festevam@denx.de> ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 2/2] clk: imx8mp: use usb_core_ref for usb_root_clk 2022-06-03 15:15 ` [PATCH 2/2] clk: imx8mp: use usb_core_ref for usb_root_clk Andrey Zhizhikin 2022-06-03 15:53 ` Fabio Estevam @ 2022-06-04 11:52 ` Tommaso Merciai 2022-06-15 11:11 ` sbabic 2 siblings, 0 replies; 8+ messages in thread From: Tommaso Merciai @ 2022-06-04 11:52 UTC (permalink / raw) To: Andrey Zhizhikin Cc: U-Boot Mailing List, Lukasz Majewski, Sean Anderson, ealbert, Fabio Estevam, Marek Vasut, Peng Fan, Stefano Babic On Fri, Jun 3, 2022, 17:16 Andrey Zhizhikin < andrey.zhizhikin@leica-geosystems.com> wrote: > Upstream commit 7a2c3be95a50 ("clk: imx8mp: Fill in DWC3 USB, USB PHY, > HSIOMIX clock") added usb_core_ref for USB Controller but never set it > to be used as a clock source, using rather "osc_32k" instead. > > This produces following boot log message: > "clk_register: failed to get osc_32k device (parent of usb_root_clk)" > > Fix the USB controller clock source by using usb_core_ref instead of > osc_32k. > > Fixes: 7a2c3be95a50 ("clk: imx8mp: Fill in DWC3 USB, USB PHY, HSIOMIX > clock") > Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com> > Cc: Fabio Estevam <festevam@denx.de> > Cc: Peng Fan <peng.fan@nxp.com> > Cc: Stefano Babic <sbabic@denx.de> > --- > drivers/clk/imx/clk-imx8mp.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/clk/imx/clk-imx8mp.c b/drivers/clk/imx/clk-imx8mp.c > index cbed86a684..ffbc1d1ba9 100644 > --- a/drivers/clk/imx/clk-imx8mp.c > +++ b/drivers/clk/imx/clk-imx8mp.c > @@ -300,7 +300,7 @@ static int imx8mp_clk_probe(struct udevice *dev) > clk_dm(IMX8MP_CLK_UART2_ROOT, imx_clk_gate4("uart2_root_clk", > "uart2", base + 0x44a0, 0)); > clk_dm(IMX8MP_CLK_UART3_ROOT, imx_clk_gate4("uart3_root_clk", > "uart3", base + 0x44b0, 0)); > clk_dm(IMX8MP_CLK_UART4_ROOT, imx_clk_gate4("uart4_root_clk", > "uart4", base + 0x44c0, 0)); > - clk_dm(IMX8MP_CLK_USB_ROOT, imx_clk_gate4("usb_root_clk", > "osc_32k", base + 0x44d0, 0)); > + clk_dm(IMX8MP_CLK_USB_ROOT, imx_clk_gate4("usb_root_clk", > "usb_core_ref", base + 0x44d0, 0)); > clk_dm(IMX8MP_CLK_USB_PHY_ROOT, imx_clk_gate4("usb_phy_root_clk", > "usb_phy_ref", base + 0x44f0, 0)); > clk_dm(IMX8MP_CLK_USDHC1_ROOT, imx_clk_gate4("usdhc1_root_clk", > "usdhc1", base + 0x4510, 0)); > clk_dm(IMX8MP_CLK_USDHC2_ROOT, imx_clk_gate4("usdhc2_root_clk", > "usdhc2", base + 0x4520, 0)); > -- > 2.25.1 > > Reviewed-by: Tommaso Merciai <tommaso.merciai@amarulasolutions.com> ^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 2/2] clk: imx8mp: use usb_core_ref for usb_root_clk 2022-06-03 15:15 ` [PATCH 2/2] clk: imx8mp: use usb_core_ref for usb_root_clk Andrey Zhizhikin 2022-06-03 15:53 ` Fabio Estevam 2022-06-04 11:52 ` Tommaso Merciai @ 2022-06-15 11:11 ` sbabic 2 siblings, 0 replies; 8+ messages in thread From: sbabic @ 2022-06-15 11:11 UTC (permalink / raw) To: Andrey Zhizhikin, u-boot > Upstream commit 7a2c3be95a50 ("clk: imx8mp: Fill in DWC3 USB, USB PHY, > HSIOMIX clock") added usb_core_ref for USB Controller but never set it > to be used as a clock source, using rather "osc_32k" instead. > This produces following boot log message: > "clk_register: failed to get osc_32k device (parent of usb_root_clk)" > Fix the USB controller clock source by using usb_core_ref instead of > osc_32k. > Fixes: 7a2c3be95a50 ("clk: imx8mp: Fill in DWC3 USB, USB PHY, HSIOMIX clock") > Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com> > Cc: Fabio Estevam <festevam@denx.de> > Cc: Peng Fan <peng.fan@nxp.com> > Cc: Stefano Babic <sbabic@denx.de> > Reviewed-by: Fabio Estevam <festevam@denx.de> Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic@denx.de ===================================================================== ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2022-06-15 11:12 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2022-06-03 15:15 [PATCH 0/2] clk: imx8mp: clock names and clock source fixes Andrey Zhizhikin 2022-06-03 15:15 ` [PATCH 1/2] clk: imx8mp: fix root clock names for ecspi Andrey Zhizhikin 2022-06-03 15:52 ` Fabio Estevam 2022-06-15 11:11 ` sbabic 2022-06-03 15:15 ` [PATCH 2/2] clk: imx8mp: use usb_core_ref for usb_root_clk Andrey Zhizhikin 2022-06-03 15:53 ` Fabio Estevam 2022-06-04 11:52 ` Tommaso Merciai 2022-06-15 11:11 ` sbabic
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox