* [PATCH V2 1/4] ARM: tegra: dalmore: add cpu regulator node
2013-03-21 13:47 [PATCH V2 0/4] ARM: tegra: dalmore: add regulators Laxman Dewangan
@ 2013-03-21 13:47 ` Laxman Dewangan
2013-03-21 14:07 ` Sergei Shtylyov
2013-03-21 13:47 ` [PATCH V2 2/4] ARM: tegra: dalmore: add TPS65090 node Laxman Dewangan
` (3 subsequent siblings)
4 siblings, 1 reply; 8+ messages in thread
From: Laxman Dewangan @ 2013-03-21 13:47 UTC (permalink / raw)
To: linux-arm-kernel
Dalmore uses the TPS51632 as CPU regulator. The device is connected
on I2C5.
Add DT node for TPS51632.
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
---
arch/arm/boot/dts/tegra114-dalmore.dts | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/arch/arm/boot/dts/tegra114-dalmore.dts b/arch/arm/boot/dts/tegra114-dalmore.dts
index a61974e..6be9434 100644
--- a/arch/arm/boot/dts/tegra114-dalmore.dts
+++ b/arch/arm/boot/dts/tegra114-dalmore.dts
@@ -718,6 +718,21 @@
clock-frequency = <408000000>;
};
+ i2c at 7000d000 {
+ status = "okay";
+ clock-frequency = <400000>;
+
+ tps51632 {
+ compatible = "ti,tps51632";
+ reg = <0x43>;
+ regulator-name = "vdd-cpu";
+ regulator-min-microvolt = <500000>;
+ regulator-max-microvolt = <1520000>;
+ regulator-boot-on;
+ regulator-always-on;
+ };
+ };
+
pmc {
nvidia,invert-interrupt;
};
--
1.7.1.1
^ permalink raw reply related [flat|nested] 8+ messages in thread* [PATCH V2 1/4] ARM: tegra: dalmore: add cpu regulator node
2013-03-21 13:47 ` [PATCH V2 1/4] ARM: tegra: dalmore: add cpu regulator node Laxman Dewangan
@ 2013-03-21 14:07 ` Sergei Shtylyov
2013-03-21 17:30 ` Stephen Warren
0 siblings, 1 reply; 8+ messages in thread
From: Sergei Shtylyov @ 2013-03-21 14:07 UTC (permalink / raw)
To: linux-arm-kernel
Hello.
On 21-03-2013 17:47, Laxman Dewangan wrote:
> Dalmore uses the TPS51632 as CPU regulator. The device is connected
> on I2C5.
> Add DT node for TPS51632.
> Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
> ---
> arch/arm/boot/dts/tegra114-dalmore.dts | 15 +++++++++++++++
> 1 files changed, 15 insertions(+), 0 deletions(-)
> diff --git a/arch/arm/boot/dts/tegra114-dalmore.dts b/arch/arm/boot/dts/tegra114-dalmore.dts
> index a61974e..6be9434 100644
> --- a/arch/arm/boot/dts/tegra114-dalmore.dts
> +++ b/arch/arm/boot/dts/tegra114-dalmore.dts
> @@ -718,6 +718,21 @@
> clock-frequency = <408000000>;
> };
>
> + i2c at 7000d000 {
> + status = "okay";
> + clock-frequency = <400000>;
> +
> + tps51632 {
Should be named "tps51632 at 43" I think.
> + compatible = "ti,tps51632";
> + reg = <0x43>;
WBR, Sergei
^ permalink raw reply [flat|nested] 8+ messages in thread* [PATCH V2 1/4] ARM: tegra: dalmore: add cpu regulator node
2013-03-21 14:07 ` Sergei Shtylyov
@ 2013-03-21 17:30 ` Stephen Warren
0 siblings, 0 replies; 8+ messages in thread
From: Stephen Warren @ 2013-03-21 17:30 UTC (permalink / raw)
To: linux-arm-kernel
On 03/21/2013 08:07 AM, Sergei Shtylyov wrote:
> Hello.
>
> On 21-03-2013 17:47, Laxman Dewangan wrote:
>
>> Dalmore uses the TPS51632 as CPU regulator. The device is connected
>> on I2C5.
>
>> Add DT node for TPS51632.
>> diff --git a/arch/arm/boot/dts/tegra114-dalmore.dts
>> + i2c at 7000d000 {
>> + status = "okay";
>> + clock-frequency = <400000>;
>> +
>> + tps51632 {
>
> Should be named "tps51632 at 43" I think.
The unit-address (i.e. "@43" part) of the node name is typically omitted
if it isn't required to make the node name unique.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH V2 2/4] ARM: tegra: dalmore: add TPS65090 node
2013-03-21 13:47 [PATCH V2 0/4] ARM: tegra: dalmore: add regulators Laxman Dewangan
2013-03-21 13:47 ` [PATCH V2 1/4] ARM: tegra: dalmore: add cpu regulator node Laxman Dewangan
@ 2013-03-21 13:47 ` Laxman Dewangan
2013-03-21 13:47 ` [PATCH V2 3/4] ARM: tegra: dalmore: add fixed regulator node Laxman Dewangan
` (2 subsequent siblings)
4 siblings, 0 replies; 8+ messages in thread
From: Laxman Dewangan @ 2013-03-21 13:47 UTC (permalink / raw)
To: linux-arm-kernel
NVIDIA's Tegra114 reference platform, Dalmore, uses the TPS65090 as
secondary PMICs which is mainly act as voltage switch regulator
controlled by i2c communication.
Add DT node for TPS65090.
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
---
Changes from V1:
- Fix compilation error on this patch which was introduced on prev set.
arch/arm/boot/dts/tegra114-dalmore.dts | 92 ++++++++++++++++++++++++++++++++
1 files changed, 92 insertions(+), 0 deletions(-)
diff --git a/arch/arm/boot/dts/tegra114-dalmore.dts b/arch/arm/boot/dts/tegra114-dalmore.dts
index 6be9434..6e9d757 100644
--- a/arch/arm/boot/dts/tegra114-dalmore.dts
+++ b/arch/arm/boot/dts/tegra114-dalmore.dts
@@ -731,6 +731,83 @@
regulator-boot-on;
regulator-always-on;
};
+
+ tps65090 at 48 {
+ compatible = "ti,tps65090";
+ reg = <0x48>;
+ interrupt-parent = <&gpio>;
+ interrupts = <72 0x04>; /* gpio PJ0 */
+
+ vsys1-supply = <&vdd_ac_bat_reg>;
+ vsys2-supply = <&vdd_ac_bat_reg>;
+ vsys3-supply = <&vdd_ac_bat_reg>;
+ infet1-supply = <&vdd_ac_bat_reg>;
+ infet2-supply = <&vdd_ac_bat_reg>;
+ infet3-supply = <&tps65090_dcdc2_reg>;
+ infet4-supply = <&tps65090_dcdc2_reg>;
+ infet5-supply = <&tps65090_dcdc2_reg>;
+ infet6-supply = <&tps65090_dcdc2_reg>;
+ infet7-supply = <&tps65090_dcdc2_reg>;
+ vsys-l1-supply = <&vdd_ac_bat_reg>;
+ vsys-l2-supply = <&vdd_ac_bat_reg>;
+
+ regulators {
+ dcdc1 {
+ regulator-name = "vdd-sys-5v0";
+ regulator-always-on;
+ regulator-boot-on;
+ };
+
+ tps65090_dcdc2_reg: dcdc2 {
+ regulator-name = "vdd-sys-3v3";
+ regulator-always-on;
+ regulator-boot-on;
+ };
+
+ dcdc3 {
+ regulator-name = "vdd-ao";
+ regulator-always-on;
+ regulator-boot-on;
+ };
+
+ fet1 {
+ regulator-name = "vdd-lcd-bl";
+ };
+
+ fet3 {
+ regulator-name = "vdd-modem-3v3";
+ };
+
+ fet4 {
+ regulator-name = "avdd-lcd";
+ };
+
+ fet5 {
+ regulator-name = "vdd-lvds";
+ };
+
+ fet6 {
+ regulator-name = "vdd-sd-slot";
+ regulator-boot-on;
+ };
+
+ fet7 {
+ regulator-name = "vdd-com-3v3";
+ };
+
+ ldo1 {
+ regulator-name = "vdd-sby-5v0";
+ regulator-always-on;
+ regulator-boot-on;
+ };
+
+ ldo2 {
+ regulator-name = "vdd-sby-3v3";
+ regulator-always-on;
+ regulator-boot-on;
+ };
+ };
+ };
};
pmc {
@@ -747,4 +824,19 @@
bus-width = <8>;
status = "okay";
};
+
+ regulators {
+ compatible = "simple-bus";
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ vdd_ac_bat_reg: regulator at 0 {
+ compatible = "regulator-fixed";
+ reg = <0>;
+ regulator-name = "vdd_ac_bat";
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ regulator-always-on;
+ };
+ };
};
--
1.7.1.1
^ permalink raw reply related [flat|nested] 8+ messages in thread* [PATCH V2 3/4] ARM: tegra: dalmore: add fixed regulator node
2013-03-21 13:47 [PATCH V2 0/4] ARM: tegra: dalmore: add regulators Laxman Dewangan
2013-03-21 13:47 ` [PATCH V2 1/4] ARM: tegra: dalmore: add cpu regulator node Laxman Dewangan
2013-03-21 13:47 ` [PATCH V2 2/4] ARM: tegra: dalmore: add TPS65090 node Laxman Dewangan
@ 2013-03-21 13:47 ` Laxman Dewangan
2013-03-21 13:47 ` [PATCH V2 4/4] ARM: tegra: enable Tegra114 based platform PMICs Laxman Dewangan
2013-03-22 17:37 ` [PATCH V2 0/4] ARM: tegra: dalmore: add regulators Stephen Warren
4 siblings, 0 replies; 8+ messages in thread
From: Laxman Dewangan @ 2013-03-21 13:47 UTC (permalink / raw)
To: linux-arm-kernel
NVIDIA's Tegra114 reference platform Dalmore has voltage switch
regulators which are controlled by the Tegra GPIOs.
Add DT node for fixed regulators.
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
---
arch/arm/boot/dts/tegra114-dalmore.dts | 57 +++++++++++++++++++++++++++++++-
1 files changed, 56 insertions(+), 1 deletions(-)
diff --git a/arch/arm/boot/dts/tegra114-dalmore.dts b/arch/arm/boot/dts/tegra114-dalmore.dts
index 6e9d757..6ad1f45 100644
--- a/arch/arm/boot/dts/tegra114-dalmore.dts
+++ b/arch/arm/boot/dts/tegra114-dalmore.dts
@@ -752,7 +752,7 @@
vsys-l2-supply = <&vdd_ac_bat_reg>;
regulators {
- dcdc1 {
+ tps65090_dcdc1_reg: dcdc1 {
regulator-name = "vdd-sys-5v0";
regulator-always-on;
regulator-boot-on;
@@ -838,5 +838,60 @@
regulator-max-microvolt = <5000000>;
regulator-always-on;
};
+
+ dvdd_ts_reg: regulator at 1 {
+ compatible = "regulator-fixed";
+ reg = <1>;
+ regulator-name = "dvdd_ts";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ enable-active-high;
+ gpio = <&gpio 61 0>; /* GPIO PH5 */
+ };
+
+ lcd_bl_en_reg: regulator at 2 {
+ compatible = "regulator-fixed";
+ reg = <2>;
+ regulator-name = "lcd_bl_en";
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ enable-active-high;
+ gpio = <&gpio 58 0>; /* GPIO PH2 */
+ };
+
+ usb1_vbus_reg: regulator at 3 {
+ compatible = "regulator-fixed";
+ reg = <3>;
+ regulator-name = "usb1_vbus";
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ enable-active-high;
+ gpio = <&gpio 108 0>; /* GPIO PN4 */
+ gpio-open-drain;
+ vin-supply = <&tps65090_dcdc1_reg>;
+ };
+
+ usb3_vbus_reg: regulator at 4 {
+ compatible = "regulator-fixed";
+ reg = <4>;
+ regulator-name = "usb2_vbus";
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ enable-active-high;
+ gpio = <&gpio 86 0>; /* GPIO PK6 */
+ gpio-open-drain;
+ vin-supply = <&tps65090_dcdc1_reg>;
+ };
+
+ vdd_hdmi_reg: regulator at 5 {
+ compatible = "regulator-fixed";
+ reg = <5>;
+ regulator-name = "vdd_hdmi_5v0";
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ enable-active-high;
+ gpio = <&gpio 81 0>; /* GPIO PK1 */
+ vin-supply = <&tps65090_dcdc1_reg>;
+ };
};
};
--
1.7.1.1
^ permalink raw reply related [flat|nested] 8+ messages in thread* [PATCH V2 4/4] ARM: tegra: enable Tegra114 based platform PMICs
2013-03-21 13:47 [PATCH V2 0/4] ARM: tegra: dalmore: add regulators Laxman Dewangan
` (2 preceding siblings ...)
2013-03-21 13:47 ` [PATCH V2 3/4] ARM: tegra: dalmore: add fixed regulator node Laxman Dewangan
@ 2013-03-21 13:47 ` Laxman Dewangan
2013-03-22 17:37 ` [PATCH V2 0/4] ARM: tegra: dalmore: add regulators Stephen Warren
4 siblings, 0 replies; 8+ messages in thread
From: Laxman Dewangan @ 2013-03-21 13:47 UTC (permalink / raw)
To: linux-arm-kernel
NVIDIA's Tegra114 has two reference platforms, Dalmore and Pluto.
Dalmore uses following PMICs:
- TPS65913 as primary PMIC.
- TPS65090 as secondary PMIC used for switch regulators and battery charging.
- TPS51632 for CPU regulator.
Pluto uses only TPS65913.
Enable config variable for these PMICs for Dalomore and Pluto.
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
---
Changes from V1:
- Rearrange patch to make it 4th patch.
arch/arm/configs/tegra_defconfig | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/arch/arm/configs/tegra_defconfig b/arch/arm/configs/tegra_defconfig
index aba4881..34b9342 100644
--- a/arch/arm/configs/tegra_defconfig
+++ b/arch/arm/configs/tegra_defconfig
@@ -126,6 +126,7 @@ CONFIG_SPI=y
CONFIG_SPI_TEGRA20_SFLASH=y
CONFIG_SPI_TEGRA20_SLINK=y
CONFIG_GPIO_PCA953X_IRQ=y
+CONFIG_GPIO_PALMAS=y
CONFIG_GPIO_TPS6586X=y
CONFIG_GPIO_TPS65910=y
CONFIG_POWER_SUPPLY=y
@@ -136,12 +137,17 @@ CONFIG_SENSORS_LM90=y
CONFIG_MFD_TPS6586X=y
CONFIG_MFD_TPS65910=y
CONFIG_MFD_MAX8907=y
+CONFIG_MFD_TPS65090=y
+CONFIG_MFD_PALMAS=y
CONFIG_REGULATOR=y
CONFIG_REGULATOR_FIXED_VOLTAGE=y
CONFIG_REGULATOR_VIRTUAL_CONSUMER=y
CONFIG_REGULATOR_GPIO=y
CONFIG_REGULATOR_MAX8907=y
+CONFIG_REGULATOR_PALMAS=y
+CONFIG_REGULATOR_TPS51632=y
CONFIG_REGULATOR_TPS62360=y
+CONFIG_REGULATOR_TPS65090=y
CONFIG_REGULATOR_TPS6586X=y
CONFIG_REGULATOR_TPS65910=y
CONFIG_MEDIA_SUPPORT=y
@@ -191,6 +197,7 @@ CONFIG_RTC_INTF_SYSFS=y
CONFIG_RTC_INTF_PROC=y
CONFIG_RTC_INTF_DEV=y
CONFIG_RTC_DRV_MAX8907=y
+CONFIG_RTC_DRV_PALMAS=y
CONFIG_RTC_DRV_TPS6586X=y
CONFIG_RTC_DRV_TPS65910=y
CONFIG_RTC_DRV_EM3027=y
--
1.7.1.1
^ permalink raw reply related [flat|nested] 8+ messages in thread* [PATCH V2 0/4] ARM: tegra: dalmore: add regulators
2013-03-21 13:47 [PATCH V2 0/4] ARM: tegra: dalmore: add regulators Laxman Dewangan
` (3 preceding siblings ...)
2013-03-21 13:47 ` [PATCH V2 4/4] ARM: tegra: enable Tegra114 based platform PMICs Laxman Dewangan
@ 2013-03-22 17:37 ` Stephen Warren
4 siblings, 0 replies; 8+ messages in thread
From: Stephen Warren @ 2013-03-22 17:37 UTC (permalink / raw)
To: linux-arm-kernel
On 03/21/2013 07:47 AM, Laxman Dewangan wrote:
> This series add the regulators for Dalmore platform.
> Dalmore also have the Palma PMIC as primary PMIC but
> dt population will be send later once DT documentation
> finalize.
The series is applied. The first 3 patches to Tegra's for-3.10/dt
branch, and patch 4 to Tegra's for-3.10/defconfig banch.
In patch 2,
> + tps65090 at 48 {
I removed "@48" there, since the unit-address isn't required to make the
node name unique.
^ permalink raw reply [flat|nested] 8+ messages in thread