Re: [PATCH v4 00/16] General Tegra improvements

2023-02-21 Thread Svyatoslav Ryhel
/master TOT is fine, too. Sorry - don't know what I did > wrong before. > I'll run buildman on it and then get a PR out to TomR if it all looks good. > > Thanks! > > -Original Message- > From: Tom Warren > Sent: Friday, February 17, 2023 9:22 AM &g

Re: [PATCH v4 00/16] General Tegra improvements

2023-02-21 Thread Svyatoslav Ryhel
s in ASAP that would be great. > > Tom > > -Original Message- > From: Svyatoslav Ryhel > Sent: Tuesday, February 21, 2023 1:00 AM > To: Tom Warren > Cc: u-boot@lists.denx.de > Subject: Re: [PATCH v4 00/16] General Tegra improvements > > External email: Use

Re: [PATCH v1 1/1] input: button_kbd: make driver complementary to gpio buttons

2023-02-21 Thread Svyatoslav Ryhel
Thanks! Do I need someone else to be able to merge this or your review is enough? Best regards, Svyatoslav R. вт, 21 лют. 2023 р. о 21:37 Simon Glass пише: > > On Mon, 20 Feb 2023 at 10:41, Svyatoslav Ryhel wrote: > > > > Remove need of dts binding for button keyboard since

Re: [PATCH v1 00/11] Tegra DC improvements

2023-02-24 Thread Svyatoslav Ryhel
t T30 devices support, which rely on video out as the main output source. пн, 20 лют. 2023 р. о 11:54 Svyatoslav Ryhel пише: > > This patch set is dedicated to improvement of video support > on T20 and T30 devices. It contains: > > - DC driver improvements (T30 support was added in

[PATCH v2 00/11] Tegra DC improvements

2023-02-26 Thread Svyatoslav Ryhel
Svyatoslav Ryhel (10): video: move tegra dc driver into own folder video: tegra-dc: get clocks from device tree video: tegra-dc: request timings from panel driver first video: tegra-dc: assign regmap directly video: tegra-dc: add 180 degree panel rotation video: tegra-dc: add

[PATCH v2 02/11] video: move tegra dc driver into own folder

2023-02-26 Thread Svyatoslav Ryhel
Signed-off-by: Svyatoslav Ryhel --- drivers/video/Kconfig | 11 ++- drivers/video/Makefile| 2 +- drivers/video/tegra20/Kconfig | 8 drivers/video/tegra20/Makefile| 3 +++ drivers/video/{tegra.c

[PATCH v2 01/11] tegra: lcd: video: integrate display driver for t30

2023-02-26 Thread Svyatoslav Ryhel
Schwöbel # Surface RT T30 Tested-by: Svyatoslav Ryhel # LG P895 T30 Signed-off-by: Marcel Ziswiler Signed-off-by: Svyatoslav Ryhel --- arch/arm/dts/tegra30-u-boot.dtsi| 9 +++ arch/arm/include/asm/arch-tegra30/display.h | 28 + arch/arm/include/asm/arch-tegra30

[PATCH v2 03/11] video: tegra-dc: get clocks from device tree

2023-02-26 Thread Svyatoslav Ryhel
: Svyatoslav Ryhel # HTC One X T30 Signed-off-by: Svyatoslav Ryhel --- drivers/video/tegra20/tegra-dc.c | 31 +++ 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/drivers/video/tegra20/tegra-dc.c b/drivers/video/tegra20/tegra-dc.c index 5e3f6bf029..ff67cc8989

[PATCH v2 04/11] video: tegra-dc: request timings from panel driver first

2023-02-26 Thread Svyatoslav Ryhel
-by: Svyatoslav Ryhel # LG P895 T30 Signed-off-by: Svyatoslav Ryhel --- drivers/video/tegra20/tegra-dc.c | 29 + 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/drivers/video/tegra20/tegra-dc.c b/drivers/video/tegra20/tegra-dc.c index ff67cc8989

[PATCH v2 05/11] video: tegra-dc: assign regmap directly

2023-02-26 Thread Svyatoslav Ryhel
Tested-by: Robert Eckelmann # ASUS TF101 T20 Tested-by: Nicolas Chauvet # Paz00 Tested-by: Andreas Westman Dorcsak # ASUS TF T30 Tested-by: Svyatoslav Ryhel # LG P895 T30 Signed-off-by: Svyatoslav Ryhel --- drivers/video/tegra20/tegra-dc.c | 19 --- 1 file changed, 8

[PATCH v2 06/11] video: tegra-dc: add 180 degree panel rotation

2023-02-26 Thread Svyatoslav Ryhel
Unlike 90 and 270 degree rotation, 180 degree rotation is more common and does not require scaling. Implement it for correct grouper support. Tested-by: Andreas Westman Dorcsak # Google Nexus 7 2012 Tested-by: Svyatoslav Ryhel # Google Nexus 7 2012 Signed-off-by: Svyatoslav Ryhel --- drivers

[PATCH v2 07/11] video: tegra-dc: add panel_set_backlight call

2023-02-26 Thread Svyatoslav Ryhel
: Andreas Westman Dorcsak # ASUS TF T30 Tested-by: Svyatoslav Ryhel # LG P895 T30 Signed-off-by: Svyatoslav Ryhel --- drivers/video/tegra20/tegra-dc.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/video/tegra20/tegra-dc.c b/drivers/video/tegra20/tegra-dc.c index e279650922

[PATCH v2 08/11] video: tegra-dc: pass DC regmap to internal devices

2023-02-26 Thread Svyatoslav Ryhel
# Paz00 Tested-by: Robert Eckelmann # ASUS TF101 T20 Tested-by: Svyatoslav Ryhel # HTC One X T30 Signed-off-by: Svyatoslav Ryhel --- arch/arm/include/asm/arch-tegra/dc.h | 8 drivers/video/tegra20/tegra-dc.c | 8 2 files changed, 16 insertions(+) diff --git a/arch/arm

[PATCH v2 10/11] simple_panel: add support for get_display_timing

2023-02-26 Thread Svyatoslav Ryhel
Some cases may require passing display timings from panel driver. To handle such cases support parsing device tree panel node for timing subnode. Tested-by: Robert Eckelmann # ASUS TF101 T20 Tested-by: Nicolas Chauvet # Paz00 Tested-by: Svyatoslav Ryhel # Google Nexus 7 2012 Signed-off-by

[PATCH v2 11/11] simple_panel: support simple MIPI DSI panels

2023-02-26 Thread Svyatoslav Ryhel
Re-use simple panel driver for MIPI DSI panels which do not require additional DSI commands for setup. Tested-by: Robert Eckelmann # ASUS TF101 T20 Tested-by: Nicolas Chauvet # Paz00 Tested-by: Andreas Westman Dorcsak # ASUS TF700T T30 Signed-off-by: Svyatoslav Ryhel --- drivers/video

[PATCH v2 09/11] video: tegra20: add DSI controller driver

2023-02-26 Thread Svyatoslav Ryhel
f any supported devices will be found. Driver is wrapped as panel driver since Tegra DC driver supports only panel drivers calls. Tested-by: Andreas Westman Dorcsak # ASUS TF600T T30 Tested-by: Svyatoslav Ryhel # HTC One X T30 Signed-off-by: Svyatoslav Ryhel --- arch/arm/include/asm/arch-tegra30/

[PATCH v4 0/1] CMD commands improvements

2023-03-20 Thread Svyatoslav Ryhel
- re-send after month Changelog from v2 - fix stuck of ums due to getchar loop. Now getchar is called after tstc check. Changelog from v1 - 'continue' command commit was dropped as there already exists 'pause' command with same function. - UMS_ABORT_KEYED renamed to CMD_UMS_AB

[PATCH v4 1/1] cmd: ums: abort mounting by pressing any key

2023-03-20 Thread Svyatoslav Ryhel
This patch introduses config which allows interrupt run of usb mass storage with any key. This is especially useful on devices with limited input capabilities like tablets and smatphones which have only gpio keys in direct access. Signed-off-by: Svyatoslav Ryhel --- cmd/Kconfig| 6

[PATCH v2 0/1] GPIO buttons keyboard driver update

2023-03-20 Thread Svyatoslav Ryhel
Remove need of dts binding for button keyboard since it reuses gpio-keys binding. Select gpio-keys driver if button keyboard is selected since button keyboard can not operate on its own. Changes from v1: - add reviewed-by - re-send after month Svyatoslav Ryhel (1): input: button_kbd: make

[PATCH v2 1/1] input: button_kbd: make driver complementary to gpio buttons

2023-03-20 Thread Svyatoslav Ryhel
Remove need of dts binding for button keyboard since it reuses gpio-keys binding. Select gpio-keys driver if button keyboard is selected since button keyboard can not operate on its own. Tested-by: Svyatoslav Ryhel # HTC One X T30 Signed-off-by: Svyatoslav Ryhel Reviewed-by: Simon Glass

[PATCH v1 0/2] power: pmic: add TPS65913 support

2023-07-12 Thread Svyatoslav Ryhel
ce tree is completely ignored). This causes major issue since voltage is usually set on probing and rarely is changed. Drivers which change voltage will also assume that initial voltage was already set and this was not the case. Svyatoslav Ryhel (2): power: pmic: support TI TPS65913 PMIC power:

[PATCH v1 1/2] power: pmic: support TI TPS65913 PMIC

2023-07-12 Thread Svyatoslav Ryhel
Existing PALMAS PMIC driver is fully compatible with TI TPS65913 PMIC found in many Tegra 4 devices, like Tegra Note 7 and ASUS TF701T. TPS65913 shares same structure of regulators like TPS659038 so data can be reused. Tested-by: Svyatoslav Ryhel # NVIDIA Tegratab Signed-off-by: Svyatoslav Ryhel

[PATCH v1 2/2] power: regulator: palmas: set up voltage on probe

2023-07-12 Thread Svyatoslav Ryhel
dy set and this was not the case. Tested-by: Svyatoslav Ryhel Signed-off-by: Svyatoslav Ryhel --- drivers/power/regulator/palmas_regulator.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/power/regulator/palmas_regulator.c b/drivers/power/regulator/palmas_regulator.c index

[PATCH v1 0/6] Add support for PMICs used on Tegra 3 devices

2023-07-14 Thread Svyatoslav Ryhel
) and ASUS TF300T (tps65911). Calculations and behavior were correct, predictable and reproducible. Svyatoslav Ryhel (6): power: pmic: add the base max77663 pmic support power: regulator: max77663: add regulator support power: pmic: add the base TPS80031 PMIC support power: regulator

[PATCH v1 1/6] power: pmic: add the base max77663 pmic support

2023-07-14 Thread Svyatoslav Ryhel
Add support to bind the regulators/child nodes with the pmic. Also adds the pmic i2c based read/write functions to access pmic registers. Signed-off-by: Svyatoslav Ryhel --- doc/device-tree-bindings/pmic/max77663.txt | 84 ++ drivers/power/pmic/Kconfig | 6

[PATCH v1 2/6] power: regulator: max77663: add regulator support

2023-07-14 Thread Svyatoslav Ryhel
The driver provides regulator set/get voltage enable/disable functions for MAXIM MAX77663 PMICs. Signed-off-by: Svyatoslav Ryhel --- drivers/power/regulator/Kconfig | 8 + drivers/power/regulator/Makefile | 1 + drivers/power/regulator/max77663_regulator.c | 362

[PATCH v1 4/6] power: regulator: tps80031: add regulator support

2023-07-14 Thread Svyatoslav Ryhel
The driver provides regulator set/get voltage enable/disable functions for TI TPS80031/TPS80032 PMICs. Signed-off-by: Svyatoslav Ryhel --- drivers/power/regulator/Kconfig | 8 + drivers/power/regulator/Makefile | 1 + drivers/power/regulator/tps80031_regulator.c

[PATCH v1 5/6] power: pmic: tps65910: add TPS65911 PMIC support

2023-07-14 Thread Svyatoslav Ryhel
Add support to bind the regulators/child nodes with the pmic. Also adds the pmic i2c based read/write functions to access pmic registers. Signed-off-by: Svyatoslav Ryhel --- doc/device-tree-bindings/pmic/tps65911.txt | 78 ++ drivers/power/pmic/pmic_tps65910_dm.c | 26

[PATCH v1 3/6] power: pmic: add the base TPS80031 PMIC support

2023-07-14 Thread Svyatoslav Ryhel
Add support to bind the regulators/child nodes with the pmic. Also adds the pmic i2c based read/write functions to access pmic registers. Signed-off-by: Svyatoslav Ryhel --- doc/device-tree-bindings/pmic/tps80031.txt | 76 drivers/power/pmic/Kconfig | 6

[PATCH v1 6/6] power: regulator: tps65911: add regulator support

2023-07-14 Thread Svyatoslav Ryhel
The driver provides regulator set/get voltage enable/disable functions for TI TPS5911 PMIC. Signed-off-by: Svyatoslav Ryhel --- drivers/power/regulator/Kconfig | 8 + drivers/power/regulator/Makefile | 1 + drivers/power/regulator/tps65911_regulator.c | 375

Re: [PATCH v1 0/6] Add support for PMICs used on Tegra 3 devices

2023-07-15 Thread Svyatoslav Ryhel
st regards, Svyatoslav R. пт, 14 лип. 2023 р. о 19:16 Svyatoslav Ryhel пише: > > Patch set adds basic support for PMICs used in many Tegra 3 devices. > All PMIC drivers are based on datasheets provided by vendors. > Implemented API include regulator set/get voltage enable/disable and > ba

[PATCH v2 0/2] power: pmic: add TPS65913 support

2023-07-15 Thread Svyatoslav Ryhel
pmic childs in post-probe - check if device is regulator > autoset if regulator is boot-on or always-on else disable regulator --- Svyatoslav Ryhel (2): power: pmic: support TI TPS65913 PMIC power: pmic: fix regulators behaviour drivers/power/pmic/palmas.c | 1 + drivers/po

[PATCH v2 1/2] power: pmic: support TI TPS65913 PMIC

2023-07-15 Thread Svyatoslav Ryhel
Existing PALMAS PMIC driver is fully compatible with TI TPS65913 PMIC found in many Tegra 4 devices, like Tegra Note 7 and ASUS TF701T. TPS65913 shares same structure of regulators like TPS659038 so data can be reused. Tested-by: Svyatoslav Ryhel # NVIDIA Tegratab Signed-off-by: Svyatoslav Ryhel

[PATCH v2 2/2] power: pmic: fix regulators behaviour

2023-07-15 Thread Svyatoslav Ryhel
, which handles always-on and boot-on regulators, but if none of those props are set, the regulator is disabled. Later disabled regulators can be re-enabled by devices which use them without issues. Signed-off-by: Svyatoslav Ryhel --- drivers/power/pmic/pmic-uclass.c | 18 ++ 1 file

Re: [PATCH v2 0/2] power: pmic: add TPS65913 support

2023-07-15 Thread Svyatoslav Ryhel
16 липня 2023 р. 02:37:39 GMT+03:00, Jonas Karlman написав(-ла): >On 2023-07-15 20:34, Svyatoslav Ryhel wrote: >> Existing PALMAS PMIC driver is fully compatible with TI TPS65913 >> PMIC found in many Tegra 4 devices, like Tegra Note 7 and ASUS >> TF701T. Add TPS6591

Re: [PATCH v2 2/2] power: pmic: fix regulators behaviour

2023-07-15 Thread Svyatoslav Ryhel
16 липня 2023 р. 02:40:37 GMT+03:00, Simon Glass написав(-ла): >Hi Svyatoslav, > >On Sat, 15 Jul 2023 at 12:34, Svyatoslav Ryhel wrote: >> >> Currently device tree entries of regulators are completely >> ignored and regulators are probed only if they are called >

Re: [PATCH v2 0/2] power: pmic: add TPS65913 support

2023-07-16 Thread Svyatoslav Ryhel
16 липня 2023 р. 11:07:15 GMT+03:00, Jonas Karlman написав(-ла): >On 2023-07-16 05:57, Svyatoslav Ryhel wrote: >> >> >> 16 липня 2023 р. 02:37:39 GMT+03:00, Jonas Karlman >> написав(-ла): >>> On 2023-07-15 20:34, Svyatoslav Ryhel wrote: >>>>

Re: [PATCH v2 0/2] power: pmic: add TPS65913 support

2023-07-16 Thread Svyatoslav Ryhel
16 липня 2023 р. 16:07:55 GMT+03:00, Simon Glass написав(-ла): >Hi Svyatoslav, > >On Sun, 16 Jul 2023 at 07:04, Svyatoslav Ryhel wrote: >> >> >> >> 16 липня 2023 р. 11:07:15 GMT+03:00, Jonas Karlman >> написав(-ла): >> >On 2023-07-16 05:

