* [PATCH 4/4] imx93_evk: defconfig: enable clock driver
@ 2023-10-16 16:46 sbabic
0 siblings, 0 replies; 2+ messages in thread
From: sbabic @ 2023-10-16 16:46 UTC (permalink / raw)
To: Sébastien Szymanski, u-boot
> Add clocks nodes in u-boot.dtsi file.
> Remove init_uart_clk() call.
> Signed-off-by: Sébastien Szymanski <sebastien.szymanski@armadeus.com>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic@denx.de
=====================================================================
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 0/4] clk: imx: add i.MX93 CCF driver
@ 2023-07-25 8:08 Sébastien Szymanski
2023-07-25 8:08 ` [PATCH 4/4] imx93_evk: defconfig: enable clock driver Sébastien Szymanski
0 siblings, 1 reply; 2+ messages in thread
From: Sébastien Szymanski @ 2023-07-25 8:08 UTC (permalink / raw)
To: u-boot
Cc: Stefano Babic, Fabio Estevam, NXP i . MX U-Boot Team, Peng Fan,
Lukasz Majewski, Sean Anderson, Ye Li, Alice Guo,
Sébastien Szymanski
This series adds i.MX93 CCF driver, modifed from Linux kernel 6.5-rc2
and adapted for U-Boot.
Patches 2 and 3 come from NXP U-Boot.
A boot log and a dump of the clock tree are available at the following
URL:
https://pastebin.com/7WbubSXK
Alice Guo (1):
arm: dts: imx93: add a per clock for LPUART1
Sébastien Szymanski (2):
clk: imx: add i.MX93 CCF driver
imx93_evk: defconfig: enable clock driver
Ye Li (1):
serial: lpuart: Enable IPG clock
arch/arm/dts/imx93-11x11-evk-u-boot.dtsi | 23 ++
arch/arm/dts/imx93.dtsi | 4 +-
board/freescale/imx93_evk/imx93_evk.c | 2 -
configs/imx93_11x11_evk_defconfig | 2 +
drivers/clk/imx/Kconfig | 18 ++
drivers/clk/imx/Makefile | 2 +
drivers/clk/imx/clk-composite-93.c | 142 +++++++++
drivers/clk/imx/clk-fracn-gppll.c | 382 +++++++++++++++++++++++
drivers/clk/imx/clk-gate-93.c | 148 +++++++++
drivers/clk/imx/clk-imx93.c | 343 ++++++++++++++++++++
drivers/clk/imx/clk.h | 42 +++
drivers/serial/serial_lpuart.c | 14 +-
include/dt-bindings/clock/imx93-clock.h | 6 +-
13 files changed, 1122 insertions(+), 6 deletions(-)
create mode 100644 drivers/clk/imx/clk-composite-93.c
create mode 100644 drivers/clk/imx/clk-fracn-gppll.c
create mode 100644 drivers/clk/imx/clk-gate-93.c
create mode 100644 drivers/clk/imx/clk-imx93.c
--
2.41.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 4/4] imx93_evk: defconfig: enable clock driver
2023-07-25 8:08 [PATCH 0/4] clk: imx: add i.MX93 CCF driver Sébastien Szymanski
@ 2023-07-25 8:08 ` Sébastien Szymanski
0 siblings, 0 replies; 2+ messages in thread
From: Sébastien Szymanski @ 2023-07-25 8:08 UTC (permalink / raw)
To: u-boot
Cc: Stefano Babic, Fabio Estevam, NXP i . MX U-Boot Team, Peng Fan,
Lukasz Majewski, Sean Anderson, Ye Li, Alice Guo,
Sébastien Szymanski
Add clocks nodes in u-boot.dtsi file.
Remove init_uart_clk() call.
Signed-off-by: Sébastien Szymanski <sebastien.szymanski@armadeus.com>
---
arch/arm/dts/imx93-11x11-evk-u-boot.dtsi | 23 +++++++++++++++++++++++
board/freescale/imx93_evk/imx93_evk.c | 2 --
configs/imx93_11x11_evk_defconfig | 2 ++
3 files changed, 25 insertions(+), 2 deletions(-)
diff --git a/arch/arm/dts/imx93-11x11-evk-u-boot.dtsi b/arch/arm/dts/imx93-11x11-evk-u-boot.dtsi
index 5b465e2dbd9d..93b4d91e4c39 100644
--- a/arch/arm/dts/imx93-11x11-evk-u-boot.dtsi
+++ b/arch/arm/dts/imx93-11x11-evk-u-boot.dtsi
@@ -126,3 +126,26 @@
bootph-pre-ram;
status = "okay";
};
+
+&clk {
+ bootph-all;
+ bootph-pre-ram;
+ /delete-property/ assigned-clocks;
+ /delete-property/ assigned-clock-rates;
+ /delete-property/ assigned-clock-parents;
+};
+
+&osc_32k {
+ bootph-all;
+ bootph-pre-ram;
+};
+
+&osc_24m {
+ bootph-all;
+ bootph-pre-ram;
+};
+
+&clk_ext1 {
+ bootph-all;
+ bootph-pre-ram;
+};
diff --git a/board/freescale/imx93_evk/imx93_evk.c b/board/freescale/imx93_evk/imx93_evk.c
index e73a498733be..f4297f8fd4d4 100644
--- a/board/freescale/imx93_evk/imx93_evk.c
+++ b/board/freescale/imx93_evk/imx93_evk.c
@@ -33,8 +33,6 @@ int board_early_init_f(void)
{
imx_iomux_v3_setup_multiple_pads(uart_pads, ARRAY_SIZE(uart_pads));
- init_uart_clk(LPUART1_CLK_ROOT);
-
return 0;
}
diff --git a/configs/imx93_11x11_evk_defconfig b/configs/imx93_11x11_evk_defconfig
index a480a71246b7..38c645ce733e 100644
--- a/configs/imx93_11x11_evk_defconfig
+++ b/configs/imx93_11x11_evk_defconfig
@@ -83,6 +83,8 @@ CONFIG_REGMAP=y
CONFIG_SYSCON=y
CONFIG_ADC=y
CONFIG_ADC_IMX93=y
+CONFIG_SPL_CLK_IMX93=y
+CONFIG_CLK_IMX93=y
CONFIG_CPU=y
CONFIG_CPU_IMX=y
CONFIG_IMX_RGPIO2P=y
--
2.41.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-10-16 16:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-16 16:46 [PATCH 4/4] imx93_evk: defconfig: enable clock driver sbabic
-- strict thread matches above, loose matches on Subject: below --
2023-07-25 8:08 [PATCH 0/4] clk: imx: add i.MX93 CCF driver Sébastien Szymanski
2023-07-25 8:08 ` [PATCH 4/4] imx93_evk: defconfig: enable clock driver Sébastien Szymanski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox