Skip to content

Commit

Permalink
ARM64: dts: migrate changes from dtbo to dtb
Browse files Browse the repository at this point in the history
* The following changes are moved to dtb to allow users use stock MIUI dtbo to expand miui compatibility to this kernel again.

37e3662.

cd4c74f.

11d7fae.

ad8862d.

Signed-off-by: Carlos Ayrton Lopez Arroyo <[email protected]>
  • Loading branch information
Official-Ayrton990 committed Jan 24, 2022
1 parent 56fc729 commit 275f466
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 79 deletions.
58 changes: 54 additions & 4 deletions arch/arm64/boot/dts/vendor/qcom/kona-v2.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,44 @@
qcom,msm-id = <356 0x20000>;
};

&CPU0 {
capacity-dmips-mhz = <448>;
dynamic-power-coefficient = <103>;
};

&CPU1 {
capacity-dmips-mhz = <448>;
dynamic-power-coefficient = <103>;
};

&CPU2 {
capacity-dmips-mhz = <448>;
dynamic-power-coefficient = <103>;
};

&CPU3 {
capacity-dmips-mhz = <448>;
dynamic-power-coefficient = <103>;
};

&CPU4 {
dynamic-power-coefficient = <533>;
capacity-dmips-mhz = <1022>;
dynamic-power-coefficient = <340>;
};

&CPU5 {
dynamic-power-coefficient = <533>;
capacity-dmips-mhz = <1022>;
dynamic-power-coefficient = <340>;
};

&CPU6 {
dynamic-power-coefficient = <533>;
capacity-dmips-mhz = <1022>;
dynamic-power-coefficient = <340>;
};

&CPU7 {
dynamic-power-coefficient = <642>;
capacity-dmips-mhz = <1024>;
dynamic-power-coefficient = <409>;
};

&clock_camcc {
Expand Down Expand Up @@ -390,4 +414,30 @@
<GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "dcvsh0_int", "dcvsh1_int", "dcvsh2_int";

qcom,cpufreq-table-0 =
< 691200>,
<1708800>,
<1804800>;

qcom,cpufreq-table-1 =
< 710400>,
<1478400>,
<1766400>,
<1862400>,
<2054400>,
<2246400>,
<2342400>,
<2419200>;

qcom,cpufreq-table-2 =
< 844800>,
<1862400>,
<2073600>,
<2265600>,
<2361600>,
<2457600>,
<2553600>,
<2841600>,
<3187200>;
};
75 changes: 0 additions & 75 deletions arch/arm64/boot/dts/vendor/qcom/xiaomi-sm8250-common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -5,81 +5,6 @@
#include "kona-sde-display.dtsi"
#include "kona-thermal-overlay.dtsi"

// Overlayed CPU Frequency table
&cpufreq_hw {
interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "dcvsh0_int", "dcvsh1_int", "dcvsh2_int";

qcom,cpufreq-table-0 =
< 691200>,
<1708800>,
<1804800>;

qcom,cpufreq-table-1 =
< 710400>,
<1478400>,
<1766400>,
<1862400>,
<2054400>,
<2246400>,
<2342400>,
<2419200>;

qcom,cpufreq-table-2 =
< 844800>,
<1862400>,
<2073600>,
<2265600>,
<2361600>,
<2457600>,
<2553600>,
<2841600>,
<3187200>;
};

//CPU Recalculation & Optimization
&CPU0 {
capacity-dmips-mhz = <448>;
dynamic-power-coefficient = <103>;
};

&CPU1 {
capacity-dmips-mhz = <448>;
dynamic-power-coefficient = <103>;
};

&CPU2 {
capacity-dmips-mhz = <448>;
dynamic-power-coefficient = <103>;
};

&CPU3 {
capacity-dmips-mhz = <448>;
dynamic-power-coefficient = <103>;
};

&CPU4 {
capacity-dmips-mhz = <1022>;
dynamic-power-coefficient = <340>;
};

&CPU5 {
capacity-dmips-mhz = <1022>;
dynamic-power-coefficient = <340>;
};

&CPU6 {
capacity-dmips-mhz = <1022>;
dynamic-power-coefficient = <340>;
};

&CPU7 {
capacity-dmips-mhz = <1024>;
dynamic-power-coefficient = <409>;
};

&qupv3_se12_2uart {
status = "ok";
};
Expand Down

0 comments on commit 275f466

Please sign in to comment.