difos/target/linux/bcm27xx/patches-6.12/950-0921-ARM64-dts-Add-sd-and-sd_poll_once-params-to-CM5.patch
Álvaro Fernández Rojas 8f9e91ad03 bcm27xx: add 6.12 patches from RPi repo
These patches were generated from:
https://github.com/raspberrypi/linux/commits/rpi-6.12.y
With the following command:
git format-patch -N v6.12.27..HEAD
(HEAD -> 8d3206ee456a5ecdf9ddbfd8e5e231e4f0cd716e)

Exceptions:
- (def)configs patches
- github workflows patches
- applied & reverted patches
- readme patches
- wireless patches

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2025-05-21 11:32:18 +02:00

39 lines
1.5 KiB
Diff

From 18a5b4ee0f8d4e08b8cda6cb1ceaf315b58ad369 Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.com>
Date: Thu, 27 Mar 2025 14:00:08 +0000
Subject: [PATCH] ARM64: dts: Add sd and sd_poll_once params to CM5
The CM5 lacks a card detect signal, so it can be useful to be able
to disable the external SD card slot (or onboard EMMC on a non-Lite
board).
See: https://github.com/raspberrypi/linux/issues/6647
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
---
arch/arm/boot/dts/overlays/README | 2 +-
arch/arm64/boot/dts/broadcom/bcm2712-rpi-cm5.dtsi | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
--- a/arch/arm/boot/dts/overlays/README
+++ b/arch/arm/boot/dts/overlays/README
@@ -402,7 +402,7 @@ Params:
(2712 only, default "0")
sd Set to "off" to disable the SD card (or eMMC on
- non-lite SKU of CM4).
+ non-lite SKU of CM4/5).
(default "on")
sd_cqe Modify Command Queuing behaviour on the main SD
--- a/arch/arm64/boot/dts/broadcom/bcm2712-rpi-cm5.dtsi
+++ b/arch/arm64/boot/dts/broadcom/bcm2712-rpi-cm5.dtsi
@@ -719,6 +719,8 @@ spi10_cs_pins: &spi10_cs_gpio1 {};
<&ant2>, "output-low?=on";
noanthogs = <&ant1>,"status=disabled",
<&ant2>, "status=disabled";
+ sd = <&sdio1>, "status";
+ sd_poll_once = <&sdio1>, "non-removable?";
sd_cqe = <&sdio1>, "supports-cqe:0";
};
};