sunxi: A64/H5 devices: enable usb keyboard support
PATCH 1/1 sunxi: A64/H5 devices: enable usb keyboard support
Now the A64/H5 SoCs support video output it's useful to enable usb keyboard support so console can be used via standard keyboard/video interface.
Tested on Pine64.
--- configs/a64-olinuxino_defconfig | 2 ++ configs/bananapi_m64_defconfig | 2 ++ configs/nanopi_a64_defconfig | 2 ++ configs/nanopi_neo2_defconfig | 2 ++ configs/nanopi_neo_plus2_defconfig | 2 ++ configs/orangepi_pc2_defconfig | 2 ++ configs/orangepi_win_defconfig | 2 ++ configs/orangepi_zero_plus2_defconfig | 2 ++ configs/pine64_plus_defconfig | 2 ++ configs/sopine_baseboard_defconfig | 2 ++ 10 files changed, 20 insertions(+)
configs/a64-olinuxino_defconfig +2 -0
@@ -13,3 +13,5 @@ CONFIG_DEFAULT_DEVICE_TREE="sun50i-a64-olinuxino" CONFIG_SUN8I_EMAC=y CONFIG_USB_EHCI_HCD=y CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y +CONFIG_DM_KEYBOARD=y +CONFIG_USB_KEYBOARD=y
configs/bananapi_m64_defconfig +2 -0
@@ -14,3 +14,5 @@ CONFIG_DEFAULT_DEVICE_TREE="sun50i-a64-bananapi-m64" CONFIG_SUN8I_EMAC=y CONFIG_USB_EHCI_HCD=y CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y +CONFIG_DM_KEYBOARD=y +CONFIG_USB_KEYBOARD=y
configs/nanopi_a64_defconfig +2 -0
@@ -12,3 +12,5 @@ CONFIG_DEFAULT_DEVICE_TREE="sun50i-a64-nanopi-a64" CONFIG_SUN8I_EMAC=y CONFIG_USB_EHCI_HCD=y CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y +CONFIG_DM_KEYBOARD=y +CONFIG_USB_KEYBOARD=y
configs/nanopi_neo2_defconfig +2 -0
@@ -13,3 +13,5 @@ CONFIG_DEFAULT_DEVICE_TREE="sun50i-h5-nanopi-neo2" CONFIG_SUN8I_EMAC=y CONFIG_USB_EHCI_HCD=y CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y +CONFIG_DM_KEYBOARD=y +CONFIG_USB_KEYBOARD=y
configs/nanopi_neo_plus2_defconfig +2 -0
@@ -14,3 +14,5 @@ CONFIG_DEFAULT_DEVICE_TREE="sun50i-h5-nanopi-neo-plus2" # CONFIG_SPL_EFI_PARTITION is not set CONFIG_SUN8I_EMAC=y CONFIG_USB_EHCI_HCD=y +CONFIG_DM_KEYBOARD=y +CONFIG_USB_KEYBOARD=y
configs/orangepi_pc2_defconfig +2 -0
@@ -15,3 +15,5 @@ CONFIG_DEFAULT_DEVICE_TREE="sun50i-h5-orangepi-pc2" CONFIG_SUN8I_EMAC=y CONFIG_USB_EHCI_HCD=y CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y +CONFIG_DM_KEYBOARD=y +CONFIG_USB_KEYBOARD=y
configs/orangepi_win_defconfig +2 -0
@@ -13,3 +13,5 @@ CONFIG_DEFAULT_DEVICE_TREE="sun50i-a64-orangepi-win" CONFIG_SUN8I_EMAC=y CONFIG_USB_EHCI_HCD=y CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y +CONFIG_DM_KEYBOARD=y +CONFIG_USB_KEYBOARD=y
configs/orangepi_zero_plus2_defconfig +2 -0
@@ -15,3 +15,5 @@ CONFIG_DEFAULT_DEVICE_TREE="sun50i-h5-orangepi-zero-plus2" CONFIG_SUN8I_EMAC=y CONFIG_USB_EHCI_HCD=y CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y +CONFIG_DM_KEYBOARD=y +CONFIG_USB_KEYBOARD=y
configs/pine64_plus_defconfig +2 -0
@@ -15,3 +15,5 @@ CONFIG_RTL8211E_PINE64_GIGABIT_FIX=y CONFIG_SUN8I_EMAC=y CONFIG_USB_EHCI_HCD=y CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y +CONFIG_DM_KEYBOARD=y +CONFIG_USB_KEYBOARD=y
configs/sopine_baseboard_defconfig +2 -0
@@ -19,3 +19,5 @@ CONFIG_DEFAULT_DEVICE_TREE="sun50i-a64-pine64-plus" CONFIG_SUN8I_EMAC=y CONFIG_USB_EHCI_HCD=y CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y +CONFIG_DM_KEYBOARD=y +CONFIG_USB_KEYBOARD=y
Signature · 1 line
2.17.0
PATCH 1/1 sunxi: A64/H5 devices: enable usb keyboard support
Quoted 6 lines · Peter Robinson
Now the A64/H5 SoCs support video output it's useful to enable usb keyboard support so console can be used via standard keyboard/video interface.
Tested on Pine64.
Signed-off-by Peter Robinson <[email protected]>
Don't forget any maintainers when you're sending a patch :)
Quoted 18 lines
--- configs/a64-olinuxino_defconfig | 2 ++ configs/bananapi_m64_defconfig | 2 ++ configs/nanopi_a64_defconfig | 2 ++ configs/nanopi_neo2_defconfig | 2 ++ configs/nanopi_neo_plus2_defconfig | 2 ++ configs/orangepi_pc2_defconfig | 2 ++ configs/orangepi_win_defconfig | 2 ++ configs/orangepi_zero_plus2_defconfig | 2 ++ configs/pine64_plus_defconfig | 2 ++ configs/sopine_baseboard_defconfig | 2 ++ 10 files changed, 20 insertions(+)configs/a64-olinuxino_defconfig +0
-0
configs/a64-olinuxino_defconfig CONFIG_DEFAULT_DEVICE_TREE="sun50i-a64-olinuxino" · line 17
Quoted 5 lines
configs/a64-olinuxino_defconfig +2
-0@@ -13,3 +13,5 @@ CONFIG_DEFAULT_DEVICE_TREE="sun50i-a64-olinuxino" CONFIG_SUN8I_EMAC=y CONFIG_USB_EHCI_HCD=y CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y +CONFIG_DM_KEYBOARD=y +CONFIG_USB_KEYBOARD=y
Both are already selected by ARCH_SUNXI if DISTRO_DEFAULTS is set. In turn, DISTRO_DEFAULTS is enabled by default if ARCH_SUNXI is. Why do you need to enable it in the defconfig?
If this doesn't work for some reason, this should be fixed at the Kconfig level, not in the defconfig.
Maxime
Signature · 10 lines
Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180409/b121773c/attachment.sig>
PATCH 1/1 sunxi: A64/H5 devices: enable usb keyboard support
Quoted 9 lines · Maxime Ripard
Quoted 6 lines · Peter Robinson
Now the A64/H5 SoCs support video output it's useful to enable usb keyboard support so console can be used via standard keyboard/video interface.
Tested on Pine64.
Signed-off-by Peter Robinson <[email protected]>Don't forget any maintainers when you're sending a patch :)
The list in the cc: is what ./scripts/get_maintainer.pl returned when run against the patch
Quoted 37 lines
Quoted 18 lines
--- configs/a64-olinuxino_defconfig | 2 ++ configs/bananapi_m64_defconfig | 2 ++ configs/nanopi_a64_defconfig | 2 ++ configs/nanopi_neo2_defconfig | 2 ++ configs/nanopi_neo_plus2_defconfig | 2 ++ configs/orangepi_pc2_defconfig | 2 ++ configs/orangepi_win_defconfig | 2 ++ configs/orangepi_zero_plus2_defconfig | 2 ++ configs/pine64_plus_defconfig | 2 ++ configs/sopine_baseboard_defconfig | 2 ++ 10 files changed, 20 insertions(+)configs/a64-olinuxino_defconfig +0
-0configs/a64-olinuxino_defconfig CONFIG_DEFAULT_DEVICE_TREE="sun50i-a64-olinuxino" · line 17
Quoted 5 lines
configs/a64-olinuxino_defconfig +2
-0@@ -13,3 +13,5 @@ CONFIG_DEFAULT_DEVICE_TREE="sun50i-a64-olinuxino" CONFIG_SUN8I_EMAC=y CONFIG_USB_EHCI_HCD=y CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y +CONFIG_DM_KEYBOARD=y +CONFIG_USB_KEYBOARD=yBoth are already selected by
ARCH_SUNXIifDISTRO_DEFAULTSis set. In turn,DISTRO_DEFAULTSis enabled by default ifARCH_SUNXIis. Why do you need to enable it in the defconfig?If this doesn't work for some reason, this should be fixed at the
Kconfiglevel, not in the defconfig.Maxime
--
Maxime Ripard, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
PATCH 1/1 sunxi: A64/H5 devices: enable usb keyboard support
In reply to Peter RobinsonQuoted 4 lines · Peter Robinson
Now the A64/H5 SoCs support video output it's useful to enable usb keyboard support so console can be used via standard keyboard/video interface.
Tested on Pine64.
Is it usefull on devices without video output(no HDMI, VGA)?
Quoted 17 lines
configs/nanopi_neo2_defconfig | 2 ++ configs/nanopi_neo_plus2_defconfig | 2 ++configs/nanopi_neo2_defconfig +2
-0@@ -13,3 +13,5 @@ CONFIG_DEFAULT_DEVICE_TREE="sun50i-h5-nanopi-neo2" CONFIG_SUN8I_EMAC=y CONFIG_USB_EHCI_HCD=y CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y +CONFIG_DM_KEYBOARD=y +CONFIG_USB_KEYBOARD=yconfigs/nanopi_neo_plus2_defconfig +0
-0
configs/nanopi_neo_plus2_defconfig CONFIG_DEFAULT_DEVICE_TREE="sun50i-h5-nanopi-neo-plus2" · line 18
Quoted 5 lines
configs/nanopi_neo_plus2_defconfig +2
-0@@ -14,3 +14,5 @@ CONFIG_DEFAULT_DEVICE_TREE="sun50i-h5-nanopi-neo-plus2" # CONFIG_SPL_EFI_PARTITION is not set CONFIG_SUN8I_EMAC=y CONFIG_USB_EHCI_HCD=y +CONFIG_DM_KEYBOARD=y +CONFIG_USB_KEYBOARD=y
these two devices have no video out. I am not sure all these have HDMI output.
PATCH 1/1 sunxi: A64/H5 devices: enable usb keyboard support
Quoted 25 lines · Antony Antony
Quoted 4 lines · Peter Robinson
Now the A64/H5 SoCs support video output it's useful to enable usb keyboard support so console can be used via standard keyboard/video interface.
Tested on Pine64.
Is it usefull on devices without video
output(no HDMI, VGA)?Quoted 16 lines
configs/nanopi_neo2_defconfig | 2 ++ configs/nanopi_neo_plus2_defconfig | 2 ++configs/nanopi_neo2_defconfig +2
-0@@ -13,3 +13,5 @@ CONFIG_DEFAULT_DEVICE_TREE="sun50i-h5-nanopi-neo2" CONFIG_SUN8I_EMAC=y CONFIG_USB_EHCI_HCD=y CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y +CONFIG_DM_KEYBOARD=y +CONFIG_USB_KEYBOARD=yconfigs/nanopi_neo_plus2_defconfig +0
-0
Quoted 8 lines
configs/nanopi_neo_plus2_defconfig CONFIG_DEFAULT_DEVICE_TREE="sun50i-h5-nanopi-neo-plus2" · line 18
Quoted 6 lines
configs/nanopi_neo_plus2_defconfig +2
-0@@ -14,3 +14,5 @@ CONFIG_DEFAULT_DEVICE_TREE="sun50i-h5-nanopi-neo-plus2" # CONFIG_SPL_EFI_PARTITION is not set CONFIG_SUN8I_EMAC=y CONFIG_USB_EHCI_HCD=y +CONFIG_DM_KEYBOARD=y +CONFIG_USB_KEYBOARD=ythese two devices have no video out. I am not sure all these have HDMI output.
Well it's likely a moot point as the HDMI seems enabled on the SoC by default but I'll update to drop those two.