brcm2708: add kernel 4.14 support
[openwrt/staging/chunkeey.git] / target / linux / brcm2708 / patches-4.14 / 950-0237-overlays-Add-updated-mmc1-alias-to-sdio-overlays.patch
1 From 8229937ec299133cf93654b9afc46e5288767ace Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Thu, 1 Mar 2018 21:36:30 +0000
4 Subject: [PATCH 237/454] overlays: Add updated mmc1 alias to sdio overlays
5
6 In the downstream RPi kernel, aliases are used to assign instance
7 numbers to the SD/MMC interfaces. The updated sdio overlays
8 effectively rename the device node, so the mmc1 alias has to be
9 updated in order to preserve the mmc1 numbering, otherwise the device
10 will appear as mmc2.
11
12 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
13 ---
14 arch/arm/boot/dts/overlays/sdio-1bit-overlay.dts | 8 ++++++++
15 arch/arm/boot/dts/overlays/sdio-overlay.dts | 7 +++++++
16 2 files changed, 15 insertions(+)
17
18 --- a/arch/arm/boot/dts/overlays/sdio-1bit-overlay.dts
19 +++ b/arch/arm/boot/dts/overlays/sdio-1bit-overlay.dts
20 @@ -48,6 +48,14 @@
21 };
22 };
23
24 + fragment@3 {
25 + target-path = "/aliases";
26 + __overlay__ {
27 + mmc1 = "/soc/sdio@7e300000";
28 + };
29 + };
30 +
31 +
32 __overrides__ {
33 poll_once = <&sdio_1bit>,"non-removable?";
34 sdio_overclock = <&sdio_1bit>,"brcm,overclock-50:0";
35 --- a/arch/arm/boot/dts/overlays/sdio-overlay.dts
36 +++ b/arch/arm/boot/dts/overlays/sdio-overlay.dts
37 @@ -48,6 +48,13 @@
38 };
39 };
40
41 + fragment@3 {
42 + target-path = "/aliases";
43 + __overlay__ {
44 + mmc1 = "/soc/sdio@7e300000";
45 + };
46 + };
47 +
48 __overrides__ {
49 poll_once = <&sdio_ovl>,"non-removable?";
50 bus_width = <&sdio_ovl>,"bus-width:0";