* [U-Boot] [PATCH 0/2] Enable usage of PCF GPIO line as regulator
@ 2016-08-10 9:47 Vignesh R
2016-08-10 9:47 ` [U-Boot] [PATCH 1/2] ARM: dts: dra7xx-evm: add evm_3v3_sd regulator Vignesh R
2016-08-10 9:47 ` [U-Boot] [PATCH 2/2] ARM: dra7xx_evm: Enable regulator DM support Vignesh R
0 siblings, 2 replies; 7+ messages in thread
From: Vignesh R @ 2016-08-10 9:47 UTC (permalink / raw)
To: u-boot
Some IPs like MMC use PCF GPIO lines as fixed regulator, hence add
support for the same.
Vignesh R (2):
ARM: dts: dra7xx-evm: add evm_3v3_sd regulator
ARM: dra7xx_evm: Enable regulator DM support
arch/arm/dts/dra7-evm.dts | 12 +++++++++++-
arch/arm/dts/dra72-evm.dts | 12 +++++++++++-
configs/dra7xx_evm_defconfig | 3 +++
configs/dra7xx_hs_evm_defconfig | 3 +++
4 files changed, 28 insertions(+), 2 deletions(-)
--
2.9.2
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot] [PATCH 1/2] ARM: dts: dra7xx-evm: add evm_3v3_sd regulator
2016-08-10 9:47 [U-Boot] [PATCH 0/2] Enable usage of PCF GPIO line as regulator Vignesh R
@ 2016-08-10 9:47 ` Vignesh R
2016-08-10 12:46 ` Tom Rini
2016-08-12 19:53 ` [U-Boot] [U-Boot, " Tom Rini
2016-08-10 9:47 ` [U-Boot] [PATCH 2/2] ARM: dra7xx_evm: Enable regulator DM support Vignesh R
1 sibling, 2 replies; 7+ messages in thread
From: Vignesh R @ 2016-08-10 9:47 UTC (permalink / raw)
To: u-boot
Add a node for evm_3v3_sd using onboard PCF GPIO expander which feeds
on to mmc vdd.
Update mapping for vmmc-supply and vmmc_aux-supply.
evm_3v3_sd supplies to SD card vdd, and ldo1 to sdcard i/o lines.
Signed-off-by: Vignesh R <vigneshr@ti.com>
---
arch/arm/dts/dra7-evm.dts | 12 +++++++++++-
arch/arm/dts/dra72-evm.dts | 12 +++++++++++-
2 files changed, 22 insertions(+), 2 deletions(-)
diff --git a/arch/arm/dts/dra7-evm.dts b/arch/arm/dts/dra7-evm.dts
index 06b7b367e4d5..fe755c05841d 100644
--- a/arch/arm/dts/dra7-evm.dts
+++ b/arch/arm/dts/dra7-evm.dts
@@ -24,6 +24,15 @@
reg = <0x80000000 0x60000000>; /* 1536 MB */
};
+ evm_3v3_sd: fixedregulator-sd {
+ compatible = "regulator-fixed";
+ regulator-name = "evm_3v3_sd";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ enable-active-high;
+ gpio = <&pcf_gpio_21 5 GPIO_ACTIVE_HIGH>;
+ };
+
mmc2_3v3: fixedregulator-mmc2 {
compatible = "regulator-fixed";
regulator-name = "mmc2_3v3";
@@ -468,7 +477,8 @@
&mmc1 {
status = "okay";
- vmmc-supply = <&ldo1_reg>;
+ vmmc-supply = <&evm_3v3_sd>;
+ vmmc_aux-supply = <&ldo1_reg>;
bus-width = <4>;
/*
* SDCD signal is not being used here - using the fact that GPIO mode
diff --git a/arch/arm/dts/dra72-evm.dts b/arch/arm/dts/dra72-evm.dts
index e78ec2e1859f..4ca37faa093c 100644
--- a/arch/arm/dts/dra72-evm.dts
+++ b/arch/arm/dts/dra72-evm.dts
@@ -35,6 +35,15 @@
regulator-max-microvolt = <3300000>;
};
+ evm_3v3_sd: fixedregulator-sd {
+ compatible = "regulator-fixed";
+ regulator-name = "evm_3v3_sd";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ enable-active-high;
+ gpio = <&pcf_gpio_21 5 GPIO_ACTIVE_HIGH>;
+ };
+
extcon_usb1: extcon_usb1 {
compatible = "linux,extcon-usb-gpio";
id-gpio = <&pcf_gpio_21 1 GPIO_ACTIVE_HIGH>;
@@ -499,7 +508,8 @@
pinctrl-names = "default";
pinctrl-0 = <&mmc1_pins_default>;
- vmmc-supply = <&ldo1_reg>;
+ vmmc_aux-supply = <&ldo1_reg>;
+ vmmc-supply = <&evm_3v3_sd>;
bus-width = <4>;
/*
* SDCD signal is not being used here - using the fact that GPIO mode
--
2.9.2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [U-Boot] [PATCH 2/2] ARM: dra7xx_evm: Enable regulator DM support
2016-08-10 9:47 [U-Boot] [PATCH 0/2] Enable usage of PCF GPIO line as regulator Vignesh R
2016-08-10 9:47 ` [U-Boot] [PATCH 1/2] ARM: dts: dra7xx-evm: add evm_3v3_sd regulator Vignesh R
@ 2016-08-10 9:47 ` Vignesh R
2016-08-10 12:46 ` Tom Rini
2016-08-12 19:53 ` [U-Boot] [U-Boot, " Tom Rini
1 sibling, 2 replies; 7+ messages in thread
From: Vignesh R @ 2016-08-10 9:47 UTC (permalink / raw)
To: u-boot
Enable DM based regulator framework and also fixed regulator support as
some IPs like mmc use regulators for there functioning.
Signed-off-by: Vignesh R <vigneshr@ti.com>
---
configs/dra7xx_evm_defconfig | 3 +++
configs/dra7xx_hs_evm_defconfig | 3 +++
2 files changed, 6 insertions(+)
diff --git a/configs/dra7xx_evm_defconfig b/configs/dra7xx_evm_defconfig
index 81d2a0e30a10..44393d7a3eba 100644
--- a/configs/dra7xx_evm_defconfig
+++ b/configs/dra7xx_evm_defconfig
@@ -59,3 +59,6 @@ CONFIG_SPL_LOAD_FIT=y
CONFIG_OF_LIST="dra7-evm dra72-evm"
CONFIG_DM_I2C=y
CONFIG_PCF8575_GPIO=y
+CONFIG_DM_REGULATOR=y
+CONFIG_DM_REGULATOR_FIXED=y
+CONFIG_CMD_REGULATOR=y
diff --git a/configs/dra7xx_hs_evm_defconfig b/configs/dra7xx_hs_evm_defconfig
index ab68b1ceaca8..ae08e6d7ddcb 100644
--- a/configs/dra7xx_hs_evm_defconfig
+++ b/configs/dra7xx_hs_evm_defconfig
@@ -62,3 +62,6 @@ CONFIG_SPL_FIT_IMAGE_POST_PROCESS=y
CONFIG_OF_LIST="dra7-evm dra72-evm"
CONFIG_DM_I2C=y
CONFIG_PCF8575_GPIO=y
+CONFIG_DM_REGULATOR=y
+CONFIG_DM_REGULATOR_FIXED=y
+CONFIG_CMD_REGULATOR=y
--
2.9.2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [U-Boot] [PATCH 1/2] ARM: dts: dra7xx-evm: add evm_3v3_sd regulator
2016-08-10 9:47 ` [U-Boot] [PATCH 1/2] ARM: dts: dra7xx-evm: add evm_3v3_sd regulator Vignesh R
@ 2016-08-10 12:46 ` Tom Rini
2016-08-12 19:53 ` [U-Boot] [U-Boot, " Tom Rini
1 sibling, 0 replies; 7+ messages in thread
From: Tom Rini @ 2016-08-10 12:46 UTC (permalink / raw)
To: u-boot
On Wed, Aug 10, 2016 at 03:17:20PM +0530, Vignesh R wrote:
> Add a node for evm_3v3_sd using onboard PCF GPIO expander which feeds
> on to mmc vdd.
> Update mapping for vmmc-supply and vmmc_aux-supply.
> evm_3v3_sd supplies to SD card vdd, and ldo1 to sdcard i/o lines.
>
> Signed-off-by: Vignesh R <vigneshr@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160810/4fbfe6e7/attachment.sig>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot] [PATCH 2/2] ARM: dra7xx_evm: Enable regulator DM support
2016-08-10 9:47 ` [U-Boot] [PATCH 2/2] ARM: dra7xx_evm: Enable regulator DM support Vignesh R
@ 2016-08-10 12:46 ` Tom Rini
2016-08-12 19:53 ` [U-Boot] [U-Boot, " Tom Rini
1 sibling, 0 replies; 7+ messages in thread
From: Tom Rini @ 2016-08-10 12:46 UTC (permalink / raw)
To: u-boot
On Wed, Aug 10, 2016 at 03:17:21PM +0530, Vignesh R wrote:
> Enable DM based regulator framework and also fixed regulator support as
> some IPs like mmc use regulators for there functioning.
>
> Signed-off-by: Vignesh R <vigneshr@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160810/76e3d05f/attachment.sig>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot] [U-Boot, 1/2] ARM: dts: dra7xx-evm: add evm_3v3_sd regulator
2016-08-10 9:47 ` [U-Boot] [PATCH 1/2] ARM: dts: dra7xx-evm: add evm_3v3_sd regulator Vignesh R
2016-08-10 12:46 ` Tom Rini
@ 2016-08-12 19:53 ` Tom Rini
1 sibling, 0 replies; 7+ messages in thread
From: Tom Rini @ 2016-08-12 19:53 UTC (permalink / raw)
To: u-boot
On Wed, Aug 10, 2016 at 03:17:20PM +0530, Vignesh R wrote:
> Add a node for evm_3v3_sd using onboard PCF GPIO expander which feeds
> on to mmc vdd.
> Update mapping for vmmc-supply and vmmc_aux-supply.
> evm_3v3_sd supplies to SD card vdd, and ldo1 to sdcard i/o lines.
>
> Signed-off-by: Vignesh R <vigneshr@ti.com>
> Reviewed-by: Tom Rini <trini@konsulko.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160812/149f7caa/attachment.sig>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot] [U-Boot, 2/2] ARM: dra7xx_evm: Enable regulator DM support
2016-08-10 9:47 ` [U-Boot] [PATCH 2/2] ARM: dra7xx_evm: Enable regulator DM support Vignesh R
2016-08-10 12:46 ` Tom Rini
@ 2016-08-12 19:53 ` Tom Rini
1 sibling, 0 replies; 7+ messages in thread
From: Tom Rini @ 2016-08-12 19:53 UTC (permalink / raw)
To: u-boot
On Wed, Aug 10, 2016 at 03:17:21PM +0530, Vignesh R wrote:
> Enable DM based regulator framework and also fixed regulator support as
> some IPs like mmc use regulators for there functioning.
>
> Signed-off-by: Vignesh R <vigneshr@ti.com>
> Reviewed-by: Tom Rini <trini@konsulko.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160812/4275edb1/attachment.sig>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2016-08-12 19:53 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-10 9:47 [U-Boot] [PATCH 0/2] Enable usage of PCF GPIO line as regulator Vignesh R
2016-08-10 9:47 ` [U-Boot] [PATCH 1/2] ARM: dts: dra7xx-evm: add evm_3v3_sd regulator Vignesh R
2016-08-10 12:46 ` Tom Rini
2016-08-12 19:53 ` [U-Boot] [U-Boot, " Tom Rini
2016-08-10 9:47 ` [U-Boot] [PATCH 2/2] ARM: dra7xx_evm: Enable regulator DM support Vignesh R
2016-08-10 12:46 ` Tom Rini
2016-08-12 19:53 ` [U-Boot] [U-Boot, " Tom Rini
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.