mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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. Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reported-by: Stephen Warren <swarren@nvidia.com> Acked-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
1c9d2d71a3
commit
7f852e0584
2 changed files with 11 additions and 9 deletions
|
@ -9,9 +9,9 @@ Required properties:
|
||||||
- regulators: list of regulators provided by this controller, must have
|
- regulators: list of regulators provided by this controller, must have
|
||||||
property "regulator-compatible" to match their hardware counterparts:
|
property "regulator-compatible" to match their hardware counterparts:
|
||||||
sm[0-2], ldo[0-9] and ldo_rtc
|
sm[0-2], ldo[0-9] and ldo_rtc
|
||||||
- sm0-supply: The input supply for the SM0.
|
- vin-sm0-supply: The input supply for the SM0.
|
||||||
- sm1-supply: The input supply for the SM1.
|
- vin-sm1-supply: The input supply for the SM1.
|
||||||
- sm2-supply: The input supply for the SM2.
|
- vin-sm2-supply: The input supply for the SM2.
|
||||||
- vinldo01-supply: The input supply for the LDO1 and LDO2
|
- vinldo01-supply: The input supply for the LDO1 and LDO2
|
||||||
- vinldo23-supply: The input supply for the LDO2 and LDO3
|
- vinldo23-supply: The input supply for the LDO2 and LDO3
|
||||||
- vinldo4-supply: The input supply for the LDO4
|
- vinldo4-supply: The input supply for the LDO4
|
||||||
|
@ -30,9 +30,9 @@ Example:
|
||||||
#gpio-cells = <2>;
|
#gpio-cells = <2>;
|
||||||
gpio-controller;
|
gpio-controller;
|
||||||
|
|
||||||
sm0-supply = <&some_reg>;
|
vin-sm0-supply = <&some_reg>;
|
||||||
sm1-supply = <&some_reg>;
|
vin-sm1-supply = <&some_reg>;
|
||||||
sm2-supply = <&some_reg>;
|
vin-sm2-supply = <&some_reg>;
|
||||||
vinldo01-supply = <...>;
|
vinldo01-supply = <...>;
|
||||||
vinldo23-supply = <...>;
|
vinldo23-supply = <...>;
|
||||||
vinldo4-supply = <...>;
|
vinldo4-supply = <...>;
|
||||||
|
|
|
@ -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_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_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(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,
|
TPS6586X_DVM(LDO_2, "vinldo23", dvm, LDO2BV1, 0, 5, ENA, 3,
|
||||||
ENB, 3, VCC2, 6),
|
ENB, 3, VCC2, 6),
|
||||||
TPS6586X_DVM(LDO_4, "vinldo4", ldo4, LDO4V1, 0, 5, ENC, 3,
|
TPS6586X_DVM(LDO_4, "vinldo4", ldo4, LDO4V1, 0, 5, ENC, 3,
|
||||||
END, 3, VCC1, 6),
|
END, 3, VCC1, 6),
|
||||||
TPS6586X_DVM(SM_0, "sm0", dvm, SM0V1, 0, 5, ENA, 1, ENB, 1, VCC1, 2),
|
TPS6586X_DVM(SM_0, "vin-sm0", dvm, SM0V1, 0, 5, ENA, 1,
|
||||||
TPS6586X_DVM(SM_1, "sm1", dvm, SM1V1, 0, 5, ENA, 0, ENB, 0, VCC1, 0),
|
ENB, 1, VCC1, 2),
|
||||||
|
TPS6586X_DVM(SM_1, "vin-sm1", dvm, SM1V1, 0, 5, ENA, 0,
|
||||||
|
ENB, 0, VCC1, 0),
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue