>From 94e21cc200e09c51752e4bb86cfac320a92c48a5 Mon Sep 17 00:00:00 2001
From: Dzmitry Sankouski
Date: Sun, 29 Aug 2021 21:57:33 +0300
Subject: [PATCH 6/6 v2] board: samsung: add Samsung Galaxy S9/S9+(SM-G96x0)
board
Samsung S9 SM-G9600 - Snapdragon SDM845 version of the phone,
for China \ H
>From b65826c49fee93dd7ded11a848814d8fa79fdb2e Mon Sep 17 00:00:00 2001
From: Dzmitry Sankouski
Date: Sat, 28 Aug 2021 13:53:42 +0300
Subject: [PATCH 2/6 v3] spmi: msm: add arbiter version 5 support
Currently driver supports only version 1 and 2.
Version 5 has slightly different regist
Generic Interface (GENI) Serial Engine (SE) based uart
can be found on newer qualcomm SOCs, starting from SDM845.
Tested on Samsung SM-G9600(starqltechn)
by chain-loading u-boot with stock bootloader.
Signed-off-by: Dzmitry Sankouski
Cc: Ramon Fried
Cc: Tom Rini
---
Changes for v2:
- change
Samsung S9 SM-G9600 - Snapdragon SDM845 version of the phone,
for China \ Hong Kong markets.
Has unlockable bootloader, unlike SM-G960U (American market version),
which allows running u-boot as a chain-loaded bootloader.
Signed-off-by: Dzmitry Sankouski
Cc: Ramon Fried
Cc: Tom Rini
---
Changes
Currently driver supports only version 1 and 2.
Version 5 has slightly different registers structure
Signed-off-by: Dzmitry Sankouski
Cc: Ramon Fried
Cc: Tom Rini
---
Changes for v2:
- change string formats in debug statements
Changes for v3:
- remove if else braces where possible
Changes
Samsung Galaxy A3, A5, A7 (2017) - middle class Samsung smartphones.
U-boot can be used as chain-loaded bootloader to gain control
on booting vanilla linux(and possibly others) kernels
Signed-off-by: Dzmitry Sankouski
Cc: Minkyu Kang
---
arch/arm/dts/Makefile| 3 +
arch/arm
Signed-off-by: Dzmitry Sankouski
Cc: Minkyu Kang
---
drivers/serial/serial_s5p.c | 8 +---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/drivers/serial/serial_s5p.c b/drivers/serial/serial_s5p.c
index 6d09952a5d..caa9a4e5c1 100644
--- a/drivers/serial/serial_s5p.c
+++ b
and tablets
introduced on March 2017.
Features:
- 8 Cortex A53 cores
- ARM Mali-T830 MP3 GPU
- LTE Cat. 7 (7880) or 6 (7870) modem
Dzmitry Sankouski (4):
serial: samsung: add support for skip debug init in s5p
pinctrl: exynos: add support for multiple pin banks
SoC: exynos: add support
Samsung Exynos 7880 \ 7870 - SoC for mainstream smartphones and tablets
introduced on March 2017.
Features:
- 8 Cortex A53 cores
- ARM Mali-T830 MP3 GPU
- LTE Cat. 7 (7880) or 6 (7870) modem
Signed-off-by: Dzmitry Sankouski
Cc: Minkyu Kang
---
arch/arm/dts/exynos78x0-gpio.dtsi | 204
version of the phone,
for China \ Hong Kong markets.
Has unlockable bootloader, unlike SM-G960U (American market version),
which allows running u-boot as a chain-loaded bootloader.
Dzmitry Sankouski (6):
serial: qcom: add support for GENI serial driver
spmi: msm: add arbiter version 5 support
Signed-off-by: Dzmitry Sankouski
Cc: Ramon Fried
Cc: Tom Rini
Cc: Stephan Gerhold
---
Changes for v2:
- Add __section(".data") for pin_name variable.
arch/arm/mach-snapdragon/pinctrl-sdm845.c | 44 +++
arch/arm/mach-snapdragon/pinctrl-snapdragon.c | 1 +
arc
Iterate all pin banks to find a pin
Signed-off-by: Dzmitry Sankouski
Cc: Minkyu Kang
---
drivers/pinctrl/exynos/pinctrl-exynos.c | 28 +++--
1 file changed, 22 insertions(+), 6 deletions(-)
diff --git a/drivers/pinctrl/exynos/pinctrl-exynos.c
b/drivers/pinctrl/exynos
Generic Interface (GENI) Serial Engine (SE) based uart
can be found on newer qualcomm SOCs, starting from SDM845.
Tested on Samsung SM-G9600(starqltechn)
by chain-loading u-boot with stock bootloader.
Signed-off-by: Dzmitry Sankouski
Cc: Ramon Fried
Cc: Tom Rini
---
Changes for v2:
- change
Currently driver supports only version 1 and 2.
Version 5 has slightly different registers structure
Signed-off-by: Dzmitry Sankouski
Cc: Ramon Fried
Cc: Tom Rini
---
Changes for v2:
- change string formats in debug statements
Changes for v3:
- remove if else braces where possible
Changes
, and on the other hand there's no possibility to
replace signed first stage bootloader with u-boot.
Signed-off-by: Dzmitry Sankouski
Cc: Ramon Fried
Cc: Tom Rini
---
arch/arm/mach-snapdragon/clock-sdm845.c | 92 +
arch/arm/mach-snapdragon/clock-snapdragon.c | 1 +
arch/arm/mach
Hi-end qualcomm chip, introduced in late 2017.
Mostly used in flagship phones and tablets of 2018.
Features:
- arm64 arch
- total of 8 Kryo 385 Gold / Silver cores
- Hexagon 685 DSP
- Adreno 630 GPU
Tested only as second-stage bootloader.
Signed-off-by: Dzmitry Sankouski
Cc: Ramon Fried
Cc
Samsung S9 SM-G9600 - Snapdragon SDM845 version of the phone,
for China \ Hong Kong markets.
Has unlockable bootloader, unlike SM-G960U (American market version),
which allows running u-boot as a chain-loaded bootloader.
Signed-off-by: Dzmitry Sankouski
Cc: Ramon Fried
Cc: Tom Rini
---
Changes
Generic Interface (GENI) Serial Engine (SE) based uart
can be found on newer qualcomm SOCs, starting from SDM845.
Tested on Samsung SM-G9600(starqltechn)
by chain-loading u-boot with stock bootloader.
Signed-off-by: Dzmitry Sankouski
Cc: Ramon Fried
Cc: Tom Rini
---
Changes for v2:
- change
Hi-end qualcomm chip, introduced in late 2017.
Mostly used in flagship phones and tablets of 2018.
Features:
- arm64 arch
- total of 8 Kryo 385 Gold / Silver cores
- Hexagon 685 DSP
- Adreno 630 GPU
Tested only as second-stage bootloader.
Signed-off-by: Dzmitry Sankouski
Cc: Ramon Fried
Cc
Currently driver supports only version 1 and 2.
Version 5 has slightly different registers structure
Signed-off-by: Dzmitry Sankouski
Cc: Ramon Fried
Cc: Tom Rini
---
Changes for v2:
- change string formats in debug statements
Changes for v3:
- remove if else braces where possible
Changes
Signed-off-by: Dzmitry Sankouski
Cc: Ramon Fried
Cc: Tom Rini
Cc: Stephan Gerhold
---
Changes for v2:
- Add __section(".data") for pin_name variable.
arch/arm/mach-snapdragon/pinctrl-sdm845.c | 44 +++
arch/arm/mach-snapdragon/pinctrl-snapdragon.c | 1 +
arc
, and on the other hand there's no possibility to
replace signed first stage bootloader with u-boot.
Signed-off-by: Dzmitry Sankouski
Cc: Ramon Fried
Cc: Tom Rini
---
arch/arm/mach-snapdragon/clock-sdm845.c | 92 +
arch/arm/mach-snapdragon/clock-snapdragon.c | 1 +
arch/arm/mach
version of the phone,
for China \ Hong Kong markets.
Has unlockable bootloader, unlike SM-G960U (American market version),
which allows running u-boot as a chain-loaded bootloader.
Dzmitry Sankouski (6):
serial: qcom: add support for GENI serial driver
spmi: msm: add arbiter version 5 support
Samsung Exynos 7880 \ 7870 - SoC for mainstream smartphones and tablets
introduced on March 2017.
Features:
- 8 Cortex A53 cores
- ARM Mali-T830 MP3 GPU
- LTE Cat. 7 (7880) or 6 (7870) modem
Signed-off-by: Dzmitry Sankouski
Cc: Minkyu Kang
---
arch/arm/dts/exynos78x0-gpio.dtsi | 204
Samsung Galaxy A3, A5, A7 (2017) - middle class Samsung smartphones.
U-boot can be used as chain-loaded bootloader to gain control
on booting vanilla linux(and possibly others) kernels
Signed-off-by: Dzmitry Sankouski
Cc: Minkyu Kang
---
arch/arm/dts/Makefile| 3 +
arch/arm
Samsung S9 SM-G9600 - Snapdragon SDM845 version of the phone,
for China \ Hong Kong markets.
Has unlockable bootloader, unlike SM-G960U (American market version),
which allows running u-boot as a chain-loaded bootloader.
Signed-off-by: Dzmitry Sankouski
Cc: Ramon Fried
Cc: Tom Rini
---
Changes
Signed-off-by: Dzmitry Sankouski
Cc: Minkyu Kang
---
Changes for v2:
- if CONFIG_DEBUG_UART_SKIP_INIT, return from init function
drivers/serial/serial_s5p.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/serial/serial_s5p.c b/drivers/serial/serial_s5p.c
index 6d09952a5d
and tablets
introduced on March 2017.
Features:
- 8 Cortex A53 cores
- ARM Mali-T830 MP3 GPU
- LTE Cat. 7 (7880) or 6 (7870) modem
Dzmitry Sankouski (4):
serial: samsung: add support for skip debug init in s5p
pinctrl: exynos: add support for multiple pin banks
SoC: exynos: add support
Iterate all pin banks to find a pin
Signed-off-by: Dzmitry Sankouski
Cc: Minkyu Kang
---
drivers/pinctrl/exynos/pinctrl-exynos.c | 28 +++--
1 file changed, 22 insertions(+), 6 deletions(-)
diff --git a/drivers/pinctrl/exynos/pinctrl-exynos.c
b/drivers/pinctrl/exynos
to boot something on that phone, and pack
that into Android boot image.
чт, 14 окт. 2021 г. в 18:10, Simon Glass :
> Hi Dzmitry,
>
> On Sat, 9 Oct 2021 at 22:11, Dzmitry Sankouski
> wrote:
> >
> > Samsung S9 SM-G9600 - Snapdragon SDM845 version of the phone,
> >
чт, 14 окт. 2021 г. в 18:10, Simon Glass :
> Hi Dzmitry,
>
> On Fri, 8 Oct 2021 at 00:46, Dzmitry Sankouski
> wrote:
> >
> > Generic Interface (GENI) Serial Engine (SE) based uart
> > can be found on newer qualcomm SOCs, starting from SDM845.
> > Te
gmail.com wrote:
> > From: Dzmitry Sankouski
> >
> > Samsung S9 SM-G9600 - Snapdragon SDM845 version of the phone,
> > for China \ Hong Kong markets.
> > Has unlockable bootloader, unlike SM-G960U (American market version),
> > which allows running u-boot as
,
and boils down to `bootm $abl_initrd_start_addr`. If more control on
boot process is desired, pack a boot script in FIT image, and put it to
default configuration
Signed-off-by: Dzmitry Sankouski
Cc: Ramon Fried
Cc: Tom Rini
---
Changes for v2:
- Fix compilation warnings
arch/arm/mach
-by: Dzmitry Sankouski
Cc: Ramon Fried
Cc: Tom Rini
---
Changes for v2:
- replace 'n' options with 'is not set'
- remove comment from defconfig file
configs/starqltechn_defconfig | 11 +++
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/configs/starqltechn_defconfig b
variable,
and boils down to `bootm $abl_initrd_start_addr`. If more control on
boot process is desired, pack a boot script in FIT image, and put it to
default configuration
Dzmitry Sankouski (2):
soc: sdm845: implement ABL info collecting, add bootcommand and usage
doc
board: starqltechn: get
,
and boils down to `bootm $abl_initrd_start_addr`. If more control on
boot process is desired, pack a boot script in FIT image, and put it to
default configuration
Signed-off-by: Dzmitry Sankouski
Cc: Ramon Fried
Cc: Tom Rini
---
arch/arm/mach-snapdragon/init_sdm845.c | 60
-by: Dzmitry Sankouski
Cc: Ramon Fried
Cc: Tom Rini
---
configs/starqltechn_defconfig | 12
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/configs/starqltechn_defconfig b/configs/starqltechn_defconfig
index f57bb859cc..987ce93a36 100644
--- a/configs/starqltechn_defconfig
variable,
and boils down to `bootm $abl_initrd_start_addr`. If more control on
boot process is desired, pack a boot script in FIT image, and put it to
default configuration
Dzmitry Sankouski (2):
soc: sdm845: implement ABL info collecting, add bootcommand and usage
doc
board: starqltechn: get
Reviewed-by: Dzmitry Sankouski
пт, 7 янв. 2022 г. в 22:14, Henrik Grimler :
> a7y17lte is called SM-A720F, and a3y17lte SM-A320F. a3y17lte also
> should select PINCTRL_EXYNOS78x0, not the (non-existent)
> PINCTRL_EXYNOS7880, and it has an Exynos 7870 SoC and not 7880.
>
> Fixe
I'm working on a project to bring mainline linux kernels to android phones.
I'm planning to use u-boot as a secondary stage bootloader packed in
android boot image,
so that linux kernel is replaced with u-boot, and initramfs is replaced
with FIT image.
This approach allows to use u-boot on a
Seems like this is already supported with save_boot_params function
пн, 10 янв. 2022 г. в 18:01, Dzmitry Sankouski :
> I'm working on a project to bring mainline linux kernels to android phones.
> I'm planning to use u-boot as a secondary stage bootloader packed in
> android boot im
console
- increase LMB_MAX_REGIONS, to store all linux dtb reserved memory regions
- add linux kernel image header
Uart driver causes hang, when u-boot is used in android boot image instead
of linux. Temporary disable console driver, until investigated and fixed.
Signed-off-by: Dzmitry Sankouski
Cc
to 'prevbl_fdt_addr' environment variable
Signed-off-by: Dzmitry Sankouski
Cc: Tom Rini
---
Changes for v2:
- change signed off line
Changes for v3:
- use if (CONFIG_IS_ENABLED... instead of #if defined
- fix save_prev_bl_data.o in Makefile
- add save_prev_bl_data call to env initialization
SBOOT memory corruption note, because
memory is changed during u-boot bringup process,
not by SBOOT
- put payload on ramdisk place in abl boot image
creation step
Signed-off-by: Dzmitry Sankouski
---
Changes for v2:
- increase CONFIG_LMB_MAX_REGIONS and CONFIG_SYS_BOOTM_LEN
- change signed off
to 'prevbl_fdt_addr' environment variable
This feature will be used for axy17lte and starqltechn boards for now,
and more phones in future.
Dzmitry Sankouski (3):
arm: init: save previous bootloader data
board: starqltechn: get board usable - add bootcmd and docs
board: axy17lte: get board
to 'prevbl_fdt_addr' environment variable
Signed-off-by: Dzmitry Sankouski
Cc: Tom Rini
---
Changes for v2:
- change signed off line
Changes for v3:
- use if (CONFIG_IS_ENABLED... instead of #if defined
- fix save_prev_bl_data.o in Makefile
- add save_prev_bl_data call to env initialization
SBOOT memory corruption note, because
memory is changed during u-boot bringup process,
not by SBOOT
- put payload on ramdisk place in abl boot image
creation step
Signed-off-by: Dzmitry Sankouski
---
Changes for v2:
- increase CONFIG_LMB_MAX_REGIONS and CONFIG_SYS_BOOTM_LEN
- change signed off
console
- increase LMB_MAX_REGIONS, to store all linux dtb reserved memory regions
- add linux kernel image header
Uart driver causes hang, when u-boot is used in android boot image instead
of linux. Temporary disable console driver, until investigated and fixed.
Signed-off-by: Dzmitry Sankouski
Cc
to 'prevbl_fdt_addr' environment variable
This feature will be used for axy17lte and starqltechn boards for now,
and more phones in future.
Dzmitry Sankouski (3):
arm: init: save previous bootloader data
board: starqltechn: get board usable - add bootcmd and docs
board: axy17lte: get board
SBOOT memory corruption note, because
memory is changed during u-boot bringup process,
not by SBOOT
- put payload on ramdisk place in abl boot image
creation step
Signed-off-by: Dzmitry Sankouski
---
Changes for v2:
- increase CONFIG_LMB_MAX_REGIONS and CONFIG_SYS_BOOTM_LEN
- change signed off
reserved memory regions
- add linux kernel image header
Uart driver causes hang, when u-boot is used in android boot image instead
of linux. Temporary disable console driver, until investigated and fixed.
Signed-off-by: Dzmitry Sankouski
Cc: Ramon Fried
---
Changes for v2:
- change signed off
to 'prevbl_fdt_addr' environment variable
Signed-off-by: Dzmitry Sankouski
Cc: Tom Rini
---
Changes for v2:
- change signed off line
arch/arm/lib/Makefile| 2 +
arch/arm/lib/save_prev_bl_data.c | 93
boot/Kconfig | 79
to 'prevbl_fdt_addr' environment variable
This feature will be used for axy17lte and starqltechn boards for now,
and more phones in future.
Dzmitry Sankouski (3):
arm: init: save previous bootloader data
board: starqltechn: get board usable - add bootcmd and docs
board: axy17lte: get board
This patch series reimplemented in more generic way in
`save prev bootloader data, when u-boot chainloaded`
patch series
вт, 11 янв. 2022 г. в 19:19, Tom Rini :
> On Tue, Jan 11, 2022 at 07:01:59PM +0300, Dzmitry Sankouski wrote:
>
> > - add FIT image support
> > - increa
Reviewed-by: Dzmitry Sankouski
пт, 7 сту 2022, 22:14 карыстальнік Henrik Grimler
напісаў:
> Model names are SM-A{3,5,7}20, just SM-{3,5,7}20 could also refer to
> SM-J{3,5,7}20 or SM-T{3,5,7}20.
>
> Fixes: 3e2095e960b4 ("board: samsung: add support for Galaxy A series
&g
Remove video_font_4x6.h file because it's unused.
Signed-off-by: Dzmitry Sankouski
---
drivers/video/Kconfig|6 -
include/video_font.h |4 +-
include/video_font_4x6.h | 2155 --
3 files changed, 1 insertion(+), 2164 deletions(-)
delete mode
- get rid of code duplications in switch across bpp values
- extract common pixel fill logic in two functions one per
horizontal and vertical filling
- rearrange statements in put_xy* methods in unified way
- replace types - uint*_t to u*
Signed-off-by: Dzmitry Sankouski
---
drivers/video
Devices with high ppi may benefit from wider fonts.
Current width implementation is limited by 1 byte, i.e. 8 bits.
New version iterates VIDEO_FONT_BYTE_WIDTH times, to process all
width bytes, thus allowing fonts wider than 1 byte.
Signed-off-by: Dzmitry Sankouski
---
drivers/video
Put video console driver code in one file.
Signed-off-by: Dzmitry Sankouski
---
drivers/video/Kconfig | 8 +-
drivers/video/Makefile| 3 +-
drivers/video/console_normal.c| 178 --
.../{console_rotate.c
tested with 32BPP configuration. 8BPP and 16BPP testing may needed.
I cannot do it, because I don't have such devices.
Dzmitry Sankouski (5):
video console: unite normal and rotated files
video console: refactoring and optimization
video console: add support for fonts wider than 1 byte
video
Right.
ср, 11 янв. 2023 г. в 05:36, Peter Robinson :
>
> On Tue, Dec 27, 2022 at 7:47 PM Dzmitry Sankouski
> wrote:
> >
> > KASLR address is needed to boot fully functional Android.
> > KASLR is set by primary bootloader, and since u-boot is used
> > as a seco
This patchset adds wider fonts only for normal console.
пт, 30 дек. 2022 г. в 02:02, Mark Kettenis :
>
> > From: Dzmitry Sankouski
> > Date: Mon, 26 Dec 2022 22:49:24 +0300
> >
> > Modern mobile phones typically have high pixel density.
> > Bootmenu is hardly
Linux event code may be used in input devices, using buttons.
Signed-off-by: Dzmitry Sankouski
---
drivers/button/button-gpio.c | 20
drivers/button/button-uclass.c | 10 ++
include/button.h | 16
3 files changed, 46 insertions
support for linux,code in button driver.
Fix qcom pwr-key gpio driver to work with button driver.
Dzmitry Sankouski (3):
gpio: qcom: add direction functions for pwrkey
dm: button: add support for linux_code in button-gpio.c driver
dm: input: add button_kbd driver
drivers/button/button-gpio.c
GPIO button driver requires direction functions to probe
button gpio. Those functions are blank, since pwrkey gpio
configured earlier not by u-boot.
Signed-off-by: Dzmitry Sankouski
---
drivers/gpio/qcom_pmic_gpio.c | 15 +++
1 file changed, 15 insertions(+)
diff --git a/drivers
I tested on qemu q35 with RUFSCRIPT, CANTORAONE font, it uses
RUFSCRIPT, and works fine.
Not sure how to switch it on runtime, though.
пт, 30 дек. 2022 г. в 01:41, Simon Glass :
>
> Hi Dzmitry,
>
> On Tue, 27 Dec 2022 at 07:44, Dzmitry Sankouski wrote:
> >
> > Modern
I'll reword the commit description. Files contain similar logic, and
common code may be extracted after putting it together.
пт, 30 дек. 2022 г. в 01:41, Simon Glass :
>
> Hi Dzmitry,
>
> On Mon, 26 Dec 2022 at 13:49, Dzmitry Sankouski wrote:
> >
> > Put video console
ok
пт, 30 дек. 2022 г. в 01:40, Simon Glass :
>
> Hi Dzmitry,
>
> On Mon, 26 Dec 2022 at 13:50, Dzmitry Sankouski wrote:
> >
> > Remove video_font_4x6.h file because it's unused.
> >
> > Signed-off-by: Dzmitry Sankouski
> > ---
> > drivers/vid
Bootmenu requires an input device with arrows and enter key.
A common smartphone luckily has power, volume up/down buttons,
which may be used for controlling bootmenu.
To use driver, add 'button-kbd' to stdin.
Signed-off-by: Dzmitry Sankouski
---
drivers/input/Kconfig | 9 +++
drivers
, 30 дек. 2022 г. в 01:41, Simon Glass :
>
> Hi Dzmitry,
>
> On Mon, 26 Dec 2022 at 13:50, Dzmitry Sankouski wrote:
> >
> > - get rid of code duplications in switch across bpp values
> > - extract common pixel fill logic in two functions one per
> > horizontal
Modern mobile phones typically have high pixel density.
Bootmenu is hardly readable on those with 8x16 font.
Add 16x32 ter font from linux, and allow font size configuration.
Set 16x32 font for starqltechn board.
Signed-off-by: Dzmitry Sankouski
---
configs/starqltechn_defconfig |1
It was temporary disabled due to problem with boot.
Issue was fixed in
commit f5ed6c9ccf3e ("uart: sdm845: Fix debug UART pinmux")
Signed-off-by: Dzmitry Sankouski
---
configs/starqltechn_defconfig | 4 ++--
include/configs/sdm845.h | 5 +++--
2 files changed, 5 insertions(+), 4
KASLR address is needed to boot fully functional Android.
KASLR is set by primary bootloader, and since u-boot is used
as a secondary bootloader(replacing kernel) on sdm845 platform,
KASLR may be found by comparing memory chunks at relocaddr over
supposed KASLR range.
Signed-off-by: Dzmitry
> On 1/14/23 20:42, Dzmitry Sankouski wrote:
> > dev_read_u32 will fail, if linux,code is not found.
> > We shouldn't fail here, as linux,code is optional, so maybe
> > dev_read_u32_default
> > with 0 default value, instead of negative error code?
> >
>
> No,
dev_read_u32 will fail, if linux,code is not found.
We shouldn't fail here, as linux,code is optional, so maybe dev_read_u32_default
with 0 default value, instead of negative error code?
ср, 11 янв. 2023 г. в 18:48, Quentin Schulz
:
>
> Hi Dzmitry,
>
> On 1/11/23 11:19, Dzmitry San
Bootmenu requires an input device with arrows and enter key.
A common smartphone luckily has power, volume up/down buttons,
which may be used for controlling bootmenu.
To use driver, add 'button-kbd' to stdin.
Signed-off-by: Dzmitry Sankouski
Reviewed-by: Simon Glass
---
Changes for v2:
- add
support for linux,code in button driver.
Fix qcom pwr-key gpio driver to work with button driver.
Dzmitry Sankouski (4):
gpio: qcom: add direction functions for pwrkey
dts: add missing linux,code in gpio-keys
dm: button: add support for linux_code in button-gpio.c driver
dm: input: add
GPIO button driver requires direction functions to probe
button gpio. Those functions are blank, since pwrkey gpio
configured earlier not by u-boot.
Signed-off-by: Dzmitry Sankouski
---
Changes for v2:
- none
drivers/gpio/qcom_pmic_gpio.c | 15 +++
1 file changed, 15 insertions
Linux event code may be used in input devices, using buttons.
Signed-off-by: Dzmitry Sankouski
---
Changes for v2:
- fail, if linux,code not found
drivers/button/button-gpio.c | 16 +++-
drivers/button/button-uclass.c | 10 ++
include/button.h | 16
dbox.dtsi -> BTN_1
- sandbox/dts/sandbox.dts -> BTN_1
Signed-off-by: Dzmitry Sankouski
---
Changes for v2:
- N/A
arch/arm/dts/am3517-evm-ui.dtsi | 2 +-
arch/arm/dts/imx6ul-phytec-segin-peb-eval-01.dtsi | 2 +-
arch/arm/dts/rk3288-popmetal.dtsi | 1 +
arch
Bootmenu requires an input device with arrows and enter key.
A common smartphone luckily has power, volume up/down buttons,
which may be used for controlling bootmenu.
To use driver, add 'button-kbd' to stdin.
Signed-off-by: Dzmitry Sankouski
---
Changes for v2:
- add doc on driver private data
Linux event code must be used in input devices, using buttons.
Signed-off-by: Dzmitry Sankouski
---
Changes for v2:
- fail, if linux,code not found
Changes for v3:
- add test for linux,code
- change linux,code type to int
- new line after return
- add specific error code in function docs
arch
Property count may change in /buttons node, if more button tests added,
and this will break ofnode_for_each_prop.
Add separate node for mentioned test.
Signed-off-by: Dzmitry Sankouski
---
Changes for v2: N/A
Changes for v3: N/A
arch/sandbox/dts/test.dts | 14 ++
test/dm/ofnode.c
dbox.dtsi -> BTN_1
- sandbox/dts/sandbox.dts -> BTN_1
Signed-off-by: Dzmitry Sankouski
Reviewed-by: Simon Glass
---
Changes for v2:
- N/A
Changes for v3:
- import input.h in dts to provide event constants
arch/arm/dts/am3517-evm-ui.dtsi | 2 +-
arch/arm/dts/imx6ul-phytec
GPIO button driver requires direction functions to probe
button gpio. Those functions are blank, since pwrkey is not
really gpio, and don't support direction settings.
Signed-off-by: Dzmitry Sankouski
Reviewed-by: Sumit Garg
---
Changes for v2:
- none
Changes for v3:
- KDPWR and RESIN not gpio
support for linux,code in button driver.
Fix qcom pwr-key gpio driver to work with button driver.
Dzmitry Sankouski (5):
gpio: qcom: add direction functions for pwrkey
dts: add missing linux,code in gpio-keys
test: create dedicated fdt node for ofnode_for_each_prop test
dm: button: add support
вт, 7 мар. 2023 г. в 18:22, Anatolij Gustschin :
(...)
>
> there was another build error for boards with CONFIG_VIDEO_LOGO
> disabled:
>
> https://source.denx.de/u-boot/custodians/u-boot-video/-/jobs/589501#L1430
>
> I changed this to
>
> void splash_display_banner(void)
> {
> + struct
Add 12x22 font in order to write a test for it.
Signed-off-by: Dzmitry Sankouski
Reviewed-by: Simon Glass
---
Changes in v8:
- add 12X22 font in sandbox_flattree_defconfig for tests
Changes in v7:
none
Changes in v6:
N/A
Changes in v5:
N/A
Changes in v4:
N/A
Changes in v3:
N/A
Changes
- replace types - uint*_t to u*
Signed-off-by: Dzmitry Sankouski
Reviewed-by: Simon Glass
---
Changes in v8:
- fix build with disabled CONFIG_VIDEO_COPY
- add 12X22 font to sandox defconfig
- fix build with disabled CONFIG_VIDEO_COPY
Changes in v7:
none
Changes in v6:
none
Changes in v5:
- move
Allow font size configuration at runtime for console_simple.c
driver. This needed for unit testing different fonts.
Configuring is done by `font` command, also used for font
selection in true type console.
Signed-off-by: Dzmitry Sankouski
Reviewed-by: Simon Glass
---
Changes in v8:
none
This needed for unit testing different fonts.
Configured fonts are placed in an array of fonts.
First font is selected by default upon console probe.
Signed-off-by: Dzmitry Sankouski
Reviewed-by: Simon Glass
---
Changes in v8:
none
Changes in v7:
- place 8x16 font first in list as default
Since multiple vidconsole drivers exists, vidconsole_get_font_size()
implementation cannot longer live in vidconsole_uclass.c file.
Move current vidconsole_get_font_size logic to truetype driver ops.
Signed-off-by: Dzmitry Sankouski
Reviewed-by: Simon Glass
---
Changes in v8:
none
Changes
Tests fonts wider than a byte.
Signed-off-by: Dzmitry Sankouski
Reviewed-by: Simon Glass
---
Changes in v8:
none
Changes in v7:
none
Changes in v6:
- rebase
- move sandbox defconfig change to separate patch
- run savedefconfig
Changes in v5:
N/A
Changes in v4:
N/A
Changes in v2:
N/A
none
Devices with high ppi may benefit from wider fonts.
Current width implementation is limited by 1 byte, i.e. 8 bits.
New version iterates VIDEO_FONT_BYTE_WIDTH times, to process all
width bytes, thus allowing fonts wider than 1 byte.
Signed-off-by: Dzmitry Sankouski
Reviewed-by: Simon Glass
font
In version 3,
'video console: add select font logic to vidconsole uclass driver'
patch was removed in favor of already merged patch
'video: Add font functions to the vidconsole API'
Changes in v8:
- fix build with disabled CONFIG_VIDEO_COPY
- add 12X22 font to sandox defconfig
Dzmitry Sankouski
Consistent font data header names needed to add new
fonts.
Signed-off-by: Dzmitry Sankouski
Reviewed-by: Simon Glass
---
Changes in v8:
none
Changes in v7:
none
Changes in v6:
rebase only
Changes in v5:
N/A
Changes in v4:
N/A
Changes in v3:
N/A
Changes in v2:
N/A
include/video_font.h
Modern mobile phones typically have high pixel density.
Bootmenu is hardly readable on those with 8x16 font.
Signed-off-by: Dzmitry Sankouski
Reviewed-by: Simon Glass
---
Changes in v8:
none
Changes in v7:
none
Changes in v6:
rebase only
Changes in v5:
N/A
Changes in v4:
N/A
Changes in v3
сб, 18 февр. 2023 г. в 02:49, Simon Glass :
>
> Hi Dzmitry,
>
> On Fri, 17 Feb 2023 at 08:01, Dzmitry Sankouski wrote:
> >
> > - move common code to vidconsole_internal.h
> > - unite probe functions
> > - get rid of code duplications in switch across bpp va
- replace types - uint*_t to u*
Signed-off-by: Dzmitry Sankouski
---
Changes for v2: none
Changes for v3: none
Changes for v4:
- move common code to vidconsole_internal.h
- unite probe functions
Changes for v5:
- move common functions to console-core.c file
- remove static keyword from shared
nges in version 2:
- fix video tests failures
- add runtime font size configuration
- add test for 12x22 font
In version 3,
'video console: add select font logic to vidconsole uclass driver'
patch was removed in favor of already merged patch
'video: Add font functions to the vidconsole API'
Dzm
1 - 100 of 160 matches
Mail list logo