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

Commit cd1aa5bb authored by Kavya Nunna's avatar Kavya Nunna
Browse files

ARM: dts: msm: Add pmic support for khaje

Add support for pm7250b peripherals for Khaje.

Change-Id: I7e9a81fd0ee373f9d9d1bf942d5924a3900375fb
parent 017cfa7e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1183,7 +1183,7 @@

		pm8008_interrupt: pm8008_interrupt {
			mux {
				pins = "gpior25";
				pins = "gpio25";
				function = "gpio";
			};

+88 −0
Original line number Diff line number Diff line
@@ -4,3 +4,91 @@
	/delete-property/ lab-supply;
	/delete-property/ ibb-supply;
};

&soc {
	mtp_batterydata: qcom,battery-data {
		qcom,batt-id-range-pct = <15>;
		#include "qg-batterydata-alium-3600mah.dtsi"
	};
};

&pm7250b_gpios {
	pm7250b_smb_int_default: pm7250b_smb_int_default {
		pins = "gpio6";
		function = "func1";
		input-enable;
	 };
};

&qupv3_se1_i2c {
	status = "ok";
	#include "smb1355.dtsi"
};

&smb1355 {
	pinctrl-names = "default";
	pinctrl-0 = <&pm7250b_smb_int_default>;
	status = "ok";
};

&smb1355_charger {
	qcom,parallel-mode = <1>;
	qcom,hw-die-temp-mitigation;
	status = "ok";
};

&pm7250b_charger {
	status = "ok";
	io-channels = <&pm7250b_vadc ADC_USB_IN_V_16>,
		      <&pm7250b_vadc ADC_USB_IN_I>,
		      <&pm7250b_vadc ADC_CHG_TEMP>,
		      <&pm7250b_vadc ADC_DIE_TEMP>,
		      <&pm7250b_vadc ADC_AMUX_THM3_PU2>,
		      <&pm7250b_vadc ADC_SBUx>,
		      <&pm7250b_vadc ADC_VPH_PWR>,
		      <&pm7250b_vadc ADC_AMUX_THM1_PU2>;
	io-channel-names = "usb_in_voltage",
			   "usb_in_current",
			   "chg_temp",
			   "die_temp",
			   "conn_temp",
			   "sbux_res",
			   "vph_voltage",
			   "skin_temp";
	qcom,battery-data = <&mtp_batterydata>;
	qcom,sec-charger-config = <1>;
	qcom,auto-recharge-soc = <98>;
	qcom,step-charging-enable;
	qcom,sw-jeita-enable;
	qcom,charger-temp-max = <800>;
	qcom,smb-temp-max = <800>;
	qcom,suspend-input-on-debug-batt;
	qcom,fcc-stepping-enable;
	qcom,fcc-step-delay-ms = <100>;
	qcom,fcc-step-size-ua = <100000>;
	qcom,smb-internal-pull-kohm = <0>;
	qcom,en-skin-therm-mitigation;
	qcom,hvdcp3-standalone-config;
};

&pm7250b_qg {
	status = "ok";
	io-channels = <&pm7250b_vadc ADC_BAT_THERM_PU2>,
		      <&pm7250b_vadc ADC_BAT_ID_PU2>;
	io-channel-names = "batt-therm",
			   "batt-id";
	qcom,battery-data = <&mtp_batterydata>;
	qcom,qg-iterm-ma = <100>;
	qcom,hold-soc-while-full;
	qcom,linearize-soc;
	qcom,cl-feedback-on;
	qcom,tcss-enable;
	qcom,fvss-enable;
	qcom,fvss-vbatt-mv = <3500>;
	qcom,bass-enable;
	qcom,vbatt-cutoff-mv = <3400>;
	qcom,vbatt-low-mv = <3500>;
	qcom,vbatt-low-cold-mv = <3800>;
	qcom,vbatt-empty-mv = <3200>;
	qcom,vbatt-empty-cold-mv = <3100>;
};
+0 −20
Original line number Diff line number Diff line
@@ -5,11 +5,6 @@
#include "bengal-thermal-overlay.dtsi"
#include "bengal-sde-display.dtsi"

&qupv3_se1_i2c {
	status = "ok";
	#include "smb1355.dtsi"
};

&qupv3_se4_2uart {
	status = "ok";
};
@@ -118,21 +113,6 @@
	};
};

&tlmm {
	smb_int_default: smb_int_default {
		mux {
			pins = "gpio105";
			function = "gpio";
		};

		config {
			pins = "gpio105";
			bias-pull-up;
			input-enable;
		};
	};
};

&sdhc_1 {
	vdd-supply = <&L24A>;
	qcom,vdd-voltage-level = <2960000 2960000>;
+74 −2
Original line number Diff line number Diff line
/*update the 7250b as per khaje*/
/*#include "pm7250b.dtsi"*/
#include <dt-bindings/clock/qcom,rpmcc.h>
#include <dt-bindings/clock/qcom,rpmh.h>
#include "pm7250b.dtsi"

&pm7250b_clkdiv {
	clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>;
};

&pm7250b_vadc {
	charger_skin_therm@4d {
		reg = <ADC_AMUX_THM1_PU2>;
		label = "charger_skin_therm";
		qcom,ratiometric;
		qcom,hw-settle-time = <200>;
		qcom,pre-scaling = <1 1>;
	};

	conn_therm@4f {
		reg = <ADC_AMUX_THM3_PU2>;
		label = "conn_therm";
		qcom,ratiometric;
		qcom,hw-settle-time = <200>;
		qcom,pre-scaling = <1 1>;
	};
};

&pm7250b_adc_tm {
	io-channels = <&pm7250b_vadc ADC_AMUX_THM1_PU2>,
			<&pm7250b_vadc ADC_AMUX_THM3_PU2>;

	/* Channel nodes */
	charger_skin_therm@4d {
		reg = <ADC_AMUX_THM1_PU2>;
		qcom,ratiometric;
		qcom,hw-settle-time = <200>;
	};

	conn_therm@4f {
		reg = <ADC_AMUX_THM3_PU2>;
		qcom,ratiometric;
		qcom,hw-settle-time = <200>;
	};
};

&thermal_zones {
	charger-therm-usr {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "user_space";
		thermal-sensors = <&pm7250b_adc_tm ADC_AMUX_THM1_PU2>;
		wake-capable-sensor;
		trips {
			active-config0 {
				temperature = <125000>;
				hysteresis = <1000>;
				type = "passive";
			};
		};
	};

	conn-therm-usr {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-governor = "user_space";
		thermal-sensors = <&pm7250b_adc_tm ADC_AMUX_THM3_PU2>;
		wake-capable-sensor;
		trips {
			active-config0 {
				temperature = <125000>;
				hysteresis = <1000>;
				type = "passive";
			};
		};
	};
};
+21 −13
Original line number Diff line number Diff line
@@ -2995,41 +2995,49 @@ tpdm_turing_llm: tpdm@8861000 {

&pm8008_regulators {
	vdd_l1_l2-supply = <&S6A>;
	vdd_l7-supply = <&S7A>;
};

&L1P {
	regulator-max-microvolt = <1200000>;
	qcom,min-dropout-voltage = <100000>;
	regulator-min-microvolt = <1100000>;
	regulator-max-microvolt = <1300000>;
	qcom,min-dropout-voltage = <56000>;
};

&L2P {
	regulator-max-microvolt = <1056000>;
	qcom,min-dropout-voltage = <100000>;
	regulator-min-microvolt = <950000>;
	regulator-max-microvolt = <1150000>;
	qcom,min-dropout-voltage = <96000>;
};

&L3P {
	regulator-min-microvolt = <2800000>;
	regulator-max-microvolt = <2800000>;
	regulator-min-microvolt = <2700000>;
	regulator-max-microvolt = <2900000>;
	qcom,min-dropout-voltage = <96000>;
};

&L4P {
	regulator-min-microvolt = <2800000>;
	regulator-max-microvolt = <2800000>;
	regulator-min-microvolt = <2700000>;
	regulator-max-microvolt = <2900000>;
	qcom,min-dropout-voltage = <136000>;
};

&L5P {
	regulator-min-microvolt = <2800000>;
	regulator-max-microvolt = <2800000>;
	regulator-min-microvolt = <2700000>;
	regulator-max-microvolt = <2900000>;
	qcom,min-dropout-voltage = <240000>;
};

&L6P {
	regulator-min-microvolt = <2800000>;
	regulator-max-microvolt = <2800000>;
	regulator-min-microvolt = <2700000>;
	regulator-max-microvolt = <2900000>;
	qcom,min-dropout-voltage = <168000>;
};

&L7P {
	regulator-min-microvolt = <1800000>;
	regulator-min-microvolt = <1650000>;
	regulator-max-microvolt = <1800000>;
	qcom,min-dropout-voltage = <112000>;
};

&qupv3_se4_2uart {