Re: [PATCH v2 2/2] power: pmic: fix regulators behaviour

2023-07-16 Thread Svyatoslav Ryhel
16 липня 2023 р. 16:08:10 GMT+03:00, Simon Glass написав(-ла): >Hi Svyatoslav, > >On Sat, 15 Jul 2023 at 22:08, Svyatoslav Ryhel wrote: >> >> >> >> 16 липня 2023 р. 02:40:37 GMT+03:00, Simon Glass >> написав(-ла): >> >Hi Svyatoslav, >>

Re: [PATCH v2 0/2] power: pmic: add TPS65913 support

2023-07-16 Thread Svyatoslav Ryhel
16 липня 2023 р. 17:27:39 GMT+03:00, Jonas Karlman написав(-ла): >On 2023-07-16 15:17, Svyatoslav Ryhel wrote: >> >> >> 16 липня 2023 р. 16:07:55 GMT+03:00, Simon Glass >> написав(-ла): >>> Hi Svyatoslav, >>> >>>

Re: [PATCH v2 0/2] power: pmic: add TPS65913 support

2023-07-16 Thread Svyatoslav Ryhel
16 липня 2023 р. 16:07:55 GMT+03:00, Simon Glass написав(-ла): >Hi Svyatoslav, > >On Sun, 16 Jul 2023 at 07:04, Svyatoslav Ryhel wrote: >> >> >> >> 16 липня 2023 р. 11:07:15 GMT+03:00, Jonas Karlman >> написав(-ла): >> >On 2023-07-16 05:57, Sv

Re: [PATCH v2 0/2] power: pmic: add TPS65913 support

2023-07-17 Thread Svyatoslav Ryhel
17 липня 2023 р. 21:52:58 GMT+03:00, Jonas Karlman написав(-ла): >On 2023-07-16 20:57, Svyatoslav Ryhel wrote: >> 16 липня 2023 р. 16:07:55 GMT+03:00, Simon Glass >> написав(-ла): >>> Hi Svyatoslav, >>> >>> On Sun, 16 Jul 2023 at 07:04, Svyatoslav

Re: [PATCH v2 0/2] power: pmic: add TPS65913 support

2023-07-17 Thread Svyatoslav Ryhel
. 2023 р. о 21:52 Jonas Karlman пише: > > On 2023-07-16 20:57, Svyatoslav Ryhel wrote: > > 16 липня 2023 р. 16:07:55 GMT+03:00, Simon Glass > > написав(-ла): > >> Hi Svyatoslav, > >> > >> On Sun, 16 Jul 2023 at 07:04, Svyatoslav Ryhel wrote: > >&g

[PATCH v1 0/4] General regulator and pmic uclass improvements

2023-07-18 Thread Svyatoslav Ryhel
up testing since this is interference into framework itself. Svyatoslav Ryhel (4): power: regulator: expand basic reference counter onto all uclass power: regulator-uclass: perform regulator setup inside uclass power: pmic-uclass: probe every child on pmic_post_probe power: regulator-ucla

[PATCH v1 1/4] power: regulator: expand basic reference counter onto all uclass

2023-07-18 Thread Svyatoslav Ryhel
Commit is based on 4fcba5d ("regulator: implement basic reference counter") but expands the idea to all regulators instead of just fixed/gpio regulators. Signed-off-by: Svyatoslav Ryhel --- drivers/power/regulator/regulator-uclass.c | 22 ++ drivers/power

[PATCH v1 2/4] power: regulator-uclass: perform regulator setup inside uclass

2023-07-18 Thread Svyatoslav Ryhel
enseres that correct regulator state according to pdata is reached. Signed-off-by: Svyatoslav Ryhel --- drivers/power/regulator/regulator-uclass.c | 212 ++--- include/power/regulator.h | 119 2 files changed, 62 insertions(+), 269 deletions(-) diff

[PATCH v1 3/4] power: pmic-uclass: probe every child on pmic_post_probe

2023-07-18 Thread Svyatoslav Ryhel
Main goal is to probe all regulator childrens for their proper setup but if pmic has non regulator children they should not suffer from this either. Signed-off-by: Svyatoslav Ryhel --- drivers/power/pmic/pmic-uclass.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/power

[PATCH v1 4/4] power: regulator-uclass: remove all deprecated API use

2023-07-18 Thread Svyatoslav Ryhel
THIS REQUIRES PRECISE TESTING! Signed-off-by: Svyatoslav Ryhel --- arch/arm/mach-rockchip/board.c | 8 arch/arm/mach-rockchip/rk3399/rk3399.c | 10 -- board/Marvell/octeontx2_cn913x/board.c | 5 - board/amlogic/odroid-go-ultra/odroid-go

Re: [PATCH v1 1/4] power: regulator: expand basic reference counter onto all uclass

2023-07-18 Thread Svyatoslav Ryhel
вт, 18 лип. 2023 р. о 10:36 Eugen Hristev пише: > > Hi Svyatoslav, > > > On 7/18/23 10:05, Svyatoslav Ryhel wrote: > > Commit is based on 4fcba5d ("regulator: implement basic reference > > counter") but expands the idea to all regulators instead of just >

RE: [PATCH v1 0/6] Add support for PMICs used on Tegra 3 devices

2023-07-19 Thread Svyatoslav Ryhel
20 липня 2023 р. 06:12:23 GMT+03:00, Jaehoon Chung написав(-ла): >Hi > >> -Original Message----- >> From: Svyatoslav Ryhel >> Sent: Saturday, July 15, 2023 1:16 AM >> To: Jaehoon Chung ; Simon Glass ; >> Svyatoslav Ryhel >> >> Cc: u-b

Re: [PATCH v1 0/6] Add support for PMICs used on Tegra 3 devices

2023-07-20 Thread Svyatoslav Ryhel
чт, 20 лип. 2023 р. о 09:17 Jaehoon Chung пише: > > > > > -Original Message- > > From: Svyatoslav Ryhel > > Sent: Thursday, July 20, 2023 12:26 PM > > To: Jaehoon Chung ; 'Simon Glass' > > > > Cc: u-boot@lists.denx.de > > Su

[PATCH v2 0/9] Add support for PMICs used on Tegra 3 devices

2023-07-20 Thread Svyatoslav Ryhel
from v1: - created poweroff API for PMIC and integrated it call into do_poweroff - added poweroff function to submitted max77663, tps80032 and tps65911 drivers - fixed registers asignments for regulators with non-numeric name (ldoln, ldousb, vddctrl) --- Svyatoslav Ryhel (9): power: pmic

[PATCH v2 1/9] power: pmic-uclass: implement poweroff ops

2023-07-20 Thread Svyatoslav Ryhel
PMICs are responsible for device poweroff sequence so lets implement this function. Signed-off-by: Svyatoslav Ryhel --- drivers/power/pmic/pmic-uclass.c | 12 include/power/pmic.h | 13 + 2 files changed, 25 insertions(+) diff --git a/drivers/power/pmic

[PATCH v2 2/9] cmd: boot: implement PMIC based poweroff

2023-07-20 Thread Svyatoslav Ryhel
Use new PMIC ops to perform device poweroff. Signed-off-by: Svyatoslav Ryhel --- cmd/Kconfig | 6 ++ cmd/boot.c | 40 2 files changed, 46 insertions(+) diff --git a/cmd/Kconfig b/cmd/Kconfig index ecfd575237..47654297f8 100644 --- a/cmd/Kconfig

[PATCH v2 3/9] power: pmic: palmas: support TI TPS65913 PMIC

2023-07-20 Thread Svyatoslav Ryhel
Existing PALMAS PMIC driver is fully compatible with TI TPS65913 PMIC found in many Tegra 4 devices, like Tegra Note 7 and ASUS TF701T. TPS65913 shares same structure of regulators like TPS659038 so data can be reused. Tested-by: Svyatoslav Ryhel # NVIDIA Tegratab Signed-off-by: Svyatoslav Ryhel

[PATCH v2 4/9] power: pmic: add the base MAX77663 PMIC support

2023-07-20 Thread Svyatoslav Ryhel
Add support to bind the regulators/child nodes with the pmic. Also adds the pmic i2c based read/write functions to access pmic registers. Signed-off-by: Svyatoslav Ryhel --- doc/device-tree-bindings/pmic/max77663.txt | 84 + drivers/power/pmic/Kconfig | 6

[PATCH v2 5/9] power: regulator: max77663: add regulator support

2023-07-20 Thread Svyatoslav Ryhel
The driver provides regulator set/get voltage enable/disable functions for MAXIM MAX77663 PMICs. Signed-off-by: Svyatoslav Ryhel --- drivers/power/regulator/Kconfig | 8 + drivers/power/regulator/Makefile | 1 + drivers/power/regulator/max77663_regulator.c | 358

[PATCH v2 7/9] power: regulator: tps80031: add regulator support

2023-07-20 Thread Svyatoslav Ryhel
The driver provides regulator set/get voltage enable/disable functions for TI TPS80031/TPS80032 PMICs. Signed-off-by: Svyatoslav Ryhel --- drivers/power/regulator/Kconfig | 8 + drivers/power/regulator/Makefile | 1 + drivers/power/regulator/tps80031_regulator.c

[PATCH v2 8/9] power: pmic: tps65910: add TPS65911 PMIC support

2023-07-20 Thread Svyatoslav Ryhel
Add support to bind the regulators/child nodes with the pmic. Also adds the pmic i2c based read/write functions to access pmic registers. Signed-off-by: Svyatoslav Ryhel --- doc/device-tree-bindings/pmic/tps65911.txt | 78 ++ drivers/power/pmic/pmic_tps65910_dm.c | 49

[PATCH v2 6/9] power: pmic: add the base TPS80031 PMIC support

2023-07-20 Thread Svyatoslav Ryhel
Add support to bind the regulators/child nodes with the pmic. Also adds the pmic i2c based read/write functions to access pmic registers. Signed-off-by: Svyatoslav Ryhel --- doc/device-tree-bindings/pmic/tps80031.txt | 76 + drivers/power/pmic/Kconfig | 6

[PATCH v2 9/9] power: regulator: tps65911: add regulator support

2023-07-20 Thread Svyatoslav Ryhel
The driver provides regulator set/get voltage enable/disable functions for TI TPS5911 PMIC. Signed-off-by: Svyatoslav Ryhel --- drivers/power/regulator/Kconfig | 8 + drivers/power/regulator/Makefile | 1 + drivers/power/regulator/tps65911_regulator.c | 377

[PATCH v2 0/7] General regulator and pmic uclass improvements

2023-07-20 Thread Svyatoslav Ryhel
le_count from post_probe - added tests from counter and regulators post_probe --- Svyatoslav Ryhel (7): power: regulator: expand basic reference counter onto all uclass test: dm: regulator: test counter in set_enable_if_allowed test power: regulator-uclass: perform regulator setup inside ucla

[PATCH v2 1/7] power: regulator: expand basic reference counter onto all uclass

2023-07-20 Thread Svyatoslav Ryhel
Commit is based on 4fcba5d ("regulator: implement basic reference counter") but expands the idea to all regulators instead of just fixed/gpio regulators. Signed-off-by: Svyatoslav Ryhel --- drivers/power/regulator/regulator-uclass.c | 41 ++ drivers/power

[PATCH v2 2/7] test: dm: regulator: test counter in set_enable_if_allowed test

2023-07-20 Thread Svyatoslav Ryhel
Emulate use of the regulator by a few consumers with balanced on/off calls. Signed-off-by: Svyatoslav Ryhel --- test/dm/regulator.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/test/dm/regulator.c b/test/dm/regulator.c index 86f4862d9d..9b503e4c59 100644 --- a/test

[PATCH v2 3/7] power: regulator-uclass: perform regulator setup inside uclass

2023-07-20 Thread Svyatoslav Ryhel
enseres that correct regulator state according to pdata is reached. Signed-off-by: Svyatoslav Ryhel --- drivers/power/regulator/regulator-uclass.c | 212 ++--- include/power/regulator.h | 119 2 files changed, 62 insertions(+), 269 deletions(-) diff

[PATCH v2 4/7] test: dm: regulator: provide test of auto setup

2023-07-20 Thread Svyatoslav Ryhel
Replace deprecated API test with test of uclass wide autosetup. LDO2 voltage according to dts should be 3.3v not 3.0v Signed-off-by: Svyatoslav Ryhel --- include/power/sandbox_pmic.h | 2 +- test/dm/regulator.c | 131 +++ 2 files changed, 27

[PATCH v2 5/7] power: pmic-uclass: probe every child on pmic_post_probe

2023-07-20 Thread Svyatoslav Ryhel
Main goal is to probe all regulator childrens for their proper setup but if pmic has non regulator children they should not suffer from this either. Signed-off-by: Svyatoslav Ryhel --- drivers/power/pmic/pmic-uclass.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/power

[PATCH v2 6/7] test: dm: pmic: provide test of child autosetup

2023-07-20 Thread Svyatoslav Ryhel
Test if regulator uclass children of PMIC are auto probed and set after PMIC probe. Signed-off-by: Svyatoslav Ryhel --- test/dm/pmic.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/test/dm/pmic.c b/test/dm/pmic.c index ce671202fb..d0a3c24a54 100644

[PATCH v2 7/7] power: regulator-uclass: remove all deprecated API use

2023-07-20 Thread Svyatoslav Ryhel
THIS REQUIRES PRECISE TESTING! Signed-off-by: Svyatoslav Ryhel --- arch/arm/mach-rockchip/board.c | 8 arch/arm/mach-rockchip/rk3399/rk3399.c | 10 -- board/Marvell/octeontx2_cn913x/board.c | 5 - board/amlogic/odroid-go-ultra/odroid-go

Re: [PATCH v2 8/9] power: pmic: tps65910: add TPS65911 PMIC support

2023-07-20 Thread Svyatoslav Ryhel
чт, 20 лип. 2023 р. о 22:43 Simon Glass пише: > > On Thu, 20 Jul 2023 at 02:48, Svyatoslav Ryhel wrote: > > > > Add support to bind the regulators/child nodes with the pmic. > > Also adds the pmic i2c based read/write functions to access pmic > > registers. >

Re: [PATCH v2 1/7] power: regulator: expand basic reference counter onto all uclass

2023-07-20 Thread Svyatoslav Ryhel
чт, 20 лип. 2023 р. о 22:43 Simon Glass пише: > > Hi Svyatoslav, > > On Thu, 20 Jul 2023 at 06:38, Svyatoslav Ryhel wrote: > > > > Commit is based on 4fcba5d ("regulator: implement basic reference > > counter") but expands the idea to all regulators i

Re: [PATCH v2 3/7] power: regulator-uclass: perform regulator setup inside uclass

2023-07-20 Thread Svyatoslav Ryhel
чт, 20 лип. 2023 р. о 22:43 Simon Glass пише: > > Hi Svyatoslav, > > On Thu, 20 Jul 2023 at 06:38, Svyatoslav Ryhel wrote: > > > > Regulators initial setup was previously dependent on board call. > > To move from this behaviour were introduced two steps. Fi

Re: [PATCH v2 1/9] power: pmic-uclass: implement poweroff ops

2023-07-20 Thread Svyatoslav Ryhel
чт, 20 лип. 2023 р. о 22:43 Simon Glass пише: > > Hi Svyatoslav, > > On Thu, 20 Jul 2023 at 02:48, Svyatoslav Ryhel wrote: > > > > PMICs are responsible for device poweroff sequence so lets implement > > this function. > > > > Signed-off-by: Svyatoslav R

Re: [PATCH v2 5/7] power: pmic-uclass: probe every child on pmic_post_probe

2023-07-20 Thread Svyatoslav Ryhel
чт, 20 лип. 2023 р. о 22:43 Simon Glass пише: > > Hi Svyatoslav, > > On Thu, 20 Jul 2023 at 06:38, Svyatoslav Ryhel wrote: > > > > Main goal is to probe all regulator childrens for their > > proper setup but if pmic has non regulator children they > >

Re: [PATCH v2 8/9] power: pmic: tps65910: add TPS65911 PMIC support

2023-07-20 Thread Svyatoslav Ryhel
чт, 20 лип. 2023 р. о 22:43 Simon Glass пише: > > On Thu, 20 Jul 2023 at 02:48, Svyatoslav Ryhel wrote: > > > > Add support to bind the regulators/child nodes with the pmic. > > Also adds the pmic i2c based read/write functions to access pmic > > registers. >

Re: [PATCH 0/5] Keep fixed/gpio regulator enable count in balance

2023-07-20 Thread Svyatoslav Ryhel
чт, 20 лип. 2023 р. о 00:20 Jonas Karlman пише: > > The commit 4fcba5d556b4 ("regulator: implement basic reference counter") > have made it more important to keep fixed/gpio regulators enable/disable > state in balance. > > This series fixes an inbalance in the mmc_dw driver and changes to use > t

Re: [PATCH v2 2/9] cmd: boot: implement PMIC based poweroff

2023-07-23 Thread Svyatoslav Ryhel
нд, 23 лип. 2023 р. о 06:48 Simon Glass пише: > > Hi Svyatoslav, > > On Thu, 20 Jul 2023 at 02:48, Svyatoslav Ryhel wrote: > > > > Use new PMIC ops to perform device poweroff. > > > > Signed-off-by: Svyatoslav Ryhel > > --- > >

Re: [PATCH v2 2/9] cmd: boot: implement PMIC based poweroff

2023-07-23 Thread Svyatoslav Ryhel
нд, 23 лип. 2023 р. о 06:48 Simon Glass пише: > > Hi Svyatoslav, > > On Thu, 20 Jul 2023 at 02:48, Svyatoslav Ryhel wrote: > > > > Use new PMIC ops to perform device poweroff. > > > > Signed-off-by: Svyatoslav Ryhel > > --- > >

[PATCH v3 0/7] Add support for PMICs used on Tegra 3 devices

2023-07-23 Thread Svyatoslav Ryhel
Changes from v1: - created poweroff API for PMIC and integrated it call into do_poweroff - added poweroff function to submitted max77663, tps80032 and tps65911 drivers - fixed registers asignments for regulators with non-numeric name (ldoln, ldousb, vddctrl) --- Svyatoslav Ryhel (7): power

[PATCH v3 1/7] power: pmic: palmas: support TI TPS65913 PMIC

2023-07-23 Thread Svyatoslav Ryhel
Existing PALMAS PMIC driver is fully compatible with TI TPS65913 PMIC found in many Tegra 4 devices, like Tegra Note 7 and ASUS TF701T. TPS65913 shares same structure of regulators like TPS659038 so data can be reused. Tested-by: Svyatoslav Ryhel # NVIDIA Tegratab Signed-off-by: Svyatoslav Ryhel

[PATCH v3 2/7] power: pmic: add the base MAX77663 PMIC support

2023-07-23 Thread Svyatoslav Ryhel
Add support to bind the regulators/child nodes with the pmic. Also adds the pmic i2c based read/write functions to access pmic registers. Signed-off-by: Svyatoslav Ryhel --- doc/device-tree-bindings/pmic/max77663.txt | 84 ++ drivers/power/pmic/Kconfig | 6

[PATCH v3 3/7] power: regulator: max77663: add regulator support

2023-07-23 Thread Svyatoslav Ryhel
The driver provides regulator set/get voltage enable/disable functions for MAXIM MAX77663 PMICs. Signed-off-by: Svyatoslav Ryhel --- drivers/power/regulator/Kconfig | 8 + drivers/power/regulator/Makefile | 1 + drivers/power/regulator/max77663_regulator.c | 358

[PATCH v3 4/7] power: pmic: add the base TPS80031 PMIC support

2023-07-23 Thread Svyatoslav Ryhel
Add support to bind the regulators/child nodes with the pmic. Also adds the pmic i2c based read/write functions to access pmic registers. Signed-off-by: Svyatoslav Ryhel --- doc/device-tree-bindings/pmic/tps80031.txt | 76 drivers/power/pmic/Kconfig | 6

[PATCH v3 5/7] power: regulator: tps80031: add regulator support

2023-07-23 Thread Svyatoslav Ryhel
The driver provides regulator set/get voltage enable/disable functions for TI TPS80031/TPS80032 PMICs. Signed-off-by: Svyatoslav Ryhel --- drivers/power/regulator/Kconfig | 8 + drivers/power/regulator/Makefile | 1 + drivers/power/regulator/tps80031_regulator.c

[PATCH v3 6/7] power: pmic: tps65910: add TPS65911 PMIC support

2023-07-23 Thread Svyatoslav Ryhel
Add support to bind the regulators/child nodes with the pmic. Also adds the pmic i2c based read/write functions to access pmic registers. Signed-off-by: Svyatoslav Ryhel Reviewed-by: Simon Glass --- doc/device-tree-bindings/pmic/tps65911.txt | 78 ++ drivers/power/pmic

[PATCH v3 7/7] power: regulator: tps65911: add regulator support

2023-07-23 Thread Svyatoslav Ryhel
The driver provides regulator set/get voltage enable/disable functions for TI TPS5911 PMIC. Signed-off-by: Svyatoslav Ryhel --- drivers/power/regulator/Kconfig | 8 + drivers/power/regulator/Makefile | 1 + drivers/power/regulator/tps65911_regulator.c | 377

[PATCH v4 0/7] Add support for PMICs used on Tegra 3 devices

2023-07-24 Thread Svyatoslav Ryhel
f function to submitted max77663, tps80032 and tps65911 drivers - fixed registers asignments for regulators with non-numeric name (ldoln, ldousb, vddctrl) --- Svyatoslav Ryhel (7): power: pmic: palmas: support TI TPS65913 PMIC power: pmic: add the base MAX77663 PMIC support power:

[PATCH v4 1/7] power: pmic: palmas: support TI TPS65913 PMIC

2023-07-24 Thread Svyatoslav Ryhel
Existing PALMAS PMIC driver is fully compatible with TI TPS65913 PMIC found in many Tegra 4 devices, like Tegra Note 7 and ASUS TF701T. TPS65913 shares same structure of regulators like TPS659038 so data can be reused. Tested-by: Svyatoslav Ryhel # NVIDIA Tegratab Signed-off-by: Svyatoslav Ryhel

[PATCH v4 2/7] power: pmic: add the base MAX77663 PMIC support

2023-07-24 Thread Svyatoslav Ryhel
Add support to bind the regulators/child nodes with the pmic. Also adds the pmic i2c based read/write functions to access pmic registers. Signed-off-by: Svyatoslav Ryhel Reviewed-by: Simon Glass --- doc/device-tree-bindings/pmic/max77663.txt | 84 + drivers/power/pmic

[PATCH v4 3/7] power: regulator: max77663: add regulator support

2023-07-24 Thread Svyatoslav Ryhel
The driver provides regulator set/get voltage enable/disable functions for MAXIM MAX77663 PMICs. Signed-off-by: Svyatoslav Ryhel Reviewed-by: Simon Glass --- drivers/power/regulator/Kconfig | 9 + drivers/power/regulator/Makefile | 1 + drivers/power/regulator

[PATCH v4 4/7] power: pmic: add the base TPS80031 PMIC support

2023-07-24 Thread Svyatoslav Ryhel
Add support to bind the regulators/child nodes with the pmic. Also adds the pmic i2c based read/write functions to access pmic registers. Signed-off-by: Svyatoslav Ryhel Reviewed-by: Simon Glass --- doc/device-tree-bindings/pmic/tps80031.txt | 76 +++ drivers/power/pmic/Kconfig

[PATCH v4 5/7] power: regulator: tps80031: add regulator support

2023-07-24 Thread Svyatoslav Ryhel
The driver provides regulator set/get voltage enable/disable functions for TI TPS80031/TPS80032 PMICs. Signed-off-by: Svyatoslav Ryhel Reviewed-by: Simon Glass --- drivers/power/regulator/Kconfig | 8 + drivers/power/regulator/Makefile | 1 + drivers/power

[PATCH v4 6/7] power: pmic: tps65910: add TPS65911 PMIC support

2023-07-24 Thread Svyatoslav Ryhel
Add support to bind the regulators/child nodes with the pmic. Also adds the pmic i2c based read/write functions to access pmic registers. Signed-off-by: Svyatoslav Ryhel Reviewed-by: Simon Glass --- doc/device-tree-bindings/pmic/tps65911.txt | 78 ++ drivers/power/pmic

[PATCH v4 7/7] power: regulator: tps65911: add regulator support

2023-07-24 Thread Svyatoslav Ryhel
The driver provides regulator set/get voltage enable/disable functions for TI TPS5911 PMIC. Signed-off-by: Svyatoslav Ryhel Reviewed-by: Simon Glass --- drivers/power/regulator/Kconfig | 11 + drivers/power/regulator/Makefile | 1 + drivers/power/regulator

[PATCH v8 0/8] Add support for PMICs used on Tegra 3 devices

2023-10-24 Thread Svyatoslav Ryhel
s accepted Changes from v1: - created poweroff API for PMIC and integrated it call into do_poweroff - added poweroff function to submitted max77663, tps80032 and tps65911 drivers - fixed registers asignments for regulators with non-numeric name (ldoln, ldousb, vddctrl) --- Svyatoslav Ryhel (8

[PATCH v8 1/8] power: pmic: palmas: support TI TPS65913 PMIC

2023-10-24 Thread Svyatoslav Ryhel
Existing PALMAS PMIC driver is fully compatible with TI TPS65913 PMIC found in many Tegra 4 devices, like Tegra Note 7 and ASUS TF701T. TPS65913 shares same structure of regulators like TPS659038 so data can be reused. Tested-by: Svyatoslav Ryhel # NVIDIA Tegratab Signed-off-by: Svyatoslav Ryhel

[PATCH v8 2/8] power: regulator: palmas: fix ldoln and ldousb detection

2023-10-24 Thread Svyatoslav Ryhel
off-by: Svyatoslav Ryhel --- drivers/power/regulator/palmas_regulator.c | 24 +- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/drivers/power/regulator/palmas_regulator.c b/drivers/power/regulator/palmas_regulator.c index 3c4eb83be7..d615e94734 100644 --- a/d

[PATCH v8 3/8] power: pmic: add the base MAX77663 PMIC support

2023-10-24 Thread Svyatoslav Ryhel
Add support to bind the regulators/child nodes with the pmic. Also adds the pmic i2c based read/write functions to access pmic registers. Signed-off-by: Svyatoslav Ryhel Reviewed-by: Simon Glass --- doc/device-tree-bindings/pmic/max77663.txt | 84 + drivers/power/pmic

[PATCH v8 4/8] power: regulator: max77663: add regulator support

2023-10-24 Thread Svyatoslav Ryhel
The driver provides regulator set/get voltage enable/disable functions for MAXIM MAX77663 PMICs. Signed-off-by: Svyatoslav Ryhel Reviewed-by: Simon Glass --- drivers/power/regulator/Kconfig | 9 + drivers/power/regulator/Makefile | 1 + drivers/power/regulator

[PATCH v8 5/8] power: pmic: add the base TPS80031 PMIC support

2023-10-24 Thread Svyatoslav Ryhel
Add support to bind the regulators/child nodes with the pmic. Also adds the pmic i2c based read/write functions to access pmic registers. Signed-off-by: Svyatoslav Ryhel Reviewed-by: Simon Glass --- doc/device-tree-bindings/pmic/tps80031.txt | 76 +++ drivers/power/pmic/Kconfig

  1   2   3   4   5   6   7   8   9   10   >