aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Wang <sean.wang@mediatek.com>2018-02-17 14:54:41 -0500
committerMatthias Brugger <matthias.bgg@gmail.com>2018-03-11 15:28:32 -0400
commita5a80f78657f7d7b9b73bc67d0a18d5997c91168 (patch)
tree60643f17929e1c3eea047f38d5ada93c13549504
parentc4ff2adeb1be343545770df165acb2cc9513ac9a (diff)
arm64: dts: mt7622: add cpufreq related device nodes
Add clocks, regulators and opp information into cpu nodes. In addition, the power supply for cpu nodes is deployed on mt7622-rfb1 board. Signed-off-by: Sean Wang <sean.wang@mediatek.com> Cc: Viresh Kumar <viresh.kumar@linaro.org> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
-rw-r--r--arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts12
-rw-r--r--arch/arm64/boot/dts/mediatek/mt7622.dtsi52
2 files changed, 64 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts b/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts
index 42bd3a4c9a93..b3878656475c 100644
--- a/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts
+++ b/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts
@@ -20,6 +20,18 @@
20 bootargs = "console=ttyS0,115200n1"; 20 bootargs = "console=ttyS0,115200n1";
21 }; 21 };
22 22
23 cpus {
24 cpu@0 {
25 proc-supply = <&mt6380_vcpu_reg>;
26 sram-supply = <&mt6380_vm_reg>;
27 };
28
29 cpu@1 {
30 proc-supply = <&mt6380_vcpu_reg>;
31 sram-supply = <&mt6380_vm_reg>;
32 };
33 };
34
23 gpio-keys { 35 gpio-keys {
24 compatible = "gpio-keys-polled"; 36 compatible = "gpio-keys-polled";
25 poll-interval = <100>; 37 poll-interval = <100>;
diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622.dtsi
index 2f6b88a98f4c..b4e5d49f9193 100644
--- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi
@@ -18,6 +18,50 @@
18 #address-cells = <2>; 18 #address-cells = <2>;
19 #size-cells = <2>; 19 #size-cells = <2>;
20 20
21 cpu_opp_table: opp-table {
22 compatible = "operating-points-v2";
23 opp-shared;
24 opp-300000000 {
25 opp-hz = /bits/ 64 <30000000>;
26 opp-microvolt = <950000>;
27 };
28
29 opp-437500000 {
30 opp-hz = /bits/ 64 <437500000>;
31 opp-microvolt = <1000000>;
32 };
33
34 opp-600000000 {
35 opp-hz = /bits/ 64 <600000000>;
36 opp-microvolt = <1050000>;
37 };
38
39 opp-812500000 {
40 opp-hz = /bits/ 64 <812500000>;
41 opp-microvolt = <1100000>;
42 };
43
44 opp-1025000000 {
45 opp-hz = /bits/ 64 <1025000000>;
46 opp-microvolt = <1150000>;
47 };
48
49 opp-1137500000 {
50 opp-hz = /bits/ 64 <1137500000>;
51 opp-microvolt = <1200000>;
52 };
53
54 opp-1262500000 {
55 opp-hz = /bits/ 64 <1262500000>;
56 opp-microvolt = <1250000>;
57 };
58
59 opp-1350000000 {
60 opp-hz = /bits/ 64 <1350000000>;
61 opp-microvolt = <1310000>;
62 };
63 };
64
21 cpus { 65 cpus {
22 #address-cells = <2>; 66 #address-cells = <2>;
23 #size-cells = <0>; 67 #size-cells = <0>;
@@ -26,6 +70,10 @@
26 device_type = "cpu"; 70 device_type = "cpu";
27 compatible = "arm,cortex-a53", "arm,armv8"; 71 compatible = "arm,cortex-a53", "arm,armv8";
28 reg = <0x0 0x0>; 72 reg = <0x0 0x0>;
73 clocks = <&infracfg CLK_INFRA_MUX1_SEL>,
74 <&apmixedsys CLK_APMIXED_MAIN_CORE_EN>;
75 clock-names = "cpu", "intermediate";
76 operating-points-v2 = <&cpu_opp_table>;
29 enable-method = "psci"; 77 enable-method = "psci";
30 clock-frequency = <1300000000>; 78 clock-frequency = <1300000000>;
31 }; 79 };
@@ -34,6 +82,10 @@
34 device_type = "cpu"; 82 device_type = "cpu";
35 compatible = "arm,cortex-a53", "arm,armv8"; 83 compatible = "arm,cortex-a53", "arm,armv8";
36 reg = <0x0 0x1>; 84 reg = <0x0 0x1>;
85 clocks = <&infracfg CLK_INFRA_MUX1_SEL>,
86 <&apmixedsys CLK_APMIXED_MAIN_CORE_EN>;
87 clock-names = "cpu", "intermediate";
88 operating-points-v2 = <&cpu_opp_table>;
37 enable-method = "psci"; 89 enable-method = "psci";
38 clock-frequency = <1300000000>; 90 clock-frequency = <1300000000>;
39 }; 91 };