1 From 068c8b508a0501de9bda9d6d9a8c4ddc06cf7ff8 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Wed, 4 Nov 2020 11:25:02 +0000
4 Subject: [PATCH] overlays: Deprecate and delete the sdtweak overlay
6 The sdtweak overlay has been superseded by the board-specific
7 sd_* parameters such as sd_poll_once, sd_overclock etc.
11 dtoverlay=sdtweak,poll_once
17 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
19 arch/arm/boot/dts/overlays/Makefile | 1 -
20 arch/arm/boot/dts/overlays/README | 27 +++----------------
21 arch/arm/boot/dts/overlays/overlay_map.dts | 4 +++
22 .../arm/boot/dts/overlays/sdtweak-overlay.dts | 25 -----------------
23 4 files changed, 8 insertions(+), 49 deletions(-)
24 delete mode 100644 arch/arm/boot/dts/overlays/sdtweak-overlay.dts
26 --- a/arch/arm/boot/dts/overlays/Makefile
27 +++ b/arch/arm/boot/dts/overlays/Makefile
28 @@ -158,7 +158,6 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
36 --- a/arch/arm/boot/dts/overlays/README
37 +++ b/arch/arm/boot/dts/overlays/README
38 @@ -2409,29 +2409,10 @@ Load: <Deprecated>
42 -Info: Tunes the bcm2835-sdhost SD/MMC driver
43 - N.B. This functionality is now available via the sd_* dtparams in the
45 -Load: dtoverlay=sdtweak,<param>=<val>
46 -Params: overclock_50 Clock (in MHz) to use when the MMC framework
49 - force_pio Disable DMA support (default off)
51 - pio_limit Number of blocks above which to use DMA
54 - debug Enable debug output (default off)
56 - poll_once Looks for a card once after booting. Useful
57 - for network booting scenarios to avoid the
58 - overhead of continuous polling. N.B. Using
59 - this option restricts the system to using a
60 - single card per boot (or none at all).
63 - enable Set to off to completely disable the interface
65 +Info: This overlay is now deprecated. Use the sd_* dtparams in the
66 + base DTB, e.g. "dtoverlay=sdtweak,poll_once" becomes
67 + "dtparam=sd_poll_once".
72 --- a/arch/arm/boot/dts/overlays/overlay_map.dts
73 +++ b/arch/arm/boot/dts/overlays/overlay_map.dts
75 deprecated = "use sdio,bus_width=1,gpios_22_25";
79 + deprecated = "use 'dtparam=sd_poll_once' etc.";
85 --- a/arch/arm/boot/dts/overlays/sdtweak-overlay.dts
91 -/* Provide backwards compatible aliases for the old sdhost dtparams. */
94 - compatible = "brcm,bcm2835";
98 - frag0: __overlay__ {
99 - brcm,overclock-50 = <0>;
100 - brcm,pio-limit = <1>;
105 - overclock_50 = <&frag0>,"brcm,overclock-50:0";
106 - force_pio = <&frag0>,"brcm,force-pio?";
107 - pio_limit = <&frag0>,"brcm,pio-limit:0";
108 - debug = <&frag0>,"brcm,debug?";
109 - enable = <&frag0>,"status";
110 - poll_once = <&frag0>,"non-removable?";