]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: dts: include gpio nodes for card detect
authorWalter Lozano <walter.lozano@collabora.com>
Thu, 25 Jun 2020 04:10:15 +0000 (01:10 -0300)
committerSimon Glass <sjg@chromium.org>
Fri, 10 Jul 2020 04:00:29 +0000 (22:00 -0600)
Several MMC drivers use GPIO for card detection with cd-gpios property in
the MMC node pointing to a GPIO node. However, as U-Boot tries to save
space by keeping only required nodes using u-boot* properties, several
devices tree result in having only in the MMC node but not the GPIO node
associated to cd-gpios.

This patch, fixes several ocurrence of this issue.

Signed-off-by: Walter Lozano <walter.lozano@collabora.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Adam Ford <aford173@gmail.com> #da850-evm
arch/arm/dts/da850-evm-u-boot.dtsi
arch/arm/dts/da850-lcdk-u-boot.dtsi
arch/arm/dts/rk3288-u-boot.dtsi
arch/arm/dts/rk3288-veyron-speedy-u-boot.dtsi
arch/arm/dts/rk3288-veyron-u-boot.dtsi [new file with mode: 0644]

index d9afc5edf45a5385b0a107432b2a71dbab89b449..d588628641e1ff1e7f84128df053b967a7386fb8 100644 (file)
@@ -39,3 +39,7 @@
 &spi1 {
        u-boot,dm-spl;
 };
+
+&gpio {
+       u-boot,dm-spl;
+};
index b372d06ca97bb4b44db666d4a88aa37b27b38540..d50775c173e2bf16d1ef8e05031cb3179d40f9bd 100644 (file)
@@ -28,3 +28,7 @@
 &serial2 {
        u-boot,dm-spl;
 };
+
+&gpio {
+       u-boot,dm-spl;
+};
index 6d31735362d3e0f605c48e61248d62acd009c7fe..51b6e018bd73e2c9bdd2b16a34f069ae705326a9 100644 (file)
@@ -43,3 +43,7 @@
 &noc {
        u-boot,dm-pre-reloc;
 };
+
+&gpio7 {
+       u-boot,dm-pre-reloc;
+};
index eccc0693688a240e6505144f22c8ce146e967fe4..251fbdee71aabe3236d508d07e9023eb9975a8b8 100644 (file)
@@ -3,7 +3,7 @@
  * Copyright 2015 Google, Inc
  */
 
-#include "rk3288-u-boot.dtsi"
+#include "rk3288-veyron-u-boot.dtsi"
 
 &dmc {
        rockchip,pctl-timing = <0x215 0xc8 0x0 0x35 0x26 0x2 0x70 0x2000d
diff --git a/arch/arm/dts/rk3288-veyron-u-boot.dtsi b/arch/arm/dts/rk3288-veyron-u-boot.dtsi
new file mode 100644 (file)
index 0000000..899fe6e
--- /dev/null
@@ -0,0 +1,11 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright 2015 Google, Inc
+ */
+
+#include "rk3288-u-boot.dtsi"
+
+&gpio7 {
+       u-boot,dm-pre-reloc;
+};
+