Skip to content

Commit d886bae

Browse files
committed
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 694da98 commit d886bae

File tree

3 files changed

+27
-2
lines changed

3 files changed

+27
-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 \
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)