]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm64: zynqmp: Add pinctrl emmc description to SM-K26
authorMichal Simek <michal.simek@xilinx.com>
Mon, 14 Mar 2022 14:26:11 +0000 (15:26 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 16 Mar 2022 15:14:34 +0000 (16:14 +0100)
Production SOM has emmc on it and make sense to describe pin description to
be able use EMMC if it is not configured via psu_init.
(Still some regs are not handled but this is one step in that direction)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Link: https://lore.kernel.org/r/3545a0f08d342de98efc82b78f5725eda091555a.1647267969.git.michal.simek@xilinx.com
arch/arm/dts/zynqmp-sm-k26-revA.dts

index d242f8712b84e5f3e3175e8464018f146ea85a36..14ab31685dfeceb2c3ed3d3bb91c74d8e7392c71 100644 (file)
@@ -14,6 +14,7 @@
 #include <dt-bindings/input/input.h>
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/phy/phy.h>
+#include <dt-bindings/pinctrl/pinctrl-zynqmp.h>
 
 / {
        model = "ZynqMP SM-K26 Rev1/B/A";
        status = "okay";
 };
 
+&pinctrl0 {
+       status = "okay";
+       pinctrl_sdhci0_default: sdhci0-default {
+               conf {
+                       groups = "sdio0_0_grp";
+                       slew-rate = <SLEW_RATE_SLOW>;
+                       power-source = <IO_STANDARD_LVCMOS18>;
+                       bias-disable;
+               };
+
+               mux {
+                       groups = "sdio0_0_grp";
+                       function = "sdio0";
+               };
+       };
+};
+
 &qspi { /* MIO 0-5 - U143 */
        status = "okay";
        flash@0 { /* MT25QU512A */
 
 &sdhci0 { /* MIO13-23 - 16GB emmc MTFC16GAPALBH-IT - U133A */
        status = "okay";
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_sdhci0_default>;
        non-removable;
        disable-wp;
        bus-width = <8>;