mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 16:16:15 -04:00
ARM: dts: msm: Add VBUS/ID configuration for USB secondary port on Lahaina
This change adds GPIO configuration for USB VBUS/ID detection and enabling 5v vbus in host mode. It adds extcon_usb2 device node for using this configuration through USB extcon gpio driver for notifying vbus/ID status on connecting USB cable. Change-Id: I54727cc9112e74b4c8829442fc6e727bbd20beab
This commit is contained in:
parent
5402f20056
commit
3470828f5c
4 changed files with 60 additions and 0 deletions
|
|
@ -27,6 +27,18 @@
|
|||
linux,can-disable;
|
||||
};
|
||||
};
|
||||
|
||||
extcon_usb1: extcon_usb1 {
|
||||
compatible = "linux,extcon-usb-gpio";
|
||||
vbus-gpio = <&pm8350_gpios 9 GPIO_ACTIVE_HIGH>;
|
||||
id-gpio = <&tlmm 51 GPIO_ACTIVE_HIGH>;
|
||||
vbus-out-gpio = <&pm8350_gpios 8 GPIO_ACTIVE_HIGH>;
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&usb2_vbus_det_default
|
||||
&usb2_id_det_default
|
||||
&usb2_vbus_boost_default>;
|
||||
};
|
||||
};
|
||||
|
||||
&sdhc_2 {
|
||||
|
|
@ -97,3 +109,7 @@
|
|||
&pm8350c_flash {
|
||||
status = "ok"
|
||||
};
|
||||
|
||||
&usb1 {
|
||||
extcon = <&extcon_usb1>;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -27,6 +27,18 @@
|
|||
linux,can-disable;
|
||||
};
|
||||
};
|
||||
|
||||
extcon_usb1: extcon_usb1 {
|
||||
compatible = "linux,extcon-usb-gpio";
|
||||
vbus-gpio = <&pm8350_gpios 9 GPIO_ACTIVE_HIGH>;
|
||||
id-gpio = <&tlmm 51 GPIO_ACTIVE_HIGH>;
|
||||
vbus-out-gpio = <&pm8350_gpios 8 GPIO_ACTIVE_HIGH>;
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&usb2_vbus_det_default
|
||||
&usb2_id_det_default
|
||||
&usb2_vbus_boost_default>;
|
||||
};
|
||||
};
|
||||
|
||||
&sdhc_2 {
|
||||
|
|
@ -97,3 +109,7 @@
|
|||
&pm8350c_flash {
|
||||
status = "ok"
|
||||
};
|
||||
|
||||
&usb1 {
|
||||
extcon = <&extcon_usb1>;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1657,6 +1657,15 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
usb2_id_det_default: usb2_id_det_default {
|
||||
config {
|
||||
pins = "gpio51";
|
||||
function = "gpio";
|
||||
input-enable;
|
||||
bias-pull-up;
|
||||
};
|
||||
};
|
||||
};
|
||||
pmx_sde: pmx_sde {
|
||||
sde_dsi_active: sde_dsi_active {
|
||||
|
|
|
|||
|
|
@ -17,6 +17,25 @@
|
|||
power-source = <1>;
|
||||
};
|
||||
};
|
||||
|
||||
usb2_vbus_boost {
|
||||
usb2_vbus_boost_default: usb2_vbus_boost_default {
|
||||
pins = "gpio8";
|
||||
function = "normal";
|
||||
output-low;
|
||||
power-source = <0>; /* 1.8V input supply */
|
||||
};
|
||||
};
|
||||
|
||||
usb2_vbus_det {
|
||||
usb2_vbus_det_default: usb2_vbus_det_default {
|
||||
pins = "gpio9";
|
||||
function = "normal";
|
||||
input-enable;
|
||||
bias-disable;
|
||||
power-source = <0>; /* 1.8V input supply */
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&qupv3_se13_i2c {
|
||||
|
|
|
|||
Loading…
Reference in a new issue