Reuse TPS65941 regulator driver to adds support for
TPS65224 PMIC's regulators. 4 BUCKs and 3 LDOs, where
BUCK1 and BUCK2 can be configured in dual phase mode.
Signed-off-by: Bhargav Raviprakash
---
drivers/power/regulator/tps65941_regulator.c | 280 ++-
1 file changed
Use function callbacks for volt2val, val2volt and slewrate lookups.
This makes it easier to add support for TPS65224 PMIC regulators.
Signed-off-by: Bhargav Raviprakash
Reviewed-by: Jaehoon Chung
---
drivers/power/regulator/tps65941_regulator.c | 61 +++-
1 file changed, 48
Adds macros for buck and ldo ids and switched to using switch
case instead of if else in probe functions. Helps in adding
support for TPS65224 PMIC.
Signed-off-by: Bhargav Raviprakash
Reviewed-by: Dhruva Gole
Reviewed-by: Jaehoon Chung
---
drivers/power/regulator/tps65941_regulator.c | 54
Adds compatible and data field values of TPS65224 driver in
TPS65941 PMIC driver.
Signed-off-by: Bhargav Raviprakash
Reviewed-by: Dhruva Gole
Reviewed-by: Jaehoon Chung
---
drivers/power/pmic/tps65941.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/power/pmic/tps65941.c b
Re-use the TPS65941 PMIC driver for TPS65224 PMIC.
Add additional macros of TPS65224 to aid in the driver
re-use.
Signed-off-by: Bhargav Raviprakash
Reviewed-by: Dhruva Gole
Reviewed-by: Jaehoon Chung
---
include/power/tps65941.h | 30 ++
1 file changed, 30
t for Ti's AM62P is absent in u-boot next, the patches
were applied on ti-u-boot ti-u-boot-2023.04-next and tested.
Changelog v3 -> v4:
- refactoring ldo probe function: removed a redundant branch
Bhargav Raviprakash (5):
power: tps65941: Add macros of TPS65224 PMIC
power: pmic: tps6594
On Thu, 18 Apr 2024 09:33:30 +0900, Jaehoon Chung wrote:
> On 3/18/24 18:49, Bhargav Raviprakash wrote:
> > Reuse TPS65941 regulator driver to adds support for
> > TPS65224 PMIC's regulators. 4 BUCKs and 3 LDOs, where
> > BUCK1 and BUCK2 can be configured in dual phase mo
Use function callbacks for volt2val, val2volt and slewrate lookups.
This makes it easier to add support for TPS65224 PMIC regulators.
Signed-off-by: Bhargav Raviprakash
---
drivers/power/regulator/tps65941_regulator.c | 61 +++-
1 file changed, 48 insertions(+), 13 deletions
Reuse TPS65941 regulator driver to adds support for
TPS65224 PMIC's regulators. 4 BUCKs and 3 LDOs, where
BUCK1 and BUCK2 can be configured in dual phase mode.
Signed-off-by: Bhargav Raviprakash
---
drivers/power/regulator/tps65941_regulator.c | 283 ++-
1 file changed
Adds macros for buck and ldo ids and switched to using switch
case instead of if else in probe functions. Helps in adding
support for TPS65224 PMIC.
Signed-off-by: Bhargav Raviprakash
Reviewed-by: Dhruva Gole
---
drivers/power/regulator/tps65941_regulator.c | 54 +++-
1 file
Adds compatible and data field values of TPS65224 driver in
TPS65941 PMIC driver.
Signed-off-by: Bhargav Raviprakash
Reviewed-by: Dhruva Gole
---
drivers/power/pmic/tps65941.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/power/pmic/tps65941.c b/drivers/power/pmic/tps65941.c
Re-use the TPS65941 PMIC driver for TPS65224 PMIC.
Add additional macros of TPS65224 to aid in the driver
re-use.
Signed-off-by: Bhargav Raviprakash
Reviewed-by: Dhruva Gole
---
include/power/tps65941.h | 30 ++
1 file changed, 30 insertions(+)
diff --git a/include
t for Ti's AM62P is absent in u-boot next, the patches
were applied on ti-u-boot ti-u-boot-2023.04-next and tested.
Changelog v2 -> v3:
- use pr_err instead of printf
- comments added in ldo conversion functions
Bhargav Raviprakash (5):
power: tps65941: Add macros of TPS65224 PMIC
power: p
Hello,
On Mon, 18 Mar 2024 14:59:54 +0530, Bhargav wrote:
>
> TPS65224 is a Power Management IC which provides regulators and others
> features like GPIOs, RTC, watchdog, ADC, ESMs (Error Signal Monitor),
> and PFSM (Pre-configurable Finite State Machine). The SoC and the PMIC
> can communicate t
Reuse TPS65941 regulator driver to adds support for
TPS65224 PMIC's regulators. 4 BUCKs and 3 LDOs, where
BUCK1 and BUCK2 can be configured in dual phase mode.
Signed-off-by: Bhargav Raviprakash
---
drivers/power/regulator/tps65941_regulator.c | 280 ++-
1 file changed
Use function callbacks for volt2val, val2volt and slewrate lookups.
This makes it easier to add support for TPS65224 PMIC regulators.
Signed-off-by: Bhargav Raviprakash
---
drivers/power/regulator/tps65941_regulator.c | 61 +++-
1 file changed, 48 insertions(+), 13 deletions
Adds compatible and data field values of TPS65224 driver in
TPS65941 PMIC driver.
Signed-off-by: Bhargav Raviprakash
---
drivers/power/pmic/tps65941.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/power/pmic/tps65941.c b/drivers/power/pmic/tps65941.c
index 727b42747a..ef63eb733a
Re-use the TPS65941 PMIC driver for TPS65224 PMIC.
Add additional macros of TPS65224 to aid in the driver
re-use.
Signed-off-by: Bhargav Raviprakash
---
include/power/tps65941.h | 30 ++
1 file changed, 30 insertions(+)
diff --git a/include/power/tps65941.h b
Adds macros for buck and ldo ids and switched to using switch
case instead of if else in probe functions. Helps in adding
support for TPS65224 PMIC.
Signed-off-by: Bhargav Raviprakash
---
drivers/power/regulator/tps65941_regulator.c | 54 +++-
1 file changed, 42 insertions
t for Ti's AM62P is absent in u-boot next, the patches
were applied on ti-u-boot ti-u-boot-2023.04-next and tested.
Changelog v2 -> v3:
- use pr_err instead of printf
- comments added in ldo conversion functions
Bhargav Raviprakash (5):
power: tps65941: Add macros of TPS65224 PMIC
power: p
Use function callbacks for volt2val, val2volt and slewrate lookups.
This makes it easier to add support for TPS65224 PMIC regulators.
Signed-off-by: Bhargav Raviprakash
---
drivers/power/regulator/tps65941_regulator.c | 61 +++-
1 file changed, 48 insertions(+), 13 deletions
Reuse TPS65941 regulator driver to adds support for
TPS65224 PMIC's regulators. 4 BUCKs and 3 LDOs, where
BUCK1 and BUCK2 can be configured in dual phase mode.
Signed-off-by: Bhargav Raviprakash
---
drivers/power/regulator/tps65941_regulator.c | 280 ++-
1 file changed
Adds compatible and data field values of TPS65224 driver in
TPS65941 PMIC driver.
Signed-off-by: Bhargav Raviprakash
---
drivers/power/pmic/tps65941.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/power/pmic/tps65941.c b/drivers/power/pmic/tps65941.c
index 727b42747a..ef63eb733a
Adds macros for buck and ldo ids and switched to using switch
case instead of if else in probe functions. Helps in adding
support for TPS65224 PMIC.
Signed-off-by: Bhargav Raviprakash
---
drivers/power/regulator/tps65941_regulator.c | 54 +++-
1 file changed, 42 insertions
Re-use the TPS65941 PMIC driver for TPS65224 PMIC.
Add additional macros of TPS65224 to aid in the driver
re-use.
Signed-off-by: Bhargav Raviprakash
---
include/power/tps65941.h | 30 ++
1 file changed, 30 insertions(+)
diff --git a/include/power/tps65941.h b
t for Ti's AM62P is absent in u-boot next, the patches
were applied on ti-u-boot ti-u-boot-2023.04-next and tested.
Changelog v1 -> v2:
- use __maybe_unused attrinute istead of commenting variable name in
function params.
- refactoring tps65224_ldo_val2volt function
Bhargav Raviprakash (5):
On Fri, 23 Feb 2024 14:37:48 +0300, Dan Carpenter wrote:
> On Fri, Feb 23, 2024 at 02:42:12PM +0530, Bhargav Raviprakash wrote:
> > + int mask = TPS65224_LDO_VOLT_MASK >> 1;
> > +
> > + if (idx > 0) {
> > + base = TPS65224_LDO23_VOLT_MIN;
> >
On Fri, 23 Feb 2024 15:11:56 +0530, Dhruva Gole wrote:
> On Feb 23, 2024 at 14:42:11 +0530, Bhargav Raviprakash wrote:
> > Use function callbacks for volt2val, val2volt and slewrate lookups.
> > This makes it easier to add support for TPS65224 PMIC regulators.
> >
>
Reuse TPS65941 regulator driver to adds support for
TPS65224 PMIC's regulators. 4 BUCKs and 3 LDOs, where
BUCK1 and BUCK2 can be configured in dual phase mode.
Signed-off-by: Bhargav Raviprakash
---
drivers/power/regulator/tps65941_regulator.c | 279 ++-
1 file changed
Adds compatible and data field values of TPS65224 driver in
TPS65941 PMIC driver.
Signed-off-by: Bhargav Raviprakash
---
drivers/power/pmic/tps65941.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/power/pmic/tps65941.c b/drivers/power/pmic/tps65941.c
index 727b42747a..ef63eb733a
Use function callbacks for volt2val, val2volt and slewrate lookups.
This makes it easier to add support for TPS65224 PMIC regulators.
Signed-off-by: Bhargav Raviprakash
---
drivers/power/regulator/tps65941_regulator.c | 61 +++-
1 file changed, 48 insertions(+), 13 deletions
Adds macros for buck and ldo ids and switched to using switch
case instead of if else in probe functions. Helps in adding
support for TPS65224 PMIC.
Signed-off-by: Bhargav Raviprakash
---
drivers/power/regulator/tps65941_regulator.c | 54 +++-
1 file changed, 42 insertions
Re-use the TPS65941 PMIC driver for TPS65224 PMIC.
Add additional macros of TPS65224 to aid in the driver
re-use.
Signed-off-by: Bhargav Raviprakash
---
include/power/tps65941.h | 30 ++
1 file changed, 30 insertions(+)
diff --git a/include/power/tps65941.h b
t for Ti's AM62P is absent in u-boot next, the patches
were applied on ti-u-boot ti-u-boot-2023.04-next and tested.
Bhargav Raviprakash (5):
power: tps65941: Add macros of TPS65224 PMIC
power: pmic: tps65941: Add TI TPS65224 PMIC
power: regulator: tps65941: Added macros for BUCK ID
p
Hello Jaehoon,
> > Hi Bhargav,
> >
> > On Mon, 6 Nov 2023 at 10:11, Bhargav Raviprakash wrote:
> > >
> > > Added support for PMIC TPS65224. Includes driver for pmic,
> > > and disabling Watchdog.
> > >
> > > Signed-off-by: B
> Hi Bhargav,
>
> On Mon, 6 Nov 2023 at 10:11, Bhargav Raviprakash wrote:
> >
> > Added support for PMIC TPS65224. Includes driver for pmic,
> > and disabling Watchdog.
> >
> > Signed-off-by: Bhargav Raviprakash
> > ---
> > drivers/pow
> Hi Bhargav,
>
> > -Original Message-
> > From: Bhargav Raviprakash
> > Sent: Monday, November 6, 2023 11:07 PM
> > To: u-boot@lists.denx.de
> > Cc: jh80.ch...@samsung.com; Bhargav Raviprakash
> > Subject: [PATCH v2 1/2] driver: power: add s
> Hi Bhargav,
>
> On Mon, 6 Nov 2023 at 10:11, Bhargav Raviprakash wrote:
> >
> > Added support for PMIC TPS65224. Includes driver for pmic,
> > and disabling Watchdog.
> >
> > Signed-off-by: Bhargav Raviprakash
> > ---
> > drivers/pow
Added support for PMIC TPS65224 regulators. Includes driver for
buck and ldo.
Signed-off-by: Bhargav Raviprakash
---
drivers/power/regulator/Kconfig | 10 +
drivers/power/regulator/Makefile | 1 +
drivers/power/regulator/tps65224_regulator.c | 495
Added support for PMIC TPS65224. Includes driver for pmic,
and disabling Watchdog.
Signed-off-by: Bhargav Raviprakash
---
drivers/power/pmic/Kconfig| 6 ++
drivers/power/pmic/Makefile | 1 +
drivers/power/pmic/tps65224.c | 141 ++
include/power/tps65224
buck12
dev: buck12 @ buck12
=> regulator enable
=> regulator value 150
=> regulator disable
Changes since v1:
- corrected coyright lines changed to 2023 in all files
- Added #define macros for some of the magic numbers, constants
and offsets to improve readability
Bhargav Ravi
Added support for PMIC TPS65224 regulators. Includes driver for
buck and ldo.
Signed-off-by: Bhargav Raviprakash
---
drivers/power/regulator/Kconfig | 10 +
drivers/power/regulator/Makefile | 1 +
drivers/power/regulator/tps65224_regulator.c | 472
Added support for PMIC TPS65224. Includes driver for pmic,
and disabling Watchdog.
Signed-off-by: Bhargav Raviprakash
---
drivers/power/pmic/Kconfig| 6 ++
drivers/power/pmic/Makefile | 1 +
drivers/power/pmic/tps65224.c | 141 ++
include/power/tps65224
| ldo1| pmic@48
| ldo2| ldo2| pmic@48
| ldo3| ldo3| pmic@48
=> regulator dev buck12
dev: buck12 @ buck12
=> regulator enable
=> regulator value 150
=> regulator disable
Bharg
44 matches
Mail list logo