mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 10:17:47 +07:00
2691cb4e42
Commited75d6a969
("arm64: dts: qcom: Collapse usb support into one node") breaks host mode support on apq8016-sbc boards. This is because the mux driver (tc7usb40mu) hasn't been merged. Without that driver, we can't toggle the GPIO going to the mux to route out the D+/D- lines to the USB hub that's on the board. One solution would be to totally revert this change, but that opens us up to other problems when two USB drivers are operating the same hardware block at the same time. Let's modify the DT so that the USB controller is always in host mode and connected to the hub so that things like USB keyboards and mouses work. This is the mode that most people prefer anyway with these devices. We also delete the usb-switch node because the binding was never accepted upstream. In the future, we can add muxing support and then update the DT to support both modes at runtime. Patches to support this are already on the mailing list. Fixes:ed75d6a969
("arm64: dts: qcom: Collapse usb support into one node") Reported-by: Rob Clark <robdclark@gmail.com> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Andy Gross <andy.gross@linaro.org>
55 lines
927 B
Plaintext
55 lines
927 B
Plaintext
#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;
|
|
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;
|
|
};
|
|
};
|
|
|
|
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;
|
|
};
|
|
};
|
|
};
|