mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-02-05 12:55:18 +07:00
4868f573a7
The Dragonboard-410c is able to act either as USB Host or Device. The role can be determined at runtime via the USB_HS_ID pin which is derived from the micro-usb port VBUS pin. In Host role, SoC USB D+/D- are routed to the onboard USB 2.0 HUB. In Device role, SoC USB D+/D- are routed to the USB 2.0 micro B port. Routing is selected via USB_SW_SEL_PM gpio. In device role USB HUB can be held in reset. chipidea driver expects two extcon device pointers, one for the EXTCON_USB event and one for the EXTCON_USB_HOST event. Since the extcon-usb-gpio device is capable of generating both these events, point two times to this extcon device. Signed-off-by: Loic Poulain <loic.poulain@linaro.org> Link: https://lore.kernel.org/r/1576083014-5842-1-git-send-email-loic.poulain@linaro.org Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
75 lines
1.3 KiB
Plaintext
75 lines
1.3 KiB
Plaintext
// SPDX-License-Identifier: GPL-2.0
|
|
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
|
|
#include <dt-bindings/pinctrl/qcom,pmic-mpp.h>
|
|
|
|
&pm8916_gpios {
|
|
|
|
usb_hub_reset_pm: usb_hub_reset_pm {
|
|
pinconf {
|
|
pins = "gpio3";
|
|
function = PMIC_GPIO_FUNC_NORMAL;
|
|
input-disable;
|
|
output-high;
|
|
};
|
|
};
|
|
|
|
usb_hub_reset_pm_device: usb_hub_reset_pm_device {
|
|
pinconf {
|
|
pins = "gpio3";
|
|
function = PMIC_GPIO_FUNC_NORMAL;
|
|
output-low;
|
|
};
|
|
};
|
|
|
|
usb_sw_sel_pm: usb_sw_sel_pm {
|
|
pinconf {
|
|
pins = "gpio4";
|
|
function = PMIC_GPIO_FUNC_NORMAL;
|
|
power-source = <PM8916_GPIO_VPH>;
|
|
input-disable;
|
|
output-high;
|
|
};
|
|
};
|
|
|
|
usb_sw_sel_pm_device: usb_sw_sel_pm_device {
|
|
pinconf {
|
|
pins = "gpio4";
|
|
function = PMIC_GPIO_FUNC_NORMAL;
|
|
power-source = <PM8916_GPIO_VPH>;
|
|
input-disable;
|
|
output-low;
|
|
};
|
|
};
|
|
|
|
pm8916_gpios_leds: pm8916_gpios_leds {
|
|
pinconf {
|
|
pins = "gpio1", "gpio2";
|
|
function = PMIC_GPIO_FUNC_NORMAL;
|
|
output-low;
|
|
};
|
|
};
|
|
};
|
|
|
|
&pm8916_mpps {
|
|
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&ls_exp_gpio_f>;
|
|
|
|
ls_exp_gpio_f: pm8916_mpp4 {
|
|
pinconf {
|
|
pins = "mpp4";
|
|
function = "digital";
|
|
output-low;
|
|
power-source = <PM8916_MPP_L5>; // 1.8V
|
|
};
|
|
};
|
|
|
|
pm8916_mpps_leds: pm8916_mpps_leds {
|
|
pinconf {
|
|
pins = "mpp2", "mpp3";
|
|
function = "digital";
|
|
output-low;
|
|
};
|
|
};
|
|
};
|