linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] arm64: dts: imx93: clk update
@ 2022-08-03  9:51 Peng Fan (OSS)
  2022-08-03  9:51 ` [PATCH 1/2] arm64: dts: imx93: assign the correct ipg/ahb clock for usdhc Peng Fan (OSS)
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Peng Fan (OSS) @ 2022-08-03  9:51 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, shawnguo, s.hauer, devicetree,
	linux-arm-kernel, linux-kernel
  Cc: kernel, festevam, linux-imx, Peng Fan

From: Peng Fan <peng.fan@nxp.com>

Correct sdhc clk
Add gpio clk

Haibo Chen (1):
  arm64: dts: imx93: assign the correct ipg/ahb clock for usdhc

Peng Fan (1):
  arm64: dts: imx93: add gpio clk

 arch/arm64/boot/dts/freescale/imx93.dtsi | 27 ++++++++++++++++++------
 1 file changed, 21 insertions(+), 6 deletions(-)

-- 
2.25.1


_______________________________________________
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] 4+ messages in thread

* [PATCH 1/2] arm64: dts: imx93: assign the correct ipg/ahb clock for usdhc
  2022-08-03  9:51 [PATCH 0/2] arm64: dts: imx93: clk update Peng Fan (OSS)
@ 2022-08-03  9:51 ` Peng Fan (OSS)
  2022-08-03  9:51 ` [PATCH 2/2] arm64: dts: imx93: add gpio clk Peng Fan (OSS)
  2022-08-03  9:51 ` [PATCH 0/2] arm64: dts: imx93: clk update Peng Fan
  2 siblings, 0 replies; 4+ messages in thread
From: Peng Fan (OSS) @ 2022-08-03  9:51 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, shawnguo, s.hauer, devicetree,
	linux-arm-kernel, linux-kernel
  Cc: kernel, festevam, linux-imx, Haibo Chen, Jacky Bai, Peng Fan

From: Haibo Chen <haibo.chen@nxp.com>

Assign the correct ipg/ahb clock for usdhc according to CCM.
Also config IMX93_CLK_USDHC1 to 400MHz to support eMMC HS400ES mode.

