ARM: tegra: cardhu: add dt entry for PMIC TPS65911.
Subsystems (2)
PATCH 1/1 ARM: tegra: cardhu: add dt entry for PMIC TPS65911.
Tegra30 based platform "cardhu" have the power management IC TPS65911 for the regulator.
Adding DT entry for this device.
---
Enabling the gpio/regulators of this device.
arch/arm/boot/dts/tegra30-cardhu.dts | 121 ++++++++++++++++++++++++++++++++++ 1 files changed, 121 insertions(+), 0 deletions(-)
arch/arm/boot/dts/tegra30-cardhu.dts +121 -0
@@ -126,6 +126,127 @@ ti,vsel0-state-high; ti,vsel1-state-high; }; + + tps65911: tps65911@2d { + compatible = "ti,tps65911"; + reg = <0x2d>; + + #gpio-cells = <2>; + gpio-controller; + + regulators { + #address-cells = <1>; + #size-cells = <0>; + + vdd1_reg: regulator@0 { + reg = <0>; + regulator-compatible = "vdd1"; + regulator-name = "vdd_1v2_gen"; + regulator-min-microvolt = < 600000>; + regulator-max-microvolt = <1500000>; + regulator-always-on; + regulator-boot-on; + }; + + vdd2_reg: regulator@1 { + reg = <1>; + regulator-compatible = "vdd2"; + regulator-name = "vdd_1v5_gen"; + regulator-min-microvolt = < 600000>; + regulator-max-microvolt = <1500000>; + regulator-boot-on; + regulator-always-on; + }; + + vddctrl_reg: regulator@2 { + reg = <2>; + regulator-compatible = "vddctrl"; + regulator-name = "vdd_1v0_gen"; + regulator-min-microvolt = < 600000>; + regulator-max-microvolt = <1400000>; + regulator-always-on; + regulator-boot-on; + }; + + vio_reg: regulator@3 { + reg = <3>; + regulator-compatible = "vio"; + regulator-name = "vdd_1v8_gen"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + regulator-boot-on; + }; + + ldo1_reg: regulator@4 { + reg = <4>; + regulator-compatible = "ldo1"; + regulator-name = "vdd_pmu_ldo1"; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <3300000>; + }; + + ldo2_reg: regulator@5 { + reg = <5>; + regulator-compatible = "ldo2"; + regulator-name = "vdd_pmu_ldo2"; + regulator-min-microvolt = <1050000>; + regulator-max-microvolt = <1050000>; + }; + + ldo3_reg: regulator@6 { + reg = <6>; + regulator-compatible = "ldo3"; + regulator-name = "vdd_pmu_ldo3"; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <3300000>; + }; + + ldo4_reg: regulator@7 { + reg = <7>; + regulator-compatible = "ldo4"; + regulator-name = "vdd_pmu_ldo4"; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + ldo5_reg: regulator@8 { + reg = <8>; + regulator-compatible = "ldo5"; + regulator-name = "vdd_pmu_ldo5"; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <3300000>; + }; + + ldo6_reg: regulator@9 { + reg = <9>; + regulator-compatible = "ldo6"; + regulator-name = "vdd_pmu_ldo6"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + }; + + ldo7_reg: regulator@10 { + reg = <10>; + regulator-compatible = "ldo7"; + regulator-name = "vdd_pmu_ldo7"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + regulator-always-on; + regulator-boot-on; + }; + + ldo8_reg: regulator@11 { + reg = <11>; + regulator-compatible = "ldo8"; + regulator-name = "vdd_pmu_ldo8"; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + }; + }; }; ahub {
Signature · 1 line
1.7.1.1
Quoted 5 lines · Laxman Dewangan
Tegra30 based platform "cardhu" have the power management IC TPS65911 for the regulator.
Adding DT entry for this device.Signed-off-by Laxman Dewangan <[email protected]>
I recall there were some differences between Cardhu A02 and A04. Does this patch apply equally to both?
Please have a look at the recent threads re: various Tegra20 boards' regulator .dts files, and see the results at:
git://nv-tegra.nvidia.com/user/swarren/linux-2.6 linux-next_common
Most of these comments are driven by comments made in the review of those patches.
In the patch description, can you please specify where you got all the values from, and any discrepancies.
arch/arm/boot/dts/tegra30-cardhu.dts line 144
Quoted 6 lines
arch/arm/boot/dts/tegra30-cardhu.dts +4
-0+ vdd1_reg: regulator@0 { + reg = <0>; + regulator-compatible = "vdd1"; + regulator-name = "vdd_1v2_gen";
It'd be good to list all the signals that these regulators drive directly; the schematics "rename" the signals quite a lot.
arch/arm/boot/dts/tegra30-cardhu.dts
Quoted 2 lines
arch/arm/boot/dts/tegra30-cardhu.dts +2
-0+ regulator-min-microvolt = < 600000>; + regulator-max-microvolt = <1500000>;
Similarly, the contraints should list the exact voltage that's required of the regulators, not a range. Right now, there is no DVFS in the mainline kernel, so even for rails where DVFS could be used in the future, we should specify the single voltage we want these rails to run at without DVFS for now.
arch/arm/boot/dts/tegra30-cardhu.dts
Quoted 2 lines
arch/arm/boot/dts/tegra30-cardhu.dts +2
-0+ regulator-always-on; + regulator-boot-on;
These properties aren't in the same order in all the nodes. It'd be nice to have them ordered the same way everywhere.
I'm not sure if it really makes sense to specify regulator-boot-on, since there's no way to know what SW has run before the kernel which might have turned off the regulator; regulator-always-on seems to cover all necessary use-cases.
Quoted 8 lines · Stephen Warren
Quoted 5 lines · Laxman Dewangan
Tegra30 based platform "cardhu" have the power management IC TPS65911 for the regulator.
Adding DT entry for this device.Signed-off-by Laxman Dewangan<[email protected]>I recall there were some differences between Cardhu A02 and A04. Does this patch apply equally to both?
Yes, this piece is common. I already sent the splitting A02 and A04 which is having some differences in the fixed regulator GPIOs. It is pending for internal review.
Quoted 10 lines
Please have a look at the recent threads re: various Tegra20 boards' regulator .dts files, and see the results at:
git://nv-tegra.nvidia.com/user/swarren/linux-2.6linux-next_commonMost of these comments are driven by comments made in the review of those patches.
In the patch description, can you please specify where you got all the values from, and any discrepancies.
Ok, I will do.
Quoted 7 lines
arch/arm/boot/dts/tegra30-cardhu.dts line 144
Quoted 5 lines
arch/arm/boot/dts/tegra30-cardhu.dts +4
-0+ vdd1_reg: regulator@0 { + reg =<0>; + regulator-compatible = "vdd1"; + regulator-name = "vdd_1v2_gen";It'd be good to list all the signals that these regulators drive directly; the schematics "rename" the signals quite a lot.
Will add wherever it is possible.
Quoted 8 lines
arch/arm/boot/dts/tegra30-cardhu.dts
Quoted 2 lines
arch/arm/boot/dts/tegra30-cardhu.dts +2
-0+ regulator-min-microvolt =< 600000>; + regulator-max-microvolt =<1500000>;Similarly, the contraints should list the exact voltage that's required of the regulators, not a range. Right now, there is no DVFS in the mainline kernel, so even for rails where DVFS could be used in the future, we should specify the single voltage we want these rails to run at without DVFS for now.
Fine, will provide the one voltage.
Quoted 9 lines
arch/arm/boot/dts/tegra30-cardhu.dts
Quoted 2 lines
arch/arm/boot/dts/tegra30-cardhu.dts +2
-0+ regulator-always-on; + regulator-boot-on;These properties aren't in the same order in all the nodes. It'd be nice to have them ordered the same way everywhere.
I'm not sure if it really makes sense to specify regulator-boot-on, since there's no way to know what SW has run before the kernel which might have turned off the regulator; regulator-always-on seems to cover all necessary use-cases.