Skip to contentSkip to conversation

arm64: dts: marvell: DT warning fixes

PATCH In review Rob Herring (Arm) 3 participants 19 messages Nov 24 – Nov 25

Subsystems (4)
lore
Share & tools
lore

Rob Herring (Arm)

author maintainer
#0 lore raw

v2 cover arm64: dts: marvell: DT warning fixes

Another batch of DT schema warning fixes for Marvell platforms. This fixes most of the remaining warnings on Marvell platforms.

It's best if the whole series is taken together.

---
Changes in v2:
- Update the system controller compatible strings to avoid using the old legacy ones.
- Drop patch dropping 'phy-supply'.
- New patch to rework ac5-98dx25xx 'behind-32bit-controller@7f000000'
bus.
- Link to v1: https://patch.msgid.link/[email protected]

---
Rob Herring (Arm) (9):
dt-bindings: mfd: Add Marvell AP806/CP110 system controller schema
arm64: dts: marvell: Add AP806/CP110 syscon compatibles
arm64: dts: marvell: Drop SPI max frequency
arm64: dts: marvell: armada-8040: Fix node names
arm64: dts: marvell: Fix w25q32 compatible strings
arm64: dts: marvell: Drop unused USB 'phy-names'
arm64: dts: marvell: cn9131-cf-solidwan: Drop st,m41t80 reset-gpios
arm64: dts: marvell: armada-3720-gl-mv1000: Add switch fixed-link
arm64: dts: marvell: ac5-98dx25xx: Rework 'behind-32bit-controller' bus

 .../mfd/marvell,ap806-cp110-system-controller.yaml |  59 ++++++++++++
 arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi      | 101 +++++++++------------
 .../boot/dts/marvell/armada-3720-gl-mv1000.dts     |   6 ++
 .../dts/marvell/armada-8040-clearfog-gt-8k.dts     |   4 +-
 arch/arm64/boot/dts/marvell/armada-8040-mcbin.dtsi |   2 +-
 .../boot/dts/marvell/armada-8040-puzzle-m801.dts   |  10 +-
 arch/arm64/boot/dts/marvell/armada-ap80x.dtsi      |   6 +-
 arch/arm64/boot/dts/marvell/armada-cp11x.dtsi      |   6 +-
 arch/arm64/boot/dts/marvell/cn9130-crb-A.dts       |   2 -
 arch/arm64/boot/dts/marvell/cn9130-sr-som.dtsi     |   2 -
 arch/arm64/boot/dts/marvell/cn9131-cf-solidwan.dts |   1 -
 .../boot/dts/marvell/cn9131-db-comexpress.dtsi     |   4 +-
 12 files changed, 127 insertions(+), 76 deletions(-)

---
base-commit: 3191063649dbf7c0d0b768e1f3655e4c5fc6edb5
change-id: 20261111-dtbs-marvell-3ae21c8ac47d

Best regards,

Signature · 1 line
Rob Herring (Arm) <[email protected]>
author maintainer
#1 lore raw

PATCH v2 1/9 dt-bindings: mfd: Add Marvell AP806/CP110 system controller schema

The Marvell AP806 and CP110 lack specific compatibles. Add a dedicated schema for the Marvell AP806 and CP110 system controllers and their child devices.

---
v2:
- Update compatibles to avoid old legacy ones

---
 .../mfd/marvell,ap806-cp110-system-controller.yaml | 59 ++++++++++++++++++++++
 1 file changed, 59 insertions(+)
Documentation/devicetree/bindings/mfd/marvell,ap806-cp110-system-controller.yaml new file +59 -0
new file mode 100644
index 000000000000..20110a033415
@@ -0,0 +1,59 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mfd/marvell,ap806-cp110-system-controller.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Marvell AP806 and CP110 system controller
+
+maintainers:
+  - Andrew Lunn <[email protected]>
+  - Gregory Clement <[email protected]>
+  - Sebastian Hesselbarth <[email protected]>
+
+properties:
+  compatible:
+    items:
+      - enum:
+          - marvell,ap806-syscon
+          - marvell,cp110-syscon
+      - const: syscon
+      - const: simple-mfd
+
+  reg:
+    maxItems: 1
+
+  "#address-cells":
+    const: 1
+
+  "#size-cells":
+    const: 1
+
+  clock:
+    oneOf:
+      - $ref: /schemas/clock/marvell,ap80x-clock.yaml#
+      - $ref: /schemas/clock/marvell,cp110-clock.yaml#
+
+  pinctrl:
+    oneOf:
+      - $ref: /schemas/pinctrl/marvell,ap806-pinctrl.yaml#
+      - $ref: /schemas/pinctrl/marvell,armada-7k-pinctrl.yaml#
+
+patternProperties:
+  "^gpio@[0-9a-f]+$":
+    $ref: /schemas/gpio/gpio-mvebu.yaml#
+
+  "^clock-cpu(@[0-9a-f]+)?$":
+    $ref: /schemas/clock/marvell,ap80x-clock.yaml#
+
+  "^thermal-sensor@[0-9a-f]+$":
+    $ref: /schemas/thermal/marvell,armada-ap806-thermal.yaml#
+
+required:
+  - compatible
+  - reg
+
+allOf:
+  - $ref: syscon-common.yaml#
+
+unevaluatedProperties: false
Signature · 1 line
2.53.0
Reviewed-by on v2 1/9
#2 lore raw

Re: [PATCH v2 1/9] dt-bindings: mfd: Add Marvell AP806/CP110 system controller schema

Quoted 11 lines · Rob Herring (Arm)

The Marvell AP806 and CP110 lack specific compatibles. Add a dedicated schema for the Marvell AP806 and CP110 system controllers and their child devices.

---
v2:
- Update compatibles to avoid old legacy ones

---
 .../mfd/marvell,ap806-cp110-system-controller.yaml | 59 ++++++++++++++++++++++
 1 file changed, 59 insertions(+)

Best regards,
Krzysztof

Signature · 1 line
Krzysztof Kozlowski <[email protected]>
author maintainer
#3 lore raw

PATCH v2 2/9 arm64: dts: marvell: Add AP806/CP110 syscon compatibles

In reply to Rob Herring (Arm)

Add specific compatibles for the AP806 and CP110 system-controller syscon blocks that host pinctrl, GPIO, clock and thermal child nodes.

---
v2:
- Update compatibles to avoid old legacy ones

---
 arch/arm64/boot/dts/marvell/armada-ap80x.dtsi | 6 ++++--
 arch/arm64/boot/dts/marvell/armada-cp11x.dtsi | 6 ++++--
 2 files changed, 8 insertions(+), 4 deletions(-)
arch/arm64/boot/dts/marvell/armada-ap80x.dtsi +4 -2
index 40e146982921..ce9821d73aaf 100644
@@ -267,7 +267,8 @@ ap_sdhci0: mmc@6e0000 {
 			};
 
 			ap_syscon0: system-controller@6f4000 {
-				compatible = "syscon", "simple-mfd";
+				compatible = "marvell,ap806-syscon",
+					     "syscon", "simple-mfd";
 				reg = <0x6f4000 0x2000>;
 
 				ap_pinctrl: pinctrl {
@@ -293,7 +294,8 @@ ap_gpio: gpio@1040 {
 			};
 
 			ap_syscon1: system-controller@6f8000 {
-				compatible = "syscon", "simple-mfd";
+				compatible = "marvell,ap806-syscon",
+					     "syscon", "simple-mfd";
 				reg = <0x6f8000 0x1000>;
 				#address-cells = <1>;
 				#size-cells = <1>;
arch/arm64/boot/dts/marvell/armada-cp11x.dtsi +4 -2
index 39599171d51b..6f05614b0641 100644
@@ -225,7 +225,8 @@ CP11X_LABEL(rtc): rtc@284000 {
 		};
 
 		CP11X_LABEL(syscon0): system-controller@440000 {
-			compatible = "syscon", "simple-mfd";
+			compatible = "marvell,cp110-syscon",
+				     "syscon", "simple-mfd";
 			reg = <0x440000 0x2000>;
 
 			CP11X_LABEL(clk): clock {
@@ -277,7 +278,8 @@ CP11X_LABEL(gpio2): gpio@140 {
 		};
 
 		CP11X_LABEL(syscon1): system-controller@400000 {
-			compatible = "syscon", "simple-mfd";
+			compatible = "marvell,cp110-syscon",
+				     "syscon", "simple-mfd";
 			reg = <0x400000 0x1000>;
 			#address-cells = <1>;
 			#size-cells = <1>;
Signature · 1 line
2.53.0
Reviewed-by on v2 2/9
#4 lore raw

Re: [PATCH v2 2/9] arm64: dts: marvell: Add AP806/CP110 syscon compatibles

Quoted 11 lines · Rob Herring (Arm)

Add specific compatibles for the AP806 and CP110 system-controller syscon blocks that host pinctrl, GPIO, clock and thermal child nodes.

---
v2:
- Update compatibles to avoid old legacy ones

---
 arch/arm64/boot/dts/marvell/armada-ap80x.dtsi | 6 ++++--
 arch/arm64/boot/dts/marvell/armada-cp11x.dtsi | 6 ++++--
 2 files changed, 8 insertions(+), 4 deletions(-)

Best regards,
Krzysztof

Signature · 1 line
Krzysztof Kozlowski <[email protected]>
author maintainer
#5 lore raw

PATCH v2 3/9 arm64: dts: marvell: Drop SPI max frequency

In reply to Rob Herring (Arm)

Remove spi-max-frequency from the CP0 SPI controller node on the CN9130 SolidRun SOM. The property belongs on SPI devices, and the flash child already has its own maximum frequency. Plus, pretty sure 1.8GHz is not a possible SPI bus frequency.

---
 arch/arm64/boot/dts/marvell/cn9130-sr-som.dtsi | 2 --
 1 file changed, 2 deletions(-)
arch/arm64/boot/dts/marvell/cn9130-sr-som.dtsi +0 -2
index f95202decfce..7200f72b934f 100644
@@ -106,8 +106,6 @@ &cp0_spi1 {
 	status = "okay";
 	pinctrl-names = "default";
 	pinctrl-0 = <&cp0_spi1_pins>;
-	/* max speed limited by a mux */
-	spi-max-frequency = <1800000000>;
 
 	flash@0 {
 		compatible = "jedec,spi-nor";
Signature · 1 line
2.53.0
Reviewed-by on v2 3/9
#6 lore raw

Re: [PATCH v2 3/9] arm64: dts: marvell: Drop SPI max frequency

Quoted 9 lines · Rob Herring (Arm)

Remove spi-max-frequency from the CP0 SPI controller node on the CN9130 SolidRun SOM. The property belongs on SPI devices, and the flash child already has its own maximum frequency. Plus, pretty sure 1.8GHz is not a possible SPI bus frequency.

---
 arch/arm64/boot/dts/marvell/cn9130-sr-som.dtsi | 2 --
 1 file changed, 2 deletions(-)

Best regards,
Krzysztof

Signature · 1 line
Krzysztof Kozlowski <[email protected]>
author maintainer
#7 lore raw

PATCH v2 4/9 arm64: dts: marvell: armada-8040: Fix node names

In reply to Rob Herring (Arm)

Fix various node names to use standard names.

---
v2:
- Fix behind-32bit-controller@7f000000 in separate commit

---
 arch/arm64/boot/dts/marvell/armada-8040-clearfog-gt-8k.dts |  2 +-
 arch/arm64/boot/dts/marvell/armada-8040-puzzle-m801.dts    | 10 +++++-----
 2 files changed, 6 insertions(+), 6 deletions(-)
arch/arm64/boot/dts/marvell/armada-8040-clearfog-gt-8k.dts +1 -1
index 90ae93274a16..f9695b25da79 100644
@@ -324,7 +324,7 @@ cp0_led1_pins: led1-pins {
 		marvell,function = "gpio";
 	};
 
-	cp0_copper_eth_phy_reset: copper-eth-phy-reset {
+	cp0_copper_eth_phy_reset: copper-eth-phy-reset-pins {
 		marvell,pins = "mpp43";
 		marvell,function = "gpio";
 	};
arch/arm64/boot/dts/marvell/armada-8040-puzzle-m801.dts +5 -5
index def25d51c4bf..4a0c477d65ed 100644
@@ -165,7 +165,7 @@ cpu_active: cpu-active {
 		};
 	};
 	cooling-maps {
-		fan-map {
+		map-fan {
 			trip = <&cpu_active>;
 			cooling-device = <&chassis_fan_group0 64 THERMAL_NO_LIMIT>,
 					<&chassis_fan_group1 64 THERMAL_NO_LIMIT>;
@@ -191,19 +191,19 @@ flash@0 {
 		compatible = "jedec,spi-nor";
 		reg = <0x0>;
 		spi-max-frequency = <20000000>;
-		partition@u-boot {
+		partition@0 {
 			label = "u-boot";
 			reg = <0x00000000 0x001f0000>;
 		};
-		partition@u-boot-env {
+		partition@1f0000 {
 			label = "u-boot-env";
 			reg = <0x001f0000 0x00010000>;
 		};
-		partition@ubi1 {
+		partition@200000 {
 			label = "ubi1";
 			reg = <0x00200000 0x03f00000>;
 		};
-		partition@ubi2 {
+		partition@4100000 {
 			label = "ubi2";
 			reg = <0x04100000 0x03f00000>;
 		};
Signature · 1 line
2.53.0
Reviewed-by on v2 4/9
#8 lore raw

Re: [PATCH v2 4/9] arm64: dts: marvell: armada-8040: Fix node names

Quoted 10 lines · Rob Herring (Arm)

Fix various node names to use standard names.

---
v2:
- Fix behind-32bit-controller@7f000000 in separate commit

---
 arch/arm64/boot/dts/marvell/armada-8040-clearfog-gt-8k.dts |  2 +-
 arch/arm64/boot/dts/marvell/armada-8040-puzzle-m801.dts    | 10 +++++-----
 2 files changed, 6 insertions(+), 6 deletions(-)

Best regards,
Krzysztof

Signature · 1 line
Krzysztof Kozlowski <[email protected]>
author maintainer
#9 lore raw

PATCH v2 5/9 arm64: dts: marvell: Fix w25q32 compatible strings

In reply to Rob Herring (Arm)

The w25q32 SPI NOR Flash is a Winbond, not ST, part and is missing the "jedec,spi-nor" fallback.

---
 arch/arm64/boot/dts/marvell/armada-8040-clearfog-gt-8k.dts | 2 +-
 arch/arm64/boot/dts/marvell/armada-8040-mcbin.dtsi         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/marvell/armada-8040-clearfog-gt-8k.dts +1 -1
index f9695b25da79..ee3cb89ead0b 100644
@@ -590,7 +590,7 @@ &cp1_spi1 {
 	status = "okay";
 
 	flash@0 {
-		compatible = "st,w25q32";
+		compatible = "winbond,w25q32", "jedec,spi-nor";
 		spi-max-frequency = <50000000>;
 		reg = <0>;
 	};
arch/arm64/boot/dts/marvell/armada-8040-mcbin.dtsi +1 -1
index f2d278d171eb..1c36763178a9 100644
@@ -361,7 +361,7 @@ &cp1_spi1 {
 	status = "okay";
 
 	flash@0 {
-		compatible = "st,w25q32";
+		compatible = "winbond,w25q32", "jedec,spi-nor";
 		spi-max-frequency = <50000000>;
 		reg = <0>;
 	};
Signature · 1 line
2.53.0
author maintainer
#10 lore raw

PATCH v2 6/9 arm64: dts: marvell: Drop unused USB 'phy-names'

In reply to Rob Herring (Arm)

'phy-names' is not valid without a corresponding 'phys' property, so drop them when 'phys' is not present.

---
 arch/arm64/boot/dts/marvell/cn9130-crb-A.dts          | 2 --
 arch/arm64/boot/dts/marvell/cn9131-db-comexpress.dtsi | 4 ++--
 2 files changed, 2 insertions(+), 4 deletions(-)
arch/arm64/boot/dts/marvell/cn9130-crb-A.dts +0 -2
index a7b6dfba8af5..5823b25e5faf 100644
@@ -28,11 +28,9 @@ &cp0_comphy2 0
 &cp0_usb3_0 {
 	status = "okay";
 	usb-phy = <&cp0_usb3_0_phy0>;
-	phy-names = "usb";
 };
 
 &cp0_usb3_1 {
 	status = "okay";
 	usb-phy = <&cp0_usb3_0_phy1>;
-	phy-names = "usb";
 };
arch/arm64/boot/dts/marvell/cn9131-db-comexpress.dtsi +2 -2
index 71c225221617..a68c958fbb30 100644
@@ -89,15 +89,15 @@ &cp0_spi1 {
 &cp0_usb3_0 {
 	status = "okay";
 	usb-phy = <&cp0_usb3_0_phy0>;
-	phy-names = "usb";
 	/delete-property/ phys;
+	/delete-property/ phy-names;
 };
 
 &cp0_usb3_1 {
 	status = "okay";
 	usb-phy = <&cp0_usb3_0_phy1>;
-	phy-names = "usb";
 	/delete-property/ phys;
+	/delete-property/ phy-names;
 };
 
 &cp1_usb3_1 {
Signature · 1 line
2.53.0
Reviewed-by on v2 6/9
#11 lore raw

Re: [PATCH v2 6/9] arm64: dts: marvell: Drop unused USB 'phy-names'

Quoted 8 lines · Rob Herring (Arm)

'phy-names' is not valid without a corresponding 'phys' property, so drop them when 'phys' is not present.

---
 arch/arm64/boot/dts/marvell/cn9130-crb-A.dts          | 2 --
 arch/arm64/boot/dts/marvell/cn9131-db-comexpress.dtsi | 4 ++--
 2 files changed, 2 insertions(+), 4 deletions(-)

Best regards,
Krzysztof

Signature · 1 line
Krzysztof Kozlowski <[email protected]>
author maintainer
#12 lore raw

PATCH v2 7/9 arm64: dts: marvell: cn9131-cf-solidwan: Drop st,m41t80 reset-gpios

In reply to Rob Herring (Arm)

The part has no reset line nor does the Linux driver handle the property, so drop it.

---
 arch/arm64/boot/dts/marvell/cn9131-cf-solidwan.dts | 1 -
 1 file changed, 1 deletion(-)
arch/arm64/boot/dts/marvell/cn9131-cf-solidwan.dts +0 -1
index b6aeba7d0a61..0b079e1428bf 100644
@@ -252,7 +252,6 @@ carrier_rtc: rtc@68 {
 		pinctrl-names = "default";
 		interrupt-parent = <&cp1_gpio1>;
 		interrupts = <12 IRQ_TYPE_EDGE_FALLING>;
-		reset-gpios = <&cp1_gpio1 13 GPIO_ACTIVE_LOW>;
 	};
 };
 
Signature · 1 line
2.53.0
Reviewed-by on v2 7/9
#13 lore raw

Re: [PATCH v2 7/9] arm64: dts: marvell: cn9131-cf-solidwan: Drop st,m41t80 reset-gpios

Quoted 7 lines · Rob Herring (Arm)

The part has no reset line nor does the Linux driver handle the property, so drop it.

---
 arch/arm64/boot/dts/marvell/cn9131-cf-solidwan.dts | 1 -
 1 file changed, 1 deletion(-)

Best regards,
Krzysztof

Signature · 1 line
Krzysztof Kozlowski <[email protected]>
author maintainer
#14 lore raw

PATCH v2 8/9 arm64: dts: marvell: armada-3720-gl-mv1000: Add switch fixed-link

In reply to Rob Herring (Arm)

As the switch port 0 has an 'ethernet' phandle, 'phy-mode' and one of 'fixed-link', 'phy-handle' or 'managed' are required by the DSA schema. The expressobin has appears to have a similar configuration, so copy it and use 'fixed-link'.

---
 arch/arm64/boot/dts/marvell/armada-3720-gl-mv1000.dts | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm64/boot/dts/marvell/armada-3720-gl-mv1000.dts +6 -0
index a881a3326dba..93af902f4f6f 100644
@@ -161,6 +161,12 @@ ethernet-port@0 {
 				reg = <0>;
 				label = "cpu";
 				ethernet = <&eth0>;
+				phy-mode = "rgmii-id";
+
+				fixed-link {
+					speed = <1000>;
+					full-duplex;
+				};
 			};
 
 			ethernet-port@1 {
Signature · 1 line
2.53.0
Reviewed-by on v2 8/9
#15 lore raw

Re: [PATCH v2 8/9] arm64: dts: marvell: armada-3720-gl-mv1000: Add switch fixed-link

Quoted 9 lines · Rob Herring (Arm)

As the switch port 0 has an 'ethernet' phandle, 'phy-mode' and one of 'fixed-link', 'phy-handle' or 'managed' are required by the DSA schema. The expressobin has appears to have a similar configuration, so copy it and use 'fixed-link'.

---
 arch/arm64/boot/dts/marvell/armada-3720-gl-mv1000.dts | 6 ++++++
 1 file changed, 6 insertions(+)

Best regards,
Krzysztof

Signature · 1 line
Krzysztof Kozlowski <[email protected]>
author maintainer
#16 lore raw

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

In reply to Rob Herring (Arm)

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'.

---
v2:
- New patch

---
 arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi | 101 +++++++++++---------------
 1 file changed, 44 insertions(+), 57 deletions(-)
arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi +44 -57
index 4878773883c9..13aa557c8571 100644
@@ -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>;
Signature · 1 line
2.53.0
Reviewed-by on v2 9/9
#17 lore raw

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

Quoted 8 lines · Rob Herring (Arm)

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'.

Quoted 7 lines

---
v2:
- New patch

---
 arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi | 101 +++++++++++---------------
 1 file changed, 44 insertions(+), 57 deletions(-)

Best regards,
Krzysztof

Signature · 1 line
Krzysztof Kozlowski <[email protected]>