From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2CB7A2248A5 for ; Wed, 4 Feb 2026 13:17:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770211038; cv=none; b=DiisfL062g19MvzlPrpwiGb2mFS+pLQdBP00FQTZJ6/vQ+qM/qLi6LmaMiCM063CHdLg8ELb7WJr8YoijpvBk7MV/Qxq5RgVacnEUHB1SG3LXajEP5O9ZO/zvvG66+3Mh+qsvv/+0sI49lXMUOOS9eDdwkKoi2k0TDEIHKRp9DM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770211038; c=relaxed/simple; bh=4fhGAl1etiRKhkugayByjRtTz7JIa5wVXw0UDNoMW38=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=efTL8KYOXmqigOHaXYVpe3QeHAZ4SO3WjfnQIizMumf89lWZNG1teegx10kBIOKveADm/vVFnQOerSev9rgiWdXNg0DZQD0BAM5aodChk5niAaCGUYJ2yK+ij1wnxEKn93OjvIHzCFDb8MmXYe6Air/rHri9GemPQED99lZ1zBo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=MU23SF5T; arc=none smtp.client-ip=209.85.216.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="MU23SF5T" Received: by mail-pj1-f51.google.com with SMTP id 98e67ed59e1d1-352c414bbbeso474173a91.0 for ; Wed, 04 Feb 2026 05:17:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770211037; x=1770815837; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=4fhGAl1etiRKhkugayByjRtTz7JIa5wVXw0UDNoMW38=; b=MU23SF5TXAVvaeG0jPS9AomjuYYbtcmSN+NkLQh5ymkdlbzj0tuh48NxLjYPSIg7Nr K8r2fVWkAgNQVF1IXo6rfdhv6Tg+T9tnG5H/8Wyb8CjMz8ERlj6fhTmeIpGPWjFuP2ZE O/dthkvz07b1Xbvejnpq3iRCP9ntLYNeNqQRSzbrZJ8SzmqctoRTQJXfjPlzc3ifERN5 uBtZdx7Jn5xEMBizvdBFrnaN2eir362UdM32l6mPxtiWXLJwahG7AuHCtm8uHsMK1pWD D6O0rUA2xyh3zRPNNckeiRKm0FqXS+XDECOyZdgqeCLjo54H79DwD3CCUwUZX1ru2GiY NYFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770211037; x=1770815837; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=4fhGAl1etiRKhkugayByjRtTz7JIa5wVXw0UDNoMW38=; b=ulmeRojveDsIvm/jc0X/+I8//1r3wRX2j3r7m2OUz4OkfAadu+63Mts0IwQroD0g7X FUnCjqaH9V0Vqp4OLJ0G+cW8yL1bZlZOSXI6JD1u53TKDngABDDNJivNre/QjxqE/g3X dsbpSA8m1Ez5ix76NEFI/VNsAKEZL9LHNEK2hlDj6iJhXiS4/lxGv8W3rtel+UXfGoVI aGOCy/J/RmhiZ/CnAiP00mjliLeFwlxAiHFmc5UDTYH+U+vCX1rls0YHQE9Xl37IrdwF JQlezZu4QiHssvJBXWq4QesmEubJrOYhH6czmaIctklIibSMWrPfT3sU/n4bRlU32eYZ 6hYQ== X-Forwarded-Encrypted: i=1; AJvYcCXZTh2d5VqaqDJhWFBD2JhPoZzIfMyPgS8RKLrnKH/cPXALFvZcHOCvrNf+oxKTiu5bt29b9tmlh6T25Hw=@vger.kernel.org X-Gm-Message-State: AOJu0YxZSwy6BISW0DQYD0Qm+u0A/NPT7eIwwIiojyX0o2x6RM69dq2S forPFaJ17fsASmNtEIBCobvLTRb0XnWrOwfRHCWQhbhQ4nt1POzmRpFy X-Gm-Gg: AZuq6aLUir+uSWfgSezq6DXKT/eBqaedj/UXI66ZUCeeB7p+Xad8xMCGsLb5BVzgMAS XQ+KxaXqLBm2BSLt003ZjtBDYYQ0b1WD5FiK9M8jqTQkvN+abHuVzw2hvs5pHl8iQ1YzrzHvZ3L 89YJo77t4a5St+Hmsny9tJkoN1dqJ2OLk4wGKV4DxQ4w23xyc172mkT8bN18WCzIvA9qUtRAGcP OKrPb1pnEvhXTK7MnCq26wv1MEr/5MrIpENiXz+abPUZWQyG9cejkAS/v/Re0XOwcxU7qxZr/ik HUiY2B8LF5Xkj2qlN6LtWnqgCBJ5OrbsKmwtN0SlgRQjX4YIvhWQtqMyljAcUmS5aaahEtcZma6 zClwh0C6BJLr8IST+o9ooXQvhio00pTWsuWys9187ZSKsagVMG4AWZNJzRmh3wIN4Ipzh4QiZJI 86XBfDO+c9KpzMY21TCzWwkkw/3SsvRUwstVX45tGO4ruilrxgEkFM49GqY5e80nWJMLDkw/plS Pzl2856HBHOySrgfOiq6GMVSIOC0Q== X-Received: by 2002:a17:90b:254c:b0:34e:6e7d:7e73 with SMTP id 98e67ed59e1d1-354777ef744mr5226490a91.11.1770211037312; Wed, 04 Feb 2026 05:17:17 -0800 (PST) Received: from d.home.mmyangfl.win (tunnel997320-pt.tunnel.tserv3.fmt2.ipv6.he.net. [2001:470:1f04:2c7::2]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-35485dcb7f4sm2568072a91.8.2026.02.04.05.17.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Feb 2026 05:17:16 -0800 (PST) From: yangfl X-Google-Original-From: yangfl 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 Message-ID: <20260204131707.224142-1-yangfl@users.noreply.github.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <60f98b3a-79de-494a-895f-4d1eb21a405a@gmail.com> References: <60f98b3a-79de-494a-895f-4d1eb21a405a@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On Wed, Feb 4, 2026 at 3:12 PM michio da neko 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: mtu 1508 qdisc fq_codel state > UP qlen 1000 >      link/ether ... brd ff:ff:ff:ff:ff:ff > 4: lan1@lan: mtu 1500 qdisc noqueue > master br-lan state LOWERLAYERDOWN qlen 1000 >      link/ether ... brd ff:ff:ff:ff:ff:ff > 5: lan2@lan: mtu 1500 qdisc noqueue > master br-lan state LOWERLAYERDOWN qlen 1000 >      link/ether ... brd ff:ff:ff:ff:ff:ff > 6: lan3@lan: 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.