From: hongbo.wang@nxp.com To: hongjun.chen@nxp.com, po.liu@nxp.com, shawnguo@kernel.org, leoyang.li@nxp.com, vladimir.oltean@nxp.com, robh+dt@kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, andrew@lunn.ch, f.fainelli@gmail.com, vivien.didelot@gmail.com, davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: hongbo wang <hongbo.wang@nxp.com> Subject: [PATCH v1] arm64: dts: fsl: ls1028a-rdb: Add dts file to choose swp5 as dsa master Date: Fri, 13 Aug 2021 11:01:55 +0800 [thread overview] Message-ID: <20210813030155.23097-1-hongbo.wang@nxp.com> (raw) From: hongbo wang <hongbo.wang@nxp.com> some use cases want to use swp4-eno2 link as ordinary data path, so we can enable swp5 as dsa master, the data from kernel can be transmitted to eno3, then send to swp5 via internal link, switch will forward it to swp0-3. the data to kernel will come from swp0-3, and received by kernel via swp5-eno3 link. Signed-off-by: hongbo wang <hongbo.wang@nxp.com> --- arch/arm64/boot/dts/freescale/Makefile | 1 + .../fsl-ls1028a-rdb-dsa-swp5-eno3.dts | 27 +++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb-dsa-swp5-eno3.dts diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/freescale/Makefile index 25806c4924cb..032aaf52079a 100644 --- a/arch/arm64/boot/dts/freescale/Makefile +++ b/arch/arm64/boot/dts/freescale/Makefile @@ -12,6 +12,7 @@ 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-rdb.dtb +dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1028a-rdb-dsa-swp5-eno3.dtb dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1043a-qds.dtb dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1043a-rdb.dtb dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1046a-frwy.dtb diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb-dsa-swp5-eno3.dts b/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb-dsa-swp5-eno3.dts new file mode 100644 index 000000000000..a88396c137a1 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb-dsa-swp5-eno3.dts @@ -0,0 +1,27 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Device Tree file for NXP LS1028A RDB with dsa master swp5-eno3. + * + * Copyright 2018-2021 NXP + * + * Hongbo Wang <hongbo.wang@nxp.com> + * + */ + +/dts-v1/; +#include "fsl-ls1028a-rdb.dts" + +&enetc_port3 { + status = "okay"; +}; + +&mscc_felix_port4 { + label = "swp4"; + /delete-property/ ethernet; + status = "okay"; +}; + +&mscc_felix_port5 { + ethernet = <&enetc_port3>; + status = "okay"; +}; -- 2.27.0
WARNING: multiple messages have this Message-ID (diff)
From: hongbo.wang@nxp.com To: hongjun.chen@nxp.com, po.liu@nxp.com, shawnguo@kernel.org, leoyang.li@nxp.com, vladimir.oltean@nxp.com, robh+dt@kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, andrew@lunn.ch, f.fainelli@gmail.com, vivien.didelot@gmail.com, davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: hongbo wang <hongbo.wang@nxp.com> Subject: [PATCH v1] arm64: dts: fsl: ls1028a-rdb: Add dts file to choose swp5 as dsa master Date: Fri, 13 Aug 2021 11:01:55 +0800 [thread overview] Message-ID: <20210813030155.23097-1-hongbo.wang@nxp.com> (raw) From: hongbo wang <hongbo.wang@nxp.com> some use cases want to use swp4-eno2 link as ordinary data path, so we can enable swp5 as dsa master, the data from kernel can be transmitted to eno3, then send to swp5 via internal link, switch will forward it to swp0-3. the data to kernel will come from swp0-3, and received by kernel via swp5-eno3 link. Signed-off-by: hongbo wang <hongbo.wang@nxp.com> --- arch/arm64/boot/dts/freescale/Makefile | 1 + .../fsl-ls1028a-rdb-dsa-swp5-eno3.dts | 27 +++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb-dsa-swp5-eno3.dts diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/freescale/Makefile index 25806c4924cb..032aaf52079a 100644 --- a/arch/arm64/boot/dts/freescale/Makefile +++ b/arch/arm64/boot/dts/freescale/Makefile @@ -12,6 +12,7 @@ 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-rdb.dtb +dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1028a-rdb-dsa-swp5-eno3.dtb dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1043a-qds.dtb dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1043a-rdb.dtb dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1046a-frwy.dtb diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb-dsa-swp5-eno3.dts b/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb-dsa-swp5-eno3.dts new file mode 100644 index 000000000000..a88396c137a1 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb-dsa-swp5-eno3.dts @@ -0,0 +1,27 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Device Tree file for NXP LS1028A RDB with dsa master swp5-eno3. + * + * Copyright 2018-2021 NXP + * + * Hongbo Wang <hongbo.wang@nxp.com> + * + */ + +/dts-v1/; +#include "fsl-ls1028a-rdb.dts" + +&enetc_port3 { + status = "okay"; +}; + +&mscc_felix_port4 { + label = "swp4"; + /delete-property/ ethernet; + status = "okay"; +}; + +&mscc_felix_port5 { + ethernet = <&enetc_port3>; + status = "okay"; +}; -- 2.27.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next reply other threads:[~2021-08-13 2:57 UTC|newest] Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-08-13 3:01 hongbo.wang [this message] 2021-08-13 3:01 ` [PATCH v1] arm64: dts: fsl: ls1028a-rdb: Add dts file to choose swp5 as dsa master hongbo.wang 2021-08-13 13:09 ` Andrew Lunn 2021-08-13 13:09 ` Andrew Lunn 2021-08-13 13:56 ` [EXT] " Hongbo Wang 2021-08-13 13:56 ` Hongbo Wang 2021-08-13 14:07 ` Vladimir Oltean 2021-08-13 14:07 ` Vladimir Oltean 2021-08-13 14:25 ` Andrew Lunn 2021-08-13 14:25 ` Andrew Lunn 2021-08-16 6:03 ` Hongbo Wang 2021-08-16 6:03 ` Hongbo Wang 2021-08-16 17:48 ` Vladimir Oltean 2021-08-16 17:48 ` Vladimir Oltean 2021-08-17 2:59 ` Hongbo Wang 2021-08-17 2:59 ` Hongbo Wang 2022-09-05 20:52 ` Vladimir Oltean 2022-09-05 20:52 ` Vladimir Oltean
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=20210813030155.23097-1-hongbo.wang@nxp.com \ --to=hongbo.wang@nxp.com \ --cc=andrew@lunn.ch \ --cc=davem@davemloft.net \ --cc=devicetree@vger.kernel.org \ --cc=f.fainelli@gmail.com \ --cc=hongjun.chen@nxp.com \ --cc=leoyang.li@nxp.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=netdev@vger.kernel.org \ --cc=po.liu@nxp.com \ --cc=robh+dt@kernel.org \ --cc=shawnguo@kernel.org \ --cc=vivien.didelot@gmail.com \ --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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.