Skip to contentSkip to conversation

ARM: dts: dra7-evm: Add mmc1 node for micro-sd support

PATCH New Balaji T K 4 participants 9 messages Oct 7, 2013 – Oct 12, 2013 Device tree bindings

lore
Share & tools
lore

Balaji T K

author
#0 lore raw

PATCH v2 1/2 ARM: dts: dra7-evm: Add mmc1 node for micro-sd support

Add mmc1 dt node to dra7-evm board.
Input for ldo1 regulator is controlled by gpio 5 of pcf8575 chip (0x21) on i2c1 bus. When dt support for gpio-pcf857x is available, input supply will be modelled as cascaded regulator.

---
Rebase to for_3.13/dts

 arch/arm/boot/dts/dra7-evm.dts |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
arch/arm/boot/dts/dra7-evm.dts +6 -0
index fbbe406..65cd15a 100644
@@ -250,3 +250,9 @@
 	pinctrl-names = "default";
 	pinctrl-0 = <&uart3_pins>;
 };
+
+&mmc1 {
+	status = "okay";
+	vmmc-supply = <&ldo1_reg>;
+	bus-width = <4>;
+};
Signature · 1 line
1.7.5.4
author
#1 lore raw

PATCH 2/2 ARM: dts: dra7-evm: Add mmc2 node for eMMC support

Add mmc2 dt node to dra7-evm board
and model eMMC vcc as fixed regulator.

---
Rebase to for_3.13/dts
and removed ti,non-removable

 arch/arm/boot/dts/dra7-evm.dts |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
arch/arm/boot/dts/dra7-evm.dts +13 -0
index 65cd15a..3abf5f4 100644
@@ -17,6 +17,13 @@
 		device_type = "memory";
 		reg = <0x80000000 0x60000000>; /* 1536 MB */
 	};
+
+	mmc2_3v3: fixedregulator-mmc2 {
+		compatible = "regulator-fixed";
+		regulator-name = "mmc2_3v3";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+	};
 };
 
 &dra7_pmx_core {
@@ -256,3 +263,9 @@
 	vmmc-supply = <&ldo1_reg>;
 	bus-width = <4>;
 };
+
+&mmc2 {
+	status = "okay";
+	vmmc-supply = <&mmc2_3v3>;
+	bus-width = <8>;
+};
Signature · 1 line
1.7.5.4
#2 lore raw

PATCH 2/2 ARM: dts: dra7-evm: Add mmc2 node for eMMC support

Quoted 31 lines · Balaji T K

Add mmc2 dt node to dra7-evm board
and model eMMC vcc as fixed regulator.

---
Rebase to for_3.13/dts
and removed ti,non-removable

 arch/arm/boot/dts/dra7-evm.dts |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
arch/arm/boot/dts/dra7-evm.dts +7 -0
index 65cd15a..3abf5f4 100644
@@ -17,6 +17,13 @@
 		device_type = "memory";
 		reg = <0x80000000 0x60000000>; /* 1536 MB */
 	};
+
+	mmc2_3v3: fixedregulator-mmc2 {
+		compatible = "regulator-fixed";
+		regulator-name = "mmc2_3v3";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+	};
 };
 
 &dra7_pmx_core {

arch/arm/boot/dts/dra7-evm.dts line 271

Quoted 9 lines
arch/arm/boot/dts/dra7-evm.dts +6 -0
@@ -256,3 +263,9 @@
 	vmmc-supply = <&ldo1_reg>;
 	bus-width = <4>;
 };
+
+&mmc2 {
+	status = "okay";
+	vmmc-supply = <&mmc2_3v3>;
+	bus-width = <8>;
+};

boot tested on DRA7-EVM
voltage rail is correct based on schematics(rev d1) too.

Signature · 2 lines
Regards,
Nishanth Menon
#4 lore raw

PATCH v2 1/2 ARM: dts: dra7-evm: Add mmc1 node for micro-sd support

In reply to Balaji T K
Quoted 18 lines · Balaji T K

Add mmc1 dt node to dra7-evm board.
Input for ldo1 regulator is controlled by gpio 5 of pcf8575 chip (0x21) on i2c1 bus. When dt support for gpio-pcf857x is available, input supply will be modelled as cascaded regulator.

---
Rebase to for_3.13/dts

 arch/arm/boot/dts/dra7-evm.dts |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
arch/arm/boot/dts/dra7-evm.dts +0 -0
index fbbe406..65cd15a 100644

arch/arm/boot/dts/dra7-evm.dts line 258

Quoted 9 lines
arch/arm/boot/dts/dra7-evm.dts +6 -0
@@ -250,3 +250,9 @@
 	pinctrl-names = "default";
 	pinctrl-0 = <&uart3_pins>;
 };
+
+&mmc1 {
+	status = "okay";
+	vmmc-supply = <&ldo1_reg>;
+	bus-width = <4>;
+};

boot tested on DRA7-EVM
voltage rail is correct based on schematics(rev d1) too (LDO1->MMC1_3V3->SDcard).

Signature · 2 lines
Regards,
Nishanth Menon
author
#6 lore raw

PATCH v2 1/2 ARM: dts: dra7-evm: Add mmc1 node for micro-sd support

Quoted 10 lines · Sekhar Nori
Quoted 6 lines · Balaji T K

Add mmc1 dt node to dra7-evm board.
Input for ldo1 regulator is controlled by gpio 5 of pcf8575 chip (0x21) on i2c1 bus. When dt support for gpio-pcf857x is available, input supply will be modelled as cascaded regulator.

Hi Benoit,

Can you let me know if you have any comments on this patch series?

Thanks and Regards
Balaji T K

#7 lore raw

PATCH v2 1/2 ARM: dts: dra7-evm: Add mmc1 node for micro-sd support

Hi Balaji,

Quoted 7 lines · Balaji T K
Quoted 6 lines · Sekhar Nori
Quoted 5 lines · Balaji T K

Add mmc1 dt node to dra7-evm board.
Input for ldo1 regulator is controlled by gpio 5 of pcf8575 chip (0x21) on i2c1 bus. When dt support for gpio-pcf857x is available, input supply will be modelled as cascaded regulator.

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

Hi Benoit,

Can you let me know if you have any comments on this patch series?

The series looks good, and I've just applied it for 3.13.

Thanks,
Benoit

author
#8 lore raw

PATCH v2 1/2 ARM: dts: dra7-evm: Add mmc1 node for micro-sd support

Quoted 12 lines · Benoit Cousson

Hi Balaji,

Quoted 9 lines · Balaji T K
Quoted 8 lines · Sekhar Nori
Quoted 6 lines · Balaji T K

Add mmc1 dt node to dra7-evm board.
Input for ldo1 regulator is controlled by gpio 5 of pcf8575 chip (0x21) on i2c1 bus. When dt support for gpio-pcf857x is available, input supply will be modelled as cascaded regulator.

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

Hi Benoit,

Can you let me know if you have any comments on this patch series?

The series looks good, and I've just applied it for 3.13.

Thanks Benoit

- Balaji T K