Skip to content

Commit 30f55ea

Browse files
committed
Merge tag 'arm-soc/for-5.5/devicetree-part2' of https://github.com/Broadcom/stblinux into arm/fixes
This pull request contains the second batch of changes for Broadcom ARM-based SoCs, please pull the following: - Nicolas declares a CMA area within the first 1GB of DRAM in order for it to be guaranteed to reside there, otherwise ARM64's memory initialization will pick up a CMA area within ZONE_DMA32 - Stefan adds the Device Tree node for the built-in Ethernet controller (GENET) on the Raspberry Pi 4 model B board * tag 'arm-soc/for-5.5/devicetree-part2' of https://github.com/Broadcom/stblinux: ARM: dts: bcm2711-rpi-4: Enable GENET support ARM: dts: bcm2711: force CMA into first GB of memory Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Olof Johansson <[email protected]>
2 parents 916a914 + be8af7a commit 30f55ea

File tree

2 files changed

+63
-0
lines changed

2 files changed

+63
-0
lines changed

arch/arm/boot/dts/bcm2711-rpi-4-b.dts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
reg = <0 0 0>;
2020
};
2121

22+
aliases {
23+
ethernet0 = &genet;
24+
};
25+
2226
leds {
2327
act {
2428
gpios = <&gpio 42 GPIO_ACTIVE_HIGH>;
@@ -97,6 +101,19 @@
97101
status = "okay";
98102
};
99103

104+
&genet {
105+
phy-handle = <&phy1>;
106+
phy-mode = "rgmii-rxid";
107+
status = "okay";
108+
};
109+
110+
&genet_mdio {
111+
phy1: ethernet-phy@1 {
112+
/* No PHY interrupt */
113+
reg = <0x1>;
114+
};
115+
};
116+
100117
/* uart0 communicates with the BT module */
101118
&uart0 {
102119
pinctrl-names = "default";

arch/arm/boot/dts/bcm2711.dtsi

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,26 @@
1212

1313
interrupt-parent = <&gicv2>;
1414

15+
reserved-memory {
16+
#address-cells = <2>;
17+
#size-cells = <1>;
18+
ranges;
19+
20+
/*
21+
* arm64 reserves the CMA by default somewhere in ZONE_DMA32,
22+
* that's not good enough for the BCM2711 as some devices can
23+
* only address the lower 1G of memory (ZONE_DMA).
24+
*/
25+
linux,cma {
26+
compatible = "shared-dma-pool";
27+
size = <0x2000000>; /* 32MB */
28+
alloc-ranges = <0x0 0x00000000 0x40000000>;
29+
reusable;
30+
linux,cma-default;
31+
};
32+
};
33+
34+
1535
soc {
1636
/*
1737
* Defined ranges:
@@ -305,6 +325,32 @@
305325
cpu-release-addr = <0x0 0x000000f0>;
306326
};
307327
};
328+
329+
scb {
330+
compatible = "simple-bus";
331+
#address-cells = <2>;
332+
#size-cells = <1>;
333+
334+
ranges = <0x0 0x7c000000 0x0 0xfc000000 0x03800000>;
335+
336+
genet: ethernet@7d580000 {
337+
compatible = "brcm,bcm2711-genet-v5";
338+
reg = <0x0 0x7d580000 0x10000>;
339+
#address-cells = <0x1>;
340+
#size-cells = <0x1>;
341+
interrupts = <GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>,
342+
<GIC_SPI 158 IRQ_TYPE_LEVEL_HIGH>;
343+
status = "disabled";
344+
345+
genet_mdio: mdio@e14 {
346+
compatible = "brcm,genet-mdio-v5";
347+
reg = <0xe14 0x8>;
348+
reg-names = "mdio";
349+
#address-cells = <0x0>;
350+
#size-cells = <0x1>;
351+
};
352+
};
353+
};
308354
};
309355

310356
&clk_osc {

0 commit comments

Comments
 (0)