public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: yangfl <mmyangfl@gmail.com>
To: michio.haiyaku@gmail.com
Cc: 20251017060859.326450-4-mmyangfl@gmail.com, andrew@lunn.ch,
	conor+dt@kernel.org, davem@davemloft.net,
	devicetree@vger.kernel.org, edumazet@google.com,
	horms@kernel.org, krzk+dt@kernel.org, kuba@kernel.org,
	linux-kernel@vger.kernel.org, linux@armlinux.org.uk,
	mmyangfl@gmail.com, netdev@vger.kernel.org, olteanv@gmail.com,
	pabeni@redhat.com, robh@kernel.org
Subject: Re: [PATCH net-next v14 3/4] net: dsa: yt921x: Add support for Motorcomm YT921x
Date: Wed,  4 Feb 2026 21:16:51 +0800	[thread overview]
Message-ID: <20260204131707.224142-1-yangfl@users.noreply.github.com> (raw)
In-Reply-To: <60f98b3a-79de-494a-895f-4d1eb21a405a@gmail.com>

On Wed, Feb 4, 2026 at 3:12 PM michio da neko <michio.haiyaku@gmail.com> wrote:
>
> Hi David Yang,
>
> I am testing your YT9215 driver on a CIG device (ODM for a carrier)
> which uses the Qualcomm IPQ5018 SoC paired with the Motorcomm YT9215S
> switch.
>
> The switch itself is detected correctly via MDIO bitbang, but I am
> facing issues with the internal PHYs. They are detected with a specific
> ID |0x01e04281| which falls back to the "Generic PHY" driver, and the
> ports remain in |NO-CARRIER| state even when cables are plugged in. I
> tried the existing Motorcomm PHY driver but it does not seem to cover
> this specific ID.
>
> Here is my setup details:
>
> DTS Configuration: I am using phy-mode = "internal" for the ports. (Full
> DTS available here:
> https://github.com/michioxd/openwrt-wf810df/blob/1b37e3adee7ab6651430511af259687a5a57edc5/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq5018-ax3000cv2.dts)
>
>
> &mdio_bitbang {
>      /* ... */
>      yt9215: switch@1d {
>          compatible = "motorcomm,yt9215";
>          reg = <29>;
>          /* ... */
>          ethernet-ports {
>              ethernet-port@0 {
>                  reg = <0>;
>                  phy-mode = "internal";
>                  phy-handle = <&sw_phy0>;
>              };
>              /* ... */
>          };
>      };
> };
>
>
> dmesg Output: The chip ID is detected as 0x90020002, but PHYs are generic:
>
>
> [   13.405614] yt921x gpio-1:1d: Motorcomm YT9215S ethernet switch,
> chipid: 0x90020002, chipmode: 0x2 0x0
> [   14.004664] yt921x gpio-1:1d: configuring for fixed/2500base-x link mode
> [   14.018058] yt921x gpio-1:1d: Link is Up - 2.5Gbps/Full - flow
> control off
> [   14.097426] yt921x gpio-1:1d lan1 (uninitialized): PHY [gpio-1:1d:00]
> driver [Generic PHY] (irq=POLL)
> [   14.160182] yt921x gpio-1:1d lan2 (uninitialized): PHY [gpio-1:1d:01]
> driver [Generic PHY] (irq=POLL)
> [   14.226811] yt921x gpio-1:1d lan3 (uninitialized): PHY [gpio-1:1d:02]
> driver [Generic PHY] (irq=POLL)
>
>
> ip link Output:
>
>
> 3: lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1508 qdisc fq_codel state
> UP qlen 1000
>      link/ether ... brd ff:ff:ff:ff:ff:ff
> 4: lan1@lan: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue
> master br-lan state LOWERLAYERDOWN qlen 1000
>      link/ether ... brd ff:ff:ff:ff:ff:ff
> 5: lan2@lan: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue
> master br-lan state LOWERLAYERDOWN qlen 1000
>      link/ether ... brd ff:ff:ff:ff:ff:ff
> 6: lan3@lan: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue
> master br-lan state LOWERLAYERDOWN qlen 1000
>      link/ether ... brd ff:ff:ff:ff:ff:ff
>
> Have you encountered this PHY ID (0x01e04281) before? If this ID
> requires a driver patch, do you know if it shares the same register
> layout or behavior with any existing supported YT8xxx PHYs (like YT8511
> or YT8521)? Knowing its closest relative would help me attempt to add
> support for it in drivers/net/phy/motorcomm.c.
>
> Any advice on how to bring up these ports would be appreciated.
>
> Best regards, Michio
>
> --
> michio da neko
> https://michioxd.ch
>

Hi,

Please do not use PATCH thread for technical support, as it CCs to
tons of unrelated people.

If you are looking closer you might find the thread about the chip on
the OpenWRT forum.

As for your question, the internal PHYs are standard and do not need a
separate driver for basic support.

  reply	other threads:[~2026-02-04 13:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-17  6:08 [PATCH net-next v14 0/4] net: dsa: yt921x: Add support for Motorcomm YT921x David Yang
2025-10-17  6:08 ` [PATCH net-next v14 1/4] dt-bindings: net: dsa: yt921x: Add Motorcomm YT921x switch support David Yang
2025-10-17  6:08 ` [PATCH net-next v14 2/4] net: dsa: tag_yt921x: add support for Motorcomm YT921x tags David Yang
2025-10-17  6:08 ` [PATCH net-next v14 3/4] net: dsa: yt921x: Add support for Motorcomm YT921x David Yang
2026-02-04  7:12   ` michio da neko
2026-02-04 13:16     ` yangfl [this message]
2025-10-17  6:08 ` [PATCH net-next v14 4/4] MAINTAINERS: add entry for Motorcomm YT921x ethernet switch driver David Yang
2025-10-22  1:50 ` [PATCH net-next v14 0/4] net: dsa: yt921x: Add support for Motorcomm YT921x patchwork-bot+netdevbpf

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=20260204131707.224142-1-yangfl@users.noreply.github.com \
    --to=mmyangfl@gmail.com \
    --cc=20251017060859.326450-4-mmyangfl@gmail.com \
    --cc=andrew@lunn.ch \
    --cc=conor+dt@kernel.org \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=edumazet@google.com \
    --cc=horms@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=michio.haiyaku@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=olteanv@gmail.com \
    --cc=pabeni@redhat.com \
    --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