[PATCH 4/4] arm: dts: starqltechn: add muic i2c interface

2023-12-21 Thread Dzmitry Sankouski
It allows to multiplex debug uart onto usb port, using i2c command. Signed-off-by: Dzmitry Sankouski Cc: Caleb Connolly Cc: Dzmitry Sankouski Cc: Simon Glass Cc: Sumit Garg Cc: Tom Rini Cc: Vladimir Zapolskiy --- arch/arm/dts/starqltechn.dts | 12 +++- 1 file changed, 11

[PATCH 3/4] arm: dts: starqltechn: add buttons

2023-12-21 Thread Dzmitry Sankouski
Add volume up and Bixby buttons. Signed-off-by: Dzmitry Sankouski Cc: Caleb Connolly Cc: Dzmitry Sankouski Cc: Simon Glass Cc: Sumit Garg Cc: Tom Rini Cc: Vladimir Zapolskiy --- arch/arm/dts/starqltechn.dts | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm

[PATCH 2/4] arm: dts: starqltechn: add ufs support

2023-12-21 Thread Dzmitry Sankouski
Add ufs storage support. Signed-off-by: Dzmitry Sankouski Cc: Caleb Connolly Cc: Dzmitry Sankouski Cc: Simon Glass Cc: Sumit Garg Cc: Tom Rini Cc: Vladimir Zapolskiy --- arch/arm/dts/starqltechn.dts | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/dts/starqltechn.dts

[PATCH 1/4] arm: dts: starqltechn: 4K align memory

2023-12-21 Thread Dzmitry Sankouski
Fix memory size to 4K aligned. Signed-off-by: Dzmitry Sankouski Cc: Caleb Connolly Cc: Dzmitry Sankouski Cc: Simon Glass Cc: Sumit Garg Cc: Tom Rini Cc: Vladimir Zapolskiy --- arch/arm/dts/starqltechn.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dts

[PATCH 0/4] This enables more recently added drivers for starqltechn.

2023-12-21 Thread Dzmitry Sankouski
Series is based on top of caleb work [1] and should be merged after that. [1]: https://lore.kernel.org/u-boot/20231219-b4-qcom-common-target-v2-0-b6dd97042...@linaro.org/ Dzmitry Sankouski (4): arm: dts: starqltechn: 4K align memory arm: dts: starqltechn: add ufs support arm: dts

[PATCH 2/3] starqltechn: use button keyboard driver

2023-04-01 Thread Dzmitry Sankouski
Button keyboard driver used to navigate bootmenu entries. Add gpio buttons, button keyboard driver. Add gpio keys dts bindings. Signed-off-by: Dzmitry Sankouski --- arch/arm/dts/starqltechn.dts | 18 ++ configs/starqltechn_defconfig | 3 +++ include/configs/sdm845.h

[PATCH 3/3] starqltechn: enable bootmenu

2023-04-01 Thread Dzmitry Sankouski
Needed for multiboot with vendor's Android. Signed-off-by: Dzmitry Sankouski --- 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

[PATCH 1/3] starqltechn: use 16x32 font

2023-04-01 Thread Dzmitry Sankouski
This font is more readable on high ppi display Signed-off-by: Dzmitry Sankouski --- 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

[PATCH 0/3] Enable bootmenu, and button-kbd driver for menu entry navigation.

2023-04-01 Thread Dzmitry Sankouski
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

Re: [PATCH v8 04/10] video console: implement multiple fonts configuration

2023-03-10 Thread Dzmitry Sankouski
вт, 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

[PATCH v8 08/10] video console: add 16x32 Terminus font from linux

2023-03-07 Thread Dzmitry Sankouski
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

[PATCH v8 09/10] video console: sandbox: add 12x22 font defconfigs

2023-03-07 Thread Dzmitry Sankouski
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

[PATCH v8 10/10] video console: add 12x22 console simple font test

2023-03-07 Thread Dzmitry Sankouski
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

[PATCH v8 05/10] video console: move vidconsole_get_font_size() logic to driver ops

2023-03-07 Thread Dzmitry Sankouski
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

[PATCH v8 04/10] video console: implement multiple fonts configuration

2023-03-07 Thread Dzmitry Sankouski
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

[PATCH v8 06/10] video console: allow font size configuration at runtime

2023-03-07 Thread Dzmitry Sankouski
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

[PATCH v8 01/10] video console: refactoring and optimization

2023-03-07 Thread Dzmitry Sankouski
- 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

[PATCH v8 02/10] video console: add support for fonts wider than 1 byte

2023-03-07 Thread Dzmitry Sankouski
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

[PATCH v8 03/10] video console: move 8x16 font data in named header

2023-03-07 Thread 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

[PATCH v8 00/10] vidconsole: refactoring and support for wider fonts

2023-03-07 Thread Dzmitry Sankouski
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

[PATCH v3 1/1] editorconfig: introduce .editorconfig

2023-03-03 Thread Dzmitry Sankouski
Current process of sending patches includes running checkpatch.pl script for each patch, and fixing found style problems. EditorConfig may help to prevent some style related problems (like spaces vs tab indentation) on the fly. Reviewed-by: Simon Glass Signed-off-by: Dzmitry Sankouski

[PATCH v3 0/1] introduce .editorconfig

2023-03-03 Thread Dzmitry Sankouski
off tag Changes in v2: - add section in coding style rst doc - unify Kconfig with other files Dzmitry Sankouski (1): editorconfig: introduce .editorconfig .editorconfig | 15 +++ .gitignore | 1 + doc/develop/codingstyle.rst | 4 3 files

Re: [PATCH v2 1/1] editorconfig: introduce .editorconfig

2023-03-02 Thread Dzmitry Sankouski
ср, 1 мар. 2023 г. в 18:58, Tom Rini : > > On Wed, Mar 01, 2023 at 01:43:38PM +0300, Dzmitry Sankouski wrote: > > Current process of sending patches includes running checkpatch.pl > > script for each patch, and fixing found style problems. > > EditorConfig may help to pr

Re: [PATCH v7 10/10] video console: add 12x22 console simple font test

2023-03-02 Thread Dzmitry Sankouski
чт, 2 мар. 2023 г. в 01:20, Anatolij Gustschin : > > Hi Dzmitry, > > On Mon, 27 Feb 2023 20:37:10 +0300 > Dzmitry Sankouski dsankou...@gmail.com wrote: > > > Tests fonts wider than a byte. > > > > Signed-off-by: Dzmitry Sankouski > > Reviewed-by:

[PATCH v2 1/1] editorconfig: introduce .editorconfig

2023-03-01 Thread Dzmitry Sankouski
Current process of sending patches includes running checkpatch.pl script for each patch, and fixing found style problems. EditorConfig may help to prevent some style related problems (like spaces vs tab indentation) on the fly. Reviewed-by: Simon Glass --- Changes for v2: - add section in coding

[PATCH v2 0/1] introduce .editorconfig

2023-03-01 Thread Dzmitry Sankouski
Current process of sending patches includes running checkpatch.pl script for each patch, and fixing found style problems. Editorconfig may help to prevent some style related problems (like spaces vs tab indentation) on the fly. Dzmitry Sankouski (1): editorconfig: introduce .editorconfig

[PATCH 1/1] editorconfig: introduce .editorconfig

2023-02-28 Thread Dzmitry Sankouski
Current process of sending patches includes running checkpatch.pl script for each patch, and fixing found style problems. Editorconfig may help to prevent some style related problems (like spaces vs tab indentation) on the fly. --- .editorconfig | 19 +++ .gitignore| 1 + 2

[PATCH 0/1] introduce .editorconfig

2023-02-28 Thread Dzmitry Sankouski
Current process of sending patches includes running checkpatch.pl script for each patch, and fixing found style problems. Editorconfig may help to prevent some style related problems (like spaces vs tab indentation) on the fly. Dzmitry Sankouski (1): editorconfig: introduce .editorconfig

[PATCH v7 08/10] video console: add 16x32 Terminus font from linux

2023-02-27 Thread Dzmitry Sankouski
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 for v2: - edit for runtime configuration Changes for v3: none Charges for v4: N/A Charges for v5: N/A Charges for v6

[PATCH v7 10/10] video console: add 12x22 console simple font test

