Skip to contentSkip to conversation

config: Enable USB Keyboard support on RPi4

PATCH New Nicolas Saenz Julienne 4 participants 7 messages May 5, 2020 – Jul 8, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 config: Enable USB Keyboard support on RPi4

Supporting USB keyboards out of the box is both handy for development and production. Notably if u-boot is used to boot into GRUB.

---

Note that rpi_arm64_defconfig already supports USB keyboard. This is to be applied on top of Sylwester Nawrocki's PCIe/xHCI on RPi4 series.

 configs/rpi_4_32b_defconfig | 1 +
 configs/rpi_4_defconfig     | 1 +
 2 files changed, 2 insertions(+)
configs/rpi_4_32b_defconfig +1 -0
index dd7da1cf06..9c5ad7684e 100644
@@ -42,6 +42,7 @@ CONFIG_DM_USB=y
 CONFIG_DM_USB_GADGET=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_PCI=y
+CONFIG_USB_KEYBOARD=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_MANUFACTURER="FSL"
 CONFIG_USB_GADGET_VENDOR_NUM=0x0525
configs/rpi_4_defconfig +1 -0
index 6eeec4592e..1a92cd637e 100644
@@ -42,6 +42,7 @@ CONFIG_DM_USB=y
 CONFIG_DM_USB_GADGET=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_PCI=y
+CONFIG_USB_KEYBOARD=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_MANUFACTURER="FSL"
 CONFIG_USB_GADGET_VENDOR_NUM=0x0525
Signature · 1 line
2.26.2
#1 lore raw

PATCH 1/1 config: Enable USB Keyboard support on RPi4

Quoted 4 lines · Nicolas Saenz Julienne

Supporting USB keyboards out of the box is both handy for development and production. Notably if u-boot is used to boot into GRUB.

Quoted 3 lines

---
Note that rpi_arm64_defconfig already supports USB keyboard. This is to be applied on top of Sylwester Nawrocki's PCIe/xHCI on RPi4 series.

Thanks for the patch, USB keyboard worked well for me on rpi4. I actually used that feature to verify my PCIe/xHCI patch series.

Signature · 2 lines
Regards,
Sylwester
#2 lore raw

PATCH 1/1 config: Enable USB Keyboard support on RPi4

In reply to Nicolas Saenz Julienne
Quoted 6 lines · Nicolas Saenz Julienne

Supporting USB keyboards out of the box is both handy for development and production. Notably if u-boot is used to boot into GRUB.

Quoted 9 lines

---

Note that rpi_arm64_defconfig already supports USB keyboard. This is to be applied on top of Sylwester Nawrocki's PCIe/xHCI on RPi4 series.

 configs/rpi_4_32b_defconfig | 1 +
 configs/rpi_4_defconfig     | 1 +
 2 files changed, 2 insertions(+)
#3 lore raw

PATCH 1/1 config: Enable USB Keyboard support on RPi4

In reply to Nicolas Saenz Julienne
Quoted 19 lines · Nicolas Saenz Julienne

Supporting USB keyboards out of the box is both handy for development and production. Notably if u-boot is used to boot into GRUB.

---

Note that rpi_arm64_defconfig already supports USB keyboard. This is to be applied on top of Sylwester Nawrocki's PCIe/xHCI on RPi4 series.

 configs/rpi_4_32b_defconfig | 1 +
 configs/rpi_4_defconfig     | 1 +
 2 files changed, 2 insertions(+)
configs/rpi_4_32b_defconfig +0 -0
index dd7da1cf06..9c5ad7684e 100644

configs/rpi_4_32b_defconfig CONFIG_DM_USB=y · line 48

Quoted 7 lines
configs/rpi_4_32b_defconfig +1 -0
@@ -42,6 +42,7 @@ CONFIG_DM_USB=y
 CONFIG_DM_USB_GADGET=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_PCI=y
+CONFIG_USB_KEYBOARD=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_MANUFACTURER="FSL"
 CONFIG_USB_GADGET_VENDOR_NUM=0x0525

It seems we are missing CONFIG_SYS_STDIO_DEREGISTER=y
at least for me without this, U-Boot does not build.

Regards,
Matthias

Quoted 13 lines
configs/rpi_4_defconfig +1 -0
index 6eeec4592e..1a92cd637e 100644
@@ -42,6 +42,7 @@ CONFIG_DM_USB=y
 CONFIG_DM_USB_GADGET=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_PCI=y
+CONFIG_USB_KEYBOARD=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_MANUFACTURER="FSL"
 CONFIG_USB_GADGET_VENDOR_NUM=0x0525
#4 lore raw

PATCH 1/1 config: Enable USB Keyboard support on RPi4

Hi Matthias,

Quoted 3 lines · Matthias Brugger

It seems we are missing CONFIG_SYS_STDIO_DEREGISTER=y
at least for me without this, U-Boot does not build.

Isn't it selected by USB_KEYBOARD? I also had related build issues which disappeared after running "make clean".

Signature · 2 lines
Regards,
Sylwester
#5 lore raw

PATCH 1/1 config: Enable USB Keyboard support on RPi4

Quoted 10 lines · Sylwester Nawrocki

Hi Matthias,

Quoted 3 lines · Matthias Brugger

It seems we are missing CONFIG_SYS_STDIO_DEREGISTER=y
at least for me without this, U-Boot does not build.

Isn't it selected by USB_KEYBOARD? I also had related build issues which disappeared after running "make clean".

Correct. Sorry for the noise.

Matthias

#6 lore raw

PATCH 1/1 config: Enable USB Keyboard support on RPi4

In reply to Nicolas Saenz Julienne
Quoted 5 lines · Nicolas Saenz Julienne

Supporting USB keyboards out of the box is both handy for development and production. Notably if u-boot is used to boot into GRUB.

Applied to rpi-next now.
I dropped the hunk for 32 bit for now, please resend once 32 bit support got accepted.

Regards,
Matthias

Quoted 34 lines

---

Note that rpi_arm64_defconfig already supports USB keyboard. This is to be applied on top of Sylwester Nawrocki's PCIe/xHCI on RPi4 series.

  configs/rpi_4_32b_defconfig | 1 +
  configs/rpi_4_defconfig     | 1 +
  2 files changed, 2 insertions(+)
configs/rpi_4_32b_defconfig +1 -0
index dd7da1cf06..9c5ad7684e 100644
@@ -42,6 +42,7 @@ CONFIG_DM_USB=y
  CONFIG_DM_USB_GADGET=y
  CONFIG_USB_XHCI_HCD=y
  CONFIG_USB_XHCI_PCI=y
+CONFIG_USB_KEYBOARD=y
  CONFIG_USB_GADGET=y
  CONFIG_USB_GADGET_MANUFACTURER="FSL"
  CONFIG_USB_GADGET_VENDOR_NUM=0x0525
configs/rpi_4_defconfig +1 -0
index 6eeec4592e..1a92cd637e 100644
@@ -42,6 +42,7 @@ CONFIG_DM_USB=y
  CONFIG_DM_USB_GADGET=y
  CONFIG_USB_XHCI_HCD=y
  CONFIG_USB_XHCI_PCI=y
+CONFIG_USB_KEYBOARD=y
  CONFIG_USB_GADGET=y
  CONFIG_USB_GADGET_MANUFACTURER="FSL"
  CONFIG_USB_GADGET_VENDOR_NUM=0x0525