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

Commit 3af3fdfc authored by Venkatesh Yadav Abbarapu's avatar Venkatesh Yadav Abbarapu
Browse files

ARM: dts: msm: Update fsm9900 device tree enteries



Added pvs tables to support rev 1.1 silicon.
Changed thermal node hotplug to 120 degrees C.
Updated pa thermistors to use fsm9900 VADC conversion
algorithm.

Change-Id: I08fed8ec989699b524157040aa908efc64e72d03
Acked-by: default avatarJim Granitzki <jamesg@qti.qualcomm.com>
Signed-off-by: default avatarVenkatesh Yadav Abbarapu <quicvenkat@codeaurora.org>
parent 60d75479
Loading
Loading
Loading
Loading
+359 −21
Original line number Diff line number Diff line
@@ -655,7 +655,7 @@
		qcom,core-limit-temp = <110>;
		qcom,core-temp-hysteresis = <10>;
		qcom,core-control-mask = <0xe>;
		qcom,hotplug-temp = <110>;
		qcom,hotplug-temp = <120>;
		qcom,hotplug-temp-hysteresis = <20>;
		qcom,freq-mitigation-temp = <110>;
		qcom,freq-mitigation-temp-hysteresis = <20>;
@@ -776,7 +776,7 @@
		hfpll-analog-supply = <&pma8084_l12_ao>;
		qcom,hfpll-config-val = <0x04D0405D>;
		qcom,hfpll-user-vco-mask = <0x00100000>;
		qcom,pvs-config-ver = <0>;
		qcom,pvs-config-ver = <1>;
		#clock-cells = <1>;