2023-02-27 Thread Dzmitry Sankouski
Tests fonts wider than a byte. Signed-off-by: Dzmitry Sankouski Reviewed-by: Simon Glass --- Changes for v2: N/A Changes for v2: none Charges for v4: N/A Charges for v5: N/A Charges for v6: - rebase - move sandbox defconfig change to separate patch - run savedefconfig Charges for v7: none

[PATCH v7 09/10] video console: sandbox_defconfig: add 12x22 font

2023-02-27 Thread Dzmitry Sankouski
Add 12x22 font in order to write a test for it. Run savedefconfig. Signed-off-by: Dzmitry Sankouski --- Changes for v2: N/A Changes for v3: N/A Charges for v4: N/A Charges for v5: N/A Charges for v6: N/A Charges for v7: none configs/sandbox_defconfig | 5 ++--- 1 file changed, 2 insertions

[PATCH v7 06/10] video console: allow font size configuration at runtime

2023-02-27 Thread Dzmitry Sankouski
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 for v2: N

[PATCH v7 04/10] video console: implement multiple fonts configuration

2023-02-27 Thread Dzmitry Sankouski
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 for v2: N/A Changes for v3: N/A Charges for v4: N/A Charges for v5: N

[PATCH v7 05/10] video console: move vidconsole_get_font_size() logic to driver ops

2023-02-27 Thread Dzmitry Sankouski
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 --- Changes for v2: N/A Changes for v3: N/A Charges for v4: N

[PATCH v7 03/10] video console: move 8x16 font data in named header

2023-02-27 Thread Dzmitry Sankouski
Consistent font data header names needed to add new fonts. Signed-off-by: Dzmitry Sankouski Reviewed-by: Simon Glass --- Changes for v2: N/A Changes for v3: N/A Charges for v4: N/A Charges for v5: N/A Charges for v6: rebase only Charges for v7: none include/video_font.h

[PATCH v7 01/10] video console: refactoring and optimization

2023-02-27 Thread Dzmitry Sankouski
- replace types - uint*_t to u* Signed-off-by: Dzmitry Sankouski Reviewed-by: Simon Glass --- 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

[PATCH v7 02/10] video console: add support for fonts wider than 1 byte

2023-02-27 Thread Dzmitry Sankouski
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

[PATCH v7 00/10] vidconsole: refactoring and support for wider fonts

2023-02-27 Thread Dzmitry Sankouski
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' Dzmitry Sankouski (10): video console: refactoring and optimization video console: add support for fonts wider th

[PATCH v6 5/9] video console: move vidconsole_get_font_size() to test.h

2023-02-23 Thread Dzmitry Sankouski
functions in public API use memory and clutter interface. Move vidconsole_get_font_size to new cmd/test.h file. Wrap it's implementation with #ifdef only when tests enabled. Signed-off-by: Dzmitry Sankouski --- Changes for v2: N/A Changes for v3: N/A Charges for v4: N/A Charges for v5: N/A Charges

[PATCH v6 8/9] video console: add 16x32 Terminus font from linux

2023-02-23 Thread Dzmitry Sankouski
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 for v2: - edit for runtime configuration Changes for v3: none Charges for v4: N/A Charges for v5: N/A Charges for v6

Re: [PATCH v3 9/9] video console: add 12x22 console simple font test

2023-02-23 Thread Dzmitry Sankouski
ops functions with test stuff. Please see patches for details. сб, 18 февр. 2023 г. в 02:49, Simon Glass : > > Hi Dzmitry, > > On Fri, 17 Feb 2023 at 07:13, Dzmitry Sankouski wrote: > > > > How does CONSOLE_TRUETYPE interfere with CONFIG_VIDEO_FONT_SUN12X22? > > >

[PATCH v6 1/2] video console: sandbox_defconfig: add 12x22 font

2023-02-23 Thread Dzmitry Sankouski
Add 12x22 font in order to write a test for it. Run savedefconfig. --- Changes for v2: N/A Changes for v3: N/A Charges for v4: N/A Charges for v5: N/A Charges for v6: N/A configs/sandbox_defconfig | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/configs/sandbox_defconfig

[PATCH v6 2/2] video console: add 12x22 console simple font test

2023-02-23 Thread Dzmitry Sankouski
Tests fonts wider than a byte. Signed-off-by: Dzmitry Sankouski Reviewed-by: Simon Glass --- Changes for v2: N/A Changes for v2: none Charges for v4: N/A Charges for v5: N/A Charges for v6: - rebase - move sandbox defconfig change to separate patch - run savedefconfig test/dm/video.c | 41

[PATCH v6 4/9] video console: implement multiple fonts configuration

2023-02-23 Thread Dzmitry Sankouski
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 for v2: N/A Changes for v3: N/A Charges for v4: N/A Charges for v5: N

[PATCH v6 1/9] video console: refactoring and optimization

2023-02-23 Thread Dzmitry Sankouski
- replace types - uint*_t to u* Signed-off-by: Dzmitry Sankouski Reviewed-by: Simon Glass --- 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

[PATCH v6 6/9] video console: allow font size configuration at runtime

2023-02-23 Thread Dzmitry Sankouski
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 for v2: N

[PATCH v6 3/9] video console: move 8x16 font data in named header

2023-02-23 Thread Dzmitry Sankouski
Consistent font data header names needed to add new fonts. Signed-off-by: Dzmitry Sankouski Reviewed-by: Simon Glass --- Changes for v2: N/A Changes for v3: N/A Charges for v4: N/A Charges for v5: N/A Charges for v6: rebase only include/video_font.h | 2 +- include

[PATCH v6 2/9] video console: add support for fonts wider than 1 byte

2023-02-23 Thread Dzmitry Sankouski
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

[PATCH v6 00/10] vidconsole: refactoring and support for wider fonts

2023-02-23 Thread Dzmitry Sankouski
atch was removed in favor of already merged patch 'video: Add font functions to the vidconsole API' Dzmitry Sankouski (10): video console: refactoring and optimization video console: add support for fonts wider than 1 byte video console: move 8x16 font data in named header video con

[PATCH v5 1/1] video console: refactoring and optimization

2023-02-20 Thread Dzmitry Sankouski
- 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

[PATCH v5 0/1] vidconsole: refactoring and support for wider fonts

2023-02-20 Thread Dzmitry Sankouski
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

Re: [PATCH v4 1/1] video console: refactoring and optimization

2023-02-20 Thread Dzmitry Sankouski
сб, 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

[PATCH v4 1/1] video console: refactoring and optimization

2023-02-17 Thread Dzmitry Sankouski
*_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 drivers/video/console_normal.c | 150 +++- drivers/video/console_rotate.c | 364

[PATCH v4 0/1] vidconsole: refactoring and support for wider fonts

2023-02-17 Thread Dzmitry Sankouski
ideo 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' Dzmitry Sankouski (1): video console: refactoring and optimization drivers/video/console_normal.c | 150 +++- drivers/v

Re: [PATCH v3 9/9] video console: add 12x22 console simple font test

2023-02-17 Thread Dzmitry Sankouski
:50, Simon Glass : > > Hi Dzmitry, > > On Wed, 15 Feb 2023 at 04:43, Dzmitry Sankouski wrote: > > > > Tests fonts wider than a byte. > > > > Signed-off-by: Dzmitry Sankouski > > Reviewed-by: Simon Glass > > I found a problem with this > > &

[PATCH v3 8/9] video console: add 16x32 Terminus font from linux

2023-02-15 Thread Dzmitry Sankouski
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 for v2: - edit for runtime configuration Changes for v3: none drivers/video/Kconfig |7 + include

[PATCH v3 9/9] video console: add 12x22 console simple font test

2023-02-15 Thread Dzmitry Sankouski
Tests fonts wider than a byte. Signed-off-by: Dzmitry Sankouski Reviewed-by: Simon Glass --- Changes for v2: N/A Changes for v2: none configs/sandbox_defconfig | 3 +++ test/dm/video.c | 41 +++ 2 files changed, 44 insertions(+) diff --git

[PATCH v3 5/9] video console: implement multiple fonts configuration

2023-02-15 Thread Dzmitry Sankouski
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 --- Changes for v2: N/A Changes for v3: N/A common/splash.c| 17 ++- drivers/video/Kconfig

[PATCH v3 6/9] video console: allow font size configuration at runtime

2023-02-15 Thread Dzmitry Sankouski
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 --- Changes for v2: N/A Changes for v3: - move 8x16 font

[PATCH v3 4/9] video console: move 8x16 font data in named header

