Re: [PATCH v3 2/5] regulator: rk808: add RK809 and RK817 support.

2018-08-24 Thread Wadim Egorov
(1), > +DISABLE_VAL(1), 400), > + RK817_DESC(RK817_ID_LDO3, "LDO_REG3", "vcc5", 600, 3400, 25, > +RK817_LDO_ON_VSEL_REG(2), RK817_LDO_VSEL_MASK, > +RK817_POWER_EN_REG(1), ENABLE_MASK(2), ENABLE_MASK(2), > +

Re: [PATCH v5 1/2] mfd: rk808: Refactor shutdown functions

2018-07-24 Thread Wadim Egorov
Hi, Am 16.04.2018 um 11:38 schrieb Lee Jones: > On Thu, 29 Mar 2018, Daniel Schultz wrote: > >> Since all three shutdown functions have almost the same code, all logic >> from the shutdown functions can be refactored to a new function >> "rk808_update_bits", which can update a register by a given

Re: [PATCH 2/2] remoteproc: k3-r5: Fix log levels where appropriate

2024-06-26 Thread Wadim Egorov
Hi Garrett, Am 26.06.24 um 18:22 schrieb Garrett Giordano: Driver was logging information as debug. Changed dev_dbg to dev_info where appropriate. Signed-off-by: Garrett Giordano --- drivers/remoteproc/ti_k3_r5_remoteproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

Re: [PATCH v11 3/9] remoteproc: k3-m4: Add a remoteproc driver for M4F subsystem

2024-08-19 Thread Wadim Egorov
: Martyn Welch Signed-off-by: Hari Nagalla Signed-off-by: Andrew Davis Tested-by: Wadim Egorov --- drivers/remoteproc/Kconfig | 13 + drivers/remoteproc/Makefile | 1 + drivers/remoteproc/ti_k3_m4_remoteproc.c | 667 +++ 3 files changed, 681

Re: [PATCH v11 4/9] arm64: dts: ti: k3-am62: Add M4F remoteproc node

2024-08-19 Thread Wadim Egorov
memory nodes are needed. Disable by default as this node is not complete until mailbox data is provided in the board level DT. Signed-off-by: Hari Nagalla Signed-off-by: Andrew Davis Tested-by: Wadim Egorov --- arch/arm64/boot/dts/ti/k3-am62-mcu.dtsi | 13 + 1 file changed

Re: [PATCH v11 0/9] TI K3 M4F support on AM62 and AM64 SoCs

2024-08-19 Thread Wadim Egorov
aga...@ti.com/T/ Changes for v11: - Added patch [2/9] factoring out a common function - Addressed comments by Mathieu from v10 - Rebased on v6.11-rc1 - Small reworks in driver for readability Tested on a AM62x & AM64x using phycore-am62x & phycore-am64x, so Tested-by: Wadim Ego

Re: [PATCH v11 2/9] remoteproc: k3: Factor out TI-SCI processor control OF get function

2024-08-19 Thread Wadim Egorov
Am 02.08.24 um 17:21 schrieb Andrew Davis: Building the TSP structure is common for users of the TI-SCI processor control interface. Factor out this function and put it with the rest of the TI-SCI processor control functions. Signed-off-by: Andrew Davis Tested-by: Wadim Egorov

[PATCH 3/6] regulator: rk808: Make rk808 generic, rename rk808-regulator.c

2016-04-15 Thread Wadim Egorov
This patch just renames the rk808 driver so we can reuse this driver to add more regulator devices from the RK8XX PMIC family later. Signed-off-by: Wadim Egorov --- arch/arm/configs/multi_v7_defconfig| 2 +- drivers/mfd/rk8xx.c| 4 +-- drivers

[PATCH 0/6] Add RK818 PMIC support

2016-04-15 Thread Wadim Egorov
* renamed rk808.c driver -> rk8xx.c * renamed rk808-regulator.c driver -> rk8xx-regulator.c Wadim Egorov (6): mfd: RK808: Make RK808 generic, rename rk808.c to rk8xx.c mfd: RK808: Add RK818 support regulator: rk808: Make rk808 generic, rename rk808-regulator.c regulator: rk8xx: Migr

[PATCH 6/6] mfd: dt-bindings: Add RK818 device tree bindings document

2016-04-15 Thread Wadim Egorov
Add device tree bindings documentation for Rockchip's RK818 PMIC. Signed-off-by: Wadim Egorov --- Changes since RFC: * fixed names and wildcards --- Documentation/devicetree/bindings/mfd/rk808.txt | 37 +++-- 1 file changed, 34 insertions(+), 3 deletions(-) diff --

[PATCH 1/6] mfd: RK808: Make RK808 generic, rename rk808.c to rk8xx.c

2016-04-15 Thread Wadim Egorov
Basically this patch just renames the RK808 driver so we can use this driver for more than one RK8XX PMIC later. Signed-off-by: Wadim Egorov --- arch/arm/configs/multi_v7_defconfig | 2 +- drivers/clk/Kconfig | 2 +- drivers/mfd/Kconfig | 4 +- drivers/mfd

[PATCH 2/6] mfd: RK808: Add RK818 support

2016-04-15 Thread Wadim Egorov
: Zhang Qing * + * Copyright (C) 2016 PHYTEC Messtechnik GmbH + * + * Author: Wadim Egorov + * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the Free Software

[PATCH 5/6] regulator: rk8xx: Add regulator driver for RK818

2016-04-15 Thread Wadim Egorov
Add support for the rk818 regulator. The regulator module consists of 4 DCDCs, 9 LDOs, 1 switch and 1 BOOST converter which is used to power OTG and HDMI5V. The output voltages are configurable and are meant to supply power to the main processor and other components. Signed-off-by: Wadim Egorov

[PATCH 4/6] regulator: rk8xx: Migrate to regulator core's simplified DT parsing code

2016-04-15 Thread Wadim Egorov
re compact. Remove also linear ranges definitions with only one range. Signed-off-by: Wadim Egorov --- Changes since RFC: * dropped of_regulator_match --- drivers/regulator/rk8xx-regulator.c | 308 +--- 1 file changed, 114 insertions(+), 194 deletions(-) diff --git

Re: [PATCH v4 3/7] mfd: RK808: Add RK818 support

2016-05-09 Thread Wadim Egorov
Ping. Do you have any more comments? On 26.04.2016 16:54, Wadim Egorov wrote: > The RK818 chip is a power management IC for multimedia and handheld > devices. It contains the following components: > > - Regulators > - RTC > - Clkout > - battery support > > Both chips

[PATCH v5 5/6] clk: Kconfig: Name RK818 in Kconfig for COMMON_CLK_RK808

2016-05-10 Thread Wadim Egorov
The RK808 and RK818 PMICs are using a similar register map. We can reuse the clk driver for the RK818 PMIC. So let's add the RK818 in the Kconfig description. Signed-off-by: Wadim Egorov Acked-by: Stephen Boyd --- drivers/clk/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 dele

[PATCH v5 6/6] rtc: Kconfig: Name RK818 in Kconfig for RTC_DRV_RK808

2016-05-10 Thread Wadim Egorov
The RK808 and RK818 PMICs are using a similar register map. We can reuse the rtc driver for the RK818 PMIC. So let's add the RK818 in the Kconfig description. Signed-off-by: Wadim Egorov Acked-by: Alexandre Belloni --- drivers/rtc/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 dele

[PATCH v5 3/6] regulator: rk808: Add regulator driver for RK818

2016-05-10 Thread Wadim Egorov
Add support for the rk818 regulator. The regulator module consists of 4 DCDCs, 9 LDOs, 1 switch and 1 BOOST converter which is used to power OTG and HDMI5V. The output voltages are configurable and are meant to supply power to the main processor and other components. Signed-off-by: Wadim Egorov

[PATCH v5 2/6] mfd: RK808: Add RK818 support

2016-05-10 Thread Wadim Egorov
ip Electronics Co., Ltd * * Author: Chris Zhong * Author: Zhang Qing * + * Copyright (C) 2016 PHYTEC Messtechnik GmbH + * + * Author: Wadim Egorov + * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public L

[PATCH v5 1/6] regulator: rk808: Migrate to regulator core's simplified DT parsing code

2016-05-10 Thread Wadim Egorov
re compact. Signed-off-by: Wadim Egorov Acked-by: Mark Brown --- Changes since v4: - Added acked-by --- drivers/regulator/rk808-regulator.c | 250 1 file changed, 79 insertions(+), 171 deletions(-) diff --git a/drivers/regulator/rk808-regulator.c b/drivers

[PATCH v5 0/6] Add support for rk818

2016-05-10 Thread Wadim Egorov
9d7cf98f5c ("regulator: rk808: Add rk808_reg_ops_ranges for LDO3") Wadim Egorov (6): regulator: rk808: Migrate to regulator core's simplified DT parsing code mfd: RK808: Add RK818 support regulator: rk808: Add regulator driver for RK818 mfd: dt-bindings: Add RK818 devi

[PATCH v5 4/6] mfd: dt-bindings: Add RK818 device tree bindings document

2016-05-10 Thread Wadim Egorov
Add device tree bindings documentation for Rockchip's RK818 PMIC. Signed-off-by: Wadim Egorov Acked-by: Rob Herring --- Documentation/devicetree/bindings/mfd/rk808.txt | 37 +++-- 1 file changed, 34 insertions(+), 3 deletions(-) diff --git a/Documentation/devic

Re: [PATCH v5 3/6] regulator: rk808: Add regulator driver for RK818

2016-05-10 Thread Wadim Egorov
On 10.05.2016 16:03, Lee Jones wrote: > On Tue, 10 May 2016, Wadim Egorov wrote: > >> Add support for the rk818 regulator. The regulator module consists >> of 4 DCDCs, 9 LDOs, 1 switch and 1 BOOST converter which is used to >> power OTG and HDMI5V. >> >> The

Re: Applied "regulator: rk808: remove linear range definitions with a single range" to the regulator tree

2016-04-26 Thread Wadim Egorov
On 26.04.2016 21:33, Heiko Stübner wrote: > Am Montag, 25. April 2016, 18:56:54 schrieb Mark Brown: >> The patch >> >>regulator: rk808: remove linear range definitions with a single range >> >> has been applied to the regulator tree at >> >>git://git.kernel.org/pub/scm/linux/kernel/git/br

Re: Applied "regulator: rk808: remove linear range definitions with a single range" to the regulator tree

2016-04-27 Thread Wadim Egorov
On 27.04.2016 15:50, Mark Brown wrote: > On Wed, Apr 27, 2016 at 08:35:46AM +0200, Wadim Egorov wrote: >> On 26.04.2016 21:33, Heiko Stübner wrote: >>> with this patch applied, 4.6.0-rc5-next-20160426 fails to boot on >>> rk3288-veyron devices with the bug belo

[PATCH 2/2] regulator: fan53555: Add support for FAN53555UC13X type

2016-04-20 Thread Wadim Egorov
IC type options 00, 13 and 23 are sharing the same DIE_ID 0. Let's differentiate between these revisions. FAN53555UC13X has the ID 0 and REV 0xf, starts at 800mV and increments in 10mV steps. Signed-off-by: Wadim Egorov --- drivers/regulator/fan53555.c | 22 ++ 1

[PATCH 1/2] regulator: fan53555: Add support for FAN53555BUC18X type

2016-04-20 Thread Wadim Egorov
FAN53555BUC18X has the DIE_ID 8, starts at 600mV and increments in 10mV steps. Signed-off-by: Wadim Egorov --- drivers/regulator/fan53555.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/regulator/fan53555.c b/drivers/regulator/fan53555.c index 2cb5cc3..d4bfa93 100644 --- a

[PATCH v2 2/7] mfd: RK808: Add RK818 support

2016-04-21 Thread Wadim Egorov
rs/mfd/rk808.c @@ -6,6 +6,10 @@ * Author: Chris Zhong * Author: Zhang Qing * + * Copyright (C) 2016 PHYTEC Messtechnik GmbH + * + * Author: Wadim Egorov + * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License,

[PATCH v2 6/7] clk: Kconfig: Name RK818 in Kconfig for COMMON_CLK_RK808

2016-04-21 Thread Wadim Egorov
The RK808 and RK818 PMICs are using a similar register map. We can reuse the clk driver for the RK818 PMIC. So let's add the RK818 in the Kconfig description. Signed-off-by: Wadim Egorov --- drivers/clk/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/driver

[PATCH v2 7/7] rtc: Kconfig: Name RK818 in Kconfig for RTC_DRV_RK808

2016-04-21 Thread Wadim Egorov
The RK808 and RK818 PMICs are using a similar register map. We can reuse the rtc driver for the RK818 PMIC. So let's add the RK818 in the Kconfig description. Signed-off-by: Wadim Egorov --- drivers/rtc/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/driver

[PATCH v2 5/7] mfd: dt-bindings: Add RK818 device tree bindings document

2016-04-21 Thread Wadim Egorov
Add device tree bindings documentation for Rockchip's RK818 PMIC. Signed-off-by: Wadim Egorov --- Documentation/devicetree/bindings/mfd/rk808.txt | 37 +++-- 1 file changed, 34 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/mfd/rk808.t

[PATCH v2 4/7] regulator: rk808: Add regulator driver for RK818

2016-04-21 Thread Wadim Egorov
Add support for the rk818 regulator. The regulator module consists of 4 DCDCs, 9 LDOs, 1 switch and 1 BOOST converter which is used to power OTG and HDMI5V. The output voltages are configurable and are meant to supply power to the main processor and other components. Signed-off-by: Wadim Egorov

[PATCH v2 1/7] drivers: mfd: rk808: rename rk808 struct to rk8xx

2016-04-21 Thread Wadim Egorov
This patch renames the rk808 struct. So it is more clear that this struct can be shared between all RK8XX related PMIC drivers. Signed-off-by: Wadim Egorov --- drivers/clk/clk-rk808.c | 20 +++ drivers/mfd/rk808.c | 36 +- drivers

[PATCH v2 3/7] regulator: rk808: Migrate to regulator core's simplified DT parsing code

2016-04-21 Thread Wadim Egorov
re compact. Remove also linear ranges definitions with only one range. Signed-off-by: Wadim Egorov --- drivers/regulator/rk808-regulator.c | 308 +--- 1 file changed, 114 insertions(+), 194 deletions(-) diff --git a/drivers/regulator/rk808-regulator.c b/drivers/regul

[PATCH v2 0/5] Add support for rk818

2016-04-21 Thread Wadim Egorov
Hopefully, this is the right approach now. Changes since v1: - dropped the renaming of the drivers - renamed the rk808 struct in mfd/rk808.h Patch 3 is a cosmetic patch for the regulator driver. Wadim Egorov (7): drivers: mfd: rk808: rename rk808 struct to rk8xx mfd: RK808: Add RK818

Re: [PATCH v2 3/7] regulator: rk808: Migrate to regulator core's simplified DT parsing code

2016-04-22 Thread Wadim Egorov
On 21.04.2016 18:01, Mark Brown wrote: > On Thu, Apr 21, 2016 at 03:12:37PM +0200, Wadim Egorov wrote: > >> +static int rk808_set_suspend_voltage(struct regulator_dev *rdev, int uv) >> +{ >> +unsigned int reg; >> +int sel = regulator_map_voltage_linear(rdev,

[RFC 1/3] mfd: RK808: Add RK818 support

2016-04-08 Thread Wadim Egorov
* + * Copyright (C) 2016 PHYTEC Messtechnik GmbH + * Author: Wadim Egorov + * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the Free Software Foundation. @@ -22,14 +2

[RFC 3/3] mfd: dt-bindings: Add RK818 device tree bindings document

2016-04-08 Thread Wadim Egorov
Add device tree bindings documentation for rockchip's RK818 pmic. Signed-off-by: Wadim Egorov --- Documentation/devicetree/bindings/mfd/rk808.txt | 37 +++-- 1 file changed, 34 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/mfd/rk808.t

[RFC 0/3] Add RK818 PMIC support

2016-04-08 Thread Wadim Egorov
Hello, this patch adds support for rockchip's RK818 PMIC. I am not sure if I have to rename all filenames and all relevant variable names after adding a second supported device to the RK808 driver, e.g: mfd/rk8xx.c regulator/rk8xx-regulator.c clk/clk-rk8xx.c Regards, Wadim Wadim E

[RFC 2/3] regulator: rk808: Add support for rk818

2016-04-08 Thread Wadim Egorov
Add support for the rk818 regulator. The regulator module consists of 4 DCDCs, 9 LDOs, 1 switch and 1 BOOST converter which is used to power OTG and HDMI5V. The output voltages are configurable and are meant to supply power to the main processor and other components. Signed-off-by: Wadim Egorov

Re: [PATCH 3/6] regulator: rk808: Make rk808 generic, rename rk808-regulator.c

2016-04-18 Thread Wadim Egorov
On 15.04.2016 18:24, Alexandre Belloni wrote: > On 15/04/2016 at 11:26:02 +0100, Mark Brown wrote : >> On Fri, Apr 15, 2016 at 11:16:27AM +0200, Wadim Egorov wrote: >> >>> This patch just renames the rk808 driver so we can reuse this driver >>> to add more regu

[PATCH v3 1/8] drivers: mfd: rk808: rename rk808 struct to rk8xx

2016-04-25 Thread Wadim Egorov
This patch renames the rk808 struct. So it is more clear that this struct can be shared between all RK8XX related PMIC drivers. Signed-off-by: Wadim Egorov --- drivers/clk/clk-rk808.c | 20 +++ drivers/mfd/rk808.c | 36 +- drivers

[PATCH v3 7/8] clk: Kconfig: Name RK818 in Kconfig for COMMON_CLK_RK808

2016-04-25 Thread Wadim Egorov
The RK808 and RK818 PMICs are using a similar register map. We can reuse the clk driver for the RK818 PMIC. So let's add the RK818 in the Kconfig description. Signed-off-by: Wadim Egorov Acked-by: Stephen Boyd --- Changes since v2: - Added Acked-by --- drivers/clk/Kconfig | 4 ++-- 1

[PATCH v3 5/8] regulator: rk808: Add regulator driver for RK818

2016-04-25 Thread Wadim Egorov
Add support for the rk818 regulator. The regulator module consists of 4 DCDCs, 9 LDOs, 1 switch and 1 BOOST converter which is used to power OTG and HDMI5V. The output voltages are configurable and are meant to supply power to the main processor and other components. Signed-off-by: Wadim Egorov

[PATCH v3 0/8] Add support for rk818

2016-04-25 Thread Wadim Egorov
Changes since v2: - Split refactoring patch into 2 patches so this can be more easily reviewed - Added Acked-by from Mark Brown in patch 5 - Added Acked-by from Rob Herring in patch 6 - Added Acked-by from Stephen Boyd in patch 7 - Added Acked-by from Alexandre Belloni in patch 8 Wadim Egorov (8

[PATCH v3 2/8] mfd: RK808: Add RK818 support

2016-04-25 Thread Wadim Egorov
rs/mfd/rk808.c @@ -6,6 +6,10 @@ * Author: Chris Zhong * Author: Zhang Qing * + * Copyright (C) 2016 PHYTEC Messtechnik GmbH + * + * Author: Wadim Egorov + * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License,

[PATCH v3 6/8] mfd: dt-bindings: Add RK818 device tree bindings document

2016-04-25 Thread Wadim Egorov
Add device tree bindings documentation for Rockchip's RK818 PMIC. Signed-off-by: Wadim Egorov Acked-by: Rob Herring --- Changes since v2: - Added Acked-by --- Documentation/devicetree/bindings/mfd/rk808.txt | 37 +++-- 1 file changed, 34 insertions(+), 3 deletions(-)

[PATCH v3 3/8] regulator: rk808: remove linear range definitions with a single range

2016-04-25 Thread Wadim Egorov
The driver was using only linear ranges. Now we remove linear range definitions with a single range. So we have to add an ops struct for ranges and adjust all other ops functions accordingly. Signed-off-by: Wadim Egorov --- drivers/regulator/rk808-regulator.c | 90

[PATCH v3 8/8] rtc: Kconfig: Name RK818 in Kconfig for RTC_DRV_RK808

2016-04-25 Thread Wadim Egorov
The RK808 and RK818 PMICs are using a similar register map. We can reuse the rtc driver for the RK818 PMIC. So let's add the RK818 in the Kconfig description. Signed-off-by: Wadim Egorov Acked-by: Alexandre Belloni --- Changes since v2: - Added Acked-by --- drivers/rtc/Kconfig | 4 ++-- 1

[PATCH v3 4/8] regulator: rk808: Migrate to regulator core's simplified DT parsing code

2016-04-25 Thread Wadim Egorov
re compact. Signed-off-by: Wadim Egorov --- drivers/regulator/rk808-regulator.c | 252 1 file changed, 80 insertions(+), 172 deletions(-) diff --git a/drivers/regulator/rk808-regulator.c b/drivers/regulator/rk808-regulator.c index 32cf1b5..b30c906 100644 ---

Re: [PATCH v3 4/8] regulator: rk808: Migrate to regulator core's simplified DT parsing code

2016-04-26 Thread Wadim Egorov
On 25.04.2016 19:39, Mark Brown wrote: > On Mon, Apr 25, 2016 at 03:20:44PM +0200, Wadim Egorov wrote: >> A common simplified DT parsing code for regulators was introduced in >> commit a0c7b164ad11 ("regulator: of: Provide simplified DT parsing >> method") >

Re: [PATCH v3 4/8] regulator: rk808: Migrate to regulator core's simplified DT parsing code

2016-04-26 Thread Wadim Egorov
On 26.04.2016 10:17, Heiko Stübner wrote: > Am Dienstag, 26. April 2016, 09:45:56 schrieb Wadim Egorov: >> On 25.04.2016 19:39, Mark Brown wrote: >>> On Mon, Apr 25, 2016 at 03:20:44PM +0200, Wadim Egorov wrote: >>>> A common simplified DT parsing code fo

Re: [PATCH] regulator: rk808: remove unused rk808_reg_ops_ranges

2016-04-26 Thread Wadim Egorov
Sorry for that. I missed to add rk808_reg_ops_ranges in the LDO_REG3 desc in patch afcd666d9db0 On 26.04.2016 11:19, Arnd Bergmann wrote: > After removing all uses of the range operations in a recent patch, > we get a warning about the symbol not being referenced anywhere: > > drivers/regulator/r

[PATCH v4 3/7] mfd: RK808: Add RK818 support

2016-04-26 Thread Wadim Egorov
* Copyright (C) 2016 PHYTEC Messtechnik GmbH + * + * Author: Wadim Egorov + * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the Free Software Foundation. @@ -22,12 +26,7 @@ #i

[PATCH v4 1/7] regulator: rk808: Add rk808_reg_ops_ranges for LDO3

2016-04-26 Thread Wadim Egorov
LDO_REG3 descriptor is using linear_ranges. Add and use proper ops for LDO_REG3. Signed-off-by: Wadim Egorov --- drivers/regulator/rk808-regulator.c | 30 +- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/drivers/regulator/rk808-regulator.c b/drivers

[PATCH v4 4/7] regulator: rk808: Add regulator driver for RK818

2016-04-26 Thread Wadim Egorov
Add support for the rk818 regulator. The regulator module consists of 4 DCDCs, 9 LDOs, 1 switch and 1 BOOST converter which is used to power OTG and HDMI5V. The output voltages are configurable and are meant to supply power to the main processor and other components. Signed-off-by: Wadim Egorov

[PATCH v4 5/7] mfd: dt-bindings: Add RK818 device tree bindings document

2016-04-26 Thread Wadim Egorov
Add device tree bindings documentation for Rockchip's RK818 PMIC. Signed-off-by: Wadim Egorov Acked-by: Rob Herring --- Documentation/devicetree/bindings/mfd/rk808.txt | 37 +++-- 1 file changed, 34 insertions(+), 3 deletions(-) diff --git a/Documentation/devic

[PATCH v4 7/7] rtc: Kconfig: Name RK818 in Kconfig for RTC_DRV_RK808

2016-04-26 Thread Wadim Egorov
The RK808 and RK818 PMICs are using a similar register map. We can reuse the rtc driver for the RK818 PMIC. So let's add the RK818 in the Kconfig description. Signed-off-by: Wadim Egorov Acked-by: Alexandre Belloni --- drivers/rtc/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 dele

[PATCH v4 6/7] clk: Kconfig: Name RK818 in Kconfig for COMMON_CLK_RK808

2016-04-26 Thread Wadim Egorov
The RK808 and RK818 PMICs are using a similar register map. We can reuse the clk driver for the RK818 PMIC. So let's add the RK818 in the Kconfig description. Signed-off-by: Wadim Egorov Acked-by: Stephen Boyd --- drivers/clk/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 dele

[PATCH v4 0/7] Add support for rk818

2016-04-26 Thread Wadim Egorov
le comment description shows now RK808/RK818 - Module descriptions show now RK808/RK818 Wadim Egorov (7): regulator: rk808: Add rk808_reg_ops_ranges for LDO3 regulator: rk808: Migrate to regulator core's simplified DT parsing code mfd: RK808: Add RK818 support regulator: rk808: Add regul

[PATCH v4 2/7] regulator: rk808: Migrate to regulator core's simplified DT parsing code

2016-04-26 Thread Wadim Egorov
re compact. Signed-off-by: Wadim Egorov --- drivers/regulator/rk808-regulator.c | 250 1 file changed, 79 insertions(+), 171 deletions(-) diff --git a/drivers/regulator/rk808-regulator.c b/drivers/regulator/rk808-regulator.c index 6601ab5..40d07ba 100644 ---

Re: [PATCH v2] drm/panel: simple: Support reset GPIOs

2020-04-29 Thread Wadim Egorov
Hi Sam, you've asked in another thread [1] if there is any known simple panel that requires a reset. We have a Densitron DMT070WSNLCMI-1E Panel (compatible to avic,tm070ddh03) with some reset timing requirements, [2] Page 20. So it would be nice to see this patch accepted. [1] https://patchwork.k

Re: [PATCH v3] mfd: rk808: Add restart functionality

2018-03-16 Thread Wadim Egorov
Hi Daniel, Am 16.03.2018 um 09:26 schrieb Daniel Schultz: > When using Rockchip SoCs with rk805/808/818 PMICs, restarts are realized by > setting the reset registers in the "Clock and Reset Unit". > > Since all three shutdown functions have almost the same code, all logic > from the shutdown funct

Re: [RESEND PATCH v5 1/5] mfd: RK808: Add RK818 support

2016-06-09 Thread Wadim Egorov
Hi, On 08.06.2016 16:17, Lee Jones wrote: > On Thu, 02 Jun 2016, Wadim Egorov wrote: > >> The RK818 chip is a power management IC for multimedia and handheld > "Power Management IC (PMIC)" > >> devices. It contains the following components: >> >>

Re: [RESEND PATCH v5 1/5] mfd: RK808: Add RK818 support

2016-06-09 Thread Wadim Egorov
On 09.06.2016 13:12, Lee Jones wrote: > On Thu, 09 Jun 2016, Wadim Egorov wrote: >> On 08.06.2016 16:17, Lee Jones wrote: >>> On Thu, 02 Jun 2016, Wadim Egorov wrote: >>> >>>> The RK818 chip is a power management IC for multimedia and handheld >>&g

Re: [RESEND PATCH v5 1/5] mfd: RK808: Add RK818 support

2016-07-06 Thread Wadim Egorov
Hi Andy, On 06.07.2016 05:15, Andy Yan wrote: > Hi Wadim: > > On 2016年06月09日 16:23, Wadim Egorov wrote: >> Hi, >> >> On 08.06.2016 16:17, Lee Jones wrote: >>> On Thu, 02 Jun 2016, Wadim Egorov wrote: >>> >>>> The RK818 chip is a p

[PATCH] mfd: RK808: Fetch PMIC variant from chip id register

2016-07-14 Thread Wadim Egorov
Add and use the chip id registers to determine the PMIC variant. Signed-off-by: Wadim Egorov --- This patch is based on top of [v6,1/5] mfd: RK808: Add RK818 support (https://patchwork.kernel.org/patch/9172223/) --- drivers/mfd/rk808.c | 17 + include/linux/mfd/rk808.h

[RESEND PATCH v5 2/5] regulator: rk808: Add regulator driver for RK818

2016-06-01 Thread Wadim Egorov
Add support for the rk818 regulator. The regulator module consists of 4 DCDCs, 9 LDOs, 1 switch and 1 BOOST converter which is used to power OTG and HDMI5V. The output voltages are configurable and are meant to supply power to the main processor and other components. Signed-off-by: Wadim Egorov

[RESEND PATCH v5 3/5] mfd: dt-bindings: Add RK818 device tree bindings document

2016-06-01 Thread Wadim Egorov
Add device tree bindings documentation for Rockchip's RK818 PMIC. Signed-off-by: Wadim Egorov Acked-by: Rob Herring --- Documentation/devicetree/bindings/mfd/rk808.txt | 37 +++-- 1 file changed, 34 insertions(+), 3 deletions(-) diff --git a/Documentation/devic

[RESEND PATCH v5 1/5] mfd: RK808: Add RK818 support

2016-06-01 Thread Wadim Egorov
s/mfd/rk808.c @@ -1,11 +1,15 @@ /* - * MFD core driver for Rockchip RK808 + * MFD core driver for Rockchip RK808/RK818 * * Copyright (c) 2014, Fuzhou Rockchip Electronics Co., Ltd * * Author: Chris Zhong * Author: Zhang Qing * + * Copyright (C) 2016 PHYTEC Messtechnik GmbH + * + * Author: Wadim

[RESEND PATCH v5 4/5] clk: Kconfig: Name RK818 in Kconfig for COMMON_CLK_RK808

2016-06-01 Thread Wadim Egorov
The RK808 and RK818 PMICs are using a similar register map. We can reuse the clk driver for the RK818 PMIC. So let's add the RK818 in the Kconfig description. Signed-off-by: Wadim Egorov Acked-by: Stephen Boyd --- drivers/clk/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 dele

[RESEND PATCH v5 5/5] rtc: Kconfig: Name RK818 in Kconfig for RTC_DRV_RK808

2016-06-01 Thread Wadim Egorov
The RK808 and RK818 PMICs are using a similar register map. We can reuse the rtc driver for the RK818 PMIC. So let's add the RK818 in the Kconfig description. Signed-off-by: Wadim Egorov Acked-by: Alexandre Belloni --- drivers/rtc/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 dele

Re: [PATCH] mfd: rk808: RK818 uses DEV_OFF to power off supplies

2016-10-21 Thread Wadim Egorov
Hi Jianhong, with this patch a poweroff causes a restart on our board. In our design a 5V USB voltage is supplied on the USB supply input pins. After setting DEV_OFF bit, the RK818 restart automatically. The ON_SOURCE_REG (Address AEH) is 0x40 after the automatic restart which says that the RK818

[PATCH] regulator: rk808: Fix RK818 LDO2

2017-03-22 Thread Wadim Egorov
Set the correct voltage select register for LDO2. Signed-off-by: Wadim Egorov --- drivers/regulator/rk808-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/rk808-regulator.c b/drivers/regulator/rk808-regulator.c index fb44d52..a16d814 100644

[PATCH] net: stmmac: dwmac-rk: Add handling for RGMII_ID/RXID/TXID

2017-03-22 Thread Wadim Egorov
h a RK3288 based board. Signed-off-by: Wadim Egorov --- drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 53 ++ 1 file changed, 37 insertions(+), 16 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-

Re: [PATCH v1 0/4] rk808: Add RK805 support

2017-03-09 Thread Wadim Egorov
Hi Elaine, you should also add the RK805 to the device tree bindings documentation in Documentation/devicetree/bindings/mfd/rk808.txt Regards, Wadim Am 09.03.2017 um 09:49 schrieb Elaine Zhang: > Elaine Zhang (4): > mfd: rk808: fix up the chip id get failed > linux: mfd: rk808: add rk805 r

Re: [PATCH V3 2/2] ARM: dts: rockchip: add dts for RK3288-Tinker board

2017-02-14 Thread Wadim Egorov
Hi Eddie, On 14.02.2017 11:07, Eddie Cai wrote: > This patch add basic support for RK3288-Tinker board. We can boot in to rootfs > with this patch. > > Signed-off-by: Eddie Cai > --- > arch/arm/boot/dts/Makefile | 1 + > arch/arm/boot/dts/rk3288-tinker.dts | 536 > ++

[PATCH v7 2/4] regulator: rk808: Add regulator driver for RK818

2016-08-10 Thread Wadim Egorov
Add support for the rk818 regulator. The regulator module consists of 4 DCDCs, 9 LDOs, 1 switch and 1 BOOST converter which is used to power OTG and HDMI5V. The output voltages are configurable and are meant to supply power to the main processor and other components. Signed-off-by: Wadim Egorov

[PATCH v7 4/4] rtc: Kconfig: Name RK818 in Kconfig for RTC_DRV_RK808

2016-08-10 Thread Wadim Egorov
The RK808 and RK818 PMICs are using a similar register map. We can reuse the rtc driver for the RK818 PMIC. So let's add the RK818 in the Kconfig description. Signed-off-by: Wadim Egorov Acked-by: Alexandre Belloni --- drivers/rtc/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 dele

[PATCH v7 1/4] mfd: RK808: Add RK818 support

2016-08-10 Thread Wadim Egorov
-by: Wadim Egorov Tested-by: Andy Yan --- Changes since v6: - Squashed in the patch mfd: RK808: Fetch PMIC variant from chip id register --- drivers/mfd/Kconfig | 4 +- drivers/mfd/rk808.c | 226 +++--- include/linux/mfd/rk808.h | 154

[PATCH v7 3/4] mfd: dt-bindings: Add RK818 device tree bindings document

2016-08-10 Thread Wadim Egorov
Add device tree bindings documentation for Rockchip's RK818 PMIC. Signed-off-by: Wadim Egorov Acked-by: Rob Herring Acked-by: Lee Jones --- Documentation/devicetree/bindings/mfd/rk808.txt | 37 +++-- 1 file changed, 34 insertions(+), 3 deletions(-) diff --

[PATCH v7 0/4] Add support for rk818

2016-08-10 Thread Wadim Egorov
Changes since v6: - Dropped a patch from this series which was applied by Michael Turquette commit cb98fd5d4da1 ("clk: Kconfig: Name RK818 in Kconfig for COMMON_CLK_RK808") - Squashed patch mfd: RK808: Fetch PMIC variant from chip id register into the first patch. Wadim Egorov

[RESEND PATCH] mfd: RK808: Fetch PMIC variant from chip id register

2016-08-01 Thread Wadim Egorov
Add and use the chip id registers to determine the PMIC variant. Signed-off-by: Wadim Egorov Tested-by: Andy Yan --- This patch is based on top of [v6,1/5] mfd: RK808: Add RK818 support (https://patchwork.kernel.org/patch/9172223/) --- drivers/mfd/rk808.c | 17

[PATCH v8 4/4] rtc: Kconfig: Name RK818 in Kconfig for RTC_DRV_RK808

2016-08-29 Thread Wadim Egorov
The RK808 and RK818 PMICs are using a similar register map. We can reuse the rtc driver for the RK818 PMIC. So let's add the RK818 in the Kconfig description. Signed-off-by: Wadim Egorov Acked-by: Alexandre Belloni --- drivers/rtc/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 dele

[PATCH v8 3/4] mfd: dt-bindings: Add RK818 device tree bindings document

2016-08-29 Thread Wadim Egorov
Add device tree bindings documentation for Rockchip's RK818 PMIC. Signed-off-by: Wadim Egorov Acked-by: Rob Herring Acked-by: Lee Jones --- Documentation/devicetree/bindings/mfd/rk808.txt | 37 +++-- 1 file changed, 34 insertions(+), 3 deletions(-) diff --

[PATCH v8 2/4] regulator: rk808: Add regulator driver for RK818

2016-08-29 Thread Wadim Egorov
Add support for the rk818 regulator. The regulator module consists of 4 DCDCs, 9 LDOs, 1 switch and 1 BOOST converter which is used to power OTG and HDMI5V. The output voltages are configurable and are meant to supply power to the main processor and other components. Signed-off-by: Wadim Egorov

[PATCH v8 1/4] mfd: RK808: Add RK818 support

2016-08-29 Thread Wadim Egorov
-by: Wadim Egorov Tested-by: Andy Yan --- Changes since v7: - add includes in alphabetical order --- drivers/mfd/Kconfig | 4 +- drivers/mfd/rk808.c | 226 +++--- include/linux/mfd/rk808.h | 154 +-- 3 files changed

[PATCH] ARM: rockchip: add UART0 as debug uart for RK32xx based platforms

2016-08-29 Thread Wadim Egorov
Add support to allow low-level debugging messages via Rockchip RK32 UART0. Signed-off-by: Wadim Egorov --- arch/arm/Kconfig.debug | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index a9693b6..5b0d6dd 100644

Re: [PATCH v7 1/4] mfd: RK808: Add RK818 support

2016-08-18 Thread Wadim Egorov
On 18.08.2016 16:34, Lee Jones wrote: > On Wed, 10 Aug 2016, Wadim Egorov wrote: > >> The RK818 chip is a Power Management IC (PMIC) for multimedia and handheld >> devices. It contains the following components: >> >> - Regulators >> - RTC >> - Clocking

[PATCH v6 3/5] mfd: dt-bindings: Add RK818 device tree bindings document

2016-06-13 Thread Wadim Egorov
Add device tree bindings documentation for Rockchip's RK818 PMIC. Signed-off-by: Wadim Egorov Acked-by: Rob Herring Acked-by: Lee Jones --- Changes since v5: - Added Acked-by from Lee Jones --- Documentation/devicetree/bindings/mfd/rk808.txt | 37 +++-- 1 file change

[PATCH v6 5/5] rtc: Kconfig: Name RK818 in Kconfig for RTC_DRV_RK808

2016-06-13 Thread Wadim Egorov
The RK808 and RK818 PMICs are using a similar register map. We can reuse the rtc driver for the RK818 PMIC. So let's add the RK818 in the Kconfig description. Signed-off-by: Wadim Egorov Acked-by: Alexandre Belloni --- drivers/rtc/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 dele

[PATCH v6 4/5] clk: Kconfig: Name RK818 in Kconfig for COMMON_CLK_RK808

2016-06-13 Thread Wadim Egorov
The RK808 and RK818 PMICs are using a similar register map. We can reuse the clk driver for the RK818 PMIC. So let's add the RK818 in the Kconfig description. Signed-off-by: Wadim Egorov Acked-by: Stephen Boyd --- drivers/clk/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 dele

[PATCH v6 1/5] mfd: RK808: Add RK818 support

2016-06-13 Thread Wadim Egorov
-by: Wadim Egorov --- Changes since v5: - Few spell fixes in the commit description - Alignment fixes - Moved rk808_reg_data struct back to c file - Removed cells and pre_init_reg from the rk808 struct - Moved of_match_device and variant determination to probe --- drivers/mfd/Kconfig | 4

[PATCH v6 2/5] regulator: rk808: Add regulator driver for RK818

2016-06-13 Thread Wadim Egorov
Add support for the rk818 regulator. The regulator module consists of 4 DCDCs, 9 LDOs, 1 switch and 1 BOOST converter which is used to power OTG and HDMI5V. The output voltages are configurable and are meant to supply power to the main processor and other components. Signed-off-by: Wadim Egorov

[PATCH v2] net: stmmac: dwmac-rk: Add handling for RGMII_ID/RXID/TXID

2017-03-29 Thread Wadim Egorov
h a RK3288 based board. Signed-off-by: Wadim Egorov --- Changes in v2: Added parenthesis around both expressions in DELAY_ENABLE --- drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 53 ++ 1 file changed, 37 insertions(+), 16 deletions(-) diff --git a/drivers/net/ethern

Re: [PATCH v2 1/3] ARM: dts: rockchip: Add support for phyCORE-RK3288 SoM

2017-04-18 Thread Wadim Egorov
>> +&i2c0 { >> + status = "okay"; >> + clock-frequency = <40>; >> + >> + rk818: pmic@1c { >> + compatible = "rockchip,rk818"; >> + reg = <0x1c>; >> + interrupt-parent = <&gpio0>; >> + interrupts = <4 IRQ_TYPE_LEVEL_LOW>;

[PATCH 2/3] ARM: dts: rockchip: Add support for PCM-947 carrier board

2017-04-03 Thread Wadim Egorov
other modules - RTC RV-4162-C7 - Resistive touch STMPE811 - EEPROM M24C32 Signed-off-by: Wadim Egorov --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/rk3288-phycore-rdk.dts | 263 +++ 2 files changed, 264 insertions(+) create mode 100644

[PATCH 3/3] dt-bindings: Document Phytec phyCORE-RK3288 RDK

2017-04-03 Thread Wadim Egorov
Add documentation for the PCM-947 carrier board, a RK3288 based development board made by PHYTEC. Signed-off-by: Wadim Egorov --- Documentation/devicetree/bindings/arm/rockchip.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/rockchip.txt b

[PATCH 1/3] ARM: dts: rockchip: Add support for phyCORE-RK3288 SoM

2017-04-03 Thread Wadim Egorov
) - 1x 4 KB EEPROM - DP83867 Gigabit Ethernet PHY - 16 MB SPI Flash - 4 GB eMMC Flash Signed-off-by: Wadim Egorov --- arch/arm/boot/dts/rk3288-phycore-som.dtsi | 463 ++ 1 file changed, 463 insertions(+) create mode 100644 arch/arm/boot/dts/rk3288-phycore-som.dtsi

[PATCH v2 1/3] ARM: dts: rockchip: Add support for phyCORE-RK3288 SoM

2017-04-06 Thread Wadim Egorov
) - 1x 4 KB EEPROM - DP83867 Gigabit Ethernet PHY - 16 MB SPI Flash - 4 GB eMMC Flash Signed-off-by: Wadim Egorov --- Changes in v2: - Added a dual license which is used for all rk3288 based boards. Include minor changes from Heiko St??bner: - moved phy-handle property up a bit - switches

  1   2   >