Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions arch/arm/boot/dts/overlays/README
Original file line number Diff line number Diff line change
Expand Up @@ -4737,6 +4737,13 @@ Params: overclock_50 Clock (in MHz) to use when the MMC framework

debug Enable debug output (default off)

bus_width MMC bus width (default 1)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The default bus-width is theoretically platform-dependent, but in practice it is always going to be 4.


gpios_22_27 Route SD0 to GPIO 22-27 (CLK, CMD, DAT0-3)
for use with a secondary SD card slot on
custom carrier boards (e.g. CM4 baseboard).
Applies ALT0 function and appropriate pulls.


Name: sdio
Info: Selects the bcm2835-sdhost SD/MMC driver, optionally with overclock,
Expand Down
21 changes: 21 additions & 0 deletions arch/arm/boot/dts/overlays/sdhost-overlay.dts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,31 @@
};
};

fragment@3 {
target = <&gpio>;
__dormant__ {
sdhost_gpio_22_27: sdhost_gpio_22_27 {
brcm,pins = <22 23 24 25 26 27>;
brcm,function = <4>;
brcm,pull = <0 2 2 2 2 2>;
};
};
};

fragment@4 {
target = <&sdhost>;
__dormant__ {
pinctrl-names = "default";
pinctrl-0 = <&sdhost_gpio_22_27>;
};
};

__overrides__ {
overclock_50 = <&frag0>,"brcm,overclock-50:0";
force_pio = <&frag0>,"brcm,force-pio?";
pio_limit = <&frag0>,"brcm,pio-limit:0";
debug = <&frag0>,"brcm,debug?";
bus_width = <&frag0>,"bus-width:0";
gpios_22_27 = <0>,"+3+4";
};
};
Loading