Fixes: ec8b5b5058ea ("arm64: dts: freescale: Add i.MX93 dtsi support")
Acked-by: Jacky Bai <ping.bai@nxp.com>
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 arch/arm64/boot/dts/freescale/imx93.dtsi | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/arch/arm64/boot/dts/freescale/imx93.dtsi b/arch/arm64/boot/dts/freescale/imx93.dtsi
index f83a07c7c9b1..7d812897aa38 100644
--- a/arch/arm64/boot/dts/freescale/imx93.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx93.dtsi
@@ -248,10 +248,13 @@ usdhc1: mmc@42850000 {
 				compatible = "fsl,imx93-usdhc", "fsl,imx8mm-usdhc";
 				reg = <0x42850000 0x10000>;
 				interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
-				clocks = <&clk IMX93_CLK_DUMMY>,
-					 <&clk IMX93_CLK_DUMMY>,
+				clocks = <&clk IMX93_CLK_BUS_WAKEUP>,
+					 <&clk IMX93_CLK_WAKEUP_AXI>,
 					 <&clk IMX93_CLK_USDHC1_GATE>;
 				clock-names = "ipg", "ahb", "per";
+				assigned-clocks = <&clk IMX93_CLK_USDHC1>;
+				assigned-clock-parents = <&clk IMX93_CLK_SYS_PLL_PFD1>;
+				assigned-clock-rates = <400000000>;
 				bus-width = <8>;
 				fsl,tuning-start-tap = <20>;
 				fsl,tuning-step= <2>;
@@ -262,8 +265,8 @@ usdhc2: mmc@42860000 {
 				compatible = "fsl,imx93-usdhc", "fsl,imx8mm-usdhc";
 				reg = <0x42860000 0x10000>;
 				interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
-				clocks = <&clk IMX93_CLK_DUMMY>,
-					 <&clk IMX93_CLK_DUMMY>,
+				clocks = <&clk IMX93_CLK_BUS_WAKEUP>,
+					 <&clk IMX93_CLK_WAKEUP_AXI>,
 					 <&clk IMX93_CLK_USDHC2_GATE>;
 				clock-names = "ipg", "ahb", "per";
 				bus-width = <4>;
@@ -276,8 +279,8 @@ usdhc3: mmc@428b0000 {
 				compatible = "fsl,imx93-usdhc", "fsl,imx8mm-usdhc";
 				reg = <0x428b0000 0x10000>;
 				interrupts = <GIC_SPI 205 IRQ_TYPE_LEVEL_HIGH>;
-				clocks = <&clk IMX93_CLK_DUMMY>,
-					 <&clk IMX93_CLK_DUMMY>,
+				clocks = <&clk IMX93_CLK_BUS_WAKEUP>,
+					 <&clk IMX93_CLK_WAKEUP_AXI>,
 					 <&clk IMX93_CLK_USDHC3_GATE>;
 				clock-names = "ipg", "ahb", "per";
 				bus-width = <4>;
-- 
2.25.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] 4+ messages in thread

* [PATCH 2/2] arm64: dts: imx93: add gpio clk
  2022-08-03  9:51 [PATCH 0/2] arm64: dts: imx93: clk update Peng Fan (OSS)
  2022-08-03  9:51 ` [PATCH 1/2] arm64: dts: imx93: assign the correct ipg/ahb clock for usdhc Peng Fan (OSS)
@ 2022-08-03  9:51 ` Peng Fan (OSS)
  2022-08-03  9:51 ` [PATCH 0/2] arm64: dts: imx93: clk update Peng Fan
  2 siblings, 0 replies; 4+ messages in thread
From: Peng Fan (OSS) @ 2022-08-03  9:51 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, shawnguo, s.hauer, devicetree,
	linux-arm-kernel, linux-kernel
  Cc: kernel, festevam, linux-imx, Peng Fan, Jacky Bai

From: Peng Fan <peng.fan@nxp.com>

Add the GPIO clk, otherwise GPIO may not work if clk driver disable the
GPIO clk during kernel boot.

Fixes: ec8b5b5058ea ("arm64: dts: freescale: Add i.MX93 dtsi support")
Reviewed-by: Jacky Bai <ping.bai@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 arch/arm64/boot/dts/freescale/imx93.dtsi | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx93.dtsi b/arch/arm64/boot/dts/freescale/imx93.dtsi
index 7d812897aa38..37996a82bfe7 100644
--- a/arch/arm64/boot/dts/freescale/imx93.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx93.dtsi
@@ -298,6 +298,9 @@ gpio2: gpio@43810080 {
 			interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
 			interrupt-controller;
 			#interrupt-cells = <2>;
+			clocks = <&clk IMX93_CLK_GPIO2_GATE>,
+				 <&clk IMX93_CLK_GPIO2_GATE>;
+			clock-names = "gpio", "port";
 			gpio-ranges = <&iomuxc 0 32 32>;
 		};
 
@@ -309,6 +312,9 @@ gpio3: gpio@43820080 {
 			interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>;
 			interrupt-controller;
 			#interrupt-cells = <2>;
+			clocks = <&clk IMX93_CLK_GPIO3_GATE>,
+				 <&clk IMX93_CLK_GPIO3_GATE>;
+			clock-names = "gpio", "port";
 			gpio-ranges = <&iomuxc 0 64 32>;
 		};
 
@@ -320,6 +326,9 @@ gpio4: gpio@43830080 {
 			interrupts = <GIC_SPI 189 IRQ_TYPE_LEVEL_HIGH>;
 			interrupt-controller;
 			#interrupt-cells = <2>;
+			clocks = <&clk IMX93_CLK_GPIO4_GATE>,
+				 <&clk IMX93_CLK_GPIO4_GATE>;
+			clock-names = "gpio", "port";
 			gpio-ranges = <&iomuxc 0 96 32>;
 		};
 
@@ -331,6 +340,9 @@ gpio1: gpio@47400080 {
 			interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
 			interrupt-controller;
 			#interrupt-cells = <2>;
+			clocks = <&clk IMX93_CLK_GPIO1_GATE>,
+				 <&clk IMX93_CLK_GPIO1_GATE>;
+			clock-names = "gpio", "port";
 			gpio-ranges = <&iomuxc 0 0 32>;
 		};
 	};
-- 
2.25.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] 4+ messages in thread

* RE: [PATCH 0/2] arm64: dts: imx93: clk update
  2022-08-03  9:51 [PATCH 0/2] arm64: dts: imx93: clk update Peng Fan (OSS)
  2022-08-03  9:51 ` [PATCH 1/2] arm64: dts: imx93: assign the correct ipg/ahb clock for usdhc Peng Fan (OSS)
  2022-08-03  9:51 ` [PATCH 2/2] arm64: dts: imx93: add gpio clk Peng Fan (OSS)
@ 2022-08-03  9:51 ` Peng Fan
  2 siblings, 0 replies; 4+ messages in thread
From: Peng Fan @ 2022-08-03  9:51 UTC (permalink / raw)
  To: Peng Fan (OSS),
	robh+dt, krzysztof.kozlowski+dt, shawnguo, s.hauer, devicetree,
	linux-arm-kernel, linux-kernel
  Cc: kernel, festevam, dl-linux-imx

> Subject: [PATCH 0/2] arm64: dts: imx93: clk update

Please ignore this version, push button too early.

Thanks,
Peng.
> 
> From: Peng Fan <peng.fan@nxp.com>
> 
> Correct sdhc clk
> Add gpio clk
> 
> Haibo Chen (1):
>   arm64: dts: imx93: assign the correct ipg/ahb clock for usdhc
> 
> Peng Fan (1):
>   arm64: dts: imx93: add gpio clk
> 
>  arch/arm64/boot/dts/freescale/imx93.dtsi | 27 ++++++++++++++++++------
>  1 file changed, 21 insertions(+), 6 deletions(-)
> 
> --
> 2.25.1


_______________________________________________
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] 4+ messages in thread

end of thread, other threads:[~2022-08-03 10:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-03  9:51 [PATCH 0/2] arm64: dts: imx93: clk update Peng Fan (OSS)
2022-08-03  9:51 ` [PATCH 1/2] arm64: dts: imx93: assign the correct ipg/ahb clock for usdhc Peng Fan (OSS)
2022-08-03  9:51 ` [PATCH 2/2] arm64: dts: imx93: add gpio clk Peng Fan (OSS)
2022-08-03  9:51 ` [PATCH 0/2] arm64: dts: imx93: clk update Peng Fan

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).