mfd: arizona: Add MICVDD to mapped regulators for wm8997
Subsystems (2)
PATCH 1/2 mfd: arizona: Add MICVDD to mapped regulators for wm8997
The previous update adding MICVDD to the regulator mappings:
mfd: arizona: Add MICVDD to mapped regulators
Only added the mapping for wm5102 and wm5110 but wm8997 also has a MICVDD supply that needs to be mapped back to the main Arizona device.
--- drivers/mfd/arizona-core.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/mfd/arizona-core.c +1 -0
@@ -613,6 +613,7 @@ static const struct mfd_cell wm5110_devs[] = { };static const char *wm8997_supplies[] = { +"MICVDD" ,"DBVDD2" ,"CPVDD" ,"SPKVDD" ,
Signature · 1 line
1.7.2.5
PATCH 2/2 mfd: arizona: Map MICVDD from extcon device to the Arizona core
The extcon driver should be able to get its regulator against rather than against the main arizona device, we must add a supply mapping allowing the regulator to be located. This patch does so.
--- drivers/mfd/arizona-core.c | 20 ++++++++++++++++---- 1 files changed, 16 insertions(+), 4 deletions(-)
drivers/mfd/arizona-core.c +16 -4
@@ -578,17 +578,21 @@ static const struct mfd_cell early_devs[] = { };static const char *wm5102_supplies[] = { +"MICVDD" ,"DBVDD2" ,"DBVDD3" ,"CPVDD" ,"SPKVDDL" ,"SPKVDDR" , -"MICVDD" , };static const struct mfd_cell wm5102_devs[] = { { .name ="arizona-micsupp" }, - { .name ="arizona-extcon" }, + { + .name ="arizona-extcon" , + .parent_supplies = wm5102_supplies, + .num_parent_supplies =1 ,/* We only need MICVDD */ + }, { .name ="arizona-gpio" }, { .name ="arizona-haptics" }, { .name ="arizona-pwm" },
@@ -601,7 +605,11 @@ static const struct mfd_cell wm5102_devs[] = {static const struct mfd_cell wm5110_devs[] = { { .name ="arizona-micsupp" }, - { .name ="arizona-extcon" }, + { + .name ="arizona-extcon" , + .parent_supplies = wm5102_supplies, + .num_parent_supplies =1 ,/* We only need MICVDD */ + }, { .name ="arizona-gpio" }, { .name ="arizona-haptics" }, { .name ="arizona-pwm" },
@@ -621,7 +629,11 @@ static const char *wm8997_supplies[] = {static const struct mfd_cell wm8997_devs[] = { { .name ="arizona-micsupp" }, - { .name ="arizona-extcon" }, + { + .name ="arizona-extcon" , + .parent_supplies = wm8997_supplies, + .num_parent_supplies =1 ,/* We only need MICVDD */ + }, { .name ="arizona-gpio" }, { .name ="arizona-haptics" }, { .name ="arizona-pwm" },
Signature · 1 line
1.7.2.5
Lee Jones
AppliedRe: [PATCH 2/2] mfd: arizona: Map MICVDD from extcon device to the Arizona core
Quoted 8 lines · Charles Keepax
The extcon driver should be able to get its regulator against rather than against the main arizona device, we must add a supply mapping allowing the regulator to be located. This patch does so.
Signed-off-by Charles Keepax <[email protected]>--- drivers/mfd/arizona-core.c | 20 ++++++++++++++++---- 1 files changed, 16 insertions(+), 4 deletions(-)
Applied, thanks.
Quoted 54 lines
drivers/mfd/arizona-core.c +16
-4@@ -578,17 +578,21 @@ static const struct mfd_cell early_devs[] = { };static const char *wm5102_supplies[] = { +"MICVDD" ,"DBVDD2" ,"DBVDD3" ,"CPVDD" ,"SPKVDDL" ,"SPKVDDR" , -"MICVDD" , };static const struct mfd_cell wm5102_devs[] = { { .name ="arizona-micsupp" }, - { .name ="arizona-extcon" }, + { + .name ="arizona-extcon" , + .parent_supplies = wm5102_supplies, + .num_parent_supplies =1 ,/* We only need MICVDD */ + }, { .name ="arizona-gpio" }, { .name ="arizona-haptics" }, { .name ="arizona-pwm" },@@ -601,7 +605,11 @@ static const struct mfd_cell wm5102_devs[] = {static const struct mfd_cell wm5110_devs[] = { { .name ="arizona-micsupp" }, - { .name ="arizona-extcon" }, + { + .name ="arizona-extcon" , + .parent_supplies = wm5102_supplies, + .num_parent_supplies =1 ,/* We only need MICVDD */ + }, { .name ="arizona-gpio" }, { .name ="arizona-haptics" }, { .name ="arizona-pwm" },@@ -621,7 +629,11 @@ static const char *wm8997_supplies[] = {static const struct mfd_cell wm8997_devs[] = { { .name ="arizona-micsupp" }, - { .name ="arizona-extcon" }, + { + .name ="arizona-extcon" , + .parent_supplies = wm8997_supplies, + .num_parent_supplies =1 ,/* We only need MICVDD */ + }, { .name ="arizona-gpio" }, { .name ="arizona-haptics" }, { .name ="arizona-pwm" },
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Lee Jones
AppliedQuoted 11 lines · Charles Keepax
The previous update adding MICVDD to the regulator mappings:
mfd: arizona: Add MICVDD to mapped regulators
Only added the mapping for wm5102 and wm5110 but wm8997 also has a MICVDD supply that needs to be mapped back to the main Arizona device.
Signed-off-by Charles Keepax <[email protected]>--- drivers/mfd/arizona-core.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
Applied, thanks.
Quoted 12 lines
drivers/mfd/arizona-core.c +1
-0@@ -613,6 +613,7 @@ static const struct mfd_cell wm5110_devs[] = { };static const char *wm8997_supplies[] = { +"MICVDD" ,"DBVDD2" ,"CPVDD" ,"SPKVDD" ,
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog