bcm27xx: update to latest patches from RPi foundation
[openwrt/openwrt.git] / target / linux / bcm27xx / patches-5.4 / 950-0640-dts-bcm2711-Move-emmc2-to-its-own-bus.patch
1 From f97ba33547711d727fbbcb10eb046f8ac605a966 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Thu, 5 Dec 2019 18:02:08 +0000
4 Subject: [PATCH] dts: bcm2711: Move emmc2 to its own "bus"
5
6 Moving the EMMC2 controller under a dedicated bus allows the firmware
7 to patch the dma-ranges property for different memory sizes without
8 affecting anything else.
9
10 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
11 ---
12 arch/arm/boot/dts/bcm2711-rpi-4-b.dts | 22 ++++++++++++++++++++++
13 1 file changed, 22 insertions(+)
14
15 --- a/arch/arm/boot/dts/bcm2711-rpi-4-b.dts
16 +++ b/arch/arm/boot/dts/bcm2711-rpi-4-b.dts
17 @@ -193,6 +193,8 @@
18 #include "bcm2711-rpi.dtsi"
19 #include "bcm283x-rpi-csi1-2lane.dtsi"
20
21 +/delete-node/ &emmc2;
22 +
23 / {
24 chosen {
25 bootargs = "coherent_pool=1M 8250.nr_uarts=1";
26 @@ -212,6 +214,26 @@
27 /delete-property/ ethernet;
28 /delete-property/ intc;
29 pcie0 = &pcie0;
30 + emmc2bus = &emmc2bus;
31 + };
32 +
33 + emmc2bus: emmc2bus {
34 + compatible = "simple-bus";
35 + #address-cells = <2>;
36 + #size-cells = <1>;
37 +
38 + ranges = <0x0 0x7e000000 0x0 0xfe000000 0x01800000>;
39 + dma-ranges = <0x0 0xc0000000 0x0 0x00000000 0x3c000000>;
40 +
41 + emmc2: emmc2@7e340000 {
42 + compatible = "brcm,bcm2711-emmc2";
43 + status = "okay";
44 + interrupts = <GIC_SPI 126 IRQ_TYPE_LEVEL_HIGH>;
45 + clocks = <&clocks BCM2711_CLOCK_EMMC2>;
46 + reg = <0x0 0x7e340000 0x100>;
47 + vqmmc-supply = <&sd_io_1v8_reg>;
48 + broken-cd;
49 + };
50 };
51
52 /delete-node/ wifi-pwrseq;