Received: by 2002:a05:7412:8d23:b0:f7:29d7:fb05 with SMTP id bj35csp322404rdb; Sat, 16 Dec 2023 09:30:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IFVEjWX6/lBcnknuLIvCkTGYib4I1MQX4+WI4cbKK0GGW/Z2CdaS+Ge9r9P1ir1FV5lnFZh X-Received: by 2002:a05:622a:1207:b0:425:a5f0:8ed2 with SMTP id y7-20020a05622a120700b00425a5f08ed2mr17100331qtx.106.1702747825801; Sat, 16 Dec 2023 09:30:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702747825; cv=none; d=google.com; s=arc-20160816; b=LiG+90hm2VSV6xDc88RbRHA++4Gc0P+KpnD7Gjo7wcZdo9cYeAPsAarI9sI/MEB2K7 hQYMcyezXesPw2ahR2N3M14Dax3wSCF4W5Xu/FEfyZfATDpt9/ARGnOHvnIIZmqZny0G Pn1tjiIyWwHTBeW1VQ0WgW7mZSW/TmqtCI+c/slW7lq5we50hmpQ6XjUKMzPgScM9yPT o7n1ar8ROAlvDZUH3DFOb2PqG4p862gutGFjlHYp4pVrwvnh3qdmj3qYlJmj3PAhK89i s4xqKDzbSwpu1nIbovWTEeKF0C8/pOVX5uO/O8WehjT3Rt0pDb5cWDjGF+6jZ48NEPaq s50g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=hrOJL9ogPzJ7HEhCd4Qe0YMW4aSLZkhR6ny2rWbeLlM=; fh=qf9FaBMZxnQJixwwXPEIkJ3o8UgLm1OTBSwn6m7SFeY=; b=q6UdLaisDDZgoTkujZkycrXEjgCFp6M2RbMd/sKcfke+kYzn7eVDmiFpoc6OHRid6k Sws9hqmfoX/YBXUhWIe127RtJcF9aUcy50kqRWjuAFVg/Rbzp2bv4yk4ac7eWIHR+44q YK+1D4QsCuX6QM+IVbekWhVjwTc/UhA9RrknvuLE54PRLZDwKujWveMbCQkVo6oBLcZ8 7kqb14OLLjgiv304C2+xG7criTLWoPG4TwCTJtZgAl77XVhPotFQxY+xwelRInbM8JEX r1zwVw2ejM9jZ7ytS0MXXmj4l6ymxEYHmTLDWfODHcrpX5TEiGAF8uA4ra0DdTLHYpgG RnAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=Z3DOtHl1; spf=pass (google.com: domain of linux-kernel+bounces-2294-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2294-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id w4-20020ac843c4000000b0042583daf978si18707193qtn.505.2023.12.16.09.30.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Dec 2023 09:30:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2294-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=Z3DOtHl1; spf=pass (google.com: domain of linux-kernel+bounces-2294-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2294-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 7E4601C218F1 for ; Sat, 16 Dec 2023 17:30:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1967230FAB; Sat, 16 Dec 2023 17:30:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="Z3DOtHl1" X-Original-To: linux-kernel@vger.kernel.org Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E367E30655; Sat, 16 Dec 2023 17:30:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=hrOJL9ogPzJ7HEhCd4Qe0YMW4aSLZkhR6ny2rWbeLlM=; b=Z3DOtHl11xt3qjpGvrx8O567YY OyRZqagsVzh2T4lVnpWL2B2ZPc0EOjFzOUBFFRuxoOeuDWoEA3rCxNnXSqVaHDO9+5Wbyb++QWrew ueLefLLAFgZdPindA0/ncLO5zxGhUBdx+MVI/1Rx4gAWJEoiQZnFiOlGR78C+44X/RTo=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rEYUC-0036wK-E6; Sat, 16 Dec 2023 18:30:00 +0100 Date: Sat, 16 Dec 2023 18:30:00 +0100 From: Andrew Lunn To: Jie Luo Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, hkallweit1@gmail.com, linux@armlinux.org.uk, corbet@lwn.net, p.zabel@pengutronix.de, f.fainelli@gmail.com, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Subject: Re: [PATCH v8 14/14] dt-bindings: net: ar803x: add qca8084 PHY properties Message-ID: <15d95222-35dd-4ea1-a1a3-3ad9e4ef0349@lunn.ch> References: <20231215074005.26976-1-quic_luoj@quicinc.com> <20231215074005.26976-15-quic_luoj@quicinc.com> <60b9081c-76fa-4122-b7ae-5c3dcf7229f9@lunn.ch> 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=us-ascii Content-Disposition: inline In-Reply-To: > The following is the chip package, the chip can work on the switch mode > like the existed upstream code qca8k, where PHY1-PHY4 is connected with > MAC1-MAC4 directly; The chip can also work on the PHY mode, where PHY1- > PHY4 is connected with PCS1 by 10g-qxgmii; Either switch mode or PHY mode, > the PHY4 is optionally connected with PCS0 by SGMII, PCS0 and PCS1 > are connected with the SoC(IPQ platform) PCSes. I don't really understand. Are you saying the hardware is actually : +----------------------------------------------+ | PCS1 PCS0 | | | | MAC0 MAC5 | | | | | | +-----+--------------+-------------+ | | | | | | | Switch | | | | | | | +-+---------+---------+---------+--+ | | | | | | | | MAC1 MAC2 MAC3 MAC4 | | | | PHY1 PHY2 PHY3 PHY4 | +----------------------------------------------+ When in PHY mode, the switch is hard coded to map the 4 PCS1 channels straight to MAC1-MAC4 and all switch functionality is disabled. But then in switch mode, the switch can be controlled as a DSA switch? The 10G PCS1 is then a single 10G port, not 4x 2.5G? Is there a product brief for this PHY? That might help us understand this hardware? Andrew