From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 99EBBC433FE for ; Fri, 4 Nov 2022 13:32:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=gcDbLPyB8/onqP0GRvlMHVyWjxk8kLTxdfoRNJ/f2WI=; b=bAb4Tcs0KyBUo6 C/vE315WZu7iPeV4yDF3I46IYwegvGKYWcNx3ptD75p+sDESRLql7ZJ19e766jkROsSCSU3XLLUg8 5BfxNf6n0cPss2hD5UVRRGtckKwZ08k06a6SFL3QRD4W8gMGgJpV/NShSF6Ky5v1GaU7FTJ/PAOV0 B1YQ9EMmvOO//+JVps3cgB9ApguptZFQfppxeqmk1XXaOJjAdRglLiGlIIDmOgee8fvcukuvLdrpd /3ayJn6Jt5N29+QYvavUSFR9189bRU+M8Am+aaUq/Nby4KxGXqY3JXEMEZbz7fbQ+GMYy2l/UPPEO 7kgZyCXIe4gsC15yTBtA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqwnZ-003hcn-Vl; Fri, 04 Nov 2022 13:31:54 +0000 Received: from vps0.lunn.ch ([156.67.10.101]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqwnQ-003hbD-PQ for linux-arm-kernel@lists.infradead.org; Fri, 04 Nov 2022 13:31:51 +0000 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=7tLMpJgWljDAlxmwj9PUYVBNLxVIZhvlNdcukf0xZoM=; b=0nGRgygsAdOuKnuDCTsgZVCxf2 nbqDLEyiDDF8b8HmGZcc2IFGoZDmoGfL90yq+SalAmQrYjAKR38DEA2XLVC4sVXXdKGFExLO+1iSx X1P1sYSm0dSJtBEpnGkpeJc99ne+G6oVmtxOQTNsPhVGhkWo1a51pXX0AjCHNRxNOvWU=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1oqwlv-001QWI-71; Fri, 04 Nov 2022 14:30:11 +0100 Date: Fri, 4 Nov 2022 14:30:11 +0100 From: Andrew Lunn To: Chester Lin Cc: Andreas =?iso-8859-1?Q?F=E4rber?= , Rob Herring , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Krzysztof Kozlowski , Jan Petrous , netdev@vger.kernel.org, s32@nxp.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Matthias Brugger Subject: Re: [PATCH 2/5] dt-bindings: net: add schema for NXP S32CC dwmac glue driver Message-ID: References: <20221031101052.14956-1-clin@suse.com> <20221031101052.14956-3-clin@suse.com> <20221102155515.GA3959603-robh@kernel.org> <2a7ebef4-77cc-1c26-ec6d-86db5ee5a94b@suse.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221104_063144_845598_EB88F6CD X-CRM114-Status: GOOD ( 13.19 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org > Here I just focus on GMAC since there are other LAN interfaces that S32 family > uses [e.g. PFE]. According to the public GMACSUBSYS ref manual rev2[1] provided > on NXP website, theoretically GMAC can run SGMII in 1000Mbps and 2500Mbps so I > assume that supporting 1000BASE-X could be achievable. I'm not sure if any S32 > board variant might have SFP ports but RJ-45 [1000BASE-T] should be the major > type used on S32G-EVB and S32G-RDB2. SGMII at 2500Mbps does not exist. Lots of people get this wrong. It will be 2500Base-X. Does the clock need to change in order to support 2500Base-X? If i understand you correctly, Linux does not control the clocks, and so cannot change the clocks? So that probably means you cannot actually support 2500Base-X? Once you have Linux actually controlling the hardware, you can then make use of an SFP or a copper PHY which supports 2.5G. The PHY will swap its host side between SGMII and 2500Base-X depending on what the line side negotiates, 1000Base-T or 2500Base-T. The MAC driver then needs to change its configuration to suite. Andrew _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 928B6C433FE for ; Fri, 4 Nov 2022 13:31:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229700AbiKDNbZ (ORCPT ); Fri, 4 Nov 2022 09:31:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229539AbiKDNbX (ORCPT ); Fri, 4 Nov 2022 09:31:23 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 569221C9; Fri, 4 Nov 2022 06:31:22 -0700 (PDT) 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=7tLMpJgWljDAlxmwj9PUYVBNLxVIZhvlNdcukf0xZoM=; b=0nGRgygsAdOuKnuDCTsgZVCxf2 nbqDLEyiDDF8b8HmGZcc2IFGoZDmoGfL90yq+SalAmQrYjAKR38DEA2XLVC4sVXXdKGFExLO+1iSx X1P1sYSm0dSJtBEpnGkpeJc99ne+G6oVmtxOQTNsPhVGhkWo1a51pXX0AjCHNRxNOvWU=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1oqwlv-001QWI-71; Fri, 04 Nov 2022 14:30:11 +0100 Date: Fri, 4 Nov 2022 14:30:11 +0100 From: Andrew Lunn To: Chester Lin Cc: Andreas =?iso-8859-1?Q?F=E4rber?= , Rob Herring , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Krzysztof Kozlowski , Jan Petrous , netdev@vger.kernel.org, s32@nxp.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Matthias Brugger Subject: Re: [PATCH 2/5] dt-bindings: net: add schema for NXP S32CC dwmac glue driver Message-ID: References: <20221031101052.14956-1-clin@suse.com> <20221031101052.14956-3-clin@suse.com> <20221102155515.GA3959603-robh@kernel.org> <2a7ebef4-77cc-1c26-ec6d-86db5ee5a94b@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org > Here I just focus on GMAC since there are other LAN interfaces that S32 family > uses [e.g. PFE]. According to the public GMACSUBSYS ref manual rev2[1] provided > on NXP website, theoretically GMAC can run SGMII in 1000Mbps and 2500Mbps so I > assume that supporting 1000BASE-X could be achievable. I'm not sure if any S32 > board variant might have SFP ports but RJ-45 [1000BASE-T] should be the major > type used on S32G-EVB and S32G-RDB2. SGMII at 2500Mbps does not exist. Lots of people get this wrong. It will be 2500Base-X. Does the clock need to change in order to support 2500Base-X? If i understand you correctly, Linux does not control the clocks, and so cannot change the clocks? So that probably means you cannot actually support 2500Base-X? Once you have Linux actually controlling the hardware, you can then make use of an SFP or a copper PHY which supports 2.5G. The PHY will swap its host side between SGMII and 2500Base-X depending on what the line side negotiates, 1000Base-T or 2500Base-T. The MAC driver then needs to change its configuration to suite. Andrew