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 ED137C433EF for ; Fri, 22 Apr 2022 12:59:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1447684AbiDVNCE (ORCPT ); Fri, 22 Apr 2022 09:02:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236930AbiDVNCC (ORCPT ); Fri, 22 Apr 2022 09:02:02 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D85C57B18; Fri, 22 Apr 2022 05:59:09 -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=N8vHuTwPATpwwlOw/DsH67ghNaVvbs3LtAD5h9mrBs0=; b=FkZysAF1vf7oMtSIe49s+Drqah QT72I2uYhUKJYYy8t+JhZQCTdP0HBm9GzVPy744j32ZD9nfwavIWrNMP+snINiiYj3zWgD5l+wr+D xWK3yh7YIaGzNYThvjigGHyvZUQna0BvABZYyOH2Ucx/iXK3RE7xpoSTiANOebh1sE7U=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1nhss6-00GyU2-09; Fri, 22 Apr 2022 14:58:50 +0200 Date: Fri, 22 Apr 2022 14:58:49 +0200 From: Andrew Lunn To: Ong Boon Leong Cc: Alexandre Torgue , Jose Abreu , Heiner Kallweit , Russell King , Paolo Abeni , "David S . Miller" , Jakub Kicinski , Maxime Coquelin , Alexandre Torgue , Giuseppe Cavallaro , netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next 2/4] net: stmmac: introduce PHY-less setup support Message-ID: References: <20220422073505.810084-1-boon.leong.ong@intel.com> <20220422073505.810084-3-boon.leong.ong@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220422073505.810084-3-boon.leong.ong@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 22, 2022 at 03:35:03PM +0800, Ong Boon Leong wrote: > Certain platform uses PHY-less configuration whereby the MAC controller > is connected to network switch chip directly over SGMII or 1000BASE-X. > > This patch prepares the stmmac driver to support PHY-less configuration > described above. The normal way to do a PHY less setup is to use a fixed-PHY. It offers the same API to the MAC as a real PHY but is fixed speed, dupex etc. The MAC sees a PHY as usual, and you don't need anything special in the MAC. What you need to do is extend your DSD to list the fixed-link. See https://www.kernel.org/doc/html/latest/firmware-guide/acpi/dsd/phy.html#mac-node-example-with-a-fixed-link-subnode Andrew 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 05F3AC433EF for ; Fri, 22 Apr 2022 13:00:14 +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=l7PAWNdmODdxhrF3fq8EF8GQcDuefhAe1KRyEO/GeWA=; b=Q6N2d8Dmp8rmwp ER6RJ+rg+V5Z/uWpvb3WQV8fVbM7JHvPR5gI4Am5o9iSIu/OTFEvBP8VNpMJ4OXpBitOk+x7K6SOf sW5CM+ToHMlAqcWZa0AhA1I+i0E8ZnvCobs3NNEyc75M18JK6Io6EG2brjVvN/3qNdZr4hByWrFC7 Re7FQPh66lZ0T94UfScKsvbJA0vVDSRU1jm5iLOnjjkG1R80MGMHgOWd1MBTNWmdNqFF0Tncr4yej YAjgrQyzhWAeCdCI/2FYIZtsjHQ06ojxXMiq7g411uafKnxRiftm9GS8N92lJI0DqeDzD3tmivH9D fGUC2A4xbDTs5saH1rhw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhssS-000VdC-6M; Fri, 22 Apr 2022 12:59:12 +0000 Received: from vps0.lunn.ch ([185.16.172.187]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhssP-000Vcb-1q for linux-arm-kernel@lists.infradead.org; Fri, 22 Apr 2022 12:59:10 +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=N8vHuTwPATpwwlOw/DsH67ghNaVvbs3LtAD5h9mrBs0=; b=FkZysAF1vf7oMtSIe49s+Drqah QT72I2uYhUKJYYy8t+JhZQCTdP0HBm9GzVPy744j32ZD9nfwavIWrNMP+snINiiYj3zWgD5l+wr+D xWK3yh7YIaGzNYThvjigGHyvZUQna0BvABZYyOH2Ucx/iXK3RE7xpoSTiANOebh1sE7U=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1nhss6-00GyU2-09; Fri, 22 Apr 2022 14:58:50 +0200 Date: Fri, 22 Apr 2022 14:58:49 +0200 From: Andrew Lunn To: Ong Boon Leong Cc: Alexandre Torgue , Jose Abreu , Heiner Kallweit , Russell King , Paolo Abeni , "David S . Miller" , Jakub Kicinski , Maxime Coquelin , Alexandre Torgue , Giuseppe Cavallaro , netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next 2/4] net: stmmac: introduce PHY-less setup support Message-ID: References: <20220422073505.810084-1-boon.leong.ong@intel.com> <20220422073505.810084-3-boon.leong.ong@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220422073505.810084-3-boon.leong.ong@intel.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220422_055909_128298_B1ADAAF3 X-CRM114-Status: UNSURE ( 9.20 ) X-CRM114-Notice: Please train this message. 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 On Fri, Apr 22, 2022 at 03:35:03PM +0800, Ong Boon Leong wrote: > Certain platform uses PHY-less configuration whereby the MAC controller > is connected to network switch chip directly over SGMII or 1000BASE-X. > > This patch prepares the stmmac driver to support PHY-less configuration > described above. The normal way to do a PHY less setup is to use a fixed-PHY. It offers the same API to the MAC as a real PHY but is fixed speed, dupex etc. The MAC sees a PHY as usual, and you don't need anything special in the MAC. What you need to do is extend your DSD to list the fixed-link. See https://www.kernel.org/doc/html/latest/firmware-guide/acpi/dsd/phy.html#mac-node-example-with-a-fixed-link-subnode Andrew _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel