* [PATCH 0/3] Enable bootmenu, and button-kbd driver for menu entry navigation.
@ 2023-04-01 9:28 Dzmitry Sankouski
2023-04-01 9:28 ` [PATCH 1/3] starqltechn: use 16x32 font Dzmitry Sankouski
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Dzmitry Sankouski @ 2023-04-01 9:28 UTC (permalink / raw)
To: u-boot; +Cc: Dzmitry Sankouski, Peng Fan, Ramon Fried, Simon Glass, Sumit Garg
Bootmenu needed to multiboot Android with other OSes.
16x32 font used for starqltechn's high ppi display.
Dzmitry Sankouski (3):
starqltechn: use 16x32 font
starqltechn: use button keyboard driver
starqltechn: enable bootmenu
arch/arm/dts/starqltechn.dts | 18 ++++++++++++++++++
configs/starqltechn_defconfig | 6 ++++++
include/configs/sdm845.h | 2 +-
3 files changed, 25 insertions(+), 1 deletion(-)
--
2.30.2
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 1/3] starqltechn: use 16x32 font
2023-04-01 9:28 [PATCH 0/3] Enable bootmenu, and button-kbd driver for menu entry navigation Dzmitry Sankouski
@ 2023-04-01 9:28 ` Dzmitry Sankouski
2023-04-02 2:39 ` Simon Glass
2023-05-03 13:26 ` Tom Rini
2023-04-01 9:28 ` [PATCH 2/3] starqltechn: use button keyboard driver Dzmitry Sankouski
2023-04-01 9:28 ` [PATCH 3/3] starqltechn: enable bootmenu Dzmitry Sankouski
2 siblings, 2 replies; 7+ messages in thread
From: Dzmitry Sankouski @ 2023-04-01 9:28 UTC (permalink / raw)
To: u-boot; +Cc: Dzmitry Sankouski
This font is more readable on high ppi display
Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com>
---
configs/starqltechn_defconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/configs/starqltechn_defconfig b/configs/starqltechn_defconfig
index 3d96e0ae09..599d926058 100644
--- a/configs/starqltechn_defconfig
+++ b/configs/starqltechn_defconfig
@@ -29,6 +29,8 @@ CONFIG_PMIC_QCOM=y
CONFIG_MSM_GENI_SERIAL=y
CONFIG_SPMI_MSM=y
CONFIG_VIDEO=y
+# CONFIG_VIDEO_FONT_8X16 is not set
+CONFIG_VIDEO_FONT_16X32=y
CONFIG_SYS_WHITE_ON_BLACK=y
CONFIG_VIDEO_SIMPLE=y
CONFIG_VIDEO_DT_SIMPLEFB=y
--
2.30.2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 2/3] starqltechn: use button keyboard driver
2023-04-01 9:28 [PATCH 0/3] Enable bootmenu, and button-kbd driver for menu entry navigation Dzmitry Sankouski
2023-04-01 9:28 ` [PATCH 1/3] starqltechn: use 16x32 font Dzmitry Sankouski
@ 2023-04-01 9:28 ` Dzmitry Sankouski
2023-04-02 2:39 ` Simon Glass
2023-04-01 9:28 ` [PATCH 3/3] starqltechn: enable bootmenu Dzmitry Sankouski
2 siblings, 1 reply; 7+ messages in thread
From: Dzmitry Sankouski @ 2023-04-01 9:28 UTC (permalink / raw)
To: u-boot; +Cc: Dzmitry Sankouski, Peng Fan, Ramon Fried, Simon Glass, Sumit Garg
Button keyboard driver used to navigate bootmenu entries.
Add gpio buttons, button keyboard driver.
Add gpio keys dts bindings.
Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com>
---
arch/arm/dts/starqltechn.dts | 18 ++++++++++++++++++
configs/starqltechn_defconfig | 3 +++
include/configs/sdm845.h | 2 +-
3 files changed, 22 insertions(+), 1 deletion(-)
diff --git a/arch/arm/dts/starqltechn.dts b/arch/arm/dts/starqltechn.dts
index 34a4f59cbd..6c90447362 100644
--- a/arch/arm/dts/starqltechn.dts
+++ b/arch/arm/dts/starqltechn.dts
@@ -9,6 +9,8 @@
/dts-v1/;
#include "sdm845.dtsi"
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
/ {
model = "Samsung S9 (SM-G9600)";
@@ -43,6 +45,22 @@
format = "a8r8g8b8";
};
+ gpio-keys {
+ compatible = "gpio-keys";
+
+ key-pwr {
+ label = "Power";
+ linux,code = <KEY_ENTER>;
+ gpios = <&pm8998_pon 0 GPIO_ACTIVE_LOW>;
+ };
+
+ key-vol-down {
+ label = "Volume Down";
+ linux,code = <KEY_DOWN>;
+ gpios = <&pm8998_pon 1 GPIO_ACTIVE_LOW>;
+ };
+ };
+
soc: soc {
serial@a84000 {
status = "okay";
diff --git a/configs/starqltechn_defconfig b/configs/starqltechn_defconfig
index 599d926058..92e7254c73 100644
--- a/configs/starqltechn_defconfig
+++ b/configs/starqltechn_defconfig
@@ -20,9 +20,12 @@ CONFIG_SYS_PBSIZE=532
CONFIG_CMD_GPIO=y
CONFIG_CMD_BMP=y
# CONFIG_NET is not set
+CONFIG_BUTTON=y
CONFIG_CLK=y
CONFIG_MSM_GPIO=y
CONFIG_QCOM_PMIC_GPIO=y
+CONFIG_DM_KEYBOARD=y
+CONFIG_BUTTON_KEYBOARD=y
CONFIG_PINCTRL=y
CONFIG_DM_PMIC=y
CONFIG_PMIC_QCOM=y
diff --git a/include/configs/sdm845.h b/include/configs/sdm845.h
index 2211751b54..673268dca9 100644
--- a/include/configs/sdm845.h
+++ b/include/configs/sdm845.h
@@ -16,7 +16,7 @@
#define CFG_EXTRA_ENV_SETTINGS \
"bootm_size=0x4000000\0" \
"bootm_low=0x80000000\0" \
- "stdin=serial\0" \
+ "stdin=serial,button-kbd\0" \
"stdout=serial,vidconsole\0" \
"stderr=serial,vidconsole\0" \
"preboot=source $prevbl_initrd_start_addr:prebootscript\0" \
--
2.30.2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 3/3] starqltechn: enable bootmenu
2023-04-01 9:28 [PATCH 0/3] Enable bootmenu, and button-kbd driver for menu entry navigation Dzmitry Sankouski
2023-04-01 9:28 ` [PATCH 1/3] starqltechn: use 16x32 font Dzmitry Sankouski
2023-04-01 9:28 ` [PATCH 2/3] starqltechn: use button keyboard driver Dzmitry Sankouski
@ 2023-04-01 9:28 ` Dzmitry Sankouski
2 siblings, 0 replies; 7+ messages in thread
From: Dzmitry Sankouski @ 2023-04-01 9:28 UTC (permalink / raw)
To: u-boot; +Cc: Dzmitry Sankouski
Needed for multiboot with vendor's Android.
Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com>
---
configs/starqltechn_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/configs/starqltechn_defconfig b/configs/starqltechn_defconfig
index 92e7254c73..5b85ce5fe9 100644
--- a/configs/starqltechn_defconfig
+++ b/configs/starqltechn_defconfig
@@ -17,6 +17,7 @@ CONFIG_HUSH_PARSER=y
CONFIG_SYS_MAXARGS=64
CONFIG_SYS_CBSIZE=512
CONFIG_SYS_PBSIZE=532
+CONFIG_CMD_BOOTMENU=y
CONFIG_CMD_GPIO=y
CONFIG_CMD_BMP=y
# CONFIG_NET is not set
--
2.30.2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 1/3] starqltechn: use 16x32 font
2023-04-01 9:28 ` [PATCH 1/3] starqltechn: use 16x32 font Dzmitry Sankouski
@ 2023-04-02 2:39 ` Simon Glass
2023-05-03 13:26 ` Tom Rini
1 sibling, 0 replies; 7+ messages in thread
From: Simon Glass @ 2023-04-02 2:39 UTC (permalink / raw)
To: Dzmitry Sankouski; +Cc: U-Boot Mailing List
On Sat, 1 Apr 2023 at 22:29, Dzmitry Sankouski <dsankouski@gmail.com> wrote:
>
> This font is more readable on high ppi display
>
> Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com>
> ---
>
> configs/starqltechn_defconfig | 2 ++
> 1 file changed, 2 insertions(+)
>
Reviewed-by: Simon Glass <sjg@chromium.org>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/3] starqltechn: use button keyboard driver
2023-04-01 9:28 ` [PATCH 2/3] starqltechn: use button keyboard driver Dzmitry Sankouski
@ 2023-04-02 2:39 ` Simon Glass
0 siblings, 0 replies; 7+ messages in thread
From: Simon Glass @ 2023-04-02 2:39 UTC (permalink / raw)
To: Dzmitry Sankouski; +Cc: U-Boot Mailing List, Peng Fan, Ramon Fried, Sumit Garg
On Sat, 1 Apr 2023 at 22:28, Dzmitry Sankouski <dsankouski@gmail.com> wrote:
>
> Button keyboard driver used to navigate bootmenu entries.
>
> Add gpio buttons, button keyboard driver.
> Add gpio keys dts bindings.
>
> Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com>
> ---
>
> arch/arm/dts/starqltechn.dts | 18 ++++++++++++++++++
> configs/starqltechn_defconfig | 3 +++
> include/configs/sdm845.h | 2 +-
> 3 files changed, 22 insertions(+), 1 deletion(-)
>
Reviewed-by: Simon Glass <sjg@chromium.org>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/3] starqltechn: use 16x32 font
2023-04-01 9:28 ` [PATCH 1/3] starqltechn: use 16x32 font Dzmitry Sankouski
2023-04-02 2:39 ` Simon Glass
@ 2023-05-03 13:26 ` Tom Rini
1 sibling, 0 replies; 7+ messages in thread
From: Tom Rini @ 2023-05-03 13:26 UTC (permalink / raw)
To: Dzmitry Sankouski; +Cc: u-boot
[-- Attachment #1: Type: text/plain, Size: 295 bytes --]
On Sat, Apr 01, 2023 at 12:28:42PM +0300, Dzmitry Sankouski wrote:
> This font is more readable on high ppi display
>
> Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com>
> Reviewed-by: Simon Glass <sjg@chromium.org>
For the series, applied to u-boot/master, thanks!
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2023-05-03 13:27 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-01 9:28 [PATCH 0/3] Enable bootmenu, and button-kbd driver for menu entry navigation Dzmitry Sankouski
2023-04-01 9:28 ` [PATCH 1/3] starqltechn: use 16x32 font Dzmitry Sankouski
2023-04-02 2:39 ` Simon Glass
2023-05-03 13:26 ` Tom Rini
2023-04-01 9:28 ` [PATCH 2/3] starqltechn: use button keyboard driver Dzmitry Sankouski
2023-04-02 2:39 ` Simon Glass
2023-04-01 9:28 ` [PATCH 3/3] starqltechn: enable bootmenu Dzmitry Sankouski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).