VAR-SOM-AM43 USB OTG host: Difference between revisions

From Variscite Wiki
(Created page with "{{PageHeader|VAR-SOM-AM43 - USB OTG as host}} {{DocImage|category1=VAR-SOM-AM43|category2=Yocto}} __toc__ From a SW perspective, the developer should do the following: *Downlo...")
 
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.dts, as follows:
*Update var-som-am43.dtsi, as follows:
<pre>
<pre>
$ gedit arch/arm/boot/dts/var-som-am43.dts
$ gedit arch/arm/boot/dts/var-som-am43.dtsi
...
...
          usb@47401800 {
    &usb1 {
                              status = "okay";
            dr_mode = "host";
                              dr_mode = "host"; /* <<-- Add this line */
            //dr_mode = "otg";
                        };
            status = "okay";
            pinctrl-names = "default", "sleep";
            pinctrl-0 = <&usb1_pins_default>;
            pinctrl-1 = <&usb1_pins_sleep>;
    };
 
...
...
</pre>
</pre>

Revision as of 09:31, 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.