Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c6297e1e authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ARM: dts: msm: Add static rules to throttle CPU and GPU for msm8939"

parents 6e3436ea 62254073
Loading
Loading
Loading
Loading
+69 −0
Original line number Diff line number Diff line
@@ -11,8 +11,71 @@
 */

#include <dt-bindings/msm/msm-bus-ids.h>
#include <dt-bindings/msm/msm-bus-rule-ops.h>

&soc {
	static-rules {
		compatible = "qcom,msm-bus-static-bw-rules";

		rule0 {
			qcom,src-nodes = <&mas_apss>;
			qcom,src-field = <FLD_IB>;
			qcom,src-op = <OP_LE>;
			qcom,thresh = <2668800>;
			qcom,mode = <THROTTLE_ON>;
			qcom,dest-node = <&mas_apss>;
			qcom,dest-bw = <600000>;
		};

		rule1 {
			qcom,src-nodes = <&mas_apss>;
			qcom,src-field = <FLD_IB>;
			qcom,src-op = <OP_LE>;
			qcom,thresh = <5337600>;
			qcom,mode = <THROTTLE_ON>;
			qcom,dest-node = <&mas_apss>;
			qcom,dest-bw = <1200000>;
		};

		rule2 {
			qcom,src-nodes = <&mas_apss>;
			qcom,src-field = <FLD_IB>;
			qcom,src-op = <OP_GT>;
			qcom,thresh = <5337600>;
			qcom,mode = <THROTTLE_OFF>;
			qcom,dest-node = <&mas_apss>;
		};

		rule3 {
			qcom,src-nodes = <&mas_gfx>;
			qcom,src-field = <FLD_IB>;
			qcom,src-op = <OP_LE>;
			qcom,thresh = <2668800>;
			qcom,mode = <THROTTLE_ON>;
			qcom,dest-node = <&mas_gfx>;
			qcom,dest-bw = <600000>;
		};

		rule4 {
			qcom,src-nodes = <&mas_gfx>;
			qcom,src-field = <FLD_IB>;
			qcom,src-op = <OP_LE>;
			qcom,thresh = <5337600>;
			qcom,mode = <THROTTLE_ON>;
			qcom,dest-node = <&mas_gfx>;
			qcom,dest-bw = <1200000>;
		};

		rule5 {
			qcom,src-nodes = <&mas_gfx>;
			qcom,src-field = <FLD_IB>;
			qcom,src-op = <OP_GT>;
			qcom,thresh = <5337600>;
			qcom,mode = <THROTTLE_OFF>;
			qcom,dest-node = <&mas_gfx>;
		};
	};

	ad_hoc_bus: ad-hoc-bus@580000 {
		compatible = "qcom,msm-bus-device";
		reg = <0x580000 0x14080>,
@@ -377,6 +440,9 @@
			qcom,prio-lvl = <0>;
			qcom,prio-rd = <0>;
			qcom,prio-wr = <0>;
			qcom,ws = <10000>;
			qcom,gp = <5000>;
			qcom,thmp = <50>;
			qcom,buswidth = <16>;
		};

@@ -406,6 +472,9 @@
			qcom,prio-rd = <0>;
			qcom,prio-wr = <0>;
			qcom,buswidth = <16>;
			qcom,ws = <10000>;
			qcom,gp = <5000>;
			qcom,thmp = <50>;
		};

		bimc_snoc_mas: bimc-snoc-mas {