mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 13:44:26 -04:00
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
This commit is contained in:
parent
d2059ab05f
commit
59b2d7150c
2 changed files with 24 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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>;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue