All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: linux-arm-kernel@lists.infradead.org
Cc: Marek Vasut <marex@denx.de>,
	Alexandre Torgue <alexandre.torgue@st.com>,
	Patrice Chotard <patrice.chotard@st.com>,
	Patrick Delaunay <patrick.delaunay@st.com>,
	Maxime Coquelin <mcoquelin.stm32@gmail.com>,
	Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>,
	linux-stm32@st-md-mailman.stormreply.com
Subject: [PATCH V5 08/20] ARM: dts: stm32: Repair SDMMC1 operation on AV96
Date: Wed, 22 Apr 2020 12:46:01 +0200	[thread overview]
Message-ID: <20200422104613.96944-9-marex@denx.de> (raw)
In-Reply-To: <20200422104613.96944-1-marex@denx.de>

The SD uses different pinmux for the D123DIRline, use such a pinmux,
otherwise there is a pinmux collision on the AV96. Add missing SD
voltage regulator switch.

Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Alexandre Torgue <alexandre.torgue@st.com>
Cc: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>
Cc: Patrice Chotard <patrice.chotard@st.com>
Cc: Patrick Delaunay <patrick.delaunay@st.com>
Cc: linux-stm32@st-md-mailman.stormreply.com
To: linux-arm-kernel@lists.infradead.org
---
V2: Disable SDR104, it seems unstable thus far
V3: No change
V4: Rebase on stm32-next
V5: Reorder this patch after the PMIC patches
---
 arch/arm/boot/dts/stm32mp157a-avenger96.dts | 21 ++++++++++++++++++---
 1 file changed, 18 insertions(+), 3 deletions(-)

diff --git a/arch/arm/boot/dts/stm32mp157a-avenger96.dts b/arch/arm/boot/dts/stm32mp157a-avenger96.dts
index 8198e22d81e7..1219e2b35c50 100644
--- a/arch/arm/boot/dts/stm32mp157a-avenger96.dts
+++ b/arch/arm/boot/dts/stm32mp157a-avenger96.dts
@@ -78,6 +78,20 @@ led6 {
 		};
 	};
 
+	sd_switch: regulator-sd_switch {
+		compatible = "regulator-gpio";
+		regulator-name = "sd_switch";
+		regulator-min-microvolt = <1800000>;
+		regulator-max-microvolt = <2900000>;
+		regulator-type = "voltage";
+		regulator-always-on;
+
+		gpios = <&gpioi 5 GPIO_ACTIVE_HIGH>;
+		gpios-states = <0>;
+		states = <1800000 0x1>,
+			 <2900000 0x0>;
+	};
+
 	/* Enpirion EP3A8LQI U2 on the DHCOR */
 	vdd_io: regulator-buck-io {
 		compatible = "regulator-fixed";
@@ -310,9 +324,9 @@ &rtc {
 
 &sdmmc1 {
 	pinctrl-names = "default", "opendrain", "sleep";
-	pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_dir_pins_a>;
-	pinctrl-1 = <&sdmmc1_b4_od_pins_a>;
-	pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>;
+	pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_dir_pins_b>;
+	pinctrl-1 = <&sdmmc1_b4_od_pins_a &sdmmc1_dir_pins_b>;
+	pinctrl-2 = <&sdmmc1_b4_sleep_pins_a &sdmmc1_dir_sleep_pins_b>;
 	cd-gpios = <&gpioi 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
 	disable-wp;
 	st,sig-dir;
@@ -320,6 +334,7 @@ &sdmmc1 {
 	st,use-ckin;
 	bus-width = <4>;
 	vmmc-supply = <&vdd_sd>;
+	vqmmc-supply = <&sd_switch>;
 	status = "okay";
 };
 
-- 
2.25.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  parent reply	other threads:[~2020-04-22 10:48 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-22 10:45 [PATCH V5 00/20] ARM: dts: stm32: Repair AV96 board Marek Vasut
2020-04-22 10:45 ` [PATCH V5 01/20] ARM: dts: stm32: Repair PMIC configuration on AV96 Marek Vasut
2020-04-22 10:45 ` [PATCH V5 02/20] ARM: dts: stm32: Repair PMIC interrupt " Marek Vasut
2020-04-22 10:45 ` [PATCH V5 03/20] ARM: dts: stm32: Add alternate pinmux for ethernet RGMII Marek Vasut
2020-04-22 10:45 ` [PATCH V5 04/20] ARM: dts: stm32: Repair ethernet operation on AV96 Marek Vasut
2020-04-22 10:45 ` [PATCH V5 05/20] ARM: dts: stm32: Add missing ethernet PHY reset " Marek Vasut
2020-04-22 10:45 ` [PATCH V5 06/20] ARM: dts: stm32: Add missing ethernet PHY skews " Marek Vasut
2020-04-22 10:46 ` [PATCH V5 07/20] ARM: dts: stm32: Add alternate pinmux for SDMMC pins Marek Vasut
2020-04-22 10:46 ` Marek Vasut [this message]
2020-04-22 10:46 ` [PATCH V5 09/20] ARM: dts: stm32: Add eMMC attached to SDMMC2 on AV96 Marek Vasut
2020-04-22 10:46 ` [PATCH V5 10/20] ARM: dts: stm32: Add QSPI NOR " Marek Vasut
2020-04-22 10:46 ` [PATCH V5 11/20] ARM: dts: stm32: Add configuration EEPROM " Marek Vasut
2020-04-22 10:46 ` [PATCH V5 12/20] ARM: dts: stm32: Enable WiFi " Marek Vasut
2020-04-22 10:46 ` [PATCH V5 13/20] ARM: dts: stm32: Add alternate pinmux for USART2 pins Marek Vasut
2020-04-22 10:46 ` [PATCH V5 14/20] ARM: dts: stm32: Enable Bluetooth on AV96 Marek Vasut
2020-04-22 10:46 ` [PATCH V5 15/20] ARM: dts: stm32: Add alternate pinmux for LTDC pins Marek Vasut
2020-04-22 10:46 ` [PATCH V5 16/20] ARM: dts: stm32: Add bindings for HDMI video on AV96 Marek Vasut
2020-04-22 10:46 ` [PATCH V5 17/20] ARM: dts: stm32: Add alternate pinmux for SAI2 pins Marek Vasut
2020-04-22 10:46 ` [PATCH V5 18/20] ARM: dts: stm32: Add bindings for audio on AV96 Marek Vasut
2020-04-22 10:46 ` [PATCH V5 19/20] ARM: dts: stm32: Add bindings for USB " Marek Vasut
2020-04-22 10:46 ` [PATCH V5 20/20] ARM: dts: stm32: Rename LEDs to match silkscreen " Marek Vasut
2020-04-23 13:36 ` [PATCH V5 00/20] ARM: dts: stm32: Repair AV96 board Alexandre Torgue
2020-04-23 14:04   ` Marek Vasut
2020-04-28 13:32     ` Marek Vasut
2020-04-28 13:54       ` Alexandre Torgue
2020-04-28 14:04         ` Marek Vasut
2020-04-29  7:56 ` Alexandre Torgue
2020-04-29 16:40   ` Marek Vasut
2020-04-30  7:39     ` Alexandre Torgue
2020-04-30  8:22       ` Marek Vasut

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200422104613.96944-9-marex@denx.de \
    --to=marex@denx.de \
    --cc=alexandre.torgue@st.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-stm32@st-md-mailman.stormreply.com \
    --cc=manivannan.sadhasivam@linaro.org \
    --cc=mcoquelin.stm32@gmail.com \
    --cc=patrice.chotard@st.com \
    --cc=patrick.delaunay@st.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.