* [PATCH v2 devicetree 0/2] Add Seville Ethernet switch to T1040RDB @ 2020-09-29 11:32 Vladimir Oltean 2020-09-29 11:32 ` [PATCH v2 devicetree 1/2] powerpc: dts: t1040: add bindings for Seville Ethernet switch Vladimir Oltean ` (2 more replies) 0 siblings, 3 replies; 10+ messages in thread From: Vladimir Oltean @ 2020-09-29 11:32 UTC (permalink / raw) To: robh+dt, shawnguo, mpe, devicetree Cc: madalin.bucur, linux-kernel, radu-andrei.bulie, fido_max, paulus, netdev, linuxppc-dev Seville is a DSA switch that is embedded inside the T1040 SoC, and supported by the mscc_seville DSA driver inside drivers/net/dsa/ocelot. This series adds this switch to the SoC's dtsi files and to the T1040RDB board file. Vladimir Oltean (2): powerpc: dts: t1040: add bindings for Seville Ethernet switch powerpc: dts: t1040rdb: add ports for Seville Ethernet switch arch/powerpc/boot/dts/fsl/t1040rdb.dts | 115 ++++++++++++++++++++ arch/powerpc/boot/dts/fsl/t1040si-post.dtsi | 76 +++++++++++++ 2 files changed, 191 insertions(+) -- 2.25.1 ^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH v2 devicetree 1/2] powerpc: dts: t1040: add bindings for Seville Ethernet switch 2020-09-29 11:32 [PATCH v2 devicetree 0/2] Add Seville Ethernet switch to T1040RDB Vladimir Oltean @ 2020-09-29 11:32 ` Vladimir Oltean 2020-09-29 13:12 ` Maxim Kochetkov 2020-09-29 11:32 ` [PATCH v2 devicetree 2/2] powerpc: dts: t1040rdb: add ports " Vladimir Oltean 2020-09-29 13:11 ` [PATCH v2 devicetree 0/2] Add Seville Ethernet switch to T1040RDB Maxim Kochetkov 2 siblings, 1 reply; 10+ messages in thread From: Vladimir Oltean @ 2020-09-29 11:32 UTC (permalink / raw) To: robh+dt, shawnguo, mpe, devicetree Cc: madalin.bucur, linux-kernel, radu-andrei.bulie, fido_max, paulus, netdev, linuxppc-dev Add the description of the embedded L2 switch inside the SoC dtsi file for NXP T1040. Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> --- Changes in v2: Make switch node disabled by default. arch/powerpc/boot/dts/fsl/t1040si-post.dtsi | 76 +++++++++++++++++++++ 1 file changed, 76 insertions(+) diff --git a/arch/powerpc/boot/dts/fsl/t1040si-post.dtsi b/arch/powerpc/boot/dts/fsl/t1040si-post.dtsi index 315d0557eefc..5cb90c66cd3f 100644 --- a/arch/powerpc/boot/dts/fsl/t1040si-post.dtsi +++ b/arch/powerpc/boot/dts/fsl/t1040si-post.dtsi @@ -628,6 +628,82 @@ mdio@fd000 { status = "disabled"; }; }; + + seville_switch: ethernet-switch@800000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "mscc,vsc9953-switch"; + reg = <0x800000 0x290000>; + little-endian; + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + seville_port0: port@0 { + reg = <0>; + status = "disabled"; + }; + + seville_port1: port@1 { + reg = <1>; + status = "disabled"; + }; + + seville_port2: port@2 { + reg = <2>; + status = "disabled"; + }; + + seville_port3: port@3 { + reg = <3>; + status = "disabled"; + }; + + seville_port4: port@4 { + reg = <4>; + status = "disabled"; + }; + + seville_port5: port@5 { + reg = <5>; + status = "disabled"; + }; + + seville_port6: port@6 { + reg = <6>; + status = "disabled"; + }; + + seville_port7: port@7 { + reg = <7>; + status = "disabled"; + }; + + seville_port8: port@8 { + reg = <8>; + phy-mode = "internal"; + status = "disabled"; + + fixed-link { + speed = <2500>; + full-duplex; + }; + }; + + seville_port9: port@9 { + reg = <9>; + phy-mode = "internal"; + status = "disabled"; + + fixed-link { + speed = <2500>; + full-duplex; + }; + }; + }; + }; }; &qe { -- 2.25.1 ^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH v2 devicetree 1/2] powerpc: dts: t1040: add bindings for Seville Ethernet switch 2020-09-29 11:32 ` [PATCH v2 devicetree 1/2] powerpc: dts: t1040: add bindings for Seville Ethernet switch Vladimir Oltean @ 2020-09-29 13:12 ` Maxim Kochetkov 0 siblings, 0 replies; 10+ messages in thread From: Maxim Kochetkov @ 2020-09-29 13:12 UTC (permalink / raw) To: Vladimir Oltean, robh+dt, shawnguo, mpe, devicetree Cc: madalin.bucur, linux-kernel, radu-andrei.bulie, paulus, netdev, linuxppc-dev Reviewed-by: Maxim Kochetkov <fido_max@inbox.ru> 29.09.2020 14:32, Vladimir Oltean пишет: > Add the description of the embedded L2 switch inside the SoC dtsi file > for NXP T1040. > > Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> > --- > Changes in v2: > Make switch node disabled by default. > > arch/powerpc/boot/dts/fsl/t1040si-post.dtsi | 76 +++++++++++++++++++++ > 1 file changed, 76 insertions(+) > > diff --git a/arch/powerpc/boot/dts/fsl/t1040si-post.dtsi b/arch/powerpc/boot/dts/fsl/t1040si-post.dtsi > index 315d0557eefc..5cb90c66cd3f 100644 > --- a/arch/powerpc/boot/dts/fsl/t1040si-post.dtsi > +++ b/arch/powerpc/boot/dts/fsl/t1040si-post.dtsi > @@ -628,6 +628,82 @@ mdio@fd000 { > status = "disabled"; > }; > }; > + > + seville_switch: ethernet-switch@800000 { > + #address-cells = <1>; > + #size-cells = <0>; > + compatible = "mscc,vsc9953-switch"; > + reg = <0x800000 0x290000>; > + little-endian; > + status = "disabled"; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + seville_port0: port@0 { > + reg = <0>; > + status = "disabled"; > + }; > + > + seville_port1: port@1 { > + reg = <1>; > + status = "disabled"; > + }; > + > + seville_port2: port@2 { > + reg = <2>; > + status = "disabled"; > + }; > + > + seville_port3: port@3 { > + reg = <3>; > + status = "disabled"; > + }; > + > + seville_port4: port@4 { > + reg = <4>; > + status = "disabled"; > + }; > + > + seville_port5: port@5 { > + reg = <5>; > + status = "disabled"; > + }; > + > + seville_port6: port@6 { > + reg = <6>; > + status = "disabled"; > + }; > + > + seville_port7: port@7 { > + reg = <7>; > + status = "disabled"; > + }; > + > + seville_port8: port@8 { > + reg = <8>; > + phy-mode = "internal"; > + status = "disabled"; > + > + fixed-link { > + speed = <2500>; > + full-duplex; > + }; > + }; > + > + seville_port9: port@9 { > + reg = <9>; > + phy-mode = "internal"; > + status = "disabled"; > + > + fixed-link { > + speed = <2500>; > + full-duplex; > + }; > + }; > + }; > + }; > }; > > &qe { > ^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH v2 devicetree 2/2] powerpc: dts: t1040rdb: add ports for Seville Ethernet switch 2020-09-29 11:32 [PATCH v2 devicetree 0/2] Add Seville Ethernet switch to T1040RDB Vladimir Oltean 2020-09-29 11:32 ` [PATCH v2 devicetree 1/2] powerpc: dts: t1040: add bindings for Seville Ethernet switch Vladimir Oltean @ 2020-09-29 11:32 ` Vladimir Oltean 2020-09-29 13:12 ` Maxim Kochetkov 2020-09-29 19:11 ` Andrew Lunn 2020-09-29 13:11 ` [PATCH v2 devicetree 0/2] Add Seville Ethernet switch to T1040RDB Maxim Kochetkov 2 siblings, 2 replies; 10+ messages in thread From: Vladimir Oltean @ 2020-09-29 11:32 UTC (permalink / raw) To: robh+dt, shawnguo, mpe, devicetree Cc: madalin.bucur, linux-kernel, radu-andrei.bulie, fido_max, paulus, netdev, Vladimir Oltean, linuxppc-dev From: Vladimir Oltean <olteanv@gmail.com> Define the network interface names for the switch ports and hook them up to the 2 QSGMII PHYs that are onboard. A conscious decision was taken to go along with the numbers that are written on the front panel of the board and not with the hardware numbers of the switch chip ports. The 2 numbering schemes are shifted by 8. Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> --- Changes in v2: Use the existing way of accessing the mdio bus and not labels. arch/powerpc/boot/dts/fsl/t1040rdb.dts | 115 +++++++++++++++++++++++++ 1 file changed, 115 insertions(+) diff --git a/arch/powerpc/boot/dts/fsl/t1040rdb.dts b/arch/powerpc/boot/dts/fsl/t1040rdb.dts index 65ff34c49025..3fd08a2b6dcb 100644 --- a/arch/powerpc/boot/dts/fsl/t1040rdb.dts +++ b/arch/powerpc/boot/dts/fsl/t1040rdb.dts @@ -64,6 +64,40 @@ mdio@fc000 { phy_sgmii_2: ethernet-phy@3 { reg = <0x03>; }; + + /* VSC8514 QSGMII PHY */ + phy_qsgmii_0: ethernet-phy@4 { + reg = <0x4>; + }; + + phy_qsgmii_1: ethernet-phy@5 { + reg = <0x5>; + }; + + phy_qsgmii_2: ethernet-phy@6 { + reg = <0x6>; + }; + + phy_qsgmii_3: ethernet-phy@7 { + reg = <0x7>; + }; + + /* VSC8514 QSGMII PHY */ + phy_qsgmii_4: ethernet-phy@8 { + reg = <0x8>; + }; + + phy_qsgmii_5: ethernet-phy@9 { + reg = <0x9>; + }; + + phy_qsgmii_6: ethernet-phy@a { + reg = <0xa>; + }; + + phy_qsgmii_7: ethernet-phy@b { + reg = <0xb>; + }; }; }; }; @@ -76,3 +110,84 @@ cpld@3,0 { }; #include "t1040si-post.dtsi" + +&seville_switch { + status = "okay"; +}; + +&seville_port0 { + managed = "in-band-status"; + phy-handle = <&phy_qsgmii_0>; + phy-mode = "qsgmii"; + /* ETH4 written on chassis */ + label = "swp4"; + status = "okay"; +}; + +&seville_port1 { + managed = "in-band-status"; + phy-handle = <&phy_qsgmii_1>; + phy-mode = "qsgmii"; + /* ETH5 written on chassis */ + label = "swp5"; + status = "okay"; +}; + +&seville_port2 { + managed = "in-band-status"; + phy-handle = <&phy_qsgmii_2>; + phy-mode = "qsgmii"; + /* ETH6 written on chassis */ + label = "swp6"; + status = "okay"; +}; + +&seville_port3 { + managed = "in-band-status"; + phy-handle = <&phy_qsgmii_3>; + phy-mode = "qsgmii"; + /* ETH7 written on chassis */ + label = "swp7"; + status = "okay"; +}; + +&seville_port4 { + managed = "in-band-status"; + phy-handle = <&phy_qsgmii_4>; + phy-mode = "qsgmii"; + /* ETH8 written on chassis */ + label = "swp8"; + status = "okay"; +}; + +&seville_port5 { + managed = "in-band-status"; + phy-handle = <&phy_qsgmii_5>; + phy-mode = "qsgmii"; + /* ETH9 written on chassis */ + label = "swp9"; + status = "okay"; +}; + +&seville_port6 { + managed = "in-band-status"; + phy-handle = <&phy_qsgmii_6>; + phy-mode = "qsgmii"; + /* ETH10 written on chassis */ + label = "swp10"; + status = "okay"; +}; + +&seville_port7 { + managed = "in-band-status"; + phy-handle = <&phy_qsgmii_7>; + phy-mode = "qsgmii"; + /* ETH11 written on chassis */ + label = "swp11"; + status = "okay"; +}; + +&seville_port8 { + ethernet = <&enet0>; + status = "okay"; +}; -- 2.25.1 ^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH v2 devicetree 2/2] powerpc: dts: t1040rdb: add ports for Seville Ethernet switch 2020-09-29 11:32 ` [PATCH v2 devicetree 2/2] powerpc: dts: t1040rdb: add ports " Vladimir Oltean @ 2020-09-29 13:12 ` Maxim Kochetkov 2020-09-29 19:11 ` Andrew Lunn 1 sibling, 0 replies; 10+ messages in thread From: Maxim Kochetkov @ 2020-09-29 13:12 UTC (permalink / raw) To: Vladimir Oltean, robh+dt, shawnguo, mpe, devicetree Cc: madalin.bucur, linux-kernel, radu-andrei.bulie, paulus, netdev, Vladimir Oltean, linuxppc-dev Reviewed-by: Maxim Kochetkov <fido_max@inbox.ru> 29.09.2020 14:32, Vladimir Oltean пишет: > From: Vladimir Oltean <olteanv@gmail.com> > > Define the network interface names for the switch ports and hook them up > to the 2 QSGMII PHYs that are onboard. > > A conscious decision was taken to go along with the numbers that are > written on the front panel of the board and not with the hardware > numbers of the switch chip ports. The 2 numbering schemes are > shifted by 8. > > Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> > --- > Changes in v2: > Use the existing way of accessing the mdio bus and not labels. > > arch/powerpc/boot/dts/fsl/t1040rdb.dts | 115 +++++++++++++++++++++++++ > 1 file changed, 115 insertions(+) > > diff --git a/arch/powerpc/boot/dts/fsl/t1040rdb.dts b/arch/powerpc/boot/dts/fsl/t1040rdb.dts > index 65ff34c49025..3fd08a2b6dcb 100644 > --- a/arch/powerpc/boot/dts/fsl/t1040rdb.dts > +++ b/arch/powerpc/boot/dts/fsl/t1040rdb.dts > @@ -64,6 +64,40 @@ mdio@fc000 { > phy_sgmii_2: ethernet-phy@3 { > reg = <0x03>; > }; > + > + /* VSC8514 QSGMII PHY */ > + phy_qsgmii_0: ethernet-phy@4 { > + reg = <0x4>; > + }; > + > + phy_qsgmii_1: ethernet-phy@5 { > + reg = <0x5>; > + }; > + > + phy_qsgmii_2: ethernet-phy@6 { > + reg = <0x6>; > + }; > + > + phy_qsgmii_3: ethernet-phy@7 { > + reg = <0x7>; > + }; > + > + /* VSC8514 QSGMII PHY */ > + phy_qsgmii_4: ethernet-phy@8 { > + reg = <0x8>; > + }; > + > + phy_qsgmii_5: ethernet-phy@9 { > + reg = <0x9>; > + }; > + > + phy_qsgmii_6: ethernet-phy@a { > + reg = <0xa>; > + }; > + > + phy_qsgmii_7: ethernet-phy@b { > + reg = <0xb>; > + }; > }; > }; > }; > @@ -76,3 +110,84 @@ cpld@3,0 { > }; > > #include "t1040si-post.dtsi" > + > +&seville_switch { > + status = "okay"; > +}; > + > +&seville_port0 { > + managed = "in-band-status"; > + phy-handle = <&phy_qsgmii_0>; > + phy-mode = "qsgmii"; > + /* ETH4 written on chassis */ > + label = "swp4"; > + status = "okay"; > +}; > + > +&seville_port1 { > + managed = "in-band-status"; > + phy-handle = <&phy_qsgmii_1>; > + phy-mode = "qsgmii"; > + /* ETH5 written on chassis */ > + label = "swp5"; > + status = "okay"; > +}; > + > +&seville_port2 { > + managed = "in-band-status"; > + phy-handle = <&phy_qsgmii_2>; > + phy-mode = "qsgmii"; > + /* ETH6 written on chassis */ > + label = "swp6"; > + status = "okay"; > +}; > + > +&seville_port3 { > + managed = "in-band-status"; > + phy-handle = <&phy_qsgmii_3>; > + phy-mode = "qsgmii"; > + /* ETH7 written on chassis */ > + label = "swp7"; > + status = "okay"; > +}; > + > +&seville_port4 { > + managed = "in-band-status"; > + phy-handle = <&phy_qsgmii_4>; > + phy-mode = "qsgmii"; > + /* ETH8 written on chassis */ > + label = "swp8"; > + status = "okay"; > +}; > + > +&seville_port5 { > + managed = "in-band-status"; > + phy-handle = <&phy_qsgmii_5>; > + phy-mode = "qsgmii"; > + /* ETH9 written on chassis */ > + label = "swp9"; > + status = "okay"; > +}; > + > +&seville_port6 { > + managed = "in-band-status"; > + phy-handle = <&phy_qsgmii_6>; > + phy-mode = "qsgmii"; > + /* ETH10 written on chassis */ > + label = "swp10"; > + status = "okay"; > +}; > + > +&seville_port7 { > + managed = "in-band-status"; > + phy-handle = <&phy_qsgmii_7>; > + phy-mode = "qsgmii"; > + /* ETH11 written on chassis */ > + label = "swp11"; > + status = "okay"; > +}; > + > +&seville_port8 { > + ethernet = <&enet0>; > + status = "okay"; > +}; > ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v2 devicetree 2/2] powerpc: dts: t1040rdb: add ports for Seville Ethernet switch 2020-09-29 11:32 ` [PATCH v2 devicetree 2/2] powerpc: dts: t1040rdb: add ports " Vladimir Oltean 2020-09-29 13:12 ` Maxim Kochetkov @ 2020-09-29 19:11 ` Andrew Lunn 2020-09-29 19:39 ` Vladimir Oltean 1 sibling, 1 reply; 10+ messages in thread From: Andrew Lunn @ 2020-09-29 19:11 UTC (permalink / raw) To: Vladimir Oltean Cc: devicetree, madalin.bucur, radu-andrei.bulie, linuxppc-dev, linux-kernel, fido_max, robh+dt, paulus, Vladimir Oltean, shawnguo, netdev > +&seville_port0 { > + managed = "in-band-status"; > + phy-handle = <&phy_qsgmii_0>; > + phy-mode = "qsgmii"; > + /* ETH4 written on chassis */ > + label = "swp4"; If ETH4 is on the chassis why not use ETH4? Andrew ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v2 devicetree 2/2] powerpc: dts: t1040rdb: add ports for Seville Ethernet switch 2020-09-29 19:11 ` Andrew Lunn @ 2020-09-29 19:39 ` Vladimir Oltean 2020-09-29 20:10 ` Andrew Lunn 0 siblings, 1 reply; 10+ messages in thread From: Vladimir Oltean @ 2020-09-29 19:39 UTC (permalink / raw) To: Andrew Lunn Cc: devicetree, Madalin Bucur (OSS), Radu-andrei Bulie, linuxppc-dev, linux-kernel, fido_max, robh+dt, paulus, Vladimir Oltean, shawnguo, netdev On Tue, Sep 29, 2020 at 09:11:53PM +0200, Andrew Lunn wrote: > > +&seville_port0 { > > + managed = "in-band-status"; > > + phy-handle = <&phy_qsgmii_0>; > > + phy-mode = "qsgmii"; > > + /* ETH4 written on chassis */ > > + label = "swp4"; > > If ETH4 is on the chassis why not use ETH4? You mean all-caps, just like that? I don't know, I never saw an interface named in all-caps, it looks strange to me. I understand that board designers are typically case-insensitive, and that's kind of what my problem is, "eth4" is clashing with the default naming scheme of the kernel and I also want to avoid that. All in all, this is a reference design board, I don't care too much. I've seen the "swp" convention being quite frequent, and I thought that would be more intuitive. I've been using the same scheme (the switch ports starting from swp2, corresponding to ETH2 on the chassis) for the LS1021A-TSN board (arch/arm/boot/dts/ls1021a-tsn.dts) and my users haven't complained about it. Plus, it's not like the dpaa-eth (standalone) ports are named after the chassis labels. Freescale/NXP typically ships an udev rule file that names the interface after the associated FMan hardware port (for example, the DSA master for the switch on this SoC is called "fm1-gb0", and it's an internal port having nothing to do with ETH0, which is "fm1-gb3"). I think it's a bit strange that the Rest Of World doesn't allow interface naming via device tree, on this board the switch ports are not where the big interface naming problem is. Although I'm not even sure what to do to not increase it even more. With users being used to have ETH0 going to fm1-gb3, maybe naming ETH4 as swp4 isn't the brightest idea, true... ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v2 devicetree 2/2] powerpc: dts: t1040rdb: add ports for Seville Ethernet switch 2020-09-29 19:39 ` Vladimir Oltean @ 2020-09-29 20:10 ` Andrew Lunn 2020-09-29 20:33 ` Vladimir Oltean 0 siblings, 1 reply; 10+ messages in thread From: Andrew Lunn @ 2020-09-29 20:10 UTC (permalink / raw) To: Vladimir Oltean Cc: devicetree, Madalin Bucur (OSS), Radu-andrei Bulie, linuxppc-dev, linux-kernel, fido_max, robh+dt, paulus, Vladimir Oltean, shawnguo, netdev On Tue, Sep 29, 2020 at 07:39:54PM +0000, Vladimir Oltean wrote: > On Tue, Sep 29, 2020 at 09:11:53PM +0200, Andrew Lunn wrote: > > > +&seville_port0 { > > > + managed = "in-band-status"; > > > + phy-handle = <&phy_qsgmii_0>; > > > + phy-mode = "qsgmii"; > > > + /* ETH4 written on chassis */ > > > + label = "swp4"; > > > > If ETH4 is on the chassis why not use ETH4? > > You mean all-caps, just like that? Yes. DSA is often used in WiFI access point, etc. The user is not a computer professional. If the WebGUI says ETH4, and the label on the front says ETH4, they probably think the two are the same, and are happy. I have one box which does not have an labels on the front panels, but the industrial sockets for Ethernet are colour coded. So the interface names are red, blue, green, to match the socket colour, and the cable set is also colour coded the same. So long as it is unique, the kernel does not care. So make it easy for the user. Andrew ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v2 devicetree 2/2] powerpc: dts: t1040rdb: add ports for Seville Ethernet switch 2020-09-29 20:10 ` Andrew Lunn @ 2020-09-29 20:33 ` Vladimir Oltean 0 siblings, 0 replies; 10+ messages in thread From: Vladimir Oltean @ 2020-09-29 20:33 UTC (permalink / raw) To: Andrew Lunn Cc: devicetree, Madalin Bucur (OSS), Radu-andrei Bulie, linuxppc-dev, linux-kernel, fido_max, robh+dt, paulus, Vladimir Oltean, shawnguo, netdev On Tue, Sep 29, 2020 at 10:10:48PM +0200, Andrew Lunn wrote: > On Tue, Sep 29, 2020 at 07:39:54PM +0000, Vladimir Oltean wrote: > > On Tue, Sep 29, 2020 at 09:11:53PM +0200, Andrew Lunn wrote: > > > > +&seville_port0 { > > > > + managed = "in-band-status"; > > > > + phy-handle = <&phy_qsgmii_0>; > > > > + phy-mode = "qsgmii"; > > > > + /* ETH4 written on chassis */ > > > > + label = "swp4"; > > > > > > If ETH4 is on the chassis why not use ETH4? > > > > You mean all-caps, just like that? > > Yes. > > DSA is often used in WiFI access point, etc. The user is not a > computer professional. If the WebGUI says ETH4, and the label on the > front says ETH4, they probably think the two are the same, and are > happy. > > I have one box which does not have an labels on the front panels, but > the industrial sockets for Ethernet are colour coded. So the interface > names are red, blue, green, to match the socket colour, and the cable > set is also colour coded the same. > > So long as it is unique, the kernel does not care. So make it easy for > the user. It would look like this: [root@T1040 ~] # ip link 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: dummy0: <BROADCAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000 link/ether de:91:41:1a:92:b8 brd ff:ff:ff:ff:ff:ff 3: fm1-gb3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000 link/ether 00:1f:7b:6a:02:68 brd ff:ff:ff:ff:ff:ff 4: fm1-gb4: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000 link/ether 00:1f:7b:6a:02:88 brd ff:ff:ff:ff:ff:ff 5: fm1-gb0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1504 qdisc mq state UP mode DEFAULT group default qlen 1000 link/ether 00:1f:7b:6a:02:08 brd ff:ff:ff:ff:ff:ff 6: fm1-gb1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000 link/ether 00:1f:7b:6a:02:28 brd ff:ff:ff:ff:ff:ff 7: fm1-gb2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000 link/ether 00:1f:7b:6a:02:48 brd ff:ff:ff:ff:ff:ff 8: tunl0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN mode DEFAULT group default qlen 1000 link/ipip 0.0.0.0 brd 0.0.0.0 9: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN mode DEFAULT group default qlen 1000 link/sit 0.0.0.0 brd 0.0.0.0 10: ETH4@fm1-gb0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000 link/ether 00:1f:7b:6a:02:08 brd ff:ff:ff:ff:ff:ff 11: ETH5@fm1-gb0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state LOWERLAYERDOWN mode DEFAULT group default qlen 1000 link/ether 00:1f:7b:6a:02:08 brd ff:ff:ff:ff:ff:ff 12: ETH6@fm1-gb0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state LOWERLAYERDOWN mode DEFAULT group default qlen 1000 link/ether 00:1f:7b:6a:02:08 brd ff:ff:ff:ff:ff:ff 13: ETH7@fm1-gb0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state LOWERLAYERDOWN mode DEFAULT group default qlen 1000 link/ether 00:1f:7b:6a:02:08 brd ff:ff:ff:ff:ff:ff 14: ETH8@fm1-gb0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state LOWERLAYERDOWN mode DEFAULT group default qlen 1000 link/ether 00:1f:7b:6a:02:08 brd ff:ff:ff:ff:ff:ff 15: ETH9@fm1-gb0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state LOWERLAYERDOWN mode DEFAULT group default qlen 1000 link/ether 00:1f:7b:6a:02:08 brd ff:ff:ff:ff:ff:ff 16: ETH10@fm1-gb0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state LOWERLAYERDOWN mode DEFAULT group default qlen 1000 link/ether 00:1f:7b:6a:02:08 brd ff:ff:ff:ff:ff:ff 17: ETH11@fm1-gb0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state LOWERLAYERDOWN mode DEFAULT group default qlen 1000 link/ether 00:1f:7b:6a:02:08 brd ff:ff:ff:ff:ff:ff [root@T1040 ~] # ip link set ETH4 down [ 94.942190] mscc_seville ffe800000.ethernet-switch ETH4: Link is Down [root@T1040 ~] # ip link set ETH4 up [ 100.262533] mscc_seville ffe800000.ethernet-switch ETH4: configuring for inband/qsgmii link mode [ 100.272122] 8021q: adding VLAN 0 to HW filter on device ETH4 [ 103.333369] mscc_seville ffe800000.ethernet-switch ETH4: Link is Up - 1Gbps/Full - flow control rx/tx [ 103.342697] IPv6: ADDRCONF(NETDEV_CHANGE): ETH4: link becomes ready I'm not in love, but I guess at least there won't be any doubt if they are named like this. I'm sending another revision with these names soon. Thanks, -Vladimir ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v2 devicetree 0/2] Add Seville Ethernet switch to T1040RDB 2020-09-29 11:32 [PATCH v2 devicetree 0/2] Add Seville Ethernet switch to T1040RDB Vladimir Oltean 2020-09-29 11:32 ` [PATCH v2 devicetree 1/2] powerpc: dts: t1040: add bindings for Seville Ethernet switch Vladimir Oltean 2020-09-29 11:32 ` [PATCH v2 devicetree 2/2] powerpc: dts: t1040rdb: add ports " Vladimir Oltean @ 2020-09-29 13:11 ` Maxim Kochetkov 2 siblings, 0 replies; 10+ messages in thread From: Maxim Kochetkov @ 2020-09-29 13:11 UTC (permalink / raw) To: Vladimir Oltean, robh+dt, shawnguo, mpe, devicetree Cc: madalin.bucur, linux-kernel, radu-andrei.bulie, paulus, netdev, linuxppc-dev Reviewed-by: Maxim Kochetkov <fido_max@inbox.ru> 29.09.2020 14:32, Vladimir Oltean пишет: > Seville is a DSA switch that is embedded inside the T1040 SoC, and > supported by the mscc_seville DSA driver inside drivers/net/dsa/ocelot. > > This series adds this switch to the SoC's dtsi files and to the T1040RDB > board file. > > Vladimir Oltean (2): > powerpc: dts: t1040: add bindings for Seville Ethernet switch > powerpc: dts: t1040rdb: add ports for Seville Ethernet switch > > arch/powerpc/boot/dts/fsl/t1040rdb.dts | 115 ++++++++++++++++++++ > arch/powerpc/boot/dts/fsl/t1040si-post.dtsi | 76 +++++++++++++ > 2 files changed, 191 insertions(+) > ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2020-09-29 21:42 UTC | newest] Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2020-09-29 11:32 [PATCH v2 devicetree 0/2] Add Seville Ethernet switch to T1040RDB Vladimir Oltean 2020-09-29 11:32 ` [PATCH v2 devicetree 1/2] powerpc: dts: t1040: add bindings for Seville Ethernet switch Vladimir Oltean 2020-09-29 13:12 ` Maxim Kochetkov 2020-09-29 11:32 ` [PATCH v2 devicetree 2/2] powerpc: dts: t1040rdb: add ports " Vladimir Oltean 2020-09-29 13:12 ` Maxim Kochetkov 2020-09-29 19:11 ` Andrew Lunn 2020-09-29 19:39 ` Vladimir Oltean 2020-09-29 20:10 ` Andrew Lunn 2020-09-29 20:33 ` Vladimir Oltean 2020-09-29 13:11 ` [PATCH v2 devicetree 0/2] Add Seville Ethernet switch to T1040RDB Maxim Kochetkov
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).