Skip to contentSkip to conversation

arm: dts: ls1028a: define QDS networking protocol combinations

RFC PATCH New Vladimir Oltean 1 participant 1 message Jan 27, 2021 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 arm: dts: ls1028a: define QDS networking protocol combinations

From: Alex Marginean <[email protected]>

Includes DT definition for the following serdes protocols using various PHY cards: 85xx, 13xx, 65xx, 9999, 7777.

Note that the default device tree for QDS now uses 85xx. Enabling any of the others requires patching the fsl-ls1028a-qds.dtsi file (the includes at the bottom of the file).

The phy-handle is specified as a path rather than a label because it is possible to use the #include multiple times (meaning that more than one PHY riser card of one type is inserted), and therefore, there would be duplicate labels with the same name.

LBRW means that the board needs lane B rework before using this dtsi.

---
The reason for posting as RFC is that this depends on the Felix switch
driver and device tree bindings which were submitted here:
https://patchwork.ozlabs.org/project/uboot/cover/20210125122357.414742-1-olteanv at gmail.com/

 .../dts/fsl-ls1028a-qds-1xxx-sch-30842.dtsi   | 20 ++++++
 .../dts/fsl-ls1028a-qds-6xxx-sch-30842.dtsi   | 19 ++++++
 .../dts/fsl-ls1028a-qds-7777-sch-30841.dtsi   | 49 +++++++++++++++
 .../dts/fsl-ls1028a-qds-7xx7-sch-30841R.dtsi  | 26 ++++++++
 .../dts/fsl-ls1028a-qds-8xxx-sch-24801.dtsi   | 19 ++++++
 .../fsl-ls1028a-qds-9999-sch-24801-LBRW.dtsi  | 63 +++++++++++++++++++
 .../dts/fsl-ls1028a-qds-9999-sch-24801.dtsi   | 48 ++++++++++++++
 .../fsl-ls1028a-qds-x3xx-sch-30841-LBRW.dtsi  | 48 ++++++++++++++
 .../fsl-ls1028a-qds-x5xx-sch-28021-LBRW.dtsi  | 42 +++++++++++++
 .../dts/fsl-ls1028a-qds-x7xx-sch-30842.dtsi   | 20 ++++++
 .../dts/fsl-ls1028a-qds-xx7x-sch-30842.dtsi   | 20 ++++++
 arch/arm/dts/fsl-ls1028a-qds.dtsi             |  3 +
 arch/arm/dts/fsl-sch-24801.dtsi               | 28 +++++++++
 arch/arm/dts/fsl-sch-28021.dtsi               | 29 +++++++++
 arch/arm/dts/fsl-sch-30841.dtsi               | 38 +++++++++++
 arch/arm/dts/fsl-sch-30842.dtsi               | 18 ++++++
 16 files changed, 490 insertions(+)
 create mode 100644 arch/arm/dts/fsl-ls1028a-qds-1xxx-sch-30842.dtsi
 create mode 100644 arch/arm/dts/fsl-ls1028a-qds-6xxx-sch-30842.dtsi
 create mode 100644 arch/arm/dts/fsl-ls1028a-qds-7777-sch-30841.dtsi
 create mode 100644 arch/arm/dts/fsl-ls1028a-qds-7xx7-sch-30841R.dtsi
 create mode 100644 arch/arm/dts/fsl-ls1028a-qds-8xxx-sch-24801.dtsi
 create mode 100644 arch/arm/dts/fsl-ls1028a-qds-9999-sch-24801-LBRW.dtsi
 create mode 100644 arch/arm/dts/fsl-ls1028a-qds-9999-sch-24801.dtsi
 create mode 100644 arch/arm/dts/fsl-ls1028a-qds-x3xx-sch-30841-LBRW.dtsi
 create mode 100644 arch/arm/dts/fsl-ls1028a-qds-x5xx-sch-28021-LBRW.dtsi
 create mode 100644 arch/arm/dts/fsl-ls1028a-qds-x7xx-sch-30842.dtsi
 create mode 100644 arch/arm/dts/fsl-ls1028a-qds-xx7x-sch-30842.dtsi
 create mode 100644 arch/arm/dts/fsl-sch-24801.dtsi
 create mode 100644 arch/arm/dts/fsl-sch-28021.dtsi
 create mode 100644 arch/arm/dts/fsl-sch-30841.dtsi
 create mode 100644 arch/arm/dts/fsl-sch-30842.dtsi