2023-02-15 Thread Dzmitry Sankouski
Consistent font data header names needed to add new fonts. Signed-off-by: Dzmitry Sankouski --- Changes for v2: N/A Changes for v3: N/A include/video_font.h | 2 +- include/{video_font_data.h => video_font_8x16.h} | 5 ++--- 2 files changed, 3 insertions(+)

[PATCH v3 2/9] video console: refactoring and optimization

2023-02-15 Thread Dzmitry Sankouski
- 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 --- Changes for v2

[PATCH v3 3/9] video console: add support for fonts wider than 1 byte

2023-02-15 Thread Dzmitry Sankouski
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 --- Charges for v2: - replace

[PATCH v3 1/9] video console: unite normal and rotated files

2023-02-15 Thread Dzmitry Sankouski
Unite console_normal.c and console_rotate.c files. Those files have similar logic, and common logic may be extracted after putting code in single file. Signed-off-by: Dzmitry Sankouski --- Changes for v2: none Changes for v3: none drivers/video/Kconfig | 8 +- drivers

[PATCH v3 0/9] vidconsole: refactoring and support for wider fonts

2023-02-15 Thread Dzmitry Sankouski
: - 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' Dzmitry Sankouski (9

Re: [PATCH v2 5/8] video console: allow font size configuration at runtime

2023-02-15 Thread Dzmitry Sankouski
вт, 14 февр. 2023 г. в 23:13, Heinrich Schuchardt : > > > > Am 14. Februar 2023 20:48:53 MEZ schrieb Simon Glass : > >Hi Dzmitry, > > > >On Mon, 13 Feb 2023 at 09:57, Dzmitry Sankouski wrote: > >> (...) > >> drivers/video/Kconfig |

Re: [PATCH v2 0/8] vidconsole: refactoring and support for wider fonts

2023-02-14 Thread Dzmitry Sankouski
Hi, I'll rebase it вт, 14 февр. 2023 г. в 16:14, Simon Glass : > > Hi Dzmitry, > > On Mon, 13 Feb 2023 at 10:03, Dzmitry Sankouski wrote: > > > > Modern mobile phones typically have high pixel density. > > Bootmenu is hardly readable on those with 8x16 font. > &g

[PATCH v2 7/8] video console: add 16x32 Terminus font from linux

2023-02-13 Thread Dzmitry Sankouski
Modern mobile phones typically have high pixel density. Bootmenu is hardly readable on those with 8x16 font. Signed-off-by: Dzmitry Sankouski --- Changes for v2: - edit for runtime configuration drivers/video/Kconfig |7 + include/video_font.h |6 + include

Re: [PATCH 2/5] video console: refactoring and optimization

2023-02-13 Thread Dzmitry Sankouski
zmitry, > > On Wed, 4 Jan 2023 at 04:17, Dzmitry Sankouski wrote: > > > > Regarding code-size there's a gain with CONFIG_CONSOLE_ROTATION > > enabled, and penalty with disabled: > > > > New: > > CONFIG_VIDEO_CONSOLE=y > > CONFIG_CONSOLE_ROTATION=y >

[PATCH v2 8/8] video console: add 12x22 console simple font test

2023-02-13 Thread Dzmitry Sankouski
Tests fonts wider than a byte. Signed-off-by: Dzmitry Sankouski --- Changes for v2: N/A configs/sandbox_defconfig | 3 +++ test/dm/video.c | 41 +++ 2 files changed, 44 insertions(+) diff --git a/configs/sandbox_defconfig b/configs

[PATCH v2 2/8] video console: refactoring and optimization

2023-02-13 Thread Dzmitry Sankouski
- 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 --- Changes for v2

[PATCH v2 4/8] video console: add select font logic to vidconsole uclass driver

2023-02-13 Thread Dzmitry Sankouski
Select font logic at runtime needed to unit test different fonts. This commit is a preparation to enable runtime font selection in console_simple driver. - move console true type select font logic to driver ops - add select font logic to vidconsole-uclass.c Signed-off-by: Dzmitry Sankouski

[PATCH v2 3/8] video console: add support for fonts wider than 1 byte

2023-02-13 Thread Dzmitry Sankouski
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 --- Charges for v2: - replace

[PATCH v2 1/8] video console: unite normal and rotated files

