Skip to content

Commit 13f74fc

Browse files
Faiz-AbbasTero Kristo
authored andcommitted
arm64: dts: ti: k3-am654-base-board: Add support for SD card
With silicon revision 2.0, add support for SD card on the am65x-evm. Boards with silicon revision 1.0 are susceptible to interface issues because of erratas i2025 and i2026[1] and are recommended to disable this node. [1] Am654x Silicon Revision 1.0 errata: https://www.ti.com/lit/pdf/sprz452 Signed-off-by: Faiz Abbas <[email protected]> Signed-off-by: Tero Kristo <[email protected]>
1 parent d7600d0 commit 13f74fc

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

arch/arm64/boot/dts/ti/k3-am654-base-board.dts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,19 @@
167167
>;
168168
};
169169

170+
main_mmc1_pins_default: main_mmc1_pins_default {
171+
pinctrl-single,pins = <
172+
AM65X_IOPAD(0x02d4, PIN_INPUT_PULLDOWN, 0) /* (C27) MMC1_CLK */
173+
AM65X_IOPAD(0x02d8, PIN_INPUT_PULLUP, 0) /* (C28) MMC1_CMD */
174+
AM65X_IOPAD(0x02d0, PIN_INPUT_PULLUP, 0) /* (D28) MMC1_DAT0 */
175+
AM65X_IOPAD(0x02cc, PIN_INPUT_PULLUP, 0) /* (E27) MMC1_DAT1 */
176+
AM65X_IOPAD(0x02c8, PIN_INPUT_PULLUP, 0) /* (D26) MMC1_DAT2 */
177+
AM65X_IOPAD(0x02c4, PIN_INPUT_PULLUP, 0) /* (D27) MMC1_DAT3 */
178+
AM65X_IOPAD(0x02dc, PIN_INPUT_PULLUP, 0) /* (B24) MMC1_SDCD */
179+
AM65X_IOPAD(0x02e0, PIN_INPUT, 0) /* (C24) MMC1_SDWP */
180+
>;
181+
};
182+
170183
usb1_pins_default: usb1_pins_default {
171184
pinctrl-single,pins = <
172185
AM65X_IOPAD(0x02c0, PIN_OUTPUT, 0) /* (AC8) USB1_DRVVBUS */
@@ -300,6 +313,18 @@
300313
disable-wp;
301314
};
302315

316+
/*
317+
* Because of erratas i2025 and i2026 for silicon revision 1.0, the
318+
* SD card interface might fail. Boards with sr1.0 are recommended to
319+
* disable sdhci1
320+
*/
321+
&sdhci1 {
322+
pinctrl-names = "default";
323+
pinctrl-0 = <&main_mmc1_pins_default>;
324+
ti,driver-strength-ohm = <50>;
325+
disable-wp;
326+
};
327+
303328
&dwc3_1 {
304329
status = "okay";
305330
};

0 commit comments

Comments
 (0)