aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/arch/arm/boot/dts/bcm2711.dtsi
diff options
context:
space:
mode:
authorNicolas Saenz Julienne <nsaenzjulienne@suse.de>2020-03-04 14:24:37 +0100
committerNicolas Saenz Julienne <nsaenzjulienne@suse.de>2020-03-09 21:18:03 +0100
commit3d2cbb64483691c8f8cf88e17d7d581d9402ac4b (patch)
tree9e518535df839c2cba17c07c9ba4c2481203f1ce /arch/arm/boot/dts/bcm2711.dtsi
parentARM: dts: bcm2711-rpi-4-b: Add SoC GPIO labels (diff)
downloadwireguard-linux-3d2cbb64483691c8f8cf88e17d7d581d9402ac4b.tar.xz
wireguard-linux-3d2cbb64483691c8f8cf88e17d7d581d9402ac4b.zip
ARM: dts: bcm2711: Move emmc2 into its own bus
Depending on bcm2711's revision its emmc2 controller might have different DMA constraints. Raspberry Pi 4's firmware will take care of updating those, but only if a certain alias is found in the device tree. So, move emmc2 into its own bus, so as not to pollute other devices with dma-ranges changes and create the emmc2bus alias. Based in Phil ELwell's downstream implementation. Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de> Link: https://lore.kernel.org/r/20200304132437.20164-1-nsaenzjulienne@suse.de
Diffstat (limited to 'arch/arm/boot/dts/bcm2711.dtsi')
-rw-r--r--arch/arm/boot/dts/bcm2711.dtsi25
1 files changed, 20 insertions, 5 deletions
diff --git a/arch/arm/boot/dts/bcm2711.dtsi b/arch/arm/boot/dts/bcm2711.dtsi
index d1e684d0acfd..a91cf68e3c4c 100644
--- a/arch/arm/boot/dts/bcm2711.dtsi
+++ b/arch/arm/boot/dts/bcm2711.dtsi
@@ -241,17 +241,32 @@
status = "disabled";
};
+ hvs@7e400000 {
+ interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
+ };
+ };
+
+ /*
+ * emmc2 has different DMA constraints based on SoC revisions. It was
+ * moved into its own bus, so as for RPi4's firmware to update them.
+ * The firmware will find whether the emmc2bus alias is defined, and if
+ * so, it'll edit the dma-ranges property below accordingly.
+ */
+ emmc2bus: emmc2bus {
+ compatible = "simple-bus";
+ #address-cells = <2>;
+ #size-cells = <1>;
+
+ ranges = <0x0 0x7e000000 0x0 0xfe000000 0x01800000>;
+ dma-ranges = <0x0 0xc0000000 0x0 0x00000000 0x40000000>;
+
emmc2: emmc2@7e340000 {
compatible = "brcm,bcm2711-emmc2";
- reg = <0x7e340000 0x100>;
+ reg = <0x0 0x7e340000 0x100>;
interrupts = <GIC_SPI 126 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clocks BCM2711_CLOCK_EMMC2>;
status = "disabled";
};
-
- hvs@7e400000 {
- interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
- };
};
arm-pmu {