2023-02-13 Thread Dzmitry Sankouski
Unite console_normal.c and console_rotate.c files. Those files have similar logic, and common logic may be extracted after putting code in single file. Signed-off-by: Dzmitry Sankouski --- Changes for v2: - none drivers/video/Kconfig | 8 +- drivers/video/Makefile

[PATCH v2 0/8] vidconsole: refactoring and support for wider fonts

2023-02-13 Thread Dzmitry Sankouski
: - fix video tests failures - add runtime font size configuration - add test for 12x22 font Dzmitry Sankouski (8): video console: unite normal and rotated files video console: refactoring and optimization video console: add support for fonts wider than 1 byte video console: add select font

[PATCH v3 5/5] dm: input: add button_kbd driver

2023-01-22 Thread Dzmitry Sankouski
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

[PATCH v3 3/5] test: create dedicated fdt node for ofnode_for_each_prop test

2023-01-22 Thread Dzmitry Sankouski
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

[PATCH v3 4/5] dm: button: add support for linux_code in button-gpio.c driver

2023-01-22 Thread Dzmitry Sankouski
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

[PATCH v3 2/5] dts: add missing linux,code in gpio-keys

2023-01-22 Thread Dzmitry Sankouski
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

[PATCH v3 1/5] gpio: qcom: add direction functions for pwrkey

2023-01-22 Thread Dzmitry Sankouski
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

[PATCH v3 0/5] dm: input: driver for buttons with linux, code declaration

2023-01-22 Thread Dzmitry Sankouski
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

[PATCH v2 4/4] dm: input: add button_kbd driver

2023-01-19 Thread Dzmitry Sankouski
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

[PATCH v2 3/4] dm: button: add support for linux_code in button-gpio.c driver

2023-01-19 Thread Dzmitry Sankouski
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

[PATCH v2 2/4] dts: add missing linux,code in gpio-keys

2023-01-19 Thread Dzmitry Sankouski
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

[PATCH v2 1/4] gpio: qcom: add direction functions for pwrkey

2023-01-19 Thread Dzmitry Sankouski
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

[PATCH v2 0/4] dm: input: driver for buttons with linux, code declaration

2023-01-19 Thread Dzmitry Sankouski
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

Re: [PATCH 2/3] dm: button: add support for linux_code in button-gpio.c driver

2023-01-16 Thread Dzmitry Sankouski
> 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,

Re: [PATCH 2/3] dm: button: add support for linux_code in button-gpio.c driver

2023-01-14 Thread Dzmitry Sankouski
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

Re: [PATCH 1/5] video console: unite normal and rotated files

2023-01-11 Thread Dzmitry Sankouski
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

Re: [PATCH 5/5] video console: remove unused 4x6 font

2023-01-11 Thread Dzmitry Sankouski
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

Re: [PATCH 4/5] video console: add 16x32 ter font from linux

2023-01-11 Thread Dzmitry Sankouski
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

Re: [PATCH 0/5] vidconsole: refactoring and support for wider fonts

2023-01-11 Thread Dzmitry Sankouski
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

Re: [PATCH] SoC: sdm845: find and save KASLR to env variables

2023-01-11 Thread Dzmitry Sankouski
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

[PATCH 3/3] dm: input: add button_kbd driver

2023-01-11 Thread Dzmitry Sankouski
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

[PATCH 2/3] dm: button: add support for linux_code in button-gpio.c driver

2023-01-11 Thread Dzmitry Sankouski
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

[PATCH 1/3] gpio: qcom: add direction functions for pwrkey

2023-01-11 Thread Dzmitry Sankouski
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

[PATCH 0/3] dm: input: driver for buttons with linux, code declaration

2023-01-11 Thread Dzmitry Sankouski
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

Re: [PATCH 2/5] video console: refactoring and optimization

2023-01-04 Thread Dzmitry Sankouski
, 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

[PATCH] SoC: sdm845: find and save KASLR to env variables

2022-12-27 Thread Dzmitry Sankouski
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

[PATCH] board: starqltechn: enable serial console

2022-12-27 Thread Dzmitry Sankouski
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

[PATCH 4/5] video console: add 16x32 ter font from linux

2022-12-27 Thread Dzmitry Sankouski
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

  1   2   >