arch/arm/dts/fsl-ls1028a-qds-1xxx-sch-30842.dtsi new file +20 -0
new file mode 100644
index 000000000000..23816da8eeba
@@ -0,0 +1,20 @@
+// SPDX-License-Identifier: GPL-2.0+ OR X11
+/*
+ * NXP LS1028A-QDS device tree fragment for RCW 1xxx
+ *
+ * Copyright 2019-2021 NXP Semiconductors
+ */
+
+/*
+ * This setup is using a SCH-30842 card with AQR112 PHY in slot 1 for ENETC
+ * port 0 USXGMII.
+ */
+&slot1 {
+	#include "fsl-sch-30842.dtsi"
+};
+
+&enetc0 {
+	status = "okay";
+	phy-mode = "usxgmii";
+	phy-handle = <&{/i2c at 2000000/fpga at 66/mux-mdio at 54/mdio at 40/phy@02}>;
+};
arch/arm/dts/fsl-ls1028a-qds-6xxx-sch-30842.dtsi new file +19 -0
new file mode 100644
index 000000000000..c6558ae2e07b
@@ -0,0 +1,19 @@
+// SPDX-License-Identifier: GPL-2.0+ OR X11
+/*
+ * NXP LS1028A-QDS device tree fragment for RCW 6xxx
+ *
+ * Copyright 2019-2021 NXP Semiconductors
+ */
+
+/*
+ * This setup is using SCH-30842 cards with AQR112 PHY.
+ */
+&slot1 {
+	#include "fsl-sch-30842.dtsi"
+};
+
+&enetc0 {
+	status = "okay";
+	phy-mode = "sgmii-2500";
+	phy-handle = <&{/i2c at 2000000/fpga at 66/mux-mdio at 54/mdio at 40/phy@02}>;
+};
arch/arm/dts/fsl-ls1028a-qds-7777-sch-30841.dtsi new file +49 -0

49 lines not on this page · raw message

arch/arm/dts/fsl-ls1028a-qds-7xx7-sch-30841R.dtsi new file +26 -0
new file mode 100644
index 000000000000..1d02a3e11def
@@ -0,0 +1,26 @@
+// SPDX-License-Identifier: GPL-2.0+ OR X11
+/*
+ * NXP LS1028A-QDS device tree fragment for RCW 7xx7
+ *
+ * Copyright 2019-2021 NXP Semiconductors
+ */
+
+&slot1 {
+#include "fsl-sch-30841.dtsi"
+};
+
+&mscc_felix {
+	status = "okay";
+};
+
+&mscc_felix_port0 {
+	status = "okay";
+	phy-mode = "sgmii-2500";
+	phy-handle = <&{/i2c at 2000000/fpga at 66/mux-mdio at 54/mdio at 40/phy@02}>;
+};
+
+&mscc_felix_port3 {
+	status = "okay";
+	phy-mode = "sgmii-2500";
+	phy-handle = <&{/i2c at 2000000/fpga at 66/mux-mdio at 54/mdio at 40/phy@03}>;
+};
arch/arm/dts/fsl-ls1028a-qds-8xxx-sch-24801.dtsi new file +19 -0
new file mode 100644
index 000000000000..7d4702e4ff2b
@@ -0,0 +1,19 @@
+// SPDX-License-Identifier: GPL-2.0+ OR X11
+/*
+ * NXP LS1028A-QDS device tree fragment for RCW 8xxx
+ *
+ * Copyright 2019-2021 NXP Semiconductors
+ */
+
+/*
+ * This setup is using SCH-24801 cards with VSC8234 quad SGMII PHY in slot 1.
+ */
+&slot1 {
+	#include "fsl-sch-24801.dtsi"
+};
+
+&enetc0 {
+	status = "okay";
+	phy-mode = "sgmii";
+	phy-handle = <&{/i2c at 2000000/fpga at 66/mux-mdio at 54/mdio at 40/phy@1c}>;
+};
arch/arm/dts/fsl-ls1028a-qds-9999-sch-24801-LBRW.dtsi new file +63 -0

63 lines not on this page · raw message

arch/arm/dts/fsl-ls1028a-qds-9999-sch-24801.dtsi new file +48 -0

48 lines not on this page · raw message

arch/arm/dts/fsl-ls1028a-qds-x3xx-sch-30841-LBRW.dtsi new file +48 -0

48 lines not on this page · raw message

arch/arm/dts/fsl-ls1028a-qds-x5xx-sch-28021-LBRW.dtsi new file +42 -0

42 lines not on this page · raw message

arch/arm/dts/fsl-ls1028a-qds-x7xx-sch-30842.dtsi new file +20 -0
new file mode 100644
index 000000000000..8347462f4cb0
@@ -0,0 +1,20 @@
+// SPDX-License-Identifier: GPL-2.0+ OR X11
+/*
+ * NXP LS1028A-QDS device tree fragment for RCW 7777
+ *
+ * Copyright 2019-2021 NXP Semiconductors
+ */
+
+&slot2 {
+#include "fsl-sch-30842.dtsi"
+};
+
+&mscc_felix {
+	status = "okay";
+};
+
+&mscc_felix_port1 {
+	status = "okay";
+	phy-mode = "sgmii-2500";
+	phy-handle = <&{/i2c at 2000000/fpga at 66/mux-mdio at 54/mdio at 50/phy@02}>;
+};
arch/arm/dts/fsl-ls1028a-qds-xx7x-sch-30842.dtsi new file +20 -0
new file mode 100644
index 000000000000..6be3b5094c81
@@ -0,0 +1,20 @@
+// SPDX-License-Identifier: GPL-2.0+ OR X11
+/*
+ * NXP LS1028A-QDS device tree fragment for RCW 7777
+ *
+ * Copyright 2019-2021 NXP Semiconductors
+ */
+
+&slot3 {
+#include "fsl-sch-30842.dtsi"
+};
+
+&mscc_felix {
+	status = "okay";
+};
+
+&mscc_felix_port2 {
+	status = "okay";
+	phy-mode = "sgmii-2500";
+	phy-handle = <&{/i2c at 2000000/fpga at 66/mux-mdio at 54/mdio at 60/phy@02}>;
+};
arch/arm/dts/fsl-ls1028a-qds.dtsi +3 -0
index 6cdcce1b92fb..da89ff96e98c 100644
@@ -258,3 +258,6 @@
 &mdio0 {
 	status = "okay";
 };
+
+#include "fsl-ls1028a-qds-8xxx-sch-24801.dtsi"
+#include "fsl-ls1028a-qds-x5xx-sch-28021-LBRW.dtsi"
arch/arm/dts/fsl-sch-24801.dtsi new file +28 -0
new file mode 100644
index 000000000000..304afdabc59e
@@ -0,0 +1,28 @@
+// SPDX-License-Identifier: GPL-2.0+ OR X11
+/*
+ * Device tree fragment for RCW SCH-24801 card
+ *
+ * Copyright 2019-2021 NXP Semiconductors
+ */
+
+/*
+ * SCH-24801 is a 4xSGMII add-on card used with various FSL QDS boards.
+ * It integrates a VSC8234 quad PHY which supports 4 SGMII interfaces.
+ * PHY addresses are 0x1c - 0x1f.
+ * On the card the first port is the top port (farthest from PEX connector).
+ */
+phy at 1c {
+	reg = <0x1c>;
+};
+
+phy at 1d {
+	reg = <0x1d>;
+};
+
+phy at 1e {
+	reg = <0x1e>;
+};
+
+phy at 1f {
+	reg = <0x1f>;
+};
arch/arm/dts/fsl-sch-28021.dtsi new file +29 -0
new file mode 100644
index 000000000000..584f3fa68cdd
@@ -0,0 +1,29 @@
+// SPDX-License-Identifier: GPL-2.0+ OR X11
+/*
+ * Device tree fragment for RCW SCH-28021 card
+ *
+ * Copyright 2019-2021 NXP Semiconductors
+ */
+
+/*
+ * SCH-28021 is a QSGMII add-on card used with various FSL QDS boards.
+ * It integrates a VSC8514 quad PHY which supports 4 interfaces muxed on a
+ * single QSGMII lane.
+ * PHY addresses are 0x08 - 0x0b.
+ * On the card the first port is the top port (farthest from PEX connector).
+ */
+phy at 08 {
+	reg = <0x08>;
+};
+
+phy at 09 {
+	reg = <0x09>;
+};
+
+phy at 0a {
+	reg = <0x0a>;
+};
+
+phy at 0b {
+	reg = <0x0b>;
+};
arch/arm/dts/fsl-sch-30841.dtsi new file +38 -0
new file mode 100644
index 000000000000..ca437d178281
@@ -0,0 +1,38 @@
+// SPDX-License-Identifier: GPL-2.0+ OR X11
+/*
+ * Device tree fragment for RCW SCH-30841 card
+ *
+ * Copyright 2019-2021 NXP Semiconductors
+ */
+
+/*
+ * SCH-30841 is a 4 port add-on card used with various FSL QDS boards.
+ * It integrates a AQR412C quad PHY which supports 4 interfaces either muxed
+ * together on a single lane or mapped 1:1 to serdes lanes.
+ * It supports several protocols - SGMII, SGMII-2500, USXGMII, M-USX, XFI.
+ * PHY addresses are 0x00 - 0x03.
+ * On the card the first port is the bottom port (closest to PEX connector).
+ */
+phy at 00 {
+	reg = <0x00>;
+	mdi-reversal = <1>;
+	smb-addr = <0x25>;
+};
+
+phy at 01 {
+	reg = <0x01>;
+	mdi-reversal = <1>;
+	smb-addr = <0x26>;
+};
+
+phy at 02 {
+	reg = <0x02>;
+	mdi-reversal = <1>;
+	smb-addr = <0x27>;
+};
+
+phy at 03 {
+	reg = <0x03>;
+	mdi-reversal = <1>;
+	smb-addr = <0x28>;
+};
arch/arm/dts/fsl-sch-30842.dtsi new file +18 -0
new file mode 100644
index 000000000000..fa0f2cdb1096
@@ -0,0 +1,18 @@
+// SPDX-License-Identifier: GPL-2.0+ OR X11
+/*
+ * Device tree fragment for RCW SCH-30842 card
+ *
+ * Copyright 2019-2021 NXP Semiconductors
+ */
+
+/*
+ * SCH-30842 is a single port add-on card used with various FSL QDS boards.
+ * It integrates a AQR112 PHY, which supports several protocols - SGMII,
+ * SGMII-2500, USXGMII, XFI.
+ * PHY address is 0x02.
+ */
+phy at 02 {
+	reg = <0x02>;
+	mdi-reversal = <1>;
+	smb-addr = <0x25>;
+};
Signature · 1 line
2.25.1