diff options
author | Vishal Mahaveer <vishalm@ti.com> | 2017-03-24 11:11:28 -0400 |
---|---|---|
committer | Vishal Mahaveer <vishalm@ti.com> | 2017-03-24 15:20:51 -0400 |
commit | 6cd71e4e1b147b86c0defebca0601715aae0b338 (patch) | |
tree | 01e0c59181563ea94af1a5358e81e5675163066d | |
parent | d21fde99a2ceb3ccd79df1daa105a5a32e86dddf (diff) | |
download | jacinto6evm-6cd71e4e1b147b86c0defebca0601715aae0b338.tar.gz |
dra71x: lcard: enable USB configurations
Enable USB for lcard EVM. With these changes USB1 is working in otg
mode, verified via ADB. USB2 host mode is still not functional.
Change-Id: Id7e2fbfe8ca955b95048cb4be347295975c3f45b
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
-rw-r--r-- | arch/arm/boot/dts/dra71-lcard.dts | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/dra71-lcard.dts b/arch/arm/boot/dts/dra71-lcard.dts index 85d79eb387ba..24637b24b0f3 100644 --- a/arch/arm/boot/dts/dra71-lcard.dts +++ b/arch/arm/boot/dts/dra71-lcard.dts @@ -130,6 +130,18 @@ }; }; }; + + extcon_usb1: extcon_usb1 { + compatible = "linux,extcon-usb-gpio"; + /* id-gpio = <&pcf_gpio_21 1 GPIO_ACTIVE_HIGH>; */ + vbus-gpio = <&gpio2 8 GPIO_ACTIVE_HIGH>; + }; + + extcon_usb2: extcon_usb2 { + compatible = "linux,extcon-usb-gpio"; + /* id-gpio = <&pcf_gpio_21 2 GPIO_ACTIVE_HIGH>; */ + vbus-gpio = <&gpio2 7 GPIO_ACTIVE_HIGH>; + }; }; &dra7_pmx_core { @@ -231,6 +243,14 @@ regulator-always-on; regulator-boot-on; }; + ldo4_reg: ldo4 { + /* VDDA_3V_USB: VDDA_USBHS33 */ + regulator-name = "ldo4"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + regulator-boot-on; + }; ldo5_reg: ldo5 { /* LDO5_OUT --> VDDA_1V8_PLL */ regulator-name = "ldo5"; @@ -334,3 +354,37 @@ }; }; }; + +&usb2_phy1 { + phy-supply = <&ldo4_reg>; +}; + +&usb2_phy2 { + phy-supply = <&ldo4_reg>; +}; + +&usb1 { + dr_mode = "otg"; +}; + +&usb2 { + dr_mode = "host"; +}; + +&omap_dwc3_1 { + extcon = <&extcon_usb1>; +}; + +&omap_dwc3_2 { + extcon = <&extcon_usb2>; +}; + +&gpio6 { + /* HACK to drive host vbus on USB2 */ + p13 { + gpio-hog; + gpios = <13 GPIO_ACTIVE_HIGH>; + output-high; + line-name = "usb2_host_hog"; + }; +}; |