Skip to content

Commit

Permalink
overlays: Add disable-emmc2
Browse files Browse the repository at this point in the history
Add a new overlay that disables the EMMC2 controller on BCM2711.
This can be useful on a Compute Module 4 if the onboard EMMC2
storage is unreliable and the system can be booted by other
means e.g Network / USB.

Signed-off-by: Tim Gover <[email protected]>
  • Loading branch information
timg236 authored and popcornmix committed Dec 21, 2022
1 parent e1cf36c commit 696dcc7
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm/boot/dts/overlays/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
dionaudio-loco.dtbo \
dionaudio-loco-v2.dtbo \
disable-bt.dtbo \
disable-emmc2.dtbo \
disable-wifi.dtbo \
dpi18.dtbo \
dpi18cpadhi.dtbo \
Expand Down
8 changes: 8 additions & 0 deletions arch/arm/boot/dts/overlays/README
Original file line number Diff line number Diff line change
Expand Up @@ -895,6 +895,14 @@ Load: dtoverlay=disable-bt
Params: <None>


Name: disable-emmc2
Info: Disable EMMC2 controller on BCM2711.
The allows the onboard EMMC storage on Compute Module 4 to be disabled
e.g. if a fault has occurred.
Load: dtoverlay=disable-emmc2
Params: <None>


Name: disable-wifi
Info: Disable onboard WLAN on Pi 3B, 3B+, 3A+, 4B and Zero W.
Load: dtoverlay=disable-wifi
Expand Down
13 changes: 13 additions & 0 deletions arch/arm/boot/dts/overlays/disable-emmc2-overlay.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/dts-v1/;
/plugin/;

/{
compatible = "brcm,bcm2711";

fragment@0 {
target = <&emmc2>;
__overlay__ {
status = "disabled";
};
};
};
4 changes: 4 additions & 0 deletions arch/arm/boot/dts/overlays/overlay_map.dts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
bcm2711;
};

disable-emmc2 {
bcm2711;
};

highperi {
bcm2711;
};
Expand Down

0 comments on commit 696dcc7

Please sign in to comment.