Skip to contentSkip to conversation

rpi: Enable USB keyboard support

PATCH Superseded Simon Glass 3 participants 5 messages Aug 26, 2017 – Sep 1, 2017

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 rpi: Enable USB keyboard support

This is currently disabled, so USB keyboards are not detected in U-Boot. Enable this option to fix that.

---

Changes in v3:
- Add missing review/test tags

Changes in v2:
- Fix U_Boot typo

 configs/rpi_2_defconfig     | 1 +
 configs/rpi_3_32b_defconfig | 1 +
 configs/rpi_3_defconfig     | 1 +
 configs/rpi_defconfig       | 1 +
 4 files changed, 4 insertions(+)
configs/rpi_2_defconfig +1 -0
index 63d1e4042d..5150eed79c 100644
@@ -15,6 +15,7 @@ CONFIG_SYS_PROMPT="U-Boot> "
 CONFIG_CMD_GPIO=y
 CONFIG_CMD_MMC=y
 CONFIG_CMD_USB=y
+CONFIG_DM_KEYBOARD=y
 CONFIG_DM_MMC=y
 CONFIG_MMC_SDHCI=y
 CONFIG_MMC_SDHCI_BCM2835=y
configs/rpi_3_32b_defconfig +1 -0
index 343cb197a1..caceb85b07 100644
@@ -16,6 +16,7 @@ CONFIG_SYS_PROMPT="U-Boot> "
 CONFIG_CMD_GPIO=y
 CONFIG_CMD_MMC=y
 CONFIG_CMD_USB=y
+CONFIG_DM_KEYBOARD=y
 CONFIG_DM_MMC=y
 CONFIG_MMC_SDHCI=y
 CONFIG_MMC_SDHCI_BCM2835=y
configs/rpi_3_defconfig +1 -0
index 6c9f2e32b5..e3dd1b9124 100644
@@ -16,6 +16,7 @@ CONFIG_SYS_PROMPT="U-Boot> "
 CONFIG_CMD_GPIO=y
 CONFIG_CMD_MMC=y
 CONFIG_CMD_USB=y
+CONFIG_DM_KEYBOARD=y
 CONFIG_DM_MMC=y
 CONFIG_MMC_SDHCI=y
 CONFIG_MMC_SDHCI_BCM2835=y
configs/rpi_defconfig +1 -0
index 6b3cec5ce0..eaf9bb9189 100644
@@ -15,6 +15,7 @@ CONFIG_SYS_PROMPT="U-Boot> "
 CONFIG_CMD_GPIO=y
 CONFIG_CMD_MMC=y
 CONFIG_CMD_USB=y
+CONFIG_DM_KEYBOARD=y
 CONFIG_DM_MMC=y
 CONFIG_MMC_SDHCI=y
 CONFIG_MMC_SDHCI_BCM2835=y
Signature · 1 line
2.14.1.342.g6490525c54-goog
#1 lore raw

PATCH v3 1/1 rpi: Enable USB keyboard support

Quoted 7 lines · Simon Glass

This is currently disabled, so USB keyboards are not detected in U-Boot. Enable this option to fix that.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170826/64896939/attachment.sig>
#2 lore raw

PATCH v3 1/1 rpi: Enable USB keyboard support

In reply to Simon Glass
Quoted 11 lines

Am 26.08.2017 um 19:43 schrieb Simon Glass <[email protected]>:

This is currently disabled, so USB keyboards are not detected in U-Boot. Enable this option to fix that.

When did the default behavior on kbd usb support change? I'd be inclined to say that we should restore the exact same functionality scope as before for all affected boards, not just a few well tested ones ;).

In fact, wouldn't it make sense to imply usb kbd support in kconfig always when usb (and gfx?) is present?

That said, this patch itself is good either way, just maybe not reaching far enough ;).

Alex

#3 lore raw

PATCH v3 1/1 rpi: Enable USB keyboard support

Hi Alex,

Quoted 7 lines · Alexander Graf
Quoted 7 lines

Am 26.08.2017 um 19:43 schrieb Simon Glass <[email protected]>:

This is currently disabled, so USB keyboards are not detected in U-Boot. Enable this option to fix that.

Quoted 8 lines
Quoted 4 lines

When did the default behavior on kbd usb support change? I'd be inclined to say that we should restore the exact same functionality scope as before for all affected boards, not just a few well tested ones ;).

In fact, wouldn't it make sense to imply usb kbd support in kconfig always when usb (and gfx?) is present?

Well I think it is odd to have to enable this option separately when you already have decided to use the keyboard. I'm not sure what to do in the interim, but once everything is using DM, we will drop CONFIG_DM_KEYBOARD. So this is really just an interim state.

I don't have strong views either way.

Quoted 7 lines

That said, this patch itself is good either way, just maybe not reaching far enough ;).

Alex

Regards,
Simon

#4 lore raw

PATCH v3 1/1 rpi: Enable USB keyboard support

Quoted 17 lines · Simon Glass

Hi Alex,

Quoted 14 lines · Alexander Graf
Quoted 11 lines

Am 26.08.2017 um 19:43 schrieb Simon Glass <[email protected]>:

This is currently disabled, so USB keyboards are not detected in U-Boot. Enable this option to fix that.

When did the default behavior on kbd usb support change? I'd be inclined to say that we should restore the exact same functionality scope as before for all affected boards, not just a few well tested ones ;).

Quoted 8 lines
Quoted 1 line

In fact, wouldn't it make sense to imply usb kbd support in kconfig always when usb (and gfx?) is present?

Well I think it is odd to have to enable this option separately when you already have decided to use the keyboard. I'm not sure what to do in the interim, but once everything is using DM, we will drop CONFIG_DM_KEYBOARD. So this is really just an interim state.

I don't have strong views either way.

If someone wants to cook up a patch to add 'imply USB_KEYBOARD' in the right places we can do it that way for now certainly.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170901/3301ee98/attachment.sig>