[PATCH v2 9/9] arm64: dts: marvell: ac5-98dx25xx: Rework 'behind-32bit-controller' bus

Rob Herring (Arm) robh at kernel.org
Tue Nov 24 12:46:42 PST 2026


The 'behind-32bit-controller at 7f000000' node doesn't follow
standard naming and overlaps with the 'bus at 7f000000' node address. The
reason for the 2 buses was separating the DMA capable blocks which need
'dma-ranges' translation, but there's no reason that needs to be a
separate bus. Merge the nodes in 'behind-32bit-controller at 7f000000' to
the 'bus at 7f000000' node. Doing this requires increasing the
'#address-cells' and '#size-cells'.

Signed-off-by: Rob Herring (Arm) <robh at kernel.org>
---
v2:
 - New patch
---
 arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi | 101 +++++++++++---------------
 1 file changed, 44 insertions(+), 57 deletions(-)

diff --git a/arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi b/arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi
index 4878773883c9..13aa557c8571 100644
--- a/arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi
+++ b/arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi
@@ -79,16 +79,17 @@ soc {
 		ranges;
 
 		bus at 7f000000 {
-			#address-cells = <1>;
-			#size-cells = <1>;
+			#address-cells = <2>;
+			#size-cells = <2>;
 			compatible = "simple-bus";
 			/* 16M internal register @ 0x7f00_0000 */
-			ranges = <0x0 0x0 0x7f000000 0x1000000>;
+			ranges = <0x0 0x0 0x0 0x7f000000 0x0 0x1000000>;
+			dma-ranges = <0x0 0x0 0x2 0x0 0x1 0x0>;
 			dma-coherent;
 
 			uart0: serial at 12000 {
 				compatible = "snps,dw-apb-uart";
-				reg = <0x12000 0x100>;
+				reg = <0x0 0x12000 0x0 0x100>;
 				reg-shift = <2>;
 				interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
 				reg-io-width = <1>;
@@ -98,7 +99,7 @@ uart0: serial at 12000 {
 
 			uart1: serial at 12100 {
 				compatible = "snps,dw-apb-uart";
-				reg = <0x12100 0x100>;
+				reg = <0x0 0x12100 0x0 0x100>;
 				reg-shift = <2>;
 				interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
 				reg-io-width = <1>;
@@ -108,7 +109,7 @@ uart1: serial at 12100 {
 
 			uart2: serial at 12200 {
 				compatible = "snps,dw-apb-uart";
-				reg = <0x12200 0x100>;
+				reg = <0x0 0x12200 0x0 0x100>;
 				reg-shift = <2>;
 				interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
 				reg-io-width = <1>;
@@ -118,7 +119,7 @@ uart2: serial at 12200 {
 
 			uart3: serial at 12300 {
 				compatible = "snps,dw-apb-uart";
-				reg = <0x12300 0x100>;
+				reg = <0x0 0x12300 0x0 0x100>;
 				reg-shift = <2>;
 				interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
 				reg-io-width = <1>;
@@ -126,17 +127,9 @@ uart3: serial at 12300 {
 				status = "disabled";
 			};
 
-			mdio: mdio at 22004 {
-				#address-cells = <1>;
-				#size-cells = <0>;
-				compatible = "marvell,orion-mdio";
-				reg = <0x22004 0x4>;
-				clocks = <&cnm_clock>;
-			};
-
 			i2c0: i2c at 11000 {
 				compatible = "marvell,mv78230-i2c";
-				reg = <0x11000 0x20>;
+				reg = <0x0 0x11000 0x0 0x20>;
 				#address-cells = <1>;
 				#size-cells = <0>;
 
@@ -155,7 +148,7 @@ i2c0: i2c at 11000 {
 
 			i2c1: i2c at 11100 {
 				compatible = "marvell,mv78230-i2c";
-				reg = <0x11100 0x20>;
+				reg = <0x0 0x11100 0x0 0x20>;
 				#address-cells = <1>;
 				#size-cells = <0>;
 
@@ -174,7 +167,7 @@ i2c1: i2c at 11100 {
 
 			gpio0: gpio at 18100 {
 				compatible = "marvell,orion-gpio";
-				reg = <0x18100 0x40>;
+				reg = <0x0 0x18100 0x0 0x40>;
 				ngpios = <32>;
 				gpio-controller;
 				#gpio-cells = <2>;
@@ -189,7 +182,7 @@ gpio0: gpio at 18100 {
 			};
 
 			gpio1: gpio at 18140 {
-				reg = <0x18140 0x40>;
+				reg = <0x0 0x18140 0x0 0x40>;
 				compatible = "marvell,orion-gpio";
 				ngpios = <14>;
 				gpio-controller;
@@ -201,44 +194,6 @@ gpio1: gpio at 18140 {
 				interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>,
 					     <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
 			};
-		};
-
-		mmc_dma: bus at 80500000 {
-				compatible = "simple-bus";
-				ranges;
-				#address-cells = <0x2>;
-				#size-cells = <0x2>;
-				reg = <0x0 0x80500000 0x0 0x100000>;
-				dma-ranges = <0x0 0x0 0x2 0x0 0x0 0x80000000>;
-				dma-coherent;
-
-				sdhci: mmc at 805c0000 {
-					compatible = "marvell,ac5-sdhci",
-						     "marvell,armada-ap806-sdhci";
-					reg = <0x0 0x805c0000 0x0 0x1000>;
-					interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>;
-					clocks = <&emmc_clock>, <&cnm_clock>;
-					clock-names = "core", "axi";
-					bus-width = <8>;
-					non-removable;
-					mmc-ddr-1_8v;
-					mmc-hs200-1_8v;
-					mmc-hs400-1_8v;
-				};
-		};
-
-		/*
-		 * Dedicated section for devices behind 32bit controllers so we
-		 * can configure specific DMA mapping for them
-		 */
-		behind-32bit-controller at 7f000000 {
-			compatible = "simple-bus";
-			#address-cells = <0x2>;
-			#size-cells = <0x2>;
-			ranges = <0x0 0x0 0x0 0x7f000000 0x0 0x1000000>;
-			/* Host phy ram starts at 0x200M */
-			dma-ranges = <0x0 0x0 0x2 0x0 0x1 0x0>;
-			dma-coherent;
 
 			eth0: ethernet at 20000 {
 				compatible = "marvell,armada-ac5-neta";
@@ -249,6 +204,14 @@ eth0: ethernet at 20000 {
 				status = "disabled";
 			};
 
+			mdio: mdio at 22004 {
+				#address-cells = <1>;
+				#size-cells = <0>;
+				compatible = "marvell,orion-mdio";
+				reg = <0x0 0x22004 0x0 0x4>;
+				clocks = <&cnm_clock>;
+			};
+
 			eth1: ethernet at 24000 {
 				compatible = "marvell,armada-ac5-neta";
 				reg = <0x0 0x24000 0x0 0x4000>;
@@ -273,6 +236,30 @@ usb1: usb at a0000 {
 			};
 		};
 
+		mmc_dma: bus at 80500000 {
+				compatible = "simple-bus";
+				ranges;
+				#address-cells = <0x2>;
+				#size-cells = <0x2>;
+				reg = <0x0 0x80500000 0x0 0x100000>;
+				dma-ranges = <0x0 0x0 0x2 0x0 0x0 0x80000000>;
+				dma-coherent;
+
+				sdhci: mmc at 805c0000 {
+					compatible = "marvell,ac5-sdhci",
+						     "marvell,armada-ap806-sdhci";
+					reg = <0x0 0x805c0000 0x0 0x1000>;
+					interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>;
+					clocks = <&emmc_clock>, <&cnm_clock>;
+					clock-names = "core", "axi";
+					bus-width = <8>;
+					non-removable;
+					mmc-ddr-1_8v;
+					mmc-hs200-1_8v;
+					mmc-hs400-1_8v;
+				};
+		};
+
 		pinctrl0: pinctrl at 80020100 {
 			compatible = "marvell,ac5-pinctrl";
 			reg = <0 0x80020100 0 0x20>;

-- 
2.53.0




More information about the linux-arm-kernel mailing list