@@ -984,6 +984,297 @@
			< 1497600000  910000  416 >,
			< 1651200000  930000  467 >,
			< 1804800000  950000  518 >;

		/*   2.3GHz RC1   */
		qcom,speed2-pvs0-bin-v1 =
			<          0       0    0 >,
			<  300000000  850000   75 >,
			<  422400000  860000  106 >,
			<  576000000  880000  147 >,
			<  729600000  900000  189 >,
			<  883200000  920000  233 >,
			< 1036800000  940000  278 >,
			< 1190400000  960000  324 >,
			< 1344000000  980000  371 >,
			< 1497600000 1000000  420 >,
			< 1651200000 1020000  470 >,
			< 1804800000 1040000  521 >,
			< 1958400000 1060000  576 >,
			< 2112000000 1080000  633 >,
			< 2265600000 1100000  691 >;

		qcom,speed2-pvs1-bin-v1 =
			<          0       0    0 >,
			<  300000000  825000   75 >,
			<  422400000  835000  106 >,
			<  576000000  855000  147 >,
			<  729600000  875000  189 >,
			<  883200000  895000  233 >,
			< 1036800000  915000  278 >,
			< 1190400000  935000  324 >,
			< 1344000000  955000  371 >,
			< 1497600000  975000  420 >,
			< 1651200000  995000  470 >,
			< 1804800000 1015000  521 >,
			< 1958400000 1035000  576 >,
			< 2112000000 1055000  633 >,
			< 2265600000 1075000  691 >;

		qcom,speed2-pvs2-bin-v1 =
			<          0       0    0 >,
			<  300000000  800000   75 >,
			<  422400000  810000  106 >,
			<  576000000  830000  147 >,
			<  729600000  850000  189 >,
			<  883200000  870000  233 >,
			< 1036800000  890000  278 >,
			< 1190400000  910000  324 >,
			< 1344000000  930000  371 >,
			< 1497600000  950000  420 >,
			< 1651200000  970000  470 >,
			< 1804800000  990000  521 >,
			< 1958400000 1010000  576 >,
			< 2112000000 1030000  633 >,
			< 2265600000 1050000  691 >;

		qcom,speed2-pvs3-bin-v1 =
			<          0       0    0 >,
			<  300000000  800000   75 >,
			<  422400000  805000  106 >,
			<  576000000  815000  147 >,
			<  729600000  825000  189 >,
			<  883200000  845000  233 >,
			< 1036800000  865000  278 >,
			< 1190400000  885000  324 >,
			< 1344000000  905000  371 >,
			< 1497600000  925000  420 >,
			< 1651200000  945000  470 >,
			< 1804800000  965000  521 >,
			< 1958400000  985000  576 >,
			< 2112000000 1005000  633 >,
			< 2265600000 1025000  691 >;

		qcom,speed2-pvs4-bin-v1 =
			<          0       0    0 >,
			<  300000000  800000   75 >,
			<  422400000  800000  106 >,
			<  576000000  800000  147 >,
			<  729600000  810000  189 >,
			<  883200000  820000  233 >,
			< 1036800000  840000  278 >,
			< 1190400000  860000  324 >,
			< 1344000000  880000  371 >,
			< 1497600000  900000  420 >,
			< 1651200000  920000  470 >,
			< 1804800000  940000  521 >,
			< 1958400000  960000  576 >,
			< 2112000000  980000  633 >,
			< 2265600000 1000000  691 >;

		/*   2.0GHz RC1   */
		qcom,speed0-pvs0-bin-v1 =
			<          0       0    0 >,
			<  300000000  850000   77 >,
			<  422400000  850000  110 >,
			<  576000000  870000  152 >,
			<  729600000  890000  196 >,
			<  883200000  910000  240 >,
			< 1036800000  930000  286 >,
			< 1190400000  950000  334 >,
			< 1344000000  970000  383 >,
			< 1497600000  990000  432 >,
			< 1651200000 1010000  486 >,
			< 1804800000 1030000  541 >,
			< 1958400000 1050000  598 >;

		qcom,speed0-pvs1-bin-v1 =
			<          0       0    0 >,
			<  300000000  850000   77 >,
			<  422400000  850000  110 >,
			<  576000000  850000  152 >,
			<  729600000  865000  196 >,
			<  883200000  885000  240 >,
			< 1036800000  905000  286 >,
			< 1190400000  925000  334 >,
			< 1344000000  945000  383 >,
			< 1497600000  965000  432 >,
			< 1651200000  985000  486 >,
			< 1804800000 1005000  541 >,
			< 1958400000 1025000  598 >;

		qcom,speed0-pvs2-bin-v1 =
			<          0       0    0 >,
			<  300000000  800000   77 >,
			<  422400000  800000  110 >,
			<  576000000  820000  152 >,
			<  729600000  840000  196 >,
			<  883200000  860000  240 >,
			< 1036800000  880000  286 >,
			< 1190400000  900000  334 >,
			< 1344000000  920000  383 >,
			< 1497600000  940000  432 >,
			< 1651200000  960000  486 >,
			< 1804800000  980000  541 >,
			< 1958400000 1000000  598 >;

		qcom,speed0-pvs3-bin-v1 =
			<          0       0    0 >,
			<  300000000  800000   77 >,
			<  422400000  800000  110 >,
			<  576000000  800000  152 >,
			<  729600000  815000  196 >,
			<  883200000  835000  240 >,
			< 1036800000  855000  286 >,
			< 1190400000  875000  334 >,
			< 1344000000  895000  383 >,
			< 1497600000  915000  432 >,
			< 1651200000  935000  486 >,
			< 1804800000  955000  541 >,
			< 1958400000  975000  598 >;

		qcom,speed0-pvs4-bin-v1 =
			<          0       0    0 >,
			<  300000000  775000   77 >,
			<  422400000  775000  110 >,
			<  576000000  775000  152 >,
			<  729600000  790000  196 >,
			<  883200000  810000  240 >,
			< 1036800000  830000  286 >,
			< 1190400000  850000  334 >,
			< 1344000000  870000  383 >,
			< 1497600000  890000  432 >,
			< 1651200000  910000  486 >,
			< 1804800000  930000  541 >,
			< 1958400000  950000  598 >;

		qcom,speed0-pvs5-bin-v1 =
			<          0       0    0 >,
			<  300000000  875000   77 >,
			<  422400000  875000  110 >,
			<  576000000  895000  152 >,
			<  729600000  915000  196 >,
			<  883200000  935000  240 >,
			< 1036800000  955000  286 >,
			< 1190400000  975000  334 >,
			< 1344000000  995000  383 >,
			< 1497600000 1015000  432 >,
			< 1651200000 1035000  486 >,
			< 1804800000 1055000  541 >,
			< 1958400000 1075000  598 >;

		qcom,speed0-pvs6-bin-v1 =
			<          0       0    0 >,
			<  300000000  875000   77 >,
			<  422400000  900000  110 >,
			<  576000000  920000  152 >,
			<  729600000  940000  196 >,
			<  883200000  960000  240 >,
			< 1036800000  980000  286 >,
			< 1190400000 1000000  334 >,
			< 1344000000 1020000  383 >,
			< 1497600000 1040000  432 >,
			< 1651200000 1060000  486 >,
			< 1804800000 1080000  541 >,
			< 1958400000 1100000  598 >;

		/*   1.8GHz RC1   */
		qcom,speed4-pvs0-bin-v1 =
			<          0       0    0 >,
			<  300000000  850000   77 >,
			<  422400000  850000  110 >,
			<  576000000  870000  152 >,
			<  729600000  890000  196 >,
			<  883200000  910000  240 >,
			< 1036800000  930000  286 >,
			< 1190400000  950000  334 >,
			< 1344000000  970000  383 >,
			< 1497600000  990000  432 >,
			< 1651200000 1010000  486 >,
			< 1804800000 1030000  541 >;

		qcom,speed4-pvs1-bin-v1 =
			<          0       0    0 >,
			<  300000000  850000   77 >,
			<  422400000  850000  110 >,
			<  576000000  850000  152 >,
			<  729600000  865000  196 >,
			<  883200000  885000  240 >,
			< 1036800000  905000  286 >,
			< 1190400000  925000  334 >,
			< 1344000000  945000  383 >,
			< 1497600000  965000  432 >,
			< 1651200000  985000  486 >,
			< 1804800000 1005000  541 >;

		qcom,speed4-pvs2-bin-v1 =
			<          0       0    0 >,
			<  300000000  800000   77 >,
			<  422400000  800000  110 >,
			<  576000000  820000  152 >,
			<  729600000  840000  196 >,
			<  883200000  860000  240 >,
			< 1036800000  880000  286 >,
			< 1190400000  900000  334 >,
			< 1344000000  920000  383 >,
			< 1497600000  940000  432 >,
			< 1651200000  960000  486 >,
			< 1804800000  980000  541 >;

		qcom,speed4-pvs3-bin-v1 =
			<          0       0    0 >,
			<  300000000  800000   77 >,
			<  422400000  800000  110 >,
			<  576000000  800000  152 >,
			<  729600000  815000  196 >,
			<  883200000  835000  240 >,
			< 1036800000  855000  286 >,
			< 1190400000  875000  334 >,
			< 1344000000  895000  383 >,
			< 1497600000  915000  432 >,
			< 1651200000  935000  486 >,
			< 1804800000  955000  541 >;

		qcom,speed4-pvs4-bin-v1 =
			<          0       0    0 >,
			<  300000000  775000   77 >,
			<  422400000  775000  110 >,
			<  576000000  775000  152 >,
			<  729600000  790000  196 >,
			<  883200000  810000  240 >,
			< 1036800000  830000  286 >,
			< 1190400000  850000  334 >,
			< 1344000000  870000  383 >,
			< 1497600000  890000  432 >,
			< 1651200000  910000  486 >,
			< 1804800000  930000  541 >;

		qcom,speed4-pvs5-bin-v1 =
			<          0       0    0 >,
			<  300000000  875000   77 >,
			<  422400000  875000  110 >,
			<  576000000  895000  152 >,
			<  729600000  915000  196 >,
			<  883200000  935000  240 >,
			< 1036800000  955000  286 >,
			< 1190400000  975000  334 >,
			< 1344000000  995000  383 >,
			< 1497600000 1015000  432 >,
			< 1651200000 1035000  486 >,
			< 1804800000 1055000  541 >;

		qcom,speed4-pvs6-bin-v1 =
			<          0       0    0 >,
			<  300000000  875000   77 >,
			<  422400000  900000  110 >,
			<  576000000  920000  152 >,
			<  729600000  940000  196 >,
			<  883200000  960000  240 >,
			< 1036800000  980000  286 >,
			< 1190400000 1000000  334 >,
			< 1344000000 1020000  383 >,
			< 1497600000 1040000  432 >,
			< 1651200000 1060000  486 >,
			< 1804800000 1080000  541 >;
	};

	qcom,bbif@fd300000 {
@@ -1458,7 +1749,7 @@
		qcom,decimation = <0>;
		qcom,pre-div-channel-scaling = <0>;
		qcom,calibration-type = "ratiometric";
		qcom,scale-function = <4>;
		qcom,scale-function = <11>;
		qcom,hw-settle-time = <2>;
		qcom,fast-avg-setup = <0>;
	};
