public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrew Lunn <andrew@lunn.ch>
To: H ZY <hzyitc@outlook.com>
Cc: "olteanv@gmail.com" <olteanv@gmail.com>,
	"davem@davemloft.net" <davem@davemloft.net>,
	"edumazet@google.com" <edumazet@google.com>,
	"kuba@kernel.org" <kuba@kernel.org>,
	"pabeni@redhat.com" <pabeni@redhat.com>,
	"robh@kernel.org" <robh@kernel.org>,
	"krzk+dt@kernel.org" <krzk+dt@kernel.org>,
	"conor+dt@kernel.org" <conor+dt@kernel.org>,
	"rmk+kernel@armlinux.org.uk" <rmk+kernel@armlinux.org.uk>,
	"javier.carrasco.cruz@gmail.com" <javier.carrasco.cruz@gmail.com>,
	"john@phrozen.org" <john@phrozen.org>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 2/2] dt-bindings: net: dsa: qca8k: add internal-PHY-to-PHY CPU link example
Date: Tue, 4 Mar 2025 15:11:32 +0100	[thread overview]
Message-ID: <f7ac97f4-7677-402d-99f1-ae82709a3549@lunn.ch> (raw)
In-Reply-To: <dbd0e376-d7c3-4ba9-886b-ba9529a2ec4e@outlook.com>

> (Port0 and Port6). Could I just keep this or should I need to add a new
> case ?

The existing examples are probably sufficient. Just check the text to
make sure it does not limit it to ports 0 and 6.

> > So is this actually internally? Or do you have a IPQ50xx SoC connected
> > to a qca8337 switch, with copper traces on a PCB? If so, it is not
> > internal.
> 
> The "internal" is used to describe the localcation of PHY not the link.
> In current code, qca8k has supported to use a external PHY to do a
> PHY-to-PHY link (Port0 and Port6). This patch make the internal PHYs
> support it too (Port1-5).
> 
> The followiing topology is existed in most IPQ50xx-based router:
>     _______________________         _______________________
>    |        IPQ5018        |       |        QCA8337        |
>    | +------+   +--------+ |       | +--------+   +------+ |
>    | | MAC0 |---| GE Phy |-+--MDI--+-|  Phy4  |---| MAC5 | |
>    | +------+   +--------+ |       | +--------+   +------+ |
>    | +------+   +--------+ |       | +--------+   +------+ |
>    | | MAC1 |---| Uniphy |-+-SGMII-+-| SerDes |---| MAC0 | |
>    | +------+   +--------+ |       | +--------+   +------+ |
>    |_______________________|       |_______________________|

So logically, it does not matter if the PHY is internal or
external. The patch would be the same. I've even see setups where the
SGMII link would have a PHY, then a connection to a daughter board,
and then a PHY back to SGMII before connecting to the switch. Running
Ethernet over the connector is easier than SERDES lines.

So i would probably drop the word internal from this discussion,
unless it is really relevant.

	Andrew

  parent reply	other threads:[~2025-03-04 14:11 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-03 15:22 [PATCH 0/2] net: dsa: qca8k: support internal-PHY-to-PHY CPU link Ziyang Huang
2025-03-03 15:24 ` [PATCH 1/2] " Ziyang Huang
2025-03-03 15:24 ` [PATCH 2/2] dt-bindings: net: dsa: qca8k: add internal-PHY-to-PHY CPU link example Ziyang Huang
2025-03-03 16:15   ` Andrew Lunn
2025-03-03 16:37     ` Ziyang Huang
2025-03-03 17:15       ` Andrew Lunn
2025-03-04  5:00         ` Ziyang Huang
     [not found]         ` <dbd0e376-d7c3-4ba9-886b-ba9529a2ec4e@outlook.com>
2025-03-04 14:11           ` Andrew Lunn [this message]
2025-03-05 14:41             ` Ziyang Huang

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=f7ac97f4-7677-402d-99f1-ae82709a3549@lunn.ch \
    --to=andrew@lunn.ch \
    --cc=conor+dt@kernel.org \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=edumazet@google.com \
    --cc=hzyitc@outlook.com \
    --cc=javier.carrasco.cruz@gmail.com \
    --cc=john@phrozen.org \
    --cc=krzk+dt@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=olteanv@gmail.com \
    --cc=pabeni@redhat.com \
    --cc=rmk+kernel@armlinux.org.uk \
    --cc=robh@kernel.org \
    /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