diff mbox series

[v3,12/12] arm64: dts: exynosautov9: switch ufs clock node

Message ID 20220504075154.58819-13-chanho61.park@samsung.com
State Superseded
Headers show
Series initial clock support for exynosauto v9 SoC | expand

Commit Message

Chanho Park May 4, 2022, 7:51 a.m. UTC
Use cmu_fsys's clock node instead of dummy ufs clock node.

Signed-off-by: Chanho Park <chanho61.park@samsung.com>
---
 arch/arm64/boot/dts/exynos/exynosautov9.dtsi | 14 ++------------
 1 file changed, 2 insertions(+), 12 deletions(-)

Comments

Chanwoo Choi May 4, 2022, 1:07 p.m. UTC | #1
On 22. 5. 4. 16:51, Chanho Park wrote:
> Use cmu_fsys's clock node instead of dummy ufs clock node.
> 
> Signed-off-by: Chanho Park <chanho61.park@samsung.com>
> ---
>   arch/arm64/boot/dts/exynos/exynosautov9.dtsi | 14 ++------------
>   1 file changed, 2 insertions(+), 12 deletions(-)
> 
> diff --git a/arch/arm64/boot/dts/exynos/exynosautov9.dtsi b/arch/arm64/boot/dts/exynos/exynosautov9.dtsi
> index 68335fefa5f3..a8818b92e217 100644
> --- a/arch/arm64/boot/dts/exynos/exynosautov9.dtsi
> +++ b/arch/arm64/boot/dts/exynos/exynosautov9.dtsi
> @@ -157,16 +157,6 @@ xtcxo: clock {
>   			clock-frequency = <26000000>;
>   			clock-output-names = "oscclk";
>   		};
> -
> -		/*
> -		 * Keep the stub clock for ufs driver, until proper clock
> -		 * driver is implemented.
> -		 */
> -		ufs_core_clock: ufs-core-clock {
> -			compatible = "fixed-clock";
> -			#clock-cells = <0>;
> -			clock-frequency = <166562500>;
> -		};
>   	};
>   
>   	soc: soc@0 {
> @@ -383,8 +373,8 @@ ufs_0: ufs0@17e00000 {
>   				<0x17dc0000 0x2200>;  /* 3: UFS protector */
>   			reg-names = "hci", "vs_hci", "unipro", "ufsp";
>   			interrupts = <GIC_SPI 227 IRQ_TYPE_LEVEL_HIGH>;
> -			clocks = <&ufs_core_clock>,
> -				<&ufs_core_clock>;
> +			clocks = <&cmu_fsys2 CLK_GOUT_FSYS2_UFS_EMBD0_ACLK>,
> +				 <&cmu_fsys2 CLK_GOUT_FSYS2_UFS_EMBD0_UNIPRO>;
>   			clock-names = "core_clk", "sclk_unipro_main";
>   			freq-table-hz = <0 0>, <0 0>;
>   			pinctrl-names = "default";

Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Krzysztof Kozlowski May 5, 2022, 7:08 a.m. UTC | #2
On Wed, 4 May 2022 16:51:54 +0900, Chanho Park wrote:
> Use cmu_fsys's clock node instead of dummy ufs clock node.
> 
> 

Applied, thanks!

[12/12] arm64: dts: exynosautov9: switch ufs clock node
        commit: 9882948322874b1ffdd559e6887397de4c903440

Best regards,
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/exynos/exynosautov9.dtsi b/arch/arm64/boot/dts/exynos/exynosautov9.dtsi
index 68335fefa5f3..a8818b92e217 100644
--- a/arch/arm64/boot/dts/exynos/exynosautov9.dtsi
+++ b/arch/arm64/boot/dts/exynos/exynosautov9.dtsi
@@ -157,16 +157,6 @@  xtcxo: clock {
 			clock-frequency = <26000000>;
 			clock-output-names = "oscclk";
 		};
-
-		/*
-		 * Keep the stub clock for ufs driver, until proper clock
-		 * driver is implemented.
-		 */
-		ufs_core_clock: ufs-core-clock {
-			compatible = "fixed-clock";
-			#clock-cells = <0>;
-			clock-frequency = <166562500>;
-		};
 	};
 
 	soc: soc@0 {
@@ -383,8 +373,8 @@  ufs_0: ufs0@17e00000 {
 				<0x17dc0000 0x2200>;  /* 3: UFS protector */
 			reg-names = "hci", "vs_hci", "unipro", "ufsp";
 			interrupts = <GIC_SPI 227 IRQ_TYPE_LEVEL_HIGH>;
-			clocks = <&ufs_core_clock>,
-				<&ufs_core_clock>;
+			clocks = <&cmu_fsys2 CLK_GOUT_FSYS2_UFS_EMBD0_ACLK>,
+				 <&cmu_fsys2 CLK_GOUT_FSYS2_UFS_EMBD0_UNIPRO>;
 			clock-names = "core_clk", "sclk_unipro_main";
 			freq-table-hz = <0 0>, <0 0>;
 			pinctrl-names = "default";