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

Commit 2f2549d2 authored by Kavya Nunna's avatar Kavya Nunna Committed by Gerrit - the friendly Code Review server
Browse files

ARM: dts: msm: Enable SMB1351 for sdxnightjar

Enable SMB1351 for sdxnightjar, SMB1351 is a single-cell battery
charger. It can charge the battery and power the system via the
USB/AC adapter input.

Change-Id: I9d8c8431d7dd49a5b2e8a7936058f7df77d5ef0f
parent d9e39aa9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1392,7 +1392,7 @@
		bias-high-impedance;   /* DISABLE GPIO */
	};

	gpio@c400 { /* GPIO 5 - USB_ID */
	usb_id_detect: gpio@c400 { /* GPIO 5 - USB_ID */
		pins = "gpio5";
		function = "normal";
		input-enable;        /* Digital input */
+23 −0
Original line number Diff line number Diff line
@@ -812,3 +812,26 @@
#include "sdxnightjar-coresight.dtsi"
#include "sdxnightjar-pinctrl.dtsi"
#include "sdxnightjar-blsp.dtsi"

&i2c_3 {
	status = "ok";
	smb1351_otg_supply: smb1351-charger@55 {
		compatible = "qcom,smb1351-charger";
		reg = <0x55>;
		interrupt-parent = <&tlmm_pinmux>;
		interrupts = <83 IRQ_TYPE_LEVEL_LOW>;
		interrupts-extended = <&tlmm_pinmux 83 IRQ_TYPE_LEVEL_LOW>, <&pmd9650_gpios 5 0>;
		interrupt-names = "smb1351_chg_stat_irq","smb1351_usb_id_irq";
		qcom,usb-id-gpio = <&pmd9650_gpios 5 0>;
		qcom,float-voltage-mv = <4200>;
		qcom,charging-timeout = <1536>;
		qcom,recharge-thresh-mv = <200>;
		qcom,iterm-ma = <100>;
		regulator-name = "smb1351_otg_supply";
		pinctrl-names = "default";
		pinctrl-0 = <&smb_stat_active>, <&usb_id_detect>;
		qcom,switch-freq = <2>;
		qcom,id-line-not-connected;
		dpdm-supply = <&qusb_phy>;
	};
};