@@ -1507,24 +1798,46 @@
		qcom,fast-avg-setup = <0>;
	};

	chan@b0 {
		label = "apq_therm";
		reg = <0xb0>;
	chan@73 {
		label = "pa_therm1";
		reg = <0x73>;
		qcom,decimation = <0>;
		qcom,pre-div-channel-scaling = <0>;
		qcom,calibration-type = "ratiometric";
		qcom,scale-function = <2>;
		qcom,scale-function = <11>;
		qcom,hw-settle-time = <2>;
		qcom,fast-avg-setup = <0>;
	};

	chan@b3 {
		label = "quiet_therm";
		reg = <0xb3>;
	chan@74 {
		label = "pa_therm2";
		reg = <0x74>;
		qcom,decimation = <0>;
		qcom,pre-div-channel-scaling = <0>;
		qcom,calibration-type = "ratiometric";
		qcom,scale-function = <2>;
		qcom,scale-function = <11>;
		qcom,hw-settle-time = <2>;
		qcom,fast-avg-setup = <0>;
	};

	chan@75 {
		label = "pa_therm3";
		reg = <0x75>;
		qcom,decimation = <0>;
		qcom,pre-div-channel-scaling = <0>;
		qcom,calibration-type = "ratiometric";
		qcom,scale-function = <11>;
		qcom,hw-settle-time = <2>;
		qcom,fast-avg-setup = <0>;
	};

	chan@77 {
		label = "pa_therm4";
		reg = <0x77>;
		qcom,decimation = <0>;
		qcom,pre-div-channel-scaling = <0>;
		qcom,calibration-type = "ratiometric";
		qcom,scale-function = <11>;
		qcom,hw-settle-time = <2>;
		qcom,fast-avg-setup = <0>;
	};
@@ -1543,32 +1856,57 @@
		qcom,btm-channel-number = <0x48>;
	};

	chan@b0 {
		label = "apq_therm";
		reg = <0xb0>;
	chan@73 {
		label = "pa_therm1";
		reg = <0x73>;
		qcom,decimation = <0>;
		qcom,pre-div-channel-scaling = <0>;
		qcom,calibration-type = "ratiometric";
		qcom,scale-function = <2>;
		qcom,scale-function = <11>;
		qcom,hw-settle-time = <2>;
		qcom,fast-avg-setup = <3>;
		qcom,fast-avg-setup = <0>;
		qcom,btm-channel-number = <0x68>;
		qcom,thermal-node;
	};

	chan@b3 {
		label = "quiet_therm";
		reg = <0xb3>;
	chan@74 {
		label = "pa_therm2";
		reg = <0x74>;
		qcom,decimation = <0>;
		qcom,pre-div-channel-scaling = <0>;
		qcom,calibration-type = "ratiometric";
		qcom,scale-function = <2>;
		qcom,scale-function = <11>;
		qcom,hw-settle-time = <2>;
		qcom,fast-avg-setup = <3>;
		qcom,fast-avg-setup = <0>;
		qcom,btm-channel-number = <0x70>;
		qcom,thermal-node;
	};

	chan@75 {
		label = "pa_therm3";
		reg = <0x75>;
		qcom,decimation = <0>;
		qcom,pre-div-channel-scaling = <0>;
		qcom,calibration-type = "ratiometric";
		qcom,scale-function = <11>;
		qcom,hw-settle-time = <2>;
		qcom,fast-avg-setup = <0>;
		qcom,btm-channel-number = <0x78>;
		qcom,thermal-node;
	};

	chan@77 {
		label = "pa_therm4";
		reg = <0x77>;
		qcom,decimation = <0>;
		qcom,pre-div-channel-scaling = <0>;
		qcom,calibration-type = "ratiometric";
		qcom,scale-function = <11>;
		qcom,hw-settle-time = <2>;
		qcom,fast-avg-setup = <0>;
		qcom,btm-channel-number = <0x80>;
		qcom,thermal-node;
	};
};

&pma8084_gpios {