Skip to content

Commit 51cdff4

Browse files
P33Mpelwell
authored andcommitted
arm: dts: change RP1 SDHCI controller compatible string
Also add a sdio-pi5 overlay which enables mmc0 on GPIOs 22-27, as was possible with earlier models of Pi. Signed-off-by: Jonathan Bell <[email protected]>
1 parent 80dd879 commit 51cdff4

File tree

5 files changed

+38
-2
lines changed

5 files changed

+38
-2
lines changed

arch/arm/boot/dts/overlays/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
226226
sc16is752-spi1.dtbo \
227227
sdhost.dtbo \
228228
sdio.dtbo \
229+
sdio-pi5.dtbo \
229230
seeed-can-fd-hat-v1.dtbo \
230231
seeed-can-fd-hat-v2.dtbo \
231232
sh1106-spi.dtbo \

arch/arm/boot/dts/overlays/README

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3936,6 +3936,13 @@ Info: This overlay is now deprecated. Use
39363936
Load: <Deprecated>
39373937

39383938

3939+
Name: sdio-pi5
3940+
Info: Selects the rp1_mmc0 interface and enables it on GPIOs 22-27.
3941+
Pi 5 only.
3942+
Load: dtoverlay=sdio-pi5
3943+
Params: <None>
3944+
3945+
39393946
Name: sdtweak
39403947
Info: This overlay is now deprecated. Use the sd_* dtparams in the
39413948
base DTB, e.g. "dtoverlay=sdtweak,poll_once" becomes

arch/arm/boot/dts/overlays/overlay_map.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,10 @@
260260
deprecated = "use sdio,bus_width=1,gpios_22_25";
261261
};
262262

263+
sdio-pi5 {
264+
bcm2712;
265+
};
266+
263267
sdtweak {
264268
deprecated = "use 'dtparam=sd_poll_once' etc.";
265269
};
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/dts-v1/;
2+
/plugin/;
3+
4+
/* SDIO/SD/MMC on RP1 bank 0 */
5+
6+
/{
7+
compatible = "brcm,bcm2712";
8+
9+
fragment@0 {
10+
target = <&rp1_mmc0>;
11+
frag0: __overlay__ {
12+
status = "okay";
13+
pinctrl-0 = <&rp1_sdio0_22_27>;
14+
pinctrl-names = "default";
15+
};
16+
};
17+
18+
fragment@1 {
19+
target = <&rp1_sdio_clk0>;
20+
frag1: __overlay__ {
21+
status = "okay";
22+
};
23+
};
24+
};

arch/arm/boot/dts/rp1.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,7 @@
962962

963963
rp1_mmc0: mmc@180000 {
964964
reg = <0xc0 0x40180000 0x0 0x100>;
965-
compatible = "snps,dwcmshc-sdhci";
965+
compatible = "raspberrypi,rp1-dwcmshc";
966966
interrupts = <RP1_INT_SDIO0 IRQ_TYPE_LEVEL_HIGH>;
967967
clocks = <&rp1_clocks RP1_CLK_SYS &sdhci_core
968968
&rp1_clocks RP1_CLK_SDIO_TIMER
@@ -978,7 +978,7 @@
978978

979979
rp1_mmc1: mmc@184000 {
980980
reg = <0xc0 0x40184000 0x0 0x100>;
981-
compatible = "snps,dwcmshc-sdhci";
981+
compatible = "raspberrypi,rp1-dwcmshc";
982982
interrupts = <RP1_INT_SDIO1 IRQ_TYPE_LEVEL_HIGH>;
983983
clocks = <&rp1_clocks RP1_CLK_SYS &sdhci_core
984984
&rp1_clocks RP1_CLK_SDIO_TIMER

0 commit comments

Comments
 (0)