Subject: [PATCH 6/6 v2] board: samsung: add Samsung Galaxy S9/S9+(SM-G96x0) board

2021-09-09 Thread Dzmitry Sankouski
>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

Subject: [PATCH 2/6 v3] spmi: msm: add arbiter version 5 support

2021-09-09 Thread Dzmitry Sankouski
>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

[PATCH 1/6 v4] serial: qcom: add support for GENI serial driver

2021-10-08 Thread Dzmitry Sankouski
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

[PATCH 6/6 v4] board: samsung: add Samsung Galaxy S9/S9+(SM-G96x0) board

2021-10-08 Thread 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 a chain-loaded bootloader. Signed-off-by: Dzmitry Sankouski Cc: Ramon Fried Cc: Tom Rini --- Changes

[PATCH 2/6 v4] spmi: msm: add arbiter version 5 support

2021-10-08 Thread Dzmitry Sankouski
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

[PATCH 4/4] board: samsung: add support for Galaxy A series of 2017 (a5y17lte)

2021-10-12 Thread Dzmitry Sankouski
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

[PATCH 1/4] serial: samsung: add support for skip debug init in s5p

2021-10-12 Thread Dzmitry Sankouski
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

[PATCH 0/4] Add support for Samsung 2017 A-series phones

2021-10-12 Thread Dzmitry Sankouski
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

[PATCH 3/4] SoC: exynos: add support for exynos 78x0

2021-10-12 Thread Dzmitry Sankouski
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

[PATCH 0/6] Add support for SDM845 based boards, and SM-G9600

2021-10-12 Thread Dzmitry Sankouski
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

[PATCH 3/6 v2] pinctrl: qcom: add pinctrl and gpio drivers for SDM845 SoC

2021-10-12 Thread Dzmitry Sankouski
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

[PATCH 2/4] pinctrl: exynos: add support for multiple pin banks

2021-10-12 Thread Dzmitry Sankouski
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

[PATCH 1/6 v4] serial: qcom: add support for GENI serial driver

2021-10-12 Thread Dzmitry Sankouski
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

[PATCH 2/6 v4] spmi: msm: add arbiter version 5 support

2021-10-12 Thread Dzmitry Sankouski
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

[PATCH 4/6] clocks: qcom: add clocks for SDM845 debug uart

2021-10-12 Thread Dzmitry Sankouski
, 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

[PATCH 5/6 v2] SoC: qcom: add support for SDM845

2021-10-12 Thread Dzmitry Sankouski
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

[PATCH 6/6 v4] board: samsung: add Samsung Galaxy S9/S9+(SM-G96x0) board

2021-10-12 Thread 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 a chain-loaded bootloader. Signed-off-by: Dzmitry Sankouski Cc: Ramon Fried Cc: Tom Rini --- Changes

[PATCH 1/6 v5] serial: qcom: add support for GENI serial driver

2021-10-17 Thread Dzmitry Sankouski
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

[PATCH 5/6 v2] SoC: qcom: add support for SDM845

2021-10-17 Thread Dzmitry Sankouski
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

[PATCH 2/6 v4] spmi: msm: add arbiter version 5 support

2021-10-17 Thread Dzmitry Sankouski
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

[PATCH 3/6 v2] pinctrl: qcom: add pinctrl and gpio drivers for SDM845 SoC

2021-10-17 Thread Dzmitry Sankouski
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

[PATCH 4/6] clocks: qcom: add clocks for SDM845 debug uart

2021-10-17 Thread Dzmitry Sankouski
, 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

[PATCH 0/6] Add support for SDM845 based boards, and SM-G9600

2021-10-17 Thread Dzmitry Sankouski
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

[PATCH 3/4] SoC: exynos: add support for exynos 78x0

2021-10-17 Thread Dzmitry Sankouski
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

[PATCH 4/4] board: samsung: add support for Galaxy A series of 2017 (a5y17lte)

2021-10-17 Thread Dzmitry Sankouski
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

[PATCH 6/6 v4] board: samsung: add Samsung Galaxy S9/S9+(SM-G96x0) board

2021-10-17 Thread 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 a chain-loaded bootloader. Signed-off-by: Dzmitry Sankouski Cc: Ramon Fried Cc: Tom Rini --- Changes

[PATCH 1/4 v2] serial: samsung: add support for skip debug init in s5p

2021-10-17 Thread Dzmitry Sankouski
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

[PATCH 0/4] Add support for Samsung 2017 A-series phones

2021-10-17 Thread Dzmitry Sankouski
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

[PATCH 2/4] pinctrl: exynos: add support for multiple pin banks

2021-10-17 Thread Dzmitry Sankouski
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

Re: [PATCH 6/6 v4] board: samsung: add Samsung Galaxy S9/S9+(SM-G96x0) board

2021-10-17 Thread Dzmitry Sankouski
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, > >

Re: [PATCH 1/6 v4] serial: qcom: add support for GENI serial driver

2021-10-15 Thread Dzmitry Sankouski
чт, 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

Re: [PATCH 6/6 v3] board: samsung: add Samsung Galaxy S9/S9+(SM-G96x0) board

2021-09-24 Thread Dzmitry Sankouski
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

[PATCH 1/2 v2] soc: sdm845: implement ABL info collecting, add bootcommand and usage doc

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

[PATCH 2/2 v2] board: starqltechn: get board usable - fix defconfig and strip config options

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

[PATCH 0/2] get sdm845 boards u-boot usable as a secondary bootloader

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

[PATCH 1/2] soc: sdm845: implement ABL info collecting, add bootcommand and usage doc

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

[PATCH 2/2] board: starqltechn: get board usable - fix defconfig and strip config options

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

[PATCH 0/2] get sdm845 boards u-boot usable as a secondary bootloader

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

Re: [PATCH 1/2] board: samsung: fix menu entries for a{3,7}y17lte

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

Save bootargs from 1st stage bootloader like linux does

2022-01-10 Thread 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 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

Re: Save bootargs from 1st stage bootloader like linux does

2022-01-10 Thread Dzmitry Sankouski
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

[PATCH 2/3 v3] board: starqltechn: get board usable - add bootcmd and docs

2022-02-13 Thread Dzmitry Sankouski
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

[PATCH 1/3 v3] arm: init: save previous bootloader data

2022-02-13 Thread Dzmitry Sankouski
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

[PATCH 3/3 v2] board: axy17lte: get board usable - add bootcmd and docs

2022-02-13 Thread Dzmitry Sankouski
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

[PATCH 0/3] save prev bootloader data, when u-boot chainloaded

2022-02-13 Thread Dzmitry Sankouski
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

[PATCH 1/3 v3] arm: init: save previous bootloader data

2022-02-22 Thread Dzmitry Sankouski
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

[PATCH 3/3 v2] board: axy17lte: get board usable - add bootcmd and docs

2022-02-22 Thread Dzmitry Sankouski
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

[PATCH 2/3 v4] board: starqltechn: get board usable - add bootcmd and docs

2022-02-22 Thread Dzmitry Sankouski
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

[PATCH 0/3] save prev bootloader data, when u-boot chainloaded

2022-02-22 Thread Dzmitry Sankouski
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

[PATCH 3/3 v2] board: axy17lte: get board usable - add bootcmd and docs

2022-01-30 Thread Dzmitry Sankouski
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

[PATCH 2/3 v2] board: starqltechn: get board usable - add bootcmd and docs

2022-01-30 Thread Dzmitry Sankouski
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

[PATCH 1/3 v2] arm: init: save previous bootloader data

2022-01-30 Thread Dzmitry Sankouski
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

[PATCH 0/3] save prev bootloader data, when u-boot chainloaded

2022-01-30 Thread Dzmitry Sankouski
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

Re: [PATCH 2/2] board: starqltechn: get board usable - fix defconfig and strip config options

2022-01-30 Thread Dzmitry Sankouski
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

Re: [PATCH 2/2] doc: board: avoid ambiguous names for axy17lte

2022-01-07 Thread Dzmitry Sankouski
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

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

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

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

2022-12-26 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 --- drivers/video

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

2022-12-26 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 --- drivers/video

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

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

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

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

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

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

[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 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

[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

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 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

[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

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 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

[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] 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

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

[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 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

[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 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 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 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 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 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

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 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 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 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 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 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 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 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 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 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 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

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 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

  1   2   >