Adding an USB type B port to Raspi5 for Midi input

You need to SSH to zynthian box and add this line

usb_max_current_enable=1

to /boot/firmware/config.txt file and restart the zynthian.

You can check if this parameter is set after restart by issuing the following command:

vcgencmd get_config usb_max_current_enable

There are two fields in webconf “hardware options” → “advance options” called “custom config” and “custom boot command”. Maybe you can add this line to some of these fields but this need to be confirmed by @riban or @jofemodo . I never used them before.

Forgot to say, make sure that your power supply can provide 5V/5A when you do this.

1 Like

Hi @stojos, thanks for the explanation :+1:!

As for the PD specs, it certainly should have a 5V/5A mode, since it is the official usb-C Raspberry PSU.

My only doubt is the unknown capability of the Y current+data usb-c cable, which I am using at the moment, to support more than 4A of amperage delivery.

Just reporting a strange behaviour, of my Y OTG USB-C data + power cable on Rpi5-Oram.

If I want the Pi5 (or maybe the Argon 5 M.2 enclosure) to detect enough current delivery at startup, I have to temporarily disconnect the Midi cable from the data leg of the adapter, otherwise the led switch will not blink and the system will not boot. After that, I can safely connect the Midi cable from the external computer and Oram works apparently well.

Could it be a sort of “uncompromising” power check at startup, from the Rpi5 sensors and firmware?..