mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Rob Herring (Arm)" <robh@kernel.org>
To: Lee Jones <lee@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	 Conor Dooley <conor+dt@kernel.org>, Andrew Lunn <andrew@lunn.ch>,
	 Gregory Clement <gregory.clement@bootlin.com>,
	 Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Cc: mfd@lists.linux.dev, devicetree@vger.kernel.org,
	 linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 9/9] arm64: dts: marvell: ac5-98dx25xx: Rework 'behind-32bit-controller' bus
Date: Tue, 24 Nov 2026 14:46:42 -0600	[thread overview]
Message-ID: <20261124-dtbs-marvell-v2-9-663009a769da@kernel.org> (raw)
In-Reply-To: <20261124-dtbs-marvell-v2-0-663009a769da@kernel.org>

The 'behind-32bit-controller@7f000000' node doesn't follow
standard naming and overlaps with the 'bus@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@7f000000' to
the 'bus@7f000000' node. Doing this requires increasing the
'#address-cells' and '#size-cells'.

Signed-off-by: Rob Herring (Arm) <robh@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@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@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@12000 {
 
 			uart1: serial@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@12100 {
 
 			uart2: serial@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@12200 {
 
 			uart3: serial@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@12300 {
 				status = "disabled";
 			};
 
-			mdio: mdio@22004 {
-				#address-cells = <1>;
-				#size-cells = <0>;
-				compatible = "marvell,orion-mdio";
-				reg = <0x22004 0x4>;
-				clocks = <&cnm_clock>;
-			};
-
 			i2c0: i2c@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@11000 {
 
 			i2c1: i2c@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@11100 {
 
 			gpio0: gpio@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@18100 {
 			};
 
 			gpio1: gpio@18140 {
-				reg = <0x18140 0x40>;
+				reg = <0x0 0x18140 0x0 0x40>;
 				compatible = "marvell,orion-gpio";
 				ngpios = <14>;
 				gpio-controller;
@@ -201,44 +194,6 @@ gpio1: gpio@18140 {
 				interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>,
 					     <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
 			};
-		};
-
-		mmc_dma: bus@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@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@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@20000 {
 				compatible = "marvell,armada-ac5-neta";
@@ -249,6 +204,14 @@ eth0: ethernet@20000 {
 				status = "disabled";
 			};
 
+			mdio: mdio@22004 {
+				#address-cells = <1>;
+				#size-cells = <0>;
+				compatible = "marvell,orion-mdio";
+				reg = <0x0 0x22004 0x0 0x4>;
+				clocks = <&cnm_clock>;
+			};
+
 			eth1: ethernet@24000 {
 				compatible = "marvell,armada-ac5-neta";
 				reg = <0x0 0x24000 0x0 0x4000>;
@@ -273,6 +236,30 @@ usb1: usb@a0000 {
 			};
 		};
 
+		mmc_dma: bus@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@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@80020100 {
 			compatible = "marvell,ac5-pinctrl";
 			reg = <0 0x80020100 0 0x20>;

-- 
2.53.0


      parent reply	other threads:[~2026-11-24 20:47 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24 20:46 [PATCH v2 0/9] arm64: dts: marvell: DT warning fixes Rob Herring (Arm)
2026-11-24 20:46 ` [PATCH v2 1/9] dt-bindings: mfd: Add Marvell AP806/CP110 system controller schema Rob Herring (Arm)
2026-11-24 20:46 ` [PATCH v2 2/9] arm64: dts: marvell: Add AP806/CP110 syscon compatibles Rob Herring (Arm)
2026-11-24 20:46 ` [PATCH v2 3/9] arm64: dts: marvell: Drop SPI max frequency Rob Herring (Arm)
2026-11-24 20:46 ` [PATCH v2 4/9] arm64: dts: marvell: armada-8040: Fix node names Rob Herring (Arm)
2026-11-24 20:46 ` [PATCH v2 5/9] arm64: dts: marvell: Fix w25q32 compatible strings Rob Herring (Arm)
2026-11-24 20:46 ` [PATCH v2 6/9] arm64: dts: marvell: Drop unused USB 'phy-names' Rob Herring (Arm)
2026-11-24 20:46 ` [PATCH v2 7/9] arm64: dts: marvell: cn9131-cf-solidwan: Drop st,m41t80 reset-gpios Rob Herring (Arm)
2026-11-24 20:46 ` [PATCH v2 8/9] arm64: dts: marvell: armada-3720-gl-mv1000: Add switch fixed-link Rob Herring (Arm)
2026-11-24 20:46 ` Rob Herring (Arm) [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261124-dtbs-marvell-v2-9-663009a769da@kernel.org \
    --to=robh@kernel.org \
    --cc=andrew@lunn.ch \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=gregory.clement@bootlin.com \
    --cc=krzk+dt@kernel.org \
    --cc=lee@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mfd@lists.linux.dev \
    --cc=sebastian.hesselbarth@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®