RPi Zero 2 W usb keyboard support?

Filip Žaludek filip.zaludek at oracle.com
Tue Aug 22 17:52:42 CEST 2023


Hi Peter,

On 8/22/23 13:00, Peter Robinson wrote:
> Hi,
> 
>>> Hi,
>>>     is supposed usb keyboard to work in u-boot 2023.04 on RPi Zero 2 W?
>>> Configured as rpi_arm64_defconfig, no usb devices found but subsequent
>>> kernel works as expected.
>>>
>>>
>>> [pi02]
>>> kernel=u-boot.bin
>>> otg_mode=0
>>> dtoverlay=dwc2,dr_mode=host
>>>
>>>
>>
>>
>> Hello,
>>    I see, increasing usb_pgood_delay makes the trick.
> 
> I wonder if it's device specific, my Logitech wireless keyboard is
> detected with the defaults:
> 
> U-Boot>
> USB device tree:
>    1  Hub (480 Mb/s, 0mA)
>    |   U-Boot Root Hub
>    |
>    +-2  Human Interface (12 Mb/s, 98mA)
>         Logitech USB Receiver



Yes, seems to be device specific, it is also sensitive to OTG adaptor used..


Notes: (no usb_pgood_delay adjustments)
Linux 5.15.0:
* all the adaptors vs keyboards works
U-boot 2023.04: (+works, -does not)
* k1_a1- k1_a2+                        // workaround usb_pgood_delay=1000
* k2_a1- k2_a2-                        // 'usb tree' detected but does not work
* k3_a1+ k3_a2+


Keyboards:
k1/
Bus 001 Device 003: ID 17ef:6099 Lenovo Lenovo Traditional USB Keyboard,                bcdUSB 1.10, bcdDevice 1.10, 
bcdHID 1.10
k2/
Bus 001 Device 002: ID 03f0:0024 HP, Inc KU-0316 Keyboard,                              bcdUSB 2.00, bcdDevice 1.30, 
bcdHID 1.11
k3/
Bus 001 Device 002: ID 04f2:0116 Chicony Electronics Co., Ltd KU-2971/KU-0325 Keyboard, bcdUSB 1.10, bcdDevice 3.00, 
bcdHID 1.10


OTG Adaptors:
a1/
The PiHut, USB to microUSB OTG Shim
https://rpishop.cz/datove-redukce/4365-prevodnik-usb-na-microusb-otg-shim.html
a2/
USB 2.0 Hi-Speed 0,2m OTG adaptér
https://rpishop.cz/datove-redukce/580-usb-20-hi-speed-02m-otg-adapter.html




More information about the U-Boot mailing list