arm: dts: k3-j721e-common-proc-board: Add pinmux for SD card
authorFaiz Abbas <faiz_abbas@ti.com>
Thu, 16 Jan 2020 14:12:21 +0000 (19:42 +0530)
committerLokesh Vutla <lokeshvutla@ti.com>
Mon, 20 Jan 2020 04:40:28 +0000 (10:10 +0530)
Add pinmux for sdhci1 node connected to the SD card.

Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
arch/arm/dts/k3-j721e-common-proc-board-u-boot.dtsi
arch/arm/dts/k3-j721e-common-proc-board.dts
arch/arm/dts/k3-j721e-r5-common-proc-board.dts

index 9ca025c4c5176f35e7c4ceeb59eb92f833a6b5e1..aff0efaca85d7abdcc77ca18f45bfa03ecec934d 100644 (file)
                reg-names = "gmii-sel";
        };
 };
+
+&main_mmc1_pins_default {
+       u-boot,dm-spl;
+};
index 72110d634dbe4d46dce73c7f096a1113de8e16fe..9ed538ca8c89297f9a56bcd29cf72641429f4429 100644 (file)
        status = "disabled";
 };
 
+&main_pmx0 {
+       main_mmc1_pins_default: main_mmc1_pins_default {
+               pinctrl-single,pins = <
+                       J721E_IOPAD(0x254, PIN_INPUT, 0) /* (R29) MMC1_CMD */
+                       J721E_IOPAD(0x250, PIN_INPUT, 0) /* (P25) MMC1_CLK */
+                       J721E_IOPAD(0x2ac, PIN_INPUT, 0) /* (P25) MMC1_CLKLB */
+                       J721E_IOPAD(0x24c, PIN_INPUT, 0) /* (R24) MMC1_DAT0 */
+                       J721E_IOPAD(0x248, PIN_INPUT, 0) /* (P24) MMC1_DAT1 */
+                       J721E_IOPAD(0x244, PIN_INPUT, 0) /* (R25) MMC1_DAT2 */
+                       J721E_IOPAD(0x240, PIN_INPUT, 0) /* (R26) MMC1_DAT3 */
+                       J721E_IOPAD(0x258, PIN_INPUT, 0) /* (P23) MMC1_SDCD */
+                       J721E_IOPAD(0x25c, PIN_INPUT, 0) /* (R28) MMC1_SDWP */
+               >;
+       };
+};
+
 &main_sdhci0 {
        /* eMMC */
        non-removable;
@@ -72,7 +88,9 @@
 };
 
 &main_sdhci1 {
-       /* SD/MMC */
+       /* SD card */
+       pinctrl-names = "default";
+       pinctrl-0 = <&main_mmc1_pins_default>;
        ti,driver-strength-ohm = <50>;
 };
 
index 1a8e1078611010326112a337c6b35ccc2aca74bc..28a355d49c9b10af64bb28a1bbe9c59b993c73b0 100644 (file)
                        J721E_IOPAD(0x210, PIN_INPUT, 7) /* (W3) MCAN1_RX.GPIO1_3 */
                >;
        };
+
+       main_mmc1_pins_default: main_mmc1_pins_default {
+               pinctrl-single,pins = <
+                       J721E_IOPAD(0x254, PIN_INPUT, 0) /* (R29) MMC1_CMD */
+                       J721E_IOPAD(0x250, PIN_INPUT, 0) /* (P25) MMC1_CLK */
+                       J721E_IOPAD(0x2ac, PIN_INPUT, 0) /* (P25) MMC1_CLKLB */
+                       J721E_IOPAD(0x24c, PIN_INPUT, 0) /* (R24) MMC1_DAT0 */
+                       J721E_IOPAD(0x248, PIN_INPUT, 0) /* (P24) MMC1_DAT1 */
+                       J721E_IOPAD(0x244, PIN_INPUT, 0) /* (R25) MMC1_DAT2 */
+                       J721E_IOPAD(0x240, PIN_INPUT, 0) /* (R26) MMC1_DAT3 */
+                       J721E_IOPAD(0x258, PIN_INPUT, 0) /* (P23) MMC1_SDCD */
+                       J721E_IOPAD(0x25c, PIN_INPUT, 0) /* (R28) MMC1_SDWP */
+               >;
+       };
 };
 
 &wkup_uart0 {
        /delete-property/ power-domains;
        /delete-property/ assigned-clocks;
        /delete-property/ assigned-clock-parents;
+       pinctrl-names = "default";
+       pinctrl-0 = <&main_mmc1_pins_default>;
        clock-names = "clk_xin";
        clocks = <&clk_200mhz>;
        ti,driver-strength-ohm = <50>;