public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Fabio Estevam <festevam@gmail.com>
To: sbabic@denx.de
Cc: pbrobinson@gmail.com, trini@konsulko.com, u-boot@lists.denx.de,
	Fabio Estevam <festevam@gmail.com>
Subject: [PATCH 2/6] ARM: dts: imx6qdl-udoo: Properly describe the SD card detect
Date: Sat, 18 Dec 2021 18:10:21 -0300	[thread overview]
Message-ID: <20211218211025.770362-2-festevam@gmail.com> (raw)
In-Reply-To: <20211218211025.770362-1-festevam@gmail.com>

GPIO7_IO00 is used as SD card detect.

Properly describe this in the devicetree.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
---
 arch/arm/dts/imx6qdl-udoo.dtsi | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/arch/arm/dts/imx6qdl-udoo.dtsi b/arch/arm/dts/imx6qdl-udoo.dtsi
index d07d8f83456d..2d0d102661bd 100644
--- a/arch/arm/dts/imx6qdl-udoo.dtsi
+++ b/arch/arm/dts/imx6qdl-udoo.dtsi
@@ -4,7 +4,7 @@
  *
  * Author: Fabio Estevam <fabio.estevam@freescale.com>
  */
-
+#include <dt-bindings/gpio/gpio.h>
 / {
 	aliases {
 		backlight = &backlight;
@@ -226,6 +226,7 @@
 				MX6QDL_PAD_SD3_DAT1__SD3_DATA1		0x17059
 				MX6QDL_PAD_SD3_DAT2__SD3_DATA2		0x17059
 				MX6QDL_PAD_SD3_DAT3__SD3_DATA3		0x17059
+				MX6QDL_PAD_SD3_DAT5__GPIO7_IO00		0x1b0b0
 			>;
 		};
 
@@ -304,7 +305,7 @@
 &usdhc3 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_usdhc3>;
-	non-removable;
+	cd-gpios = <&gpio7 0 GPIO_ACTIVE_LOW>;
 	status = "okay";
 };
 
-- 
2.25.1


  reply	other threads:[~2021-12-18 21:10 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-18 21:10 [PATCH 1/6] udoo_spl: Initialize the eSDHC controller in SPL Fabio Estevam
2021-12-18 21:10 ` Fabio Estevam [this message]
2021-12-19 15:54   ` [PATCH 2/6] ARM: dts: imx6qdl-udoo: Properly describe the SD card detect Peter Robinson
2021-12-19 22:43     ` Fabio Estevam
2022-01-09  1:27   ` Tom Rini
2021-12-18 21:10 ` [PATCH 3/6] udoo: Call gpio_request() Fabio Estevam
2021-12-20 16:10   ` Peter Robinson
2022-01-09  1:27   ` Tom Rini
2021-12-18 21:10 ` [PATCH 4/6] udoo: Adjust the SD card device numbering Fabio Estevam
2021-12-21  9:52   ` Peter Robinson
2022-01-09  1:27   ` Tom Rini
2021-12-18 21:10 ` [PATCH 5/6] udoo: Increase CONFIG_ENV_OFFSET Fabio Estevam
2021-12-21  9:52   ` Peter Robinson
2022-01-09  1:27   ` Tom Rini
2021-12-18 21:10 ` [PATCH 6/6] udoo: Select CMD_DM Fabio Estevam
2021-12-21  9:53   ` Peter Robinson
2022-01-09  1:27   ` Tom Rini
2021-12-20 16:09 ` [PATCH 1/6] udoo_spl: Initialize the eSDHC controller in SPL Peter Robinson
2021-12-23 15:03   ` Fabio Estevam
2022-01-07 20:17     ` Fabio Estevam
2022-01-09  1:27 ` Tom Rini

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=20211218211025.770362-2-festevam@gmail.com \
    --to=festevam@gmail.com \
    --cc=pbrobinson@gmail.com \
    --cc=sbabic@denx.de \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox