Skip to contentSkip to conversation

clk: mediatek: remove deprecated CLK_INFRA_CA57SEL for MT8173 SoC

PATCH RESEND Applied Seiya Wang 2 participants 3 messages Jun 1, 2021 – Jun 4, 2021

Subsystems (4)
lore
Share & tools
lore

Seiya Wang

author
#0 lore raw

PATCH RESEND 1/2 clk: mediatek: remove deprecated CLK_INFRA_CA57SEL for MT8173 SoC

Remove CLK_INFRA_CA57SEL for MT8173 since it's no longer used.

---
 include/dt-bindings/clock/mt8173-clk.h | 1 -
 1 file changed, 1 deletion(-)
include/dt-bindings/clock/mt8173-clk.h +0 -1
index 3acebe937bfc..3d00c98b9654 100644
@@ -186,7 +186,6 @@
 #define CLK_INFRA_PMICWRAP		11
 #define CLK_INFRA_CLK_13M		12
 #define CLK_INFRA_CA53SEL               13
-#define CLK_INFRA_CA57SEL               14 /* Deprecated. Don't use it. */
 #define CLK_INFRA_CA72SEL               14
 #define CLK_INFRA_NR_CLK                15
 
Signature · 1 line
2.14.1
author
#1 lore raw

PATCH RESEND 2/2 dt-bindings: cpufreq: update cpu type and clock name for MT8173 SoC

Update the cpu type of cpu2 and cpu3 since MT8173 used Cortex-a72.

---
 Documentation/devicetree/bindings/cpufreq/cpufreq-mediatek.txt | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
Documentation/devicetree/bindings/cpufreq/cpufreq-mediatek.txt +4 -4
index ea4994b35207..ef68711716fb 100644
@@ -202,11 +202,11 @@ Example 2 (MT8173 SoC):
 
 	cpu2: cpu@100 {
 		device_type = "cpu";
-		compatible = "arm,cortex-a57";
+		compatible = "arm,cortex-a72";
 		reg = <0x100>;
 		enable-method = "psci";
 		cpu-idle-states = <&CPU_SLEEP_0>;
-		clocks = <&infracfg CLK_INFRA_CA57SEL>,
+		clocks = <&infracfg CLK_INFRA_CA72SEL>,
 			 <&apmixedsys CLK_APMIXED_MAINPLL>;
 		clock-names = "cpu", "intermediate";
 		operating-points-v2 = <&cpu_opp_table_b>;
@@ -214,11 +214,11 @@ Example 2 (MT8173 SoC):
 
 	cpu3: cpu@101 {
 		device_type = "cpu";
-		compatible = "arm,cortex-a57";
+		compatible = "arm,cortex-a72";
 		reg = <0x101>;
 		enable-method = "psci";
 		cpu-idle-states = <&CPU_SLEEP_0>;
-		clocks = <&infracfg CLK_INFRA_CA57SEL>,
+		clocks = <&infracfg CLK_INFRA_CA72SEL>,
 			 <&apmixedsys CLK_APMIXED_MAINPLL>;
 		clock-names = "cpu", "intermediate";
 		operating-points-v2 = <&cpu_opp_table_b>;
Signature · 1 line
2.14.1
maintainer Applied
#2 lore raw
In reply to Seiya Wang
Quoted 14 lines · Seiya Wang

Remove CLK_INFRA_CA57SEL for MT8173 since it's no longer used.

---
 include/dt-bindings/clock/mt8173-clk.h | 1 -
 1 file changed, 1 deletion(-)
include/dt-bindings/clock/mt8173-clk.h +0 -0
index 3acebe937bfc..3d00c98b9654 100644

include/dt-bindings/clock/mt8173-clk.h line 190

Quoted 6 lines
include/dt-bindings/clock/mt8173-clk.h +0 -1
@@ -186,7 +186,6 @@
 #define CLK_INFRA_PMICWRAP		11
 #define CLK_INFRA_CLK_13M		12
 #define CLK_INFRA_CA53SEL               13
-#define CLK_INFRA_CA57SEL               14 /* Deprecated. Don't use it. */
 #define CLK_INFRA_CA72SEL               14
 #define CLK_INFRA_NR_CLK                15

Applied both. Thanks.

Signature · 1 line
viresh