aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ipq806x
diff options
context:
space:
mode:
authorAnsuel Smith <ansuelsmth@gmail.com>2019-12-25 17:14:03 +0100
committerPetr Štetiar <ynezz@true.cz>2019-12-26 08:31:42 +0100
commitadc0bebd87404542bd4dc4b718a06b6afe6e642c (patch)
treefb1da6de5b640c2f4f1b5ca912ca02087560fa17 /target/linux/ipq806x
parente18f8e417fd1a5145940cd763f182d641aa62c56 (diff)
downloadupstream-adc0bebd87404542bd4dc4b718a06b6afe6e642c.tar.gz
upstream-adc0bebd87404542bd4dc4b718a06b6afe6e642c.tar.bz2
upstream-adc0bebd87404542bd4dc4b718a06b6afe6e642c.zip
ipq8064: update dtsi with new opp table
The new driver use opp table to register frequency. Drop psv bindings as they are not used anymore. Adds speedbin definition for nvmem driver Tested-by: Stefan Lippers-Hollmann <s.l-h@gmx.de> [nbg6817/ipq8065] Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Diffstat (limited to 'target/linux/ipq806x')
-rw-r--r--target/linux/ipq806x/files-4.19/arch/arm/boot/dts/qcom-ipq8064.dtsi124
1 files changed, 80 insertions, 44 deletions
diff --git a/target/linux/ipq806x/files-4.19/arch/arm/boot/dts/qcom-ipq8064.dtsi b/target/linux/ipq806x/files-4.19/arch/arm/boot/dts/qcom-ipq8064.dtsi
index 5cb4a5e78a..6074a507b8 100644
--- a/target/linux/ipq806x/files-4.19/arch/arm/boot/dts/qcom-ipq8064.dtsi
+++ b/target/linux/ipq806x/files-4.19/arch/arm/boot/dts/qcom-ipq8064.dtsi
@@ -25,12 +25,13 @@
device_type = "cpu";
reg = <0>;
next-level-cache = <&L2>;
- qcom,acc = <&acc0>;
+ qcom,acc = <&acpu0_aux>;
qcom,saw = <&saw0>;
clocks = <&kraitcc 0>, <&kraitcc 4>;
clock-names = "cpu", "l2";
clock-latency = <100000>;
cpu-supply = <&smb208_s2a>;
+ operating-points-v2 = <&opp_table0>;
voltage-tolerance = <5>;
cooling-min-state = <0>;
cooling-max-state = <10>;
@@ -44,12 +45,13 @@
device_type = "cpu";
reg = <1>;
next-level-cache = <&L2>;
- qcom,acc = <&acc1>;
+ qcom,acc = <&acpu1_aux>;
qcom,saw = <&saw1>;
clocks = <&kraitcc 1>, <&kraitcc 4>;
clock-names = "cpu", "l2";
clock-latency = <100000>;
cpu-supply = <&smb208_s2b>;
+ operating-points-v2 = <&opp_table0>;
voltage-tolerance = <5>;
cooling-min-state = <0>;
cooling-max-state = <10>;
@@ -79,6 +81,72 @@
};
};
+ opp_table0: opp_table0 {
+ compatible = "operating-points-v2-qcom-cpu";
+ nvmem-cells = <&speedbin_efuse>;
+
+ opp-384000000 {
+ opp-hz = /bits/ 64 <384000000>;
+ opp-microvolt-speed0-pvs0-v0 = <1000000>;
+ opp-microvolt-speed0-pvs1-v0 = <925000>;
+ opp-microvolt-speed0-pvs2-v0 = <875000>;
+ opp-microvolt-speed0-pvs3-v0 = <800000>;
+ opp-supported-hw = <0x1>;
+ clock-latency-ns = <100000>;
+ };
+
+ opp-600000000 {
+ opp-hz = /bits/ 64 <600000000>;
+ opp-microvolt-speed0-pvs0-v0 = <1050000>;
+ opp-microvolt-speed0-pvs1-v0 = <975000>;
+ opp-microvolt-speed0-pvs2-v0 = <925000>;
+ opp-microvolt-speed0-pvs3-v0 = <850000>;
+ opp-supported-hw = <0x1>;
+ clock-latency-ns = <100000>;
+ };
+
+ opp-800000000 {
+ opp-hz = /bits/ 64 <800000000>;
+ opp-microvolt-speed0-pvs0-v0 = <1100000>;
+ opp-microvolt-speed0-pvs1-v0 = <1025000>;
+ opp-microvolt-speed0-pvs2-v0 = <995000>;
+ opp-microvolt-speed0-pvs3-v0 = <900000>;
+ opp-supported-hw = <0x1>;
+ clock-latency-ns = <100000>;
+ };
+
+ opp-1000000000 {
+ opp-hz = /bits/ 64 <1000000000>;
+ opp-microvolt-speed0-pvs0-v0 = <1150000>;
+ opp-microvolt-speed0-pvs1-v0 = <1075000>;
+ opp-microvolt-speed0-pvs2-v0 = <1025000>;
+ opp-microvolt-speed0-pvs3-v0 = <950000>;
+ opp-supported-hw = <0x1>;
+ clock-latency-ns = <100000>;
+ };
+
+ opp-1200000000 {
+ opp-hz = /bits/ 64 <1200000000>;
+ opp-microvolt-speed0-pvs0-v0 = <1200000>;
+ opp-microvolt-speed0-pvs1-v0 = <1125000>;
+ opp-microvolt-speed0-pvs2-v0 = <1075000>;
+ opp-microvolt-speed0-pvs3-v0 = <1000000>;
+ opp-supported-hw = <0x1>;
+ clock-latency-ns = <100000>;
+ };
+
+ opp-1400000000 {
+ opp-hz = /bits/ 64 <1400000000>;
+ opp-microvolt-speed0-pvs0-v0 = <1250000>;
+ opp-microvolt-speed0-pvs1-v0 = <1175000>;
+ opp-microvolt-speed0-pvs2-v0 = <1125000>;
+ opp-microvolt-speed0-pvs3-v0 = <1050000>;
+ opp-supported-hw = <0x1>;
+ clock-latency-ns = <100000>;
+ };
+
+ };
+
thermal-zones {
tsens_tz_sensor0 {
polling-delay-passive = <0>;
@@ -481,46 +549,6 @@
};
};
- kraitcc: clock-controller {
- compatible = "qcom,krait-cc-v1";
- #clock-cells = <1>;
- };
-
- qcom,pvs {
- qcom,pvs-format-a;
- qcom,speed0-pvs0-bin-v0 =
- < 1400000000 1250000 >,
- < 1200000000 1200000 >,
- < 1000000000 1150000 >,
- < 800000000 1100000 >,
- < 600000000 1050000 >,
- < 384000000 1000000 >;
-
- qcom,speed0-pvs1-bin-v0 =
- < 1400000000 1175000 >,
- < 1200000000 1125000 >,
- < 1000000000 1075000 >,
- < 800000000 1025000 >,
- < 600000000 975000 >,
- < 384000000 925000 >;
-
- qcom,speed0-pvs2-bin-v0 =
- < 1400000000 1125000 >,
- < 1200000000 1075000 >,
- < 1000000000 1025000 >,
- < 800000000 995000 >,
- < 600000000 925000 >,
- < 384000000 875000 >;
-
- qcom,speed0-pvs3-bin-v0 =
- < 1400000000 1050000 >,
- < 1200000000 1000000 >,
- < 1000000000 950000 >,
- < 800000000 900000 >,
- < 600000000 850000 >,
- < 384000000 800000 >;
- };
-
soc: soc {
#address-cells = <1>;
#size-cells = <1>;
@@ -554,6 +582,9 @@
tsens_backup: backup@410 {
reg = <0x410 0x10>;
};
+ speedbin_efuse: speedbin@0c0 {
+ reg = <0x0c0 0x4>;
+ };
};
rpm@108000 {
@@ -716,13 +747,13 @@
cpu-offset = <0x80000>;
};
- acc0: clock-controller@2088000 {
+ acpu0_aux: clock-controller@2088000 {
compatible = "qcom,kpss-acc-v1";
reg = <0x02088000 0x1000>, <0x02008000 0x1000>;
clock-output-names = "acpu0_aux";
};
- acc1: clock-controller@2098000 {
+ acpu1_aux: clock-controller@2098000 {
compatible = "qcom,kpss-acc-v1";
reg = <0x02098000 0x1000>, <0x02008000 0x1000>;
clock-output-names = "acpu1_aux";
@@ -734,6 +765,11 @@
clock-output-names = "acpu_l2_aux";
};
+ kraitcc: clock-controller {
+ compatible = "qcom,krait-cc-v1";
+ #clock-cells = <1>;
+ };
+
saw0: regulator@2089000 {
compatible = "qcom,saw2", "qcom,apq8064-saw2-v1.1-cpu", "syscon";
reg = <0x02089000 0x1000>, <0x02009000 0x1000>;