DESK-RZ-L/Peripherals/USB

From DAVE Developer's Wiki
Jump to: navigation, search
History
Issue Date Notes
2025/12/16 DESK-RZ-L-1.x.x release



Peripheral USB[edit | edit source]

Configuration[edit | edit source]

These peripheral(s) can only be used with the following ConfigID(s) (see the associated BOM):

ConfigID Note
2002 -
2003 -

Device tree configuration[edit | edit source]

Below is an example of a device tree configuration used on a standard DAVE kit for the ZERO SOM Evaluation Kit.

From kernel device tree rzt2h-eb23-cb2003.dts:

...
&ohci {
	memory-region = <&global_cma>;
	dr_mode = "otg";
	status = "okay";
};

&ehci {
	memory-region = <&global_cma>;
	dr_mode = "otg";
	status = "okay";
};

&hsusb {
	dr_mode = "otg";
	status = "okay";
};

&usb2_phy {
	status = "okay";
};
...


Accessing the peripheral[edit | edit source]

USB sticks can be connected using a micro-USB to USB Type-A adapter.

U-boot[edit | edit source]

=> usb start
starting USB...
Bus usb@92040100: USB EHCI 1.10
scanning bus usb@92040100 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found

=> ls usb 0:1
            System Volume Information/
  1965792   test.txt

1 file(s), 1 dir(s)

Linux[edit | edit source]

[   42.318331] usb 1-1: new high-speed USB device number 2 using ehci-platform
[   42.477574] usb-storage 1-1:1.0: USB Mass Storage device detected
[   42.478517] scsi host0: usb-storage 1-1:1.0
[   43.896128] scsi 0:0:0:0: Direct-Access     ADATA    USB Flash Drive  1100 PQ: 0 ANSI: 0 CCS
[   43.897102] sd 0:0:0:0: [sda] 7913472 512-byte logical blocks: (4.05 GB/3.77 GiB)
[   43.897834] sd 0:0:0:0: [sda] Write Protect is off
[   43.897843] sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00
[   43.898597] sd 0:0:0:0: [sda] No Caching mode page found
[   43.898606] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   43.922599]  sda: sda1
[   43.925463] sd 0:0:0:0: [sda] Attached SCSI removable disk