linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Leo Li <leoyang.li@nxp.com>
To: Shawn Guo <shawnguo@kernel.org>
Cc: "linux-arm-kernel@lists.infradead.org" 
	<linux-arm-kernel@lists.infradead.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	Alexandru Marginean <alexandru.marginean@nxp.com>,
	Ioana Ciornei <ioana.ciornei@nxp.com>,
	Aisheng Dong <aisheng.dong@nxp.com>,
	Jason Liu <jason.hui.liu@nxp.com>,
	Vladimir Oltean <vladimir.oltean@nxp.com>
Subject: RE: [PATCH v3 8/8] arm64: dts: ls1028a-qds: add overlays for various serdes protocols
Date: Wed, 26 Jan 2022 08:55:52 +0000	[thread overview]
Message-ID: <AS8PR04MB8946E671ABAF95E88E26D9038F209@AS8PR04MB8946.eurprd04.prod.outlook.com> (raw)
In-Reply-To: <20220126083348.GG4686@dragon>



> -----Original Message-----
> From: Shawn Guo <shawnguo@kernel.org>
> Sent: Wednesday, January 26, 2022 4:34 PM
> To: Leo Li <leoyang.li@nxp.com>
> Cc: linux-arm-kernel@lists.infradead.org; linux-kernel@vger.kernel.org;
> Alexandru Marginean <alexandru.marginean@nxp.com>; Ioana Ciornei
> <ioana.ciornei@nxp.com>; Aisheng Dong <aisheng.dong@nxp.com>; Jason
> Liu <jason.hui.liu@nxp.com>; Vladimir Oltean <vladimir.oltean@nxp.com>
> Subject: Re: [PATCH v3 8/8] arm64: dts: ls1028a-qds: add overlays for various
> serdes protocols
> 
> Hi Leo,
> 
> On Tue, Dec 14, 2021 at 03:32:40AM -0600, Li Yang wrote:
> > From: Alex Marginean <alexandru.marginean@nxp.com>
> >
> > Add overlays for various serdes protocols on LS1028A QDS board using
> > different PHY cards.  These should be applied at boot, based on serdes
> > configuration.  If no overlay is applied, only the RGMII interface on
> > the QDS is available in Linux.
> >
> > Building device tree fragments requires passing the "-@" argument to
> > dtc, which increases the base dtb size and might cause some platforms
> > to fail to store the new binary. To avoid that, it would be nice to
> > only pass "-@" for the platforms where fragments will be used, aka
> > LS1028A-QDS. One approach suggested by Rob Herring is used here:
> >
> > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flore
> > .kernel.org%2Fpatchwork%2Fpatch%2F821645%2F&amp;data=04%7C01%7
> Cleoyang
> > .li%40nxp.com%7C05d70cc78d8e432dfb8908d9e0a69c47%7C686ea1d3bc2b
> 4c6fa92
> >
> cd99c5c301635%7C0%7C0%7C637787828474973256%7CUnknown%7CTWFpb
> GZsb3d8eyJ
> >
> WIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%
> 7C3000
> >
> &amp;sdata=FF7G4XlUbxPoZ%2FPu2ERMSe2I5tg%2F8R1nm0wx8W7dxc4%3
> D&amp;rese
> > rved=0
> >
> > Also moved the enet* override nodes in dts file to be in alphabetic order.
> >
> > Signed-off-by: Alex Marginean <alexandru.marginean@nxp.com>
> > Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
> > Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
> > Signed-off-by: Jason Liu <jason.hui.liu@nxp.com>
> > Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
> > Signed-off-by: Li Yang <leoyang.li@nxp.com>
> > ---
> >  arch/arm64/boot/dts/freescale/Makefile        |  16 +++
> >  .../dts/freescale/fsl-ls1028a-qds-13bb.dts    | 113 ++++++++++++++++++
> >  .../dts/freescale/fsl-ls1028a-qds-65bb.dts    | 108 +++++++++++++++++
> >  .../dts/freescale/fsl-ls1028a-qds-7777.dts    |  82 +++++++++++++
> >  .../dts/freescale/fsl-ls1028a-qds-85bb.dts    | 107 +++++++++++++++++
> >  .../dts/freescale/fsl-ls1028a-qds-899b.dts    |  75 ++++++++++++
> >  .../dts/freescale/fsl-ls1028a-qds-9999.dts    |  79 ++++++++++++
> >  .../boot/dts/freescale/fsl-ls1028a-qds.dts    |  19 ++-
> >  .../arm64/boot/dts/freescale/fsl-ls1028a.dtsi |   2 +-
> >  9 files changed, 595 insertions(+), 6 deletions(-)  create mode
> > 100644 arch/arm64/boot/dts/freescale/fsl-ls1028a-qds-13bb.dts
> >  create mode 100644
> > arch/arm64/boot/dts/freescale/fsl-ls1028a-qds-65bb.dts
> >  create mode 100644
> > arch/arm64/boot/dts/freescale/fsl-ls1028a-qds-7777.dts
> >  create mode 100644
> > arch/arm64/boot/dts/freescale/fsl-ls1028a-qds-85bb.dts
> >  create mode 100644
> > arch/arm64/boot/dts/freescale/fsl-ls1028a-qds-899b.dts
> >  create mode 100644
> > arch/arm64/boot/dts/freescale/fsl-ls1028a-qds-9999.dts
> >
> > diff --git a/arch/arm64/boot/dts/freescale/Makefile
> > b/arch/arm64/boot/dts/freescale/Makefile
> > index a14a6173b765..f518eb1e1142 100644
> > --- a/arch/arm64/boot/dts/freescale/Makefile
> > +++ b/arch/arm64/boot/dts/freescale/Makefile
> > @@ -1,4 +1,14 @@
> >  # SPDX-License-Identifier: GPL-2.0
> > +
> > +# required for overlay support
> > +DTC_FLAGS_fsl-ls1028a-qds := -@
> > +DTC_FLAGS_fsl-ls1028a-qds-13bb := -@
> > +DTC_FLAGS_fsl-ls1028a-qds-65bb := -@
> > +DTC_FLAGS_fsl-ls1028a-qds-7777 := -@
> > +DTC_FLAGS_fsl-ls1028a-qds-85bb := -@
> > +DTC_FLAGS_fsl-ls1028a-qds-899b := -@
> > +DTC_FLAGS_fsl-ls1028a-qds-9999 := -@
> > +
> >  dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1012a-frdm.dtb
> >  dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1012a-frwy.dtb
> >  dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1012a-oxalis.dtb @@ -11,6
> > +21,12 @@ dtb-$(CONFIG_ARCH_LAYERSCAPE) +=
> > fsl-ls1028a-kontron-sl28-var2.dtb
> >  dtb-$(CONFIG_ARCH_LAYERSCAPE) +=
> > fsl-ls1028a-kontron-sl28-var3-ads2.dtb
> >  dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1028a-kontron-sl28-var4.dtb
> >  dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1028a-qds.dtb
> > +dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1028a-qds-13bb.dtb
> > +dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1028a-qds-65bb.dtb
> > +dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1028a-qds-7777.dtb
> > +dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1028a-qds-85bb.dtb
> > +dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1028a-qds-899b.dtb
> > +dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1028a-qds-9999.dtb
> >  dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1028a-rdb.dtb
> >  dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1043a-qds.dtb
> >  dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1043a-rdb.dtb diff --git
> > a/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds-13bb.dts
> > b/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds-13bb.dts
> > new file mode 100644
> > index 000000000000..f748a2c12a70
> > --- /dev/null
> > +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds-13bb.dts
> > @@ -0,0 +1,113 @@
> > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
> > +/*
> > + * Device Tree fragment for LS1028A QDS board, serdes 13bb
> > + *
> > + * Copyright 2019-2021 NXP
> > + *
> > + * Requires a LS1028A QDS board with lane B rework.
> > + * Requires a SCH-30841 card with lane A of connector rewired to PHY lane
> C.
> > + * Set-up is a SCH-30842 card in slot 1 and SCH-30841 in slot 2.
> > + */
> > +
> > +/dts-v1/;
> > +/plugin/;
> > +
> > +/ {
> > +	fragment@0 {
> > +		target = <&mdio_slot1>;
> 
> I cannot find this mdio_slot1 node (and mdio_slot2 below) in any upstream
> device tree.  We are not going to maintain a bunch of overlays which are only
> meant to apply on the out-of-tree DTs.

Sorry the patch adding mdio_slot nodes has been missed from the tree maintenance.

> 
> So please either submit those missing device nodes in the base DT, or I will
> have to revert the patch.

Will submit the patch right away.

> 
> Shawn
> 
> > +
> > +		__overlay__ {
> > +			#address-cells = <1>;
> > +			#size-cells = <0>;
> > +
> > +			slot1_sgmii: ethernet-phy@2 {
> > +				/* AQR112 */
> > +				reg = <0x2>;
> > +				compatible = "ethernet-phy-ieee802.3-c45";
> > +			};
> > +		};
> > +	};
> > +
> > +	fragment@1 {
> > +		target = <&enetc_port0>;
> > +
> > +		__overlay__ {
> > +			phy-handle = <&slot1_sgmii>;
> > +			phy-mode = "usxgmii";
> > +			managed = "in-band-status";
> > +			status = "okay";
> > +		};
> > +	};
> > +
> > +	fragment@2 {
> > +		target = <&mdio_slot2>;
> > +
> > +		__overlay__ {
> > +			#address-cells = <1>;
> > +			#size-cells = <0>;
> > +
> > +			/* 4 ports on AQR412 */
> > +			slot2_qxgmii0: ethernet-phy@0 {
> > +				reg = <0x0>;
> > +				compatible = "ethernet-phy-ieee802.3-c45";
> > +			};
> > +
> > +			slot2_qxgmii1: ethernet-phy@1 {
> > +				reg = <0x1>;
> > +				compatible = "ethernet-phy-ieee802.3-c45";
> > +			};
> > +
> > +			slot2_qxgmii2: ethernet-phy@2 {
> > +				reg = <0x2>;
> > +				compatible = "ethernet-phy-ieee802.3-c45";
> > +			};
> > +
> > +			slot2_qxgmii3: ethernet-phy@3 {
> > +				reg = <0x3>;
> > +				compatible = "ethernet-phy-ieee802.3-c45";
> > +			};
> > +		};
> > +	};
> > +
> > +	fragment@3 {
> > +		target = <&mscc_felix_ports>;
> > +
> > +		__overlay__ {
> > +			port@0 {
> > +				status = "okay";
> > +				phy-handle = <&slot2_qxgmii0>;
> > +				phy-mode = "usxgmii";
> > +				managed = "in-band-status";
> > +			};
> > +
> > +			port@1 {
> > +				status = "okay";
> > +				phy-handle = <&slot2_qxgmii1>;
> > +				phy-mode = "usxgmii";
> > +				managed = "in-band-status";
> > +			};
> > +
> > +			port@2 {
> > +				status = "okay";
> > +				phy-handle = <&slot2_qxgmii2>;
> > +				phy-mode = "usxgmii";
> > +				managed = "in-band-status";
> > +			};
> > +
> > +			port@3 {
> > +				status = "okay";
> > +				phy-handle = <&slot2_qxgmii3>;
> > +				phy-mode = "usxgmii";
> > +				managed = "in-band-status";
> > +			};
> > +		};
> > +	};
> > +
> > +	fragment@4 {
> > +		target = <&mscc_felix>;
> > +
> > +		__overlay__ {
> > +			status = "okay";
> > +		};
> > +	};
> > +};
> > diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds-65bb.dts
> > b/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds-65bb.dts
> > new file mode 100644
> > index 000000000000..8ffb707a1576
> > --- /dev/null
> > +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds-65bb.dts
> > @@ -0,0 +1,108 @@
> > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
> > +/*
> > + * Device Tree fragment for LS1028A QDS board, serdes 69xx
> > + *
> > + * Copyright 2019-2021 NXP
> > + *
> > + * Requires a LS1028A QDS board with lane B rework.
> > + * Requires a SCH-30842 card in slot 1 and a SCH-28021 card in slot 2.
> > + */
> > +
> > +/dts-v1/;
> > +/plugin/;
> > +
> > +/ {
> > +	fragment@0 {
> > +		target = <&mdio_slot1>;
> > +
> > +		__overlay__ {
> > +			#address-cells = <1>;
> > +			#size-cells = <0>;
> > +
> > +			slot1_sgmii: ethernet-phy@2 {
> > +				/* AQR112 */
> > +				reg = <0x2>;
> > +				compatible = "ethernet-phy-ieee802.3-c45";
> > +			};
> > +		};
> > +	};
> > +
> > +	fragment@1 {
> > +		target = <&enetc_port0>;
> > +
> > +		__overlay__ {
> > +			phy-handle = <&slot1_sgmii>;
> > +			phy-mode = "2500base-x";
> > +			managed = "in-band-status";
> > +			status = "okay";
> > +		};
> > +	};
> > +
> > +	fragment@2 {
> > +		target = <&mdio_slot2>;
> > +
> > +		__overlay__ {
> > +			#address-cells = <1>;
> > +			#size-cells = <0>;
> > +
> > +			/* 4 ports on VSC8514 */
> > +			slot2_qsgmii0: ethernet-phy@8 {
> > +				reg = <0x8>;
> > +			};
> > +
> > +			slot2_qsgmii1: ethernet-phy@9 {
> > +				reg = <0x9>;
> > +			};
> > +
> > +			slot2_qsgmii2: ethernet-phy@a {
> > +				reg = <0xa>;
> > +			};
> > +
> > +			slot2_qsgmii3: ethernet-phy@b {
> > +				reg = <0xb>;
> > +			};
> > +		};
> > +	};
> > +
> > +	fragment@3 {
> > +		target = <&mscc_felix_ports>;
> > +
> > +		__overlay__ {
> > +			port@0 {
> > +				status = "okay";
> > +				phy-handle = <&slot2_qsgmii0>;
> > +				phy-mode = "qsgmii";
> > +				managed = "in-band-status";
> > +			};
> > +
> > +			port@1 {
> > +				status = "okay";
> > +				phy-handle = <&slot2_qsgmii1>;
> > +				phy-mode = "qsgmii";
> > +				managed = "in-band-status";
> > +			};
> > +
> > +			port@2 {
> > +				status = "okay";
> > +				phy-handle = <&slot2_qsgmii2>;
> > +				phy-mode = "qsgmii";
> > +				managed = "in-band-status";
> > +			};
> > +
> > +			port@3 {
> > +				status = "okay";
> > +				phy-handle = <&slot2_qsgmii3>;
> > +				phy-mode = "qsgmii";
> > +				managed = "in-band-status";
> > +			};
> > +		};
> > +	};
> > +
> > +	fragment@4 {
> > +		target = <&mscc_felix>;
> > +
> > +		__overlay__ {
> > +			status = "okay";
> > +		};
> > +	};
> > +};
> > diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds-7777.dts
> > b/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds-7777.dts
> > new file mode 100644
> > index 000000000000..eb6a1e674f10
> > --- /dev/null
> > +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds-7777.dts
> > @@ -0,0 +1,82 @@
> > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
> > +/*
> > + * Device Tree fragment for LS1028A QDS board, serdes 7777
> > + *
> > + * Copyright 2019-2021 NXP
> > + *
> > + * Requires a LS1028A QDS board without lane B rework.
> > + * Requires a SCH-30841 card without lane A/C rewire and with a FW
> > +with muxing
> > + * disabled, plugged in slot 1.
> > + */
> > +
> > +/dts-v1/;
> > +/plugin/;
> > +
> > +/ {
> > +	fragment@0 {
> > +		target = <&mdio_slot1>;
> > +
> > +		__overlay__ {
> > +			#address-cells = <1>;
> > +			#size-cells = <0>;
> > +
> > +			/* 4 ports on AQR412 */
> > +			slot1_sxgmii0: ethernet-phy@0 {
> > +				reg = <0x0>;
> > +				compatible = "ethernet-phy-ieee802.3-c45";
> > +			};
> > +
> > +			slot1_sxgmii1: ethernet-phy@1 {
> > +				reg = <0x1>;
> > +				compatible = "ethernet-phy-ieee802.3-c45";
> > +			};
> > +
> > +			slot1_sxgmii2: ethernet-phy@2 {
> > +				reg = <0x2>;
> > +				compatible = "ethernet-phy-ieee802.3-c45";
> > +			};
> > +
> > +			slot1_sxgmii3: ethernet-phy@3 {
> > +				reg = <0x3>;
> > +				compatible = "ethernet-phy-ieee802.3-c45";
> > +			};
> > +		};
> > +	};
> > +
> > +	fragment@1 {
> > +		target = <&mscc_felix_ports>;
> > +
> > +		__overlay__ {
> > +			port@0 {
> > +				status = "okay";
> > +				phy-handle = <&slot1_sxgmii0>;
> > +				phy-mode = "2500base-x";
> > +			};
> > +
> > +			port@1 {
> > +				status = "okay";
> > +				phy-handle = <&slot1_sxgmii1>;
> > +				phy-mode = "2500base-x";
> > +			};
> > +
> > +			port@2 {
> > +				status = "okay";
> > +				phy-handle = <&slot1_sxgmii2>;
> > +				phy-mode = "2500base-x";
> > +			};
> > +
> > +			port@3 {
> > +				status = "okay";
> > +				phy-handle = <&slot1_sxgmii3>;
> > +				phy-mode = "2500base-x";
> > +			};
> > +		};
> > +	};
> > +
> > +	fragment@2 {
> > +		target = <&mscc_felix>;
> > +		__overlay__ {
> > +			status = "okay";
> > +		};
> > +	};
> > +};
> > diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds-85bb.dts
> > b/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds-85bb.dts
> > new file mode 100644
> > index 000000000000..8e90c3088ba1
> > --- /dev/null
> > +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds-85bb.dts
> > @@ -0,0 +1,107 @@
> > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
> > +/*
> > + * Device Tree fragment for LS1028A QDS board, serdes 85bb
> > + *
> > + * Copyright 2019-2021 NXP
> > + *
> > + * Requires a LS1028A QDS board with lane B rework.
> > + * Requires a SCH-24801 card in slot 1 and a SCH-28021 card in slot 2.
> > + */
> > +
> > +/dts-v1/;
> > +/plugin/;
> > +
> > +/ {
> > +	fragment@0 {
> > +		target = <&mdio_slot1>;
> > +
> > +		__overlay__ {
> > +			#address-cells = <1>;
> > +			#size-cells = <0>;
> > +
> > +			slot1_sgmii: ethernet-phy@1c {
> > +				/* 1st port on VSC8234 */
> > +				reg = <0x1c>;
> > +			};
> > +		};
> > +	};
> > +
> > +	fragment@1 {
> > +		target = <&enetc_port0>;
> > +
> > +		__overlay__ {
> > +			phy-handle = <&slot1_sgmii>;
> > +			phy-mode = "sgmii";
> > +			managed = "in-band-status";
> > +			status = "okay";
> > +		};
> > +	};
> > +
> > +	fragment@2 {
> > +		target = <&mdio_slot2>;
> > +
> > +		__overlay__ {
> > +			#address-cells = <1>;
> > +			#size-cells = <0>;
> > +
> > +			/* 4 ports on VSC8514 */
> > +			slot2_qsgmii0: ethernet-phy@8 {
> > +				reg = <0x8>;
> > +			};
> > +
> > +			slot2_qsgmii1: ethernet-phy@9 {
> > +				reg = <0x9>;
> > +			};
> > +
> > +			slot2_qsgmii2: ethernet-phy@a {
> > +				reg = <0xa>;
> > +			};
> > +
> > +			slot2_qsgmii3: ethernet-phy@b {
> > +				reg = <0xb>;
> > +			};
> > +		};
> > +	};
> > +
> > +	fragment@3 {
> > +		target = <&mscc_felix_ports>;
> > +
> > +		__overlay__ {
> > +			port@0 {
> > +				status = "okay";
> > +				phy-handle = <&slot2_qsgmii0>;
> > +				phy-mode = "qsgmii";
> > +				managed = "in-band-status";
> > +			};
> > +
> > +			port@1 {
> > +				status = "okay";
> > +				phy-handle = <&slot2_qsgmii1>;
> > +				phy-mode = "qsgmii";
> > +				managed = "in-band-status";
> > +			};
> > +
> > +			port@2 {
> > +				status = "okay";
> > +				phy-handle = <&slot2_qsgmii2>;
> > +				phy-mode = "qsgmii";
> > +				managed = "in-band-status";
> > +			};
> > +
> > +			port@3 {
> > +				status = "okay";
> > +				phy-handle = <&slot2_qsgmii3>;
> > +				phy-mode = "qsgmii";
> > +				managed = "in-band-status";
> > +			};
> > +		};
> > +	};
> > +
> > +	fragment@4 {
> > +		target = <&mscc_felix>;
> > +
> > +		__overlay__ {
> > +			status = "okay";
> > +		};
> > +	};
> > +};
> > diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds-899b.dts
> > b/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds-899b.dts
> > new file mode 100644
> > index 000000000000..5d0a094e6c44
> > --- /dev/null
> > +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds-899b.dts
> > @@ -0,0 +1,75 @@
> > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
> > +/*
> > + * Device Tree fragment for LS1028A QDS board, serdes 85xx
> > + *
> > + * Copyright 2019-2021 NXP
> > + *
> > + * Requires a LS1028A QDS board without lane B rework.
> > + * Requires a SCH-24801 card in slot 1.
> > + */
> > +
> > +/dts-v1/;
> > +/plugin/;
> > +
> > +/ {
> > +	fragment@0 {
> > +		target = <&mdio_slot1>;
> > +		__overlay__ {
> > +			#address-cells = <1>;
> > +			#size-cells = <0>;
> > +
> > +			/* VSC8234 */
> > +			slot1_sgmii0: ethernet-phy@1c {
> > +				reg = <0x1c>;
> > +			};
> > +
> > +			slot1_sgmii1: ethernet-phy@1d {
> > +				reg = <0x1d>;
> > +			};
> > +
> > +			slot1_sgmii2: ethernet-phy@1e {
> > +				reg = <0x1e>;
> > +			};
> > +
> > +			slot1_sgmii3: ethernet-phy@1f {
> > +				reg = <0x1f>;
> > +			};
> > +		};
> > +	};
> > +
> > +	fragment@1 {
> > +		target = <&enetc_port0>;
> > +		__overlay__ {
> > +			phy-handle = <&slot1_sgmii0>;
> > +			phy-mode = "sgmii";
> > +			managed = "in-band-status";
> > +			status = "okay";
> > +		};
> > +	};
> > +
> > +	fragment@2 {
> > +		target = <&mscc_felix_ports>;
> > +		__overlay__ {
> > +			port@1 {
> > +				status = "okay";
> > +				phy-handle = <&slot1_sgmii1>;
> > +				phy-mode = "sgmii";
> > +				managed = "in-band-status";
> > +			};
> > +
> > +			port@2 {
> > +				status = "okay";
> > +				phy-handle = <&slot1_sgmii2>;
> > +				phy-mode = "sgmii";
> > +				managed = "in-band-status";
> > +			};
> > +		};
> > +	};
> > +
> > +	fragment@3 {
> > +		target = <&mscc_felix>;
> > +		__overlay__ {
> > +			status = "okay";
> > +		};
> > +	};
> > +};
> > diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds-9999.dts
> > b/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds-9999.dts
> > new file mode 100644
> > index 000000000000..1ef743c48e84
> > --- /dev/null
> > +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds-9999.dts
> > @@ -0,0 +1,79 @@
> > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
> > +/*
> > + * Device Tree fragment for LS1028A QDS board, serdes 85xx
> > + *
> > + * Copyright 2019-2021 NXP
> > + *
> > + * Requires a LS1028A QDS board without lane B rework.
> > + * Requires a SCH-24801 card in slot 1.
> > + */
> > +
> > +/dts-v1/;
> > +/plugin/;
> > +
> > +/ {
> > +	fragment@0 {
> > +		target = <&mdio_slot1>;
> > +		__overlay__ {
> > +			#address-cells = <1>;
> > +			#size-cells = <0>;
> > +
> > +			/* VSC8234 */
> > +			slot1_sgmii0: ethernet-phy@1c {
> > +				reg = <0x1c>;
> > +			};
> > +
> > +			slot1_sgmii1: ethernet-phy@1d {
> > +				reg = <0x1d>;
> > +			};
> > +
> > +			slot1_sgmii2: ethernet-phy@1e {
> > +				reg = <0x1e>;
> > +			};
> > +
> > +			slot1_sgmii3: ethernet-phy@1f {
> > +				reg = <0x1f>;
> > +			};
> > +		};
> > +	};
> > +
> > +	fragment@1 {
> > +		target = <&mscc_felix_ports>;
> > +		__overlay__ {
> > +			port@0 {
> > +				status = "okay";
> > +				phy-handle = <&slot1_sgmii0>;
> > +				phy-mode = "sgmii";
> > +				managed = "in-band-status";
> > +			};
> > +
> > +			port@1 {
> > +				status = "okay";
> > +				phy-handle = <&slot1_sgmii1>;
> > +				phy-mode = "sgmii";
> > +				managed = "in-band-status";
> > +			};
> > +
> > +			port@2 {
> > +				status = "okay";
> > +				phy-handle = <&slot1_sgmii2>;
> > +				phy-mode = "sgmii";
> > +				managed = "in-band-status";
> > +			};
> > +
> > +			port@3 {
> > +				status = "okay";
> > +				phy-handle = <&slot1_sgmii3>;
> > +				phy-mode = "sgmii";
> > +				managed = "in-band-status";
> > +			};
> > +		};
> > +	};
> > +
> > +	fragment@2 {
> > +		target = <&mscc_felix>;
> > +		__overlay__ {
> > +			status = "okay";
> > +		};
> > +	};
> > +};
> > diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts
> > b/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts
> > index 782853a449cc..177bc1405f0f 100644
> > --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts
> > +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts
> > @@ -211,6 +211,16 @@ &duart1 {
> >  	status = "okay";
> >  };
> >
> > +&enetc_port1 {
> > +	phy-handle = <&qds_phy1>;
> > +	phy-mode = "rgmii-id";
> > +	status = "okay";
> > +};
> > +
> > +&enetc_port2 {
> > +	status = "okay";
> > +};
> > +
> >  &esdhc {
> >  	status = "okay";
> >  };
> > @@ -326,17 +336,16 @@ rtc@51 {
> >  	};
> >  };
> >
> > -&enetc_port1 {
> > -	phy-handle = <&qds_phy1>;
> > -	phy-mode = "rgmii-id";
> > +&lpuart0 {
> >  	status = "okay";
> >  };
> >
> > -&lpuart0 {
> > +&lpuart1 {
> >  	status = "okay";
> >  };
> >
> > -&lpuart1 {
> > +&mscc_felix_port4 {
> > +	ethernet = <&enetc_port2>;
> >  	status = "okay";
> >  };
> >
> > diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi
> > b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi
> > index 5a7b26a1bad2..5bb8c26e0825 100644
> > --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi
> > +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi
> > @@ -1115,7 +1115,7 @@ mscc_felix: ethernet-switch@0,5 {
> >  				interrupts = <GIC_SPI 95
> IRQ_TYPE_LEVEL_HIGH>;
> >  				status = "disabled";
> >
> > -				ports {
> > +				mscc_felix_ports: ports {
> >  					#address-cells = <1>;
> >  					#size-cells = <0>;
> >
> > --
> > 2.25.1
> >

      reply	other threads:[~2022-01-26  8:55 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-14  9:32 [PATCH v3 0/8] ls1028a device tree update Li Yang
2021-12-14  9:32 ` [PATCH v3 1/8] arm64: dts: ls1028a: Add PCIe EP nodes Li Yang
2022-04-13 16:32   ` Vladimir Oltean
2022-04-13 18:03     ` Leo Li
2022-04-13 18:22       ` Vladimir Oltean
2022-04-13 18:38         ` Leo Li
2021-12-14  9:32 ` [PATCH v3 2/8] arm64: dts: ls1028a: add ftm_alarm1 node to be used as wakeup source Li Yang
2021-12-14  9:32 ` [PATCH v3 3/8] arm64: dts: ls1028a: add flextimer based pwm nodes Li Yang
2022-04-13 16:33   ` Vladimir Oltean
2022-04-13 18:07     ` Leo Li
2022-04-13 18:23       ` Vladimir Oltean
2022-04-13 19:10         ` Leo Li
2022-07-28  9:33           ` Michael Walle
2022-08-16  9:04             ` Michael Walle
2022-08-17 20:20             ` Sean Anderson
2021-12-14  9:32 ` [PATCH v3 4/8] arm64: dts: ls1028a-rdb: reorder nodes to be alphabetic Li Yang
2021-12-16 10:01   ` Shawn Guo
2021-12-14  9:32 ` [PATCH v3 5/8] arm64: dts: ls1028a-rdb: enable pwm0 Li Yang
2021-12-14  9:32 ` [PATCH v3 6/8] arm64: dts: ls1028a-qds: move rtc node to the correct i2c bus Li Yang
2021-12-14  9:32 ` [PATCH v3 7/8] arm64: dts: ls1028a-qds: enable lpuart1 Li Yang
2021-12-14  9:32 ` [PATCH v3 8/8] arm64: dts: ls1028a-qds: add overlays for various serdes protocols Li Yang
2022-01-26  8:33   ` Shawn Guo
2022-01-26  8:55     ` Leo Li [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=AS8PR04MB8946E671ABAF95E88E26D9038F209@AS8PR04MB8946.eurprd04.prod.outlook.com \
    --to=leoyang.li@nxp.com \
    --cc=aisheng.dong@nxp.com \
    --cc=alexandru.marginean@nxp.com \
    --cc=ioana.ciornei@nxp.com \
    --cc=jason.hui.liu@nxp.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=shawnguo@kernel.org \
    --cc=vladimir.oltean@nxp.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;
as well as URLs for NNTP newsgroup(s).