arm64: dts: qcom: msm8998-yoshino: Add USB extcon
While not strictly necessary, at least on maple, configure the USB extcon, which requires two pins on Yoshino. Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
This commit is contained in:
parent
c1d25d8c05
commit
2be5847b59
1 changed files with 24 additions and 0 deletions
|
|
@ -104,6 +104,14 @@
|
|||
regulator-boot-on;
|
||||
};
|
||||
|
||||
extcon_usb: extcon-usb {
|
||||
compatible = "linux,extcon-usb-gpio";
|
||||
id-gpio = <&tlmm 38 GPIO_ACTIVE_HIGH>;
|
||||
vbus-gpio = <&tlmm 128 GPIO_ACTIVE_HIGH>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&usb_extcon_active &usb_vbus_active>;
|
||||
};
|
||||
|
||||
gpio-keys {
|
||||
compatible = "gpio-keys";
|
||||
label = "Side buttons";
|
||||
|
|
@ -1259,6 +1267,13 @@ tinymix set "RX2 Digital Volume" 80
|
|||
drive-strength = <2>;
|
||||
};
|
||||
|
||||
usb_extcon_active: usb-extcon-active {
|
||||
pins = "gpio38";
|
||||
function = "gpio";
|
||||
bias-disable;
|
||||
drive-strength = <16>;
|
||||
};
|
||||
|
||||
hall_sensor0_default: acc-cover-open {
|
||||
pins = "gpio124";
|
||||
function = "gpio";
|
||||
|
|
@ -1274,6 +1289,14 @@ tinymix set "RX2 Digital Volume" 80
|
|||
bias-pull-up;
|
||||
};
|
||||
|
||||
usb_vbus_active: usb-vbus-active {
|
||||
pins = "gpio128";
|
||||
function = "gpio";
|
||||
bias-disable;
|
||||
drive-strength = <2>;
|
||||
output-low;
|
||||
};
|
||||
|
||||
ts_vddio_en: ts-vddio-en-default {
|
||||
pins = "gpio133";
|
||||
function = "gpio";
|
||||
|
|
@ -1304,6 +1327,7 @@ tinymix set "RX2 Digital Volume" 80
|
|||
&usb3_dwc3 {
|
||||
/* Force to peripheral until we have Type-C hooked up */
|
||||
dr_mode = "peripheral";
|
||||
extcon = <&extcon_usb>;
|
||||
};
|
||||
|
||||
&usb3phy {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue