ARM: i.MX6Q clocks: Fix CKIH clock name
PATCH v2 1/1 ARM: i.MX6Q clocks: Fix CKIH clock name
i.MX6Q have only one High-frequency reference clock (CKIH). Patch removes index from CKIH and makes name according datasheet. This is just a cosmetic fix and since this clock currently is not used by any DTS, change should be safe.
--- arch/arm/boot/dts/imx6qdl.dtsi | 4 ++-- arch/arm/mach-imx/clk-imx6q.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
arch/arm/boot/dts/imx6qdl.dtsi +2 -2
@@ -54,8 +54,8 @@ clock-frequency = <32768>; }; - ckih1 { - compatible = "fsl,imx-ckih1", "fixed-clock"; + ckih { + compatible = "fsl,imx-ckih", "fixed-clock"; clock-frequency = <0>; };
arch/arm/mach-imx/clk-imx6q.c +1 -1
@@ -292,7 +292,7 @@ static void __init imx6q_clocks_init(struct device_node *ccm_node) clk[dummy] =imx_clk_fixed ("dummy" ,0 ); clk[ckil] =imx_obtain_fixed_clock ("ckil" ,0 ); - clk[ckih] =imx_obtain_fixed_clock ("ckih1" ,0 ); + clk[ckih] =imx_obtain_fixed_clock ("ckih" ,0 ); clk[osc] =imx_obtain_fixed_clock ("osc" ,0 ); np =of_find_compatible_node (NULL ,NULL ,"fsl,imx6q-anatop" );
Signature · 1 line
1.8.1.5
PATCH v2 1/1 ARM: i.MX6Q clocks: Fix CKIH clock name
Quoted 31 lines · Alexander Shiyan
i.MX6Q have only one High-frequency reference clock (CKIH). Patch removes index from CKIH and makes name according datasheet. This is just a cosmetic fix and since this clock currently is not used by any DTS, change should be safe.
Signed-off-by Alexander Shiyan <[email protected]>--- arch/arm/boot/dts/imx6qdl.dtsi | 4 ++-- arch/arm/mach-imx/clk-imx6q.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)arch/arm/boot/dts/imx6qdl.dtsi +2
-2@@ -54,8 +54,8 @@ clock-frequency = <32768>; }; - ckih1 { - compatible = "fsl,imx-ckih1", "fixed-clock"; + ckih { + compatible = "fsl,imx-ckih", "fixed-clock"; clock-frequency = <0>; };arch/arm/mach-imx/clk-imx6q.c +0
-0
arch/arm/mach-imx/clk-imx6q.c static void __init imx6q_clocks_init(struct device_node *ccm_node) · line 295
Quoted 5 lines
arch/arm/mach-imx/clk-imx6q.c +1
-1@@ -292,7 +292,7 @@ static void __init imx6q_clocks_init(struct device_node *ccm_node) clk[dummy] =imx_clk_fixed ("dummy" ,0 ); clk[ckil] =imx_obtain_fixed_clock ("ckil" ,0 ); - clk[ckih] =imx_obtain_fixed_clock ("ckih1" ,0 ); + clk[ckih] =imx_obtain_fixed_clock ("ckih" ,0 );
We're entering a stage where we need to consider the device tree compatibility. Since imx_obtain_fixed_clock() will try to look for the node using full path, the change will break the support for existing device tree.
Shawn
Quoted 6 lines
arch/arm/mach-imx/clk-imx6q.c +0
-0clk[osc] =imx_obtain_fixed_clock ("osc" ,0 ); np =of_find_compatible_node (NULL ,NULL ,"fsl,imx6q-anatop" );Signature · 1 line
1.8.1.5