Skip to contentSkip to conversation

arm64: dts: ls2080a: fsl-mc dt node updates

PATCH Superseded Stuart Yoder 2 participants 5 messages Apr 1, 2016 – Apr 18, 2016

Subsystems (2)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 arm64: dts: ls2080a: fsl-mc dt node updates

From: Stuart Yoder <[email protected]>

updates to the fsl-mc node for full functionality:
-msi-parent is needed for interrupt support
-ranges is needed to enable the bus driver to translate bus addresses -dpmac nodes provide a basis for relating dpmac objects to PHYs

---
 arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi |   87 ++++++++++++++++++++++++
 1 file changed, 87 insertions(+)
arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi +87 -0
index 9d746c6..449c635 100644
@@ -265,6 +265,93 @@
 			compatible = "fsl,qoriq-mc";
 			reg = <0x00000008 0x0c000000 0 0x40>,	 /* MC portal base */
 			      <0x00000000 0x08340000 0 0x40000>; /* MC control reg */
+			msi-parent = <&its>;
+			#address-cells = <3>;
+			#size-cells = <1>;
+
+			/*
+			 * Region type 0x0 - MC portals
+			 * Region type 0x1 - QBMAN portals
+			 */
+			ranges = <0x0 0x0 0x0 0x8 0x0c000000 0x4000000
+				  0x1 0x0 0x0 0x8 0x18000000 0x8000000>;
+
+			/*
+			 * Define the maximum number of MACs present on the SoC.
+			 * They won't necessarily be all probed, since the
+			 * Data Path Layout file and the MC firmware can put
+			 * fewer actual DPMAC objects on the MC bus.
+			 */
+			dpmacs {
+				#address-cells = <1>;
+				#size-cells = <0>;
+
+				dpmac1: dpmac at 1 {
+					compatible = "fsl,qoriq-mc-dpmac";
+					reg = <1>;
+				};
+				dpmac2: dpmac at 2 {
+					compatible = "fsl,qoriq-mc-dpmac";
+					reg = <2>;
+				};
+				dpmac3: dpmac at 3 {
+					compatible = "fsl,qoriq-mc-dpmac";
+					reg = <3>;
+				};
+				dpmac4: dpmac at 4 {
+					compatible = "fsl,qoriq-mc-dpmac";
+					reg = <4>;
+				};
+				dpmac5: dpmac at 5 {
+					compatible = "fsl,qoriq-mc-dpmac";
+					reg = <5>;
+				};
+				dpmac6: dpmac at 6 {
+					compatible = "fsl,qoriq-mc-dpmac";
+					reg = <6>;
+				};
+				dpmac7: dpmac at 7 {
+					compatible = "fsl,qoriq-mc-dpmac";
+					reg = <7>;
+				};
+				dpmac8: dpmac at 8 {
+					compatible = "fsl,qoriq-mc-dpmac";
+					reg = <8>;
+				};
+				dpmac9: dpmac at 9 {
+					compatible = "fsl,qoriq-mc-dpmac";
+					reg = <9>;
+				};
+				dpmac10: dpmac at 10 {
+					compatible = "fsl,qoriq-mc-dpmac";
+					reg = <0xa>;
+				};
+				dpmac11: dpmac at 11 {
+					compatible = "fsl,qoriq-mc-dpmac";
+					reg = <0xb>;
+				};
+				dpmac12: dpmac at 12 {
+					compatible = "fsl,qoriq-mc-dpmac";
+					reg = <0xc>;
+				};
+				dpmac13: dpmac at 13 {
+					compatible = "fsl,qoriq-mc-dpmac";
+					reg = <0xd>;
+				};
+				dpmac14: dpmac at 14 {
+					compatible = "fsl,qoriq-mc-dpmac";
+					reg = <0xe>;
+				};
+				dpmac15: dpmac at 15 {
+					compatible = "fsl,qoriq-mc-dpmac";
+					reg = <0xf>;
+				};
+				dpmac16: dpmac at 16 {
+					compatible = "fsl,qoriq-mc-dpmac";
+					reg = <0x10>;
+				};
+			};
+
 		};
 
 		smmu: iommu at 5000000 {
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 33 lines · Stuart Yoder

From: Stuart Yoder <[email protected]>

updates to the fsl-mc node for full functionality:
-msi-parent is needed for interrupt support
-ranges is needed to enable the bus driver to translate bus addresses -dpmac nodes provide a basis for relating dpmac objects to PHYs

---
 arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi |   87 ++++++++++++++++++++++++
 1 file changed, 87 insertions(+)
arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi +13 -0
index 9d746c6..449c635 100644
@@ -265,6 +265,93 @@
 			compatible = "fsl,qoriq-mc";
 			reg = <0x00000008 0x0c000000 0 0x40>,	 /* MC portal base */
 			      <0x00000000 0x08340000 0 0x40000>; /* MC control reg */
+			msi-parent = <&its>;
+			#address-cells = <3>;
+			#size-cells = <1>;
+
+			/*
+			 * Region type 0x0 - MC portals
+			 * Region type 0x1 - QBMAN portals
+			 */
+			ranges = <0x0 0x0 0x0 0x8 0x0c000000 0x4000000
+				  0x1 0x0 0x0 0x8 0x18000000 0x8000000>;
+
+			/*
+			 * Define the maximum number of MACs present on the SoC.

arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi line 290

Quoted 10 lines
arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi +10 -0
+			 * They won't necessarily be all probed, since the
+			 * Data Path Layout file and the MC firmware can put
+			 * fewer actual DPMAC objects on the MC bus.
+			 */
+			dpmacs {
+				#address-cells = <1>;
+				#size-cells = <0>;
+
+				dpmac1: dpmac at 1 {
+					compatible = "fsl,qoriq-mc-dpmac";

I did not see how this compatible is used by kernel driver.

arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi line 292

Quoted 2 lines
arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi +2 -0
+					reg = <1>;
+				};

Please have a newline between nodes.

Shawn

Quoted 74 lines
arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi +62 -0
+				dpmac2: dpmac at 2 {
+					compatible = "fsl,qoriq-mc-dpmac";
+					reg = <2>;
+				};
+				dpmac3: dpmac at 3 {
+					compatible = "fsl,qoriq-mc-dpmac";
+					reg = <3>;
+				};
+				dpmac4: dpmac at 4 {
+					compatible = "fsl,qoriq-mc-dpmac";
+					reg = <4>;
+				};
+				dpmac5: dpmac at 5 {
+					compatible = "fsl,qoriq-mc-dpmac";
+					reg = <5>;
+				};
+				dpmac6: dpmac at 6 {
+					compatible = "fsl,qoriq-mc-dpmac";
+					reg = <6>;
+				};
+				dpmac7: dpmac at 7 {
+					compatible = "fsl,qoriq-mc-dpmac";
+					reg = <7>;
+				};
+				dpmac8: dpmac at 8 {
+					compatible = "fsl,qoriq-mc-dpmac";
+					reg = <8>;
+				};
+				dpmac9: dpmac at 9 {
+					compatible = "fsl,qoriq-mc-dpmac";
+					reg = <9>;
+				};
+				dpmac10: dpmac at 10 {
+					compatible = "fsl,qoriq-mc-dpmac";
+					reg = <0xa>;
+				};
+				dpmac11: dpmac at 11 {
+					compatible = "fsl,qoriq-mc-dpmac";
+					reg = <0xb>;
+				};
+				dpmac12: dpmac at 12 {
+					compatible = "fsl,qoriq-mc-dpmac";
+					reg = <0xc>;
+				};
+				dpmac13: dpmac at 13 {
+					compatible = "fsl,qoriq-mc-dpmac";
+					reg = <0xd>;
+				};
+				dpmac14: dpmac at 14 {
+					compatible = "fsl,qoriq-mc-dpmac";
+					reg = <0xe>;
+				};
+				dpmac15: dpmac at 15 {
+					compatible = "fsl,qoriq-mc-dpmac";
+					reg = <0xf>;
+				};
+				dpmac16: dpmac at 16 {
+					compatible = "fsl,qoriq-mc-dpmac";
+					reg = <0x10>;
+				};
+			};
+
 		};
 
 		smmu: iommu at 5000000 {
Signature · 7 lines
1.7.9.5


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#2 lore raw
Quoted 50 lines

-----Original Message-----
From: Shawn Guo [mailto:shawnguo at kernel.org]
Sent: Wednesday, April 13, 2016 12:50 AM
To: Stuart Yoder <[email protected]>
Cc: devicetree at vger.kernel.org; linux-arm-kernel at lists.infradead.org; mark.rutland at arm.com; german.rivera at freescale.com; linux-kernel at vger.kernel.org; robh+dt at kernel.org; Yang-Leo Li <[email protected]>
Subject: Re: [PATCH 2/2] arm64: dts: ls2080a: fsl-mc dt node updates

arch/arm64/boot/dts/freescale/fsl-

Quoted 13 lines · Stuart Yoder

From: Stuart Yoder <[email protected]>

updates to the fsl-mc node for full functionality:
-msi-parent is needed for interrupt support
-ranges is needed to enable the bus driver to translate bus addresses -dpmac nodes provide a basis for relating dpmac objects to PHYs

---
 arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi |   87 ++++++++++++++++++++++++
 1 file changed, 87 insertions(+)
arch/arm64/boot/dts/freescale/fsl- renamed from arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi +0 -0

ls2080a.dtsi

Quoted 24 lines

index 9d746c6..449c635 100644

arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi +17 -0
@@ -265,6 +265,93 @@
 			compatible = "fsl,qoriq-mc";
 			reg = <0x00000008 0x0c000000 0 0x40>,	 /* MC portal base */
 			      <0x00000000 0x08340000 0 0x40000>; /* MC control reg */
+			msi-parent = <&its>;
+			#address-cells = <3>;
+			#size-cells = <1>;
+
+			/*
+			 * Region type 0x0 - MC portals
+			 * Region type 0x1 - QBMAN portals
+			 */
+			ranges = <0x0 0x0 0x0 0x8 0x0c000000 0x4000000
+				  0x1 0x0 0x0 0x8 0x18000000 0x8000000>;
+
+			/*
+			 * Define the maximum number of MACs present on the SoC.
+			 * They won't necessarily be all probed, since the
+			 * Data Path Layout file and the MC firmware can put
+			 * fewer actual DPMAC objects on the MC bus.
+			 */
Quoted 8 lines

arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi line 290

Quoted 6 lines
arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi +6 -0
+			dpmacs {
+				#address-cells = <1>;
+				#size-cells = <0>;
+
+				dpmac1: dpmac at 1 {
+					compatible = "fsl,qoriq-mc-dpmac";

I did not see how this compatible is used by kernel driver.

There is no driver yet, but it will be coming soon. But, does it matter? Device trees should be describing hardware without regards to some specific kernel use of a node or property.

Quoted 4 lines

arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi line 292

Quoted 2 lines
arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi +2 -0
+					reg = <1>;
+				};

Please have a newline between nodes.

Ok, will do.

Stuart

#3 lore raw
Quoted 30 lines · Stuart Yoder
Quoted 21 lines
Quoted 21 lines
arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi +17 -0
@@ -265,6 +265,93 @@
 			compatible = "fsl,qoriq-mc";
 			reg = <0x00000008 0x0c000000 0 0x40>,	 /* MC portal base */
 			      <0x00000000 0x08340000 0 0x40000>; /* MC control reg */
+			msi-parent = <&its>;
+			#address-cells = <3>;
+			#size-cells = <1>;
+
+			/*
+			 * Region type 0x0 - MC portals
+			 * Region type 0x1 - QBMAN portals
+			 */
+			ranges = <0x0 0x0 0x0 0x8 0x0c000000 0x4000000
+				  0x1 0x0 0x0 0x8 0x18000000 0x8000000>;
+
+			/*
+			 * Define the maximum number of MACs present on the SoC.
+			 * They won't necessarily be all probed, since the
+			 * Data Path Layout file and the MC firmware can put
+			 * fewer actual DPMAC objects on the MC bus.
+			 */
Quoted 8 lines

arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi line 290

Quoted 6 lines
arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi +6 -0
+			dpmacs {
+				#address-cells = <1>;
+				#size-cells = <0>;
+
+				dpmac1: dpmac at 1 {
+					compatible = "fsl,qoriq-mc-dpmac";

I did not see how this compatible is used by kernel driver.

Quoted 4 lines

There is no driver yet, but it will be coming soon. But, does it matter? Device trees should be describing hardware without regards to some specific kernel use of a node or property.

We need to at least have the bindings documented before we can accept it in dts files.

Shawn

#4 lore raw
Quoted 31 lines · Shawn Guo
Quoted 30 lines · Stuart Yoder
Quoted 29 lines
Quoted 17 lines
arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi +13 -0
@@ -265,6 +265,93 @@
                  compatible = "fsl,qoriq-mc";
                  reg = <0x00000008 0x0c000000 0 0x40>,    /* MC portal base */
                        <0x00000000 0x08340000 0 0x40000>; /* MC control reg */
+                 msi-parent = <&its>;
+                 #address-cells = <3>;
+                 #size-cells = <1>;
+
+                 /*
+                  * Region type 0x0 - MC portals
+                  * Region type 0x1 - QBMAN portals
+                  */
+                 ranges = <0x0 0x0 0x0 0x8 0x0c000000 0x4000000
+                           0x1 0x0 0x0 0x8 0x18000000 0x8000000>;
+
+                 /*
+                  * Define the maximum number of MACs present on the SoC.

arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi line 290

Quoted 10 lines
arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi +10 -0
+                  * They won't necessarily be all probed, since the
+                  * Data Path Layout file and the MC firmware can put
+                  * fewer actual DPMAC objects on the MC bus.
+                  */
+                 dpmacs {
+                         #address-cells = <1>;
+                         #size-cells = <0>;
+
+                         dpmac1: dpmac at 1 {
+                                 compatible = "fsl,qoriq-mc-dpmac";

I did not see how this compatible is used by kernel driver.

Quoted 7 lines
Quoted 4 lines

There is no driver yet, but it will be coming soon. But, does it matter? Device trees should be describing hardware without regards to some specific kernel use of a node or property.

We need to at least have the bindings documented before we can accept it in dts files.

Ah, sorry. Missed that the bindings are added by patch 1/2.

Shawn