regulator: tps6586x: correct vin pin for sm0/sm1/sm2
Subsystems (2)
PATCH 1/1 regulator: tps6586x: correct vin pin for sm0/sm1/sm2
As per datasheet, the vin pin for the regulator is named as vin_sm0, vin_sm1, vin_sm2 for sm0, sm1 and sm2 respectively.
Correcting the names in driver and documentation to match with datasheet.
--- .../devicetree/bindings/regulator/tps6586x.txt | 12 ++++++------ drivers/regulator/tps6586x-regulator.c | 8 +++++--- 2 files changed, 11 insertions(+), 9 deletions(-)
Documentation/devicetree/bindings/regulator/tps6586x.txt +6 -6
@@ -9,9 +9,9 @@ Required properties: - regulators: list of regulators provided by this controller, must have property "regulator-compatible" to match their hardware counterparts: sm[0-2], ldo[0-9] and ldo_rtc -- sm0-supply: The input supply for the SM0. -- sm1-supply: The input supply for the SM1. -- sm2-supply: The input supply for the SM2. +- vin-sm0-supply: The input supply for the SM0. +- vin-sm1-supply: The input supply for the SM1. +- vin-sm2-supply: The input supply for the SM2. - vinldo01-supply: The input supply for the LDO1 and LDO2 - vinldo23-supply: The input supply for the LDO2 and LDO3 - vinldo4-supply: The input supply for the LDO4
@@ -30,9 +30,9 @@ Example: #gpio-cells = <2>; gpio-controller; - sm0-supply = <&some_reg>; - sm1-supply = <&some_reg>; - sm2-supply = <&some_reg>; + vin-sm0-supply = <&some_reg>; + vin-sm1-supply = <&some_reg>; + vin-sm2-supply = <&some_reg>; vinldo01-supply = <...>; vinldo23-supply = <...>; vinldo4-supply = <...>;
drivers/regulator/tps6586x-regulator.c +5 -3
@@ -240,14 +240,16 @@ static struct tps6586x_regulator tps6586x_regulator[] = {TPS6586X_LDO (LDO_9 ,"vinldo9" , ldo,SUPPLYV6 ,3 ,3 ,ENE ,7 ,ENE ,7 ),TPS6586X_LDO (LDO_RTC ,NULL , ldo,SUPPLYV4 ,3 ,3 ,V4 ,7 ,V4 ,7 ),TPS6586X_LDO (LDO_1 ,"vinldo01" , dvm,SUPPLYV1 ,0 ,5 ,ENC ,1 ,END ,1 ), -TPS6586X_LDO (SM_2 ,"sm2" , sm2,SUPPLYV2 ,0 ,5 ,ENC ,7 ,END ,7 ), +TPS6586X_LDO (SM_2 ,"vin-sm2" , sm2,SUPPLYV2 ,0 ,5 ,ENC ,7 ,END ,7 ),TPS6586X_DVM (LDO_2 ,"vinldo23" , dvm,LDO2BV1 ,0 ,5 ,ENA ,3 ,ENB ,3 ,VCC2 ,6 ),TPS6586X_DVM (LDO_4 ,"vinldo4" , ldo4,LDO4V1 ,0 ,5 ,ENC ,3 ,END ,3 ,VCC1 ,6 ), -TPS6586X_DVM (SM_0 ,"sm0" , dvm,SM0V1 ,0 ,5 ,ENA ,1 ,ENB ,1 ,VCC1 ,2 ), - TPS6586X_DVM(SM_1, "sm1", dvm, SM1V1, 0, 5, ENA, 0, ENB, 0, VCC1, 0), +TPS6586X_DVM (SM_0 ,"vin-sm0" , dvm,SM0V1 ,0 ,5 ,ENA ,1 , +ENB ,1 ,VCC1 ,2 ), +TPS6586X_DVM (SM_1 ,"vin-sm1" , dvm,SM1V1 ,0 ,5 ,ENA ,0 , + ENB, 0, VCC1, 0), };/*
Signature · 1 line
1.7.1.1
Quoted 8 lines · Laxman Dewangan
As per datasheet, the vin pin for the regulator is named as
vin_sm0,vin_sm1,vin_sm2for sm0, sm1 and sm2 respectively.Correcting the names in driver and documentation to match with datasheet.
Signed-off-by Laxman Dewangan <[email protected]>Reported-by Stephen Warren <[email protected]>
Mark Brown
AppliedQuoted 2 lines · Laxman Dewangan
As per datasheet, the vin pin for the regulator is named as
vin_sm0,vin_sm1,vin_sm2for sm0, sm1 and sm2 respectively.
Applied, thanks.
Quoted 5 lines · Laxman Dewangan
As per datasheet, the vin pin for the regulator is named as
vin_sm0,vin_sm1,vin_sm2for sm0, sm1 and sm2 respectively.Correcting the names in driver and documentation to match with datasheet.
Mark,
This patch was in next-20120803, but seems to have been dropped from next-20120806 and later:
Quoted 9 lines
git log next-20120803 --oneline -- drivers/regulator/tps6586x-regulator.c|cat c7bc4e5 regulator: tps6586x: correct vin pin for sm0/sm1/sm2 7c7fac3 regulator: tps6586x: add support for input supply
f464703 regulator: tps6586x: Convert toregulator_list_voltage_tablegit log next-20120806 --oneline -- drivers/regulator/tps6586x-regulator.c|cat 4c79c8d regulator: tps6586x: Convert to regulator_[enable|disable|is_enabled|get_voltage_sel]_regmap 7c7fac3 regulator: tps6586x: add support for input supply
f464703 regulator: tps6586x: Convert toregulator_list_voltage_table
I assume that was just an accident?
Quoted 1 line · Stephen Warren
I assume that was just an accident?
Probably. I suspect a conflict with mainline when I rebased onto v3.6-rc1. Please resend the patch, I don't think I have it any more.
Quoted 6 lines · Mark Brown
Quoted 1 line · Stephen Warren
I assume that was just an accident?
Probably. I suspect a conflict with mainline when I rebased onto v3.6-rc1. Please resend the patch, I don't think I have it any more.
The patch in question just showed up again in next-20120809:
7f852e0 regulator: tps6586x: correct vin pin for sm0/sm1/sm2
... with the exact same content as the previous commit ID.
Quoted 5 lines · Stephen Warren
The patch in question just showed up again in next-20120809:
7f852e0 regulator: tps6586x: correct vin pin for sm0/sm1/sm2
... with the exact same content as the previous commit ID.
Oh, in that case I must've missed a branch when I was rebuilding -next. I just checked for missing branches. Problem solved.