Skip to content

Commit

Permalink
imx6ul-oas: Fix USB host
Browse files Browse the repository at this point in the history
Now the USB connector next to the auxilary CAN connector will work correctly as
USB host.
  • Loading branch information
Andreas Anderberg committed Jul 15, 2019
1 parent 029e14e commit e589c8d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions arch/arm/boot/dts/imx6ul-oas.dts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,17 @@
"LineInB", "INB2";
status = "okay";
};

reg_usb_otg2_vbus: reg_usb_otg2@0 {
compatible = "regulator-fixed";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_usb_otg2_vbus>;
regulator-name = "usb_otg2_vbus";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
gpio = <&gpio1 2 GPIO_ACTIVE_HIGH>;
enable-active-high;
};
};

&can1 {
Expand Down Expand Up @@ -159,6 +170,7 @@
dr_mode = "host";
digi,power-line-active-high;
disable-over-current;
vbus-supply = <&reg_usb_otg2_vbus>;
status = "okay";
};

Expand Down Expand Up @@ -315,5 +327,11 @@
MX6UL_PAD_SNVS_TAMPER5__GPIO5_IO05 0x80000000
>;
};

pinctrl_usb_otg2_vbus: usbotg2vbusgrp {
fsl,pins = <
MX6UL_PAD_GPIO1_IO02__GPIO1_IO02 0x10b0
>;
};
};
};

0 comments on commit e589c8d

Please sign in to comment.