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

Commit 0e9d2a5a 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 initial PMIC device configuration for QRD670"

parents 6a2f25d8 8ec09b14
Loading
Loading
Loading
Loading
+24 −0
Original line number Diff line number Diff line
@@ -1625,6 +1625,20 @@
};

&pm660l_gpios {
	camera0_dvdd_en_default: camera0_dvdd_en_default {
		pins = "gpio3";
		function = "normal";
		power-source = <0>;
		output-low;
	};

	camera1_dvdd_en_default: camera1_dvdd_en_default {
		pins = "gpio4";
		function = "normal";
		power-source = <0>;
		output-low;
	};

	key_vol_up {
		key_vol_up_default: key_vol_up_default {
			pins = "gpio7";
@@ -1635,3 +1649,13 @@
		};
	};
};

&pm660_gpios {
	smb_shutdown_default: smb_shutdown_default {
		pins = "gpio11";
		function = "normal";
		power-source = <0>;
		qcom,drive-strength = <3>;
		output-high;
	};
};
+86 −1
Original line number Diff line number Diff line
@@ -10,8 +10,10 @@
 * GNU General Public License for more details.
 */

#include <dt-bindings/gpio/gpio.h>
#include "sdm670-pmic-overlay.dtsi"
#include "sdm670-audio-overlay.dtsi"
#include "smb1355.dtsi"

&qupv3_se9_2uart {
	status = "disabled";
@@ -30,13 +32,96 @@
};

&qupv3_se10_i2c {
	status = "disabled";
	status = "ok";
};

&qupv3_se6_4uart {
	status = "disabled";
};

&vendor {
	qrd_batterydata: qcom,battery-data {
		qcom,batt-id-range-pct = <15>;
		#include "fg-gen3-batterydata-mlp356477-2800mah.dtsi"
	};
};

&pm660_fg {
	qcom,battery-data = <&qrd_batterydata>;
	qcom,fg-bmd-en-delay-ms = <300>;
};

&tlmm {
	smb_int_default: smb_int_default {
		mux {
			pins = "gpio54";
			function = "gpio";
		};
		config {
			pins = "gpio54";
			drive-strength = <2>;
			bias-pull-up;
			input-enable;
		};
	};
};

&smb1355_0 {
	pinctrl-names = "default";
	pinctrl-0 = <&smb_int_default
		     &smb_shutdown_default>;
	interrupt-parent = <&tlmm>;
	interrupts = <54 IRQ_TYPE_LEVEL_LOW>;
	smb1355_charger_0: qcom,smb1355-charger@1000 {
		io-channels = <&pm660_rradc 2>,
				<&pm660_rradc 12>;
		io-channel-names = "charger_temp",
				   "charger_temp_max";
		status = "ok";
	};
};

&smb1355_1 {
	pinctrl-names = "default";
	pinctrl-0 = <&smb_int_default
		     &smb_shutdown_default>;
	interrupt-parent = <&tlmm>;
	interrupts = <54 IRQ_TYPE_LEVEL_LOW>;
	smb1355_charger_1: qcom,smb1355-charger@1000 {
		io-channels = <&pm660_rradc 2>,
				<&pm660_rradc 12>;
		io-channel-names = "charger_temp",
				   "charger_temp_max";
		status = "ok";
	};
};

&soc {
	gpio_keys {
		compatible = "gpio-keys";
		label = "gpio-keys";
		pinctrl-names = "default";
		pinctrl-0 = <&key_vol_up_default>;

		vol_up {
			label = "volume_up";
			gpios = <&pm660l_gpios 7 GPIO_ACTIVE_LOW>;
			linux,input-type = <1>;
			linux,code = <115>;
			gpio-key,wakeup;
			debounce-interval = <15>;
			linux,can-disable;
		};
	};
};

&pm660_haptics {
	qcom,vmax-mv = <1800>;
	qcom,wave-play-rate-us = <4255>;
	qcom,lra-auto-mode;
	status = "okay";
};

&int_codec {
	qcom,model = "sdm660-skuw-snd-card";
	qcom,audio-routing =