Add TI TPS65214 & TPS65215 PMIC MFD Driver Support
Subsystems (4)
v5 cover Add TI TPS65214 & TPS65215 PMIC MFD Driver Support
TPS65214 and TPS65215 are Power Management Integrated Circuits (PMICs) that have significant register map overlap with TPS65219 and each other. The series introduces the 2 new PMICs and restructures the existing driver to support multiple devices.
- TPS65214, TPS65215, and TPS65219 each have 3 Buck regulators
- TPS65214 has 2 LDOS and 1 GPO, whereas TPS65219 has 4 LDOs and 2 GPOs.
- TPS65214's LDO1 maps to TPS65219's LDO3.
- A key difference between TPS65215 & TPS65214 are the LDO current and voltage output ranges and the configurable options available.
- TPS65215 has 2 LDOs, whereas TPS65219 has 4 LDOs.
- TPS65215's LDO2 maps to TPS65219's LDO3.
- TPS65215 has 1 GPO, whereas TPS65219 has 2 GPOs.
TPS65214 TRM: https://www.ti.com/lit/pdf/slvud30
TPS65215 TRM: https://www.ti.com/lit/pdf/slvucw5/
AM62L + TPS65214 Test Logs:
https://gist.github.com/ramamoorthyhs/0793f7813332d94423ca1baee02f62c9
AM62L + TPS65215 Test Logs:
https://gist.github.com/ramamoorthyhs/7560eca6110fafc77b51894fa2c0fd22
---
Change Log:
v4 -> v5:
- TPS65214 dt-binding patch: Remove duplicated "then:", combine "if:" statements with enum.
v3 -> v4:
- Update commit header to be "mfd: tps65219" since the driver name has not been changed from TPS65219.
- Added dt-bindings patches to mfd series.
- Combined TPS65214 & TPS65215 dt-binding and mfd patches into 1 series, since the series' share a dependency & these patches add more device support
- Elimate the need for TPS65214 gpio patches by registering TPS65214 as "tps65215-gpio" from the MFD driver, since both have the same GPIO module
- "Remove regmap_read" patch: Drop chip_id variable
- move enum pmic_id struct from "remove regmap_read" patch to "Add support for TPS65215" patch.
v2 -> v3:
- Remove duplicated of_device_id table entries
- Re-order mfd patches to clean up diff displayed
v1 -> v2:
- have any PMIC lists be in alpha-numeric order: TPS65215, then TPS65219
- Add driver prefix to chip_data struct
---
Shree Ramamoorthy (5):
regulator: dt-bindings: Add TI TPS65215 PMIC bindings
regulator: dt-bindings: Add TI TPS65214 PMIC bindings
mfd: tps65219: Remove regmap_read check
mfd: tps65219: Add support for TI TPS65215 PMIC
mfd: tps65219: Add support for TI TPS65214 PMIC
.../bindings/regulator/ti,tps65219.yaml | 27 +- drivers/mfd/tps65219.c | 279 +++++++++++++++++- include/linux/mfd/tps65219.h | 136 ++++++++- 3 files changed, 417 insertions(+), 25 deletions(-)
Signature · 1 line
2.43.0
PATCH v5 1/5 regulator: dt-bindings: Add TI TPS65215 PMIC bindings
TPS65215 is a Power Management IC with 3 Buck regulators and 2 LDOs.
TPS65215 has 2 LDOS and 1 GPO, whereas TPS65219 has 4 LDOs and 2 GPOs. The remaining features for both devices are the same.
--- .../bindings/regulator/ti,tps65219.yaml | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/regulator/ti,tps65219.yaml +20 -1
@@ -4,7 +4,7 @@ $id: http://devicetree.org/schemas/regulator/ti,tps65219.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# -title: TI tps65219 Power Management Integrated Circuit regulators +title: TI TPS65215/TPS65219 Power Management Integrated Circuits maintainers: - Jerome Neanne <[email protected]>
@@ -12,9 +12,16 @@ maintainers: description: | Regulator nodes should be named to buck<number> and ldo<number>. + TI TPS65219 is a Power Management IC with 3 Buck regulators, 4 Low + Drop-out Regulators (LDOs), 1 GPIO, 2 GPOs, and power-button. + + TI TPS65215 is a derivative of TPS65219 with 3 Buck regulators, 2 Low + Drop-out Regulators (LDOs), 1 GPIO, 1 GPO, and power-button. + properties: compatible: enum: + - ti,tps65215 - ti,tps65219 reg:
@@ -90,6 +97,18 @@ required: additionalProperties: false +allOf: + - if: + properties: + compatible: + contains: + const: ti,tps65215 + then: + properties: + regulators: + patternProperties: + "^ldo[3-4]$": false + examples: - | #include <dt-bindings/interrupt-controller/arm-gic.h>
Signature · 1 line
2.43.0
PATCH v5 2/5 regulator: dt-bindings: Add TI TPS65214 PMIC bindings
In reply to Shree Ramamoorthy- TPS65214 is a Power Management IC with 3 Buck regulators and 2 LDOs.
- TPS65214 has 2 LDOS and 1 GPO, whereas TPS65219 has 4 LDOs and 2 GPOs.
- TPS65214's LDO1 maps to TPS65219's LDO3.
- A key difference between TPS65215 & TPS65214 are the LDO current and voltage output ranges and the configurable options available.
- The remaining features for both devices are the same.
--- .../devicetree/bindings/regulator/ti,tps65219.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/regulator/ti,tps65219.yaml +8 -2
@@ -4,7 +4,7 @@ $id: http://devicetree.org/schemas/regulator/ti,tps65219.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# -title: TI TPS65215/TPS65219 Power Management Integrated Circuits +title: TI TPS65214/TPS65215/TPS65219 Power Management Integrated Circuit maintainers: - Jerome Neanne <[email protected]>
@@ -18,9 +18,13 @@ description: | TI TPS65215 is a derivative of TPS65219 with 3 Buck regulators, 2 Low Drop-out Regulators (LDOs), 1 GPIO, 1 GPO, and power-button. + TI TPS65214 is a derivative of TPS65219 with 3 Buck regulators, 2 Low + Drop-out Regulators (LDOs), 1 GPIO, 1 GPO, and power-button. + properties: compatible: enum: + - ti,tps65214 - ti,tps65215 - ti,tps65219
@@ -102,7 +106,9 @@ allOf: properties: compatible: contains: - const: ti,tps65215 + enum: + - ti,tps65214 + - ti,tps65215 then: properties: regulators:
Signature · 1 line
2.43.0
Re: [PATCH v5 2/5] regulator: dt-bindings: Add TI TPS65214 PMIC bindings
Documentation/devicetree/bindings/regulator/ti,tps65219.yaml allOf: · line 105
Quoted 5 lines · Shree Ramamoorthy
Documentation/devicetree/bindings/regulator/ti,tps65219.yaml +0
-1@@ -102,7 +106,9 @@ allOf: properties: compatible: contains: - const: ti,tps65215
Just make it enum in the first patch, so you won't add line and immediately remove it.
Best regards,
Krzysztof
PATCH v5 3/5 mfd: tps65219: Remove regmap_read check
In reply to Shree RamamoorthyThe chipid macro/variable and regmap_read function call is not needed because the TPS65219_REG_TI_DEV_ID register value is not a consistent value across TPS65219 PMIC config versions. Reading from the DEV_ID register without a consistent value to compare it to isn't useful. There isn't a way to verify the match data ID is the same ID read from the DEV_ID device register. 0xF0 isn't a DEV_ID value consistent across TPS65219 NVM configurations.
For TPS65215, there is a consistent value in bits 5-0 of the DEV_ID register. However, there are other error checks in place within probe() that apply to both PMICs rather than keeping this isolated check for one PMIC.
--- drivers/mfd/tps65219.c | 7 ------- 1 file changed, 7 deletions(-)
drivers/mfd/tps65219.c +0 -7
@@ -221,7 +221,6 @@ static const struct regmap_irq_chip tps65219_irq_chip = {static int tps65219_probe (struct i2c_client *client) {struct tps65219 *tps; -unsigned int chipid;bool pwr_button;int ret;
@@ -246,12 +245,6 @@ static int tps65219_probe(struct i2c_client *client)if (ret)return ret; - ret =regmap_read (tps->regmap,TPS65219_REG_TI_DEV_ID , &chipid); -if (ret) { -dev_err (tps->dev,"Failed to read device ID: %d\n" , ret); -return ret; - } - ret =devm_mfd_add_devices (tps->dev,PLATFORM_DEVID_AUTO , tps65219_cells,ARRAY_SIZE (tps65219_cells),NULL ,0 ,regmap_irq_get_domain (tps->irq_data));
Signature · 1 line
2.43.0
PATCH v5 4/5 mfd: tps65219: Add support for TI TPS65215 PMIC
In reply to Shree RamamoorthyUse chip ID and chip_data struct to differentiate between devices in probe(). Add TPS65215 resource information. Update descriptions and copyright information to reflect the driver supports 2 PMIC devices.
--- drivers/mfd/tps65219.c | 150 +++++++++++++++++++++++++++++++++-- include/linux/mfd/tps65219.h | 71 +++++++++++++++-- 2 files changed, 209 insertions(+), 12 deletions(-)
drivers/mfd/tps65219.c +144 -6
@@ -1,8 +1,9 @@// SPDX-License-Identifier: GPL-2.0 // -// Driver for TPS65219 Integrated Power Management Integrated Chips (PMIC) +// Driver for TPS65215/TPS65219 Power Management Integrated Chips (PMIC) // // Copyright (C) 2022 BayLibre Incorporated - https://www.baylibre.com/ +// Copyright (C) 2024 Texas Instruments Incorporated - https://www.ti.com/ #include <linux/i2c.h> #include <linux/reboot.h>
@@ -59,6 +60,46 @@ static const struct resource tps65219_pwrbutton_resources[] = { DEFINE_RES_IRQ_NAMED(TPS65219_INT_PB_RISING_EDGE_DETECT, "rising"), }; +static const struct resource tps65215_regulator_resources[] = { +DEFINE_RES_IRQ_NAMED (TPS65215_INT_LDO1_SCG ,"LDO1_SCG" ), +DEFINE_RES_IRQ_NAMED (TPS65215_INT_LDO1_OC ,"LDO1_OC" ), +DEFINE_RES_IRQ_NAMED (TPS65215_INT_LDO1_UV ,"LDO1_UV" ), +DEFINE_RES_IRQ_NAMED (TPS65215_INT_LDO2_SCG ,"LDO2_SCG" ), +DEFINE_RES_IRQ_NAMED (TPS65215_INT_LDO2_OC ,"LDO2_OC" ), +DEFINE_RES_IRQ_NAMED (TPS65215_INT_LDO2_UV ,"LDO2_UV" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_BUCK3_SCG ,"BUCK3_SCG" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_BUCK3_OC ,"BUCK3_OC" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_BUCK3_NEG_OC ,"BUCK3_NEG_OC" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_BUCK3_UV ,"BUCK3_UV" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_BUCK1_SCG ,"BUCK1_SCG" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_BUCK1_OC ,"BUCK1_OC" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_BUCK1_NEG_OC ,"BUCK1_NEG_OC" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_BUCK1_UV ,"BUCK1_UV" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_BUCK2_SCG ,"BUCK2_SCG" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_BUCK2_OC ,"BUCK2_OC" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_BUCK2_NEG_OC ,"BUCK2_NEG_OC" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_BUCK2_UV ,"BUCK2_UV" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_BUCK1_RV ,"BUCK1_RV" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_BUCK2_RV ,"BUCK2_RV" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_BUCK3_RV ,"BUCK3_RV" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_LDO1_RV ,"LDO1_RV" ), +DEFINE_RES_IRQ_NAMED (TPS65215_INT_LDO2_RV ,"LDO2_RV" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_BUCK1_RV_SD ,"BUCK1_RV_SD" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_BUCK2_RV_SD ,"BUCK2_RV_SD" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_BUCK3_RV_SD ,"BUCK3_RV_SD" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_LDO1_RV_SD ,"LDO1_RV_SD" ), +DEFINE_RES_IRQ_NAMED (TPS65215_INT_LDO2_RV_SD ,"LDO2_RV_SD" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_TIMEOUT ,"TIMEOUT" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_SENSOR_3_WARM ,"SENSOR_3_WARM" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_SENSOR_2_WARM ,"SENSOR_2_WARM" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_SENSOR_1_WARM ,"SENSOR_1_WARM" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_SENSOR_0_WARM ,"SENSOR_0_WARM" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_SENSOR_3_HOT ,"SENSOR_3_HOT" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_SENSOR_2_HOT ,"SENSOR_2_HOT" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_SENSOR_1_HOT ,"SENSOR_1_HOT" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_SENSOR_0_HOT ,"SENSOR_0_HOT" ), +}; +static const struct resource tps65219_regulator_resources[] = {DEFINE_RES_IRQ_NAMED (TPS65219_INT_LDO3_SCG ,"LDO3_SCG" ),DEFINE_RES_IRQ_NAMED (TPS65219_INT_LDO3_OC ,"LDO3_OC" ),
@@ -109,6 +150,11 @@ static const struct resource tps65219_regulator_resources[] = { DEFINE_RES_IRQ_NAMED(TPS65219_INT_SENSOR_0_HOT, "SENSOR_0_HOT"), }; +static const struct mfd_cell tps65215_cells[] = { +MFD_CELL_RES ("tps65215-regulator" , tps65215_regulator_resources), +MFD_CELL_NAME ("tps65215-gpio" ), +}; +static const struct mfd_cell tps65219_cells[] = {MFD_CELL_RES ("tps65219-regulator" , tps65219_regulator_resources),MFD_CELL_NAME ("tps65219-gpio" ),
@@ -136,6 +182,8 @@ static unsigned int bit3_offsets[] = { TPS65219_REG_INT_BUCK_1_2_POS }; /* Buckstatic unsigned int bit4_offsets[] = {TPS65219_REG_INT_BUCK_3_POS };/* Buck 3 */ static unsigned int bit5_offsets[] = {TPS65219_REG_INT_LDO_1_2_POS };/* LDO 1-2 */ static unsigned int bit6_offsets[] = {TPS65219_REG_INT_LDO_3_4_POS };/* LDO 3-4 */ +static unsigned int tps65215_bit5_offsets[] = {TPS65215_REG_INT_LDO_1_POS }; +static unsigned int tps65215_bit6_offsets[] = {TPS65215_REG_INT_LDO_2_POS };static unsigned int bit7_offsets[] = {TPS65219_REG_INT_PB_POS };/* Power Button */ static struct regmap_irq_sub_irq_map tps65219_sub_irq_offsets[] = {
@@ -149,9 +197,62 @@ static struct regmap_irq_sub_irq_map tps65219_sub_irq_offsets[] = { REGMAP_IRQ_MAIN_REG_OFFSET(bit7_offsets), }; +static struct regmap_irq_sub_irq_map tps65215_sub_irq_offsets[] = { +REGMAP_IRQ_MAIN_REG_OFFSET (bit0_offsets), +REGMAP_IRQ_MAIN_REG_OFFSET (bit1_offsets), +REGMAP_IRQ_MAIN_REG_OFFSET (bit2_offsets), +REGMAP_IRQ_MAIN_REG_OFFSET (bit3_offsets), +REGMAP_IRQ_MAIN_REG_OFFSET (bit4_offsets), +REGMAP_IRQ_MAIN_REG_OFFSET (tps65215_bit5_offsets), +REGMAP_IRQ_MAIN_REG_OFFSET (tps65215_bit6_offsets), +REGMAP_IRQ_MAIN_REG_OFFSET (bit7_offsets), +}; +#define TPS65219_REGMAP_IRQ_REG (int_name, register_position) \ REGMAP_IRQ_REG(int_name, register_position, int_name##_MASK) +static const struct regmap_irq tps65215_irqs[] = { +TPS65219_REGMAP_IRQ_REG (TPS65215_INT_LDO1_SCG ,TPS65215_REG_INT_LDO_1_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65215_INT_LDO1_OC ,TPS65215_REG_INT_LDO_1_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65215_INT_LDO1_UV ,TPS65215_REG_INT_LDO_1_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65215_INT_LDO2_SCG ,TPS65215_REG_INT_LDO_2_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65215_INT_LDO2_OC ,TPS65215_REG_INT_LDO_2_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65215_INT_LDO2_UV ,TPS65215_REG_INT_LDO_2_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_BUCK3_SCG ,TPS65219_REG_INT_BUCK_3_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_BUCK3_OC ,TPS65219_REG_INT_BUCK_3_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_BUCK3_NEG_OC ,TPS65219_REG_INT_BUCK_3_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_BUCK3_UV ,TPS65219_REG_INT_BUCK_3_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_BUCK2_SCG ,TPS65219_REG_INT_BUCK_1_2_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_BUCK2_OC ,TPS65219_REG_INT_BUCK_1_2_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_BUCK2_NEG_OC ,TPS65219_REG_INT_BUCK_1_2_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_BUCK2_UV ,TPS65219_REG_INT_BUCK_1_2_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_BUCK1_SCG ,TPS65219_REG_INT_BUCK_1_2_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_BUCK1_OC ,TPS65219_REG_INT_BUCK_1_2_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_BUCK1_NEG_OC ,TPS65219_REG_INT_BUCK_1_2_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_BUCK1_UV ,TPS65219_REG_INT_BUCK_1_2_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_SENSOR_3_WARM ,TPS65219_REG_INT_SYS_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_SENSOR_2_WARM ,TPS65219_REG_INT_SYS_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_SENSOR_1_WARM ,TPS65219_REG_INT_SYS_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_SENSOR_0_WARM ,TPS65219_REG_INT_SYS_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_SENSOR_3_HOT ,TPS65219_REG_INT_SYS_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_SENSOR_2_HOT ,TPS65219_REG_INT_SYS_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_SENSOR_1_HOT ,TPS65219_REG_INT_SYS_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_SENSOR_0_HOT ,TPS65219_REG_INT_SYS_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_BUCK1_RV ,TPS65219_REG_INT_RV_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_BUCK2_RV ,TPS65219_REG_INT_RV_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_BUCK3_RV ,TPS65219_REG_INT_RV_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_LDO1_RV ,TPS65219_REG_INT_RV_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65215_INT_LDO2_RV ,TPS65219_REG_INT_RV_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_BUCK1_RV_SD ,TPS65219_REG_INT_TO_RV_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_BUCK2_RV_SD ,TPS65219_REG_INT_TO_RV_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_BUCK3_RV_SD ,TPS65219_REG_INT_TO_RV_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_LDO1_RV_SD ,TPS65219_REG_INT_TO_RV_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65215_INT_LDO2_RV_SD ,TPS65219_REG_INT_TO_RV_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_TIMEOUT ,TPS65219_REG_INT_TO_RV_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_PB_FALLING_EDGE_DETECT ,TPS65219_REG_INT_PB_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_PB_RISING_EDGE_DETECT ,TPS65219_REG_INT_PB_POS ), +}; +static const struct regmap_irq tps65219_irqs[] = {TPS65219_REGMAP_IRQ_REG (TPS65219_INT_LDO3_SCG ,TPS65219_REG_INT_LDO_3_4_POS ),TPS65219_REGMAP_IRQ_REG (TPS65219_INT_LDO3_OC ,TPS65219_REG_INT_LDO_3_4_POS ),
@@ -204,6 +305,20 @@ static const struct regmap_irq tps65219_irqs[] = { TPS65219_REGMAP_IRQ_REG(TPS65219_INT_PB_RISING_EDGE_DETECT, TPS65219_REG_INT_PB_POS), }; +static const struct regmap_irq_chip tps65215_irq_chip = { + .name ="tps65215_irq" , + .main_status =TPS65219_REG_INT_SOURCE , + .num_main_regs =1 , + .num_main_status_bits =8 , + .irqs = tps65215_irqs, + .num_irqs =ARRAY_SIZE (tps65215_irqs), + .status_base =TPS65215_REG_INT_LDO_2 , + .ack_base =TPS65215_REG_INT_LDO_2 , + .clear_ack =1 , + .num_regs =8 , + .sub_reg_offsets = tps65215_sub_irq_offsets, +}; +static const struct regmap_irq_chip tps65219_irq_chip = { .name ="tps65219_irq" , .main_status =TPS65219_REG_INT_SOURCE ,
@@ -218,9 +333,29 @@ static const struct regmap_irq_chip tps65219_irq_chip = { .sub_reg_offsets = tps65219_sub_irq_offsets, }; +struct tps65219_chip_data { +const struct regmap_irq_chip *irq_chip; +const struct mfd_cell *cells; +int n_cells; +}; + +static struct tps65219_chip_data chip_info_table[] = { + [TPS65215 ] = { + .irq_chip = &tps65215_irq_chip, + .cells = tps65215_cells, + .n_cells =ARRAY_SIZE (tps65215_cells), + }, + [TPS65219 ] = { + .irq_chip = &tps65219_irq_chip, + .cells = tps65219_cells, + .n_cells =ARRAY_SIZE (tps65219_cells), + }, +}; +static int tps65219_probe (struct i2c_client *client) {struct tps65219 *tps; +struct tps65219_chip_data *pmic;bool pwr_button;int ret;
@@ -231,6 +366,8 @@ static int tps65219_probe(struct i2c_client *client)i2c_set_clientdata (client, tps); tps->dev = &client->dev; + tps->chip_id = (uintptr_t )i2c_get_match_data (client); + pmic = &chip_info_table[tps->chip_id]; tps->regmap =devm_regmap_init_i2c (client, &tps65219_regmap_config);if (IS_ERR (tps->regmap)) {
@@ -239,14 +376,14 @@ static int tps65219_probe(struct i2c_client *client)return ret; } - ret =devm_regmap_add_irq_chip (&client->dev, tps->regmap, client->irq, -IRQF_ONESHOT ,0 , &tps65219_irq_chip, + ret =devm_regmap_add_irq_chip (tps->dev, tps->regmap, client->irq, +IRQF_ONESHOT ,0 , pmic->irq_chip, &tps->irq_data);if (ret)return ret; ret =devm_mfd_add_devices (tps->dev,PLATFORM_DEVID_AUTO , - tps65219_cells,ARRAY_SIZE (tps65219_cells), + pmic->cells, pmic->n_cells,NULL ,0 ,regmap_irq_get_domain (tps->irq_data));if (ret) {dev_err (tps->dev,"Failed to add child devices: %d\n" , ret);
@@ -284,7 +421,8 @@ static int tps65219_probe(struct i2c_client *client) }static const struct of_device_id of_tps65219_match_table[] = { - { .compatible ="ti,tps65219" , }, + { .compatible ="ti,tps65215" , .data = (void *)TPS65215 , }, + { .compatible ="ti,tps65219" , .data = (void *)TPS65219 , }, {} };MODULE_DEVICE_TABLE (of, of_tps65219_match_table);
@@ -299,5 +437,5 @@ static struct i2c_driver tps65219_driver = {module_i2c_driver (tps65219_driver);MODULE_AUTHOR ("Jerome Neanne <[email protected]>" ); -MODULE_DESCRIPTION ("TPS65219 power management IC driver" ); +MODULE_DESCRIPTION ("TPS65215/TPS65219 PMIC driver" );MODULE_LICENSE ("GPL" );
include/linux/mfd/tps65219.h +65 -6
179 lines not on this page · raw message
Signature · 1 line
2.43.0
PATCH v5 5/5 mfd: tps65219: Add support for TI TPS65214 PMIC
In reply to Shree RamamoorthyUse chip ID and chip_data struct to differentiate between 3 PMIC devices in probe(). Add TPS65214 resource information. Update descriptions and copyright information to reflect the driver supports 3 PMIC devices.
--- drivers/mfd/tps65219.c | 126 ++++++++++++++++++++++++++++++++++- include/linux/mfd/tps65219.h | 65 ++++++++++++++++-- 2 files changed, 184 insertions(+), 7 deletions(-)
drivers/mfd/tps65219.c +124 -2
@@ -1,6 +1,6 @@// SPDX-License-Identifier: GPL-2.0 // -// Driver for TPS65215/TPS65219 Power Management Integrated Chips (PMIC) +// Driver for TPS65214/TPS65215/TPS65219 Power Management Integrated Chips // // Copyright (C) 2022 BayLibre Incorporated - https://www.baylibre.com/ // Copyright (C) 2024 Texas Instruments Incorporated - https://www.ti.com/
@@ -60,6 +60,44 @@ static const struct resource tps65219_pwrbutton_resources[] = { DEFINE_RES_IRQ_NAMED(TPS65219_INT_PB_RISING_EDGE_DETECT, "rising"), }; +static const struct resource tps65214_regulator_resources[] = { +DEFINE_RES_IRQ_NAMED (TPS65219_INT_LDO1_SCG ,"LDO1_SCG" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_LDO1_OC ,"LDO1_OC" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_LDO1_UV ,"LDO1_UV" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_LDO2_SCG ,"LDO2_SCG" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_LDO2_OC ,"LDO2_OC" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_LDO2_UV ,"LDO2_UV" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_BUCK3_SCG ,"BUCK3_SCG" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_BUCK3_OC ,"BUCK3_OC" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_BUCK3_NEG_OC ,"BUCK3_NEG_OC" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_BUCK3_UV ,"BUCK3_UV" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_BUCK1_SCG ,"BUCK1_SCG" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_BUCK1_OC ,"BUCK1_OC" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_BUCK1_NEG_OC ,"BUCK1_NEG_OC" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_BUCK1_UV ,"BUCK1_UV" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_BUCK2_SCG ,"BUCK2_SCG" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_BUCK2_OC ,"BUCK2_OC" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_BUCK2_NEG_OC ,"BUCK2_NEG_OC" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_BUCK2_UV ,"BUCK2_UV" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_BUCK1_RV ,"BUCK1_RV" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_BUCK2_RV ,"BUCK2_RV" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_BUCK3_RV ,"BUCK3_RV" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_LDO1_RV ,"LDO1_RV" ), +DEFINE_RES_IRQ_NAMED (TPS65214_INT_LDO2_RV ,"LDO2_RV" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_BUCK1_RV_SD ,"BUCK1_RV_SD" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_BUCK2_RV_SD ,"BUCK2_RV_SD" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_BUCK3_RV_SD ,"BUCK3_RV_SD" ), +DEFINE_RES_IRQ_NAMED (TPS65214_INT_LDO1_RV_SD ,"LDO1_RV_SD" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_LDO2_RV_SD ,"LDO2_RV_SD" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_TIMEOUT ,"TIMEOUT" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_SENSOR_2_WARM ,"SENSOR_2_WARM" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_SENSOR_1_WARM ,"SENSOR_1_WARM" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_SENSOR_0_WARM ,"SENSOR_0_WARM" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_SENSOR_2_HOT ,"SENSOR_2_HOT" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_SENSOR_1_HOT ,"SENSOR_1_HOT" ), +DEFINE_RES_IRQ_NAMED (TPS65219_INT_SENSOR_0_HOT ,"SENSOR_0_HOT" ), +}; +static const struct resource tps65215_regulator_resources[] = {DEFINE_RES_IRQ_NAMED (TPS65215_INT_LDO1_SCG ,"LDO1_SCG" ),DEFINE_RES_IRQ_NAMED (TPS65215_INT_LDO1_OC ,"LDO1_OC" ),
@@ -150,6 +188,11 @@ static const struct resource tps65219_regulator_resources[] = { DEFINE_RES_IRQ_NAMED(TPS65219_INT_SENSOR_0_HOT, "SENSOR_0_HOT"), }; +static const struct mfd_cell tps65214_cells[] = { +MFD_CELL_RES ("tps65214-regulator" , tps65214_regulator_resources), +MFD_CELL_NAME ("tps65215-gpio" ), +}; +static const struct mfd_cell tps65215_cells[] = {MFD_CELL_RES ("tps65215-regulator" , tps65215_regulator_resources),MFD_CELL_NAME ("tps65215-gpio" ),
@@ -186,6 +229,15 @@ static unsigned int tps65215_bit5_offsets[] = { TPS65215_REG_INT_LDO_1_POS };static unsigned int tps65215_bit6_offsets[] = {TPS65215_REG_INT_LDO_2_POS };static unsigned int bit7_offsets[] = {TPS65219_REG_INT_PB_POS };/* Power Button */ +/* TPS65214 INT_SOURCE bit 6 is 'RESERVED'*/ +static unsigned int tps65214_bit0_offsets[] = {TPS65214_REG_INT_TO_RV_POS }; +static unsigned int tps65214_bit1_offsets[] = {TPS65214_REG_INT_RV_POS }; +static unsigned int tps65214_bit2_offsets[] = {TPS65214_REG_INT_SYS_POS }; +static unsigned int tps65214_bit3_offsets[] = {TPS65214_REG_INT_BUCK_1_2_POS }; +static unsigned int tps65214_bit4_offsets[] = {TPS65214_REG_INT_BUCK_3_POS }; +static unsigned int tps65214_bit5_offsets[] = {TPS65214_REG_INT_LDO_1_2_POS }; +static unsigned int tps65214_bit7_offsets[] = {TPS65214_REG_INT_PB_POS }; +static struct regmap_irq_sub_irq_map tps65219_sub_irq_offsets[] = {REGMAP_IRQ_MAIN_REG_OFFSET (bit0_offsets),REGMAP_IRQ_MAIN_REG_OFFSET (bit1_offsets),
@@ -208,9 +260,59 @@ static struct regmap_irq_sub_irq_map tps65215_sub_irq_offsets[] = { REGMAP_IRQ_MAIN_REG_OFFSET(bit7_offsets), }; +static struct regmap_irq_sub_irq_map tps65214_sub_irq_offsets[] = { +REGMAP_IRQ_MAIN_REG_OFFSET (tps65214_bit0_offsets), +REGMAP_IRQ_MAIN_REG_OFFSET (tps65214_bit1_offsets), +REGMAP_IRQ_MAIN_REG_OFFSET (tps65214_bit2_offsets), +REGMAP_IRQ_MAIN_REG_OFFSET (tps65214_bit3_offsets), +REGMAP_IRQ_MAIN_REG_OFFSET (tps65214_bit4_offsets), +REGMAP_IRQ_MAIN_REG_OFFSET (tps65214_bit5_offsets), +REGMAP_IRQ_MAIN_REG_OFFSET (tps65214_bit7_offsets), +}; +#define TPS65219_REGMAP_IRQ_REG (int_name, register_position) \ REGMAP_IRQ_REG(int_name, register_position, int_name##_MASK) +static const struct regmap_irq tps65214_irqs[] = { +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_LDO1_SCG ,TPS65214_REG_INT_LDO_1_2_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_LDO1_OC ,TPS65214_REG_INT_LDO_1_2_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_LDO1_UV ,TPS65214_REG_INT_LDO_1_2_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_LDO2_SCG ,TPS65214_REG_INT_LDO_1_2_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_LDO2_OC ,TPS65214_REG_INT_LDO_1_2_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_LDO2_UV ,TPS65214_REG_INT_LDO_1_2_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_BUCK3_SCG ,TPS65214_REG_INT_BUCK_3_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_BUCK3_OC ,TPS65214_REG_INT_BUCK_3_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_BUCK3_NEG_OC ,TPS65214_REG_INT_BUCK_3_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_BUCK3_UV ,TPS65214_REG_INT_BUCK_3_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_BUCK2_SCG ,TPS65214_REG_INT_BUCK_1_2_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_BUCK2_OC ,TPS65214_REG_INT_BUCK_1_2_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_BUCK2_NEG_OC ,TPS65214_REG_INT_BUCK_1_2_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_BUCK2_UV ,TPS65214_REG_INT_BUCK_1_2_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_BUCK1_SCG ,TPS65214_REG_INT_BUCK_1_2_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_BUCK1_OC ,TPS65214_REG_INT_BUCK_1_2_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_BUCK1_NEG_OC ,TPS65214_REG_INT_BUCK_1_2_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_BUCK1_UV ,TPS65214_REG_INT_BUCK_1_2_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_SENSOR_2_WARM ,TPS65214_REG_INT_SYS_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_SENSOR_1_WARM ,TPS65214_REG_INT_SYS_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_SENSOR_0_WARM ,TPS65214_REG_INT_SYS_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_SENSOR_2_HOT ,TPS65214_REG_INT_SYS_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_SENSOR_1_HOT ,TPS65214_REG_INT_SYS_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_SENSOR_0_HOT ,TPS65214_REG_INT_SYS_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_BUCK1_RV ,TPS65214_REG_INT_RV_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_BUCK2_RV ,TPS65214_REG_INT_RV_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_BUCK3_RV ,TPS65214_REG_INT_RV_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_LDO1_RV ,TPS65214_REG_INT_RV_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65214_INT_LDO2_RV ,TPS65214_REG_INT_RV_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_BUCK1_RV_SD ,TPS65214_REG_INT_TO_RV_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_BUCK2_RV_SD ,TPS65214_REG_INT_TO_RV_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_BUCK3_RV_SD ,TPS65214_REG_INT_TO_RV_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65214_INT_LDO1_RV_SD ,TPS65214_REG_INT_TO_RV_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_LDO2_RV_SD ,TPS65214_REG_INT_TO_RV_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_TIMEOUT ,TPS65214_REG_INT_TO_RV_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_PB_FALLING_EDGE_DETECT ,TPS65214_REG_INT_PB_POS ), +TPS65219_REGMAP_IRQ_REG (TPS65219_INT_PB_RISING_EDGE_DETECT ,TPS65214_REG_INT_PB_POS ), +}; +static const struct regmap_irq tps65215_irqs[] = {TPS65219_REGMAP_IRQ_REG (TPS65215_INT_LDO1_SCG ,TPS65215_REG_INT_LDO_1_POS ),TPS65219_REGMAP_IRQ_REG (TPS65215_INT_LDO1_OC ,TPS65215_REG_INT_LDO_1_POS ),
@@ -305,6 +407,20 @@ static const struct regmap_irq tps65219_irqs[] = { TPS65219_REGMAP_IRQ_REG(TPS65219_INT_PB_RISING_EDGE_DETECT, TPS65219_REG_INT_PB_POS), }; +static const struct regmap_irq_chip tps65214_irq_chip = { + .name ="tps65214_irq" , + .main_status =TPS65219_REG_INT_SOURCE , + .num_main_regs =1 , + .num_main_status_bits =8 , + .irqs = tps65214_irqs, + .num_irqs =ARRAY_SIZE (tps65214_irqs), + .status_base =TPS65214_REG_INT_LDO_1_2 , + .ack_base =TPS65214_REG_INT_LDO_1_2 , + .clear_ack =1 , + .num_regs =8 , + .sub_reg_offsets = tps65214_sub_irq_offsets, +}; +static const struct regmap_irq_chip tps65215_irq_chip = { .name ="tps65215_irq" , .main_status =TPS65219_REG_INT_SOURCE ,
@@ -340,6 +456,11 @@ struct tps65219_chip_data { };static struct tps65219_chip_data chip_info_table[] = { + [TPS65214 ] = { + .irq_chip = &tps65214_irq_chip, + .cells = tps65214_cells, + .n_cells =ARRAY_SIZE (tps65214_cells), + }, [TPS65215 ] = { .irq_chip = &tps65215_irq_chip, .cells = tps65215_cells,
@@ -421,6 +542,7 @@ static int tps65219_probe(struct i2c_client *client) }static const struct of_device_id of_tps65219_match_table[] = { + { .compatible ="ti,tps65214" , .data = (void *)TPS65214 , }, { .compatible ="ti,tps65215" , .data = (void *)TPS65215 , }, { .compatible ="ti,tps65219" , .data = (void *)TPS65219 , }, {}
@@ -437,5 +559,5 @@ static struct i2c_driver tps65219_driver = {module_i2c_driver (tps65219_driver);MODULE_AUTHOR ("Jerome Neanne <[email protected]>" ); -MODULE_DESCRIPTION ("TPS65215/TPS65219 PMIC driver" ); +MODULE_DESCRIPTION ("TPS65214/TPS65215/TPS65219 PMIC driver" );MODULE_LICENSE ("GPL" );
include/linux/mfd/tps65219.h +60 -5
188 lines not on this page · raw message
Signature · 1 line
2.43.0
Quoted 14 lines · Shree Ramamoorthy
TPS65214 and TPS65215 are Power Management Integrated Circuits (PMICs) that have significant register map overlap with TPS65219 and each other. The series introduces the 2 new PMICs and restructures the existing driver to support multiple devices.
- TPS65214, TPS65215, and TPS65219 each have 3 Buck regulators
- TPS65214 has 2 LDOS and 1 GPO, whereas TPS65219 has 4 LDOs and 2 GPOs.
- TPS65214's LDO1 maps to TPS65219's LDO3.
- A key difference between TPS65215 & TPS65214 are the LDO current and voltage output ranges and the configurable options available.
- TPS65215 has 2 LDOs, whereas TPS65219 has 4 LDOs.
- TPS65215's LDO2 maps to TPS65219's LDO3.
- TPS65215 has 1 GPO, whereas TPS65219 has 2 GPOs.
Quoted 1 line
[...]
Applied, thanks!
[1/5] regulator: dt-bindings: Add TI TPS65215 PMIC bindings
commit: 85e7aef57a9e057545017d55b02073e3c4756b2c
[2/5] regulator: dt-bindings: Add TI TPS65214 PMIC bindings
commit: 34beb3c87cbb8747f521db5cf1b2a608833f3967
[3/5] mfd: tps65219: Remove regmap_read check
commit: 5342c8a9e04fc05f485a3886605b803a5180bd64
[4/5] mfd: tps65219: Add support for TI TPS65215 PMIC
commit: ebcbd21550853b16f307d7da8c846b862e138a98
[5/5] mfd: tps65219: Add support for TI TPS65214 PMIC
commit: c9878d8d9ac2ecfadfa4fa3543730026c66ad843--
Lee Jones [李琼斯]
Hi Lee,
Quoted 29 lines · Lee Jones
Quoted 14 lines · Shree Ramamoorthy
TPS65214 and TPS65215 are Power Management Integrated Circuits (PMICs) that have significant register map overlap with TPS65219 and each other. The series introduces the 2 new PMICs and restructures the existing driver to support multiple devices.
- TPS65214, TPS65215, and TPS65219 each have 3 Buck regulators
- TPS65214 has 2 LDOS and 1 GPO, whereas TPS65219 has 4 LDOs and 2 GPOs.
- TPS65214's LDO1 maps to TPS65219's LDO3.
- A key difference between TPS65215 & TPS65214 are the LDO current and voltage output ranges and the configurable options available.
- TPS65215 has 2 LDOs, whereas TPS65219 has 4 LDOs.
- TPS65215's LDO2 maps to TPS65219's LDO3.
- TPS65215 has 1 GPO, whereas TPS65219 has 2 GPOs.Quoted 1 line
[...]
Applied, thanks!
[1/5] regulator: dt-bindings: Add TI TPS65215 PMIC bindings
commit: 85e7aef57a9e057545017d55b02073e3c4756b2c [2/5] regulator: dt-bindings: Add TI TPS65214 PMIC bindings commit: 34beb3c87cbb8747f521db5cf1b2a608833f3967 [3/5] mfd: tps65219: Remove regmap_read check commit: 5342c8a9e04fc05f485a3886605b803a5180bd64 [4/5] mfd: tps65219: Add support for TI TPS65215 PMIC commit: ebcbd21550853b16f307d7da8c846b862e138a98 [5/5] mfd: tps65219: Add support for TI TPS65214 PMIC commit: c9878d8d9ac2ecfadfa4fa3543730026c66ad843
Quoted 2 lines
--
Lee Jones [李琼斯]
Would you be able to remove this series from your branch & replace it with this v6 [0], so Mark Brown will be able to apply the dependent regulator series [1]? Thank you!
[0] https://lore.kernel.org/all/[email protected]/
[1] https://lore.kernel.org/all/[email protected]/
Signature · 3 lines
Best, Shree Ramamoorthy PMIC Software Engineer
Quoted 33 lines · Shree Ramamoorthy
Hi Lee,
Quoted 29 lines · Lee Jones
Quoted 14 lines · Shree Ramamoorthy
TPS65214 and TPS65215 are Power Management Integrated Circuits (PMICs) that have significant register map overlap with TPS65219 and each other. The series introduces the 2 new PMICs and restructures the existing driver to support multiple devices.
- TPS65214, TPS65215, and TPS65219 each have 3 Buck regulators
- TPS65214 has 2 LDOS and 1 GPO, whereas TPS65219 has 4 LDOs and 2 GPOs.
- TPS65214's LDO1 maps to TPS65219's LDO3.
- A key difference between TPS65215 & TPS65214 are the LDO current and voltage output ranges and the configurable options available.
- TPS65215 has 2 LDOs, whereas TPS65219 has 4 LDOs.
- TPS65215's LDO2 maps to TPS65219's LDO3.
- TPS65215 has 1 GPO, whereas TPS65219 has 2 GPOs.Quoted 1 line
[...]
Applied, thanks!
[1/5] regulator: dt-bindings: Add TI TPS65215 PMIC bindings
commit: 85e7aef57a9e057545017d55b02073e3c4756b2c [2/5] regulator: dt-bindings: Add TI TPS65214 PMIC bindings commit: 34beb3c87cbb8747f521db5cf1b2a608833f3967 [3/5] mfd: tps65219: Remove regmap_read check commit: 5342c8a9e04fc05f485a3886605b803a5180bd64 [4/5] mfd: tps65219: Add support for TI TPS65215 PMIC commit: ebcbd21550853b16f307d7da8c846b862e138a98 [5/5] mfd: tps65219: Add support for TI TPS65214 PMIC commit: c9878d8d9ac2ecfadfa4fa3543730026c66ad843
Quoted 5 lines
Quoted 2 lines
--
Lee Jones [李琼斯]Would you be able to remove this series from your branch & replace it with this v6 [0], so Mark Brown will be able to apply the dependent regulator series [1]? Thank you!
You replied 3 weeks later. If something was applied not as it should, you ought to reply IMMEDIATELY, not 3 weeks after.
The trees are mostly immutable after publishing.
Best regards,
Krzysztof
Hi,
Quoted 38 lines · Krzysztof Kozlowski
Quoted 33 lines · Shree Ramamoorthy
Hi Lee,
Quoted 29 lines · Lee Jones
Quoted 14 lines · Shree Ramamoorthy
TPS65214 and TPS65215 are Power Management Integrated Circuits (PMICs) that have significant register map overlap with TPS65219 and each other. The series introduces the 2 new PMICs and restructures the existing driver to support multiple devices.
- TPS65214, TPS65215, and TPS65219 each have 3 Buck regulators
- TPS65214 has 2 LDOS and 1 GPO, whereas TPS65219 has 4 LDOs and 2 GPOs.
- TPS65214's LDO1 maps to TPS65219's LDO3.
- A key difference between TPS65215 & TPS65214 are the LDO current and voltage output ranges and the configurable options available.
- TPS65215 has 2 LDOs, whereas TPS65219 has 4 LDOs.
- TPS65215's LDO2 maps to TPS65219's LDO3.
- TPS65215 has 1 GPO, whereas TPS65219 has 2 GPOs.Quoted 1 line
[...]
Applied, thanks!
[1/5] regulator: dt-bindings: Add TI TPS65215 PMIC bindings
commit: 85e7aef57a9e057545017d55b02073e3c4756b2c [2/5] regulator: dt-bindings: Add TI TPS65214 PMIC bindings commit: 34beb3c87cbb8747f521db5cf1b2a608833f3967 [3/5] mfd: tps65219: Remove regmap_read check commit: 5342c8a9e04fc05f485a3886605b803a5180bd64 [4/5] mfd: tps65219: Add support for TI TPS65215 PMIC commit: ebcbd21550853b16f307d7da8c846b862e138a98 [5/5] mfd: tps65219: Add support for TI TPS65214 PMIC commit: c9878d8d9ac2ecfadfa4fa3543730026c66ad843Quoted 4 lines
Quoted 2 lines
--
Lee Jones [李琼斯]Would you be able to remove this series from your branch & replace it with this v6 [0], so Mark Brown will be able to apply the dependent regulator series [1]? Thank you!
Quoted 7 lines
You replied 3 weeks later. If something was applied not as it should, you ought to reply IMMEDIATELY, not 3 weeks after.
The trees are mostly immutable after publishing.
Best regards,
Krzysztof
Completely understand, sorry for re-sending the first 5 patches that were already applied! I'll wait for the next merge window, so there won't be dependencies between the MFD and regulator tree then.
Quoted 17 lines · On Thu, 6 Mar 2025 16:56:56 -0600 Shree Ramamoorthy <[email protected]>…
Hi,
Quoted 5 lines · Krzysztof Kozlowski
Quoted 4 lines · Shree Ramamoorthy
Hi Lee,
On 2/11/25 9:02 AM, Lee Jones wrote:
[...]
[...]
[...]Quoted 6 lines
Quoted 3 lines
Would you be able to remove this series from your branch & replace it with this v6 [0], so Mark Brown will be able to apply the dependent regulator series [1]? Thank you!
You replied 3 weeks later. If something was applied not as it should, you ought to reply IMMEDIATELY, not 3 weeks after.
Quoted 8 lines
Quoted 4 lines
The trees are mostly immutable after publishing.
Best regards,
KrzysztofCompletely understand, sorry for re-sending the first 5 patches that were already applied! I'll wait for the next merge window, so there won't be dependencies between the MFD and regulator tree then.
Hello Shree,
I think what you should have asked here was a to use an immutable tag to let Mark uses this tag to merge the regulator part of the series on top of it. We use immutable tag when work need to be merged thought several Linux merge tree.
It seems Lee does not remove the MFD support so now that we are in the merge window, you just need to wait two weeks and repost the regulator part.
Regards,
Signature · 3 lines
Köry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com