Skip to contentSkip to conversation

arm64: dts: imx8mq: Init rates and parents configs for clocks

PATCH Superseded Abel Vesa 2 participants 3 messages Jul 3, 2019 – Jul 28, 2019

Subsystems (2)
lore
Share & tools
lore

Abel Vesa

author
#0 lore raw

PATCH v2 1/1 arm64: dts: imx8mq: Init rates and parents configs for clocks

Add the initial configuration for clocks that need default parent and rate setting. This is based on the vendor tree clock provider parents and rates configuration except this is doing the setup in dts rather then using clock consumer API in a clock provider driver.

---

Changes since v1:
- removed the PCIE and CSI clocks parent setting since that should be done from their driver, as suggested by Leonard.

 arch/arm64/boot/dts/freescale/imx8mq.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm64/boot/dts/freescale/imx8mq.dtsi +14 -0
index d09b808..c286f20 100644
@@ -489,6 +489,20 @@
 				clock-names = "ckil", "osc_25m", "osc_27m",
 				              "clk_ext1", "clk_ext2",
 				              "clk_ext3", "clk_ext4";
+				assigned-clocks = <&clk IMX8MQ_VIDEO_PLL1>,
+					<&clk IMX8MQ_CLK_AHB>,
+					<&clk IMX8MQ_CLK_NAND_USDHC_BUS>,
+					<&clk IMX8MQ_CLK_AUDIO_AHB>,
+					<&clk IMX8MQ_VIDEO_PLL1_REF_SEL>,
+					<&clk IMX8MQ_CLK_NOC>;
+				assigned-clock-parents = <0>,
+						<&clk IMX8MQ_SYS1_PLL_133M>,
+						<&clk IMX8MQ_SYS1_PLL_266M>,
+						<&clk IMX8MQ_SYS2_PLL_500M>,
+						<&clk IMX8MQ_CLK_27M>,
+						<&clk IMX8MQ_SYS1_PLL_800M>;
+				assigned-clock-rates = <593999999>;
+
 			};
 
 			src: reset-controller@30390000 {
Signature · 1 line
2.7.4
Acked-by on v2 1/1
#1 lore raw
Quoted 7 lines · Abel Vesa

Add the initial configuration for clocks that need default parent and rate setting. This is based on the vendor tree clock provider parents and rates configuration except this is doing the setup in dts rather then using clock consumer API in a clock provider driver.

For audio related clock:

Quoted 38 lines

---

Changes since v1:
- removed the PCIE and CSI clocks parent setting since that should be done from their driver, as suggested by Leonard.

 arch/arm64/boot/dts/freescale/imx8mq.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm64/boot/dts/freescale/imx8mq.dtsi +14 -1
index d09b808..c286f20 100644
@@ -489,6 +489,20 @@
                                clock-names = "ckil", "osc_25m", "osc_27m",
                                              "clk_ext1", "clk_ext2",
                                              "clk_ext3", "clk_ext4";
+                               assigned-clocks = <&clk IMX8MQ_VIDEO_PLL1>,
+                                       <&clk IMX8MQ_CLK_AHB>,
+                                       <&clk IMX8MQ_CLK_NAND_USDHC_BUS>,
+                                       <&clk IMX8MQ_CLK_AUDIO_AHB>,
+                                       <&clk IMX8MQ_VIDEO_PLL1_REF_SEL>,
+                                       <&clk IMX8MQ_CLK_NOC>;
+                               assigned-clock-parents = <0>,
+                                               <&clk IMX8MQ_SYS1_PLL_133M>,
+                                               <&clk IMX8MQ_SYS1_PLL_266M>,
+                                               <&clk IMX8MQ_SYS2_PLL_500M>,
+                                               <&clk IMX8MQ_CLK_27M>,
+                                               <&clk IMX8MQ_SYS1_PLL_800M>;
+                               assigned-clock-rates = <593999999>;
+
                        };
 
                        src: reset-controller@30390000 {
--

2.7.4

#2 lore raw
Quoted 8 lines · Daniel Baluta
Quoted 6 lines · Abel Vesa

Add the initial configuration for clocks that need default parent and rate setting. This is based on the vendor tree clock provider parents and rates configuration except this is doing the setup in dts rather then using clock consumer API in a clock provider driver.

Quoted 4 lines
Quoted 1 line

For audio related clock:

Shawn,

Please ignore this patch. I've added some improvements.

New patch is:
[PATCH v4] arm64: dts: imx8mq: Init rates and parents configs for clocks