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

Commit adc0a6e4 authored by Fenglin Wu's avatar Fenglin Wu
Browse files

ARM: dts: msm: Add initial PMIC device configuration for QVR845



Add following initial bringup changes for QVR845 device:
  1) Enable haptics device;
  2) Disable qbt100 device as it's not existing in hardware and
     its device configuration uses PM8998 GPIO5 which is connecting
     to home key;
  3) Specify GPIO keys required for home and volume up;
  4) Add fg-bmd-en-delay as the QVR845 battery has capacitance inside;
  5) Enable I2C_10 and then enable SMB1355 slave charger which
     is interfaced on it.

Change-Id: I09076da68132e3f2329694f4fa4ef18ba239ae51
Signed-off-by: default avatarFenglin Wu <fenglinw@codeaurora.org>
parent 93ccf8ae
Loading
Loading
Loading
Loading
+58 −0
Original line number Diff line number Diff line
@@ -12,11 +12,69 @@

#include "sdm845-pmic-overlay.dtsi"
#include "sdm845-pinctrl-overlay.dtsi"
#include "smb1355.dtsi"

&pmi8998_pdphy {
	vbus-supply = <&smb2_vbus>;
};

&pmi8998_fg {
	qcom,fg-bmd-en-delay-ms = <300>;
};

&qupv3_se10_i2c {
	status = "ok";
};

&smb1355_charger_0 {
	status = "ok";
};

&smb1355_charger_1 {
	status = "ok";
};

&soc {
	qcom,qbt1000 {
		status = "disabled";
	};

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

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

		home {
			label = "home";
			gpios = <&pm8998_gpios 5 GPIO_ACTIVE_LOW>;
			linux,input-type = <1>;
			linux,code = <102>;
			gpio-key,wakeup;
			debounce-interval = <15>;
			linux,can-disable;
		};
	};
};

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

&ufsphy_mem {
	compatible = "qcom,ufs-phy-qmp-v3";