VAR-SOM-AM43 USB OTG host: Difference between revisions
From Variscite Wiki
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
From a SW perspective, the developer should do the following: | From a SW perspective, the developer should do the following: | ||
*Download a VAR-SOM-AM43 kernel out-of-tree. | *Download a VAR-SOM-AM43 kernel out-of-tree. | ||
*Update var-som-am43.dtsi | *Update var-som-am43.dtsi as follows: | ||
<pre> | <pre> | ||
$ gedit arch/arm/boot/dts/var-som-am43.dtsi | $ gedit arch/arm/boot/dts/var-som-am43.dtsi |
Latest revision as of 09:32, 27 December 2015
VAR-SOM-AM43 - USB OTG as host
From a SW perspective, the developer should do the following:
- Download a VAR-SOM-AM43 kernel out-of-tree.
- Update var-som-am43.dtsi as follows:
$ gedit arch/arm/boot/dts/var-som-am43.dtsi ... &usb1 { dr_mode = "host"; //dr_mode = "otg"; status = "okay"; pinctrl-names = "default", "sleep"; pinctrl-0 = <&usb1_pins_default>; pinctrl-1 = <&usb1_pins_sleep>; }; ...
- Build var-som-am43.dtb and replace it on flash / NFS.
Once the var-som-am43.dtb has been replaced on the rootfs - The USB-OTG port will function in Host-only mode.
At this point, the user can simply connect a USB Mouse or DOK to the OTG port.