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 35C28C28D13 for ; Mon, 22 Aug 2022 17:47:22 +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=JNP70g+33WvDdDcWPaHmLLnsKTOfkl7uk30AECEClHo=; b=owCNtIZYtgmisx 2rRHPMQBBA19LRpsAZ88MPoaST4rljOhLCyibTgFcujSNE6jgdoNR618/Uz7JWcpVEtegrVmv/GiJ yPiw5eZD7Q/JwZ2MBIIidhtz1GgK2TvKwkcrwqKIvzN9+YyXfpOwSPZpn9DeJSvJWi4ZSB8ZDn0b9 U12NtyVO+59rQKYKUF21KgIXoL+kA445zFm2oLGc+T9HGI71Vk87Za5vt6d4AXm0Uciuf+1MQ3KAb 2H2URijMZm19SZMadPjgnE5ciDwQ404oFLQejeOgZz5TsA6qap8VJ98XokAreZ7a2OWLBBVbzOqyl a0qeWf2pW1MrMJ7fEU1g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oQBV0-00DCbF-AN; Mon, 22 Aug 2022 17:46:06 +0000 Received: from mail-oi1-f172.google.com ([209.85.167.172]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oQBUx-00DCYr-2F for linux-arm-kernel@lists.infradead.org; Mon, 22 Aug 2022 17:46:04 +0000 Received: by mail-oi1-f172.google.com with SMTP id r10so7269504oie.1 for ; Mon, 22 Aug 2022 10:46:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc; bh=ifHDFxdQQ4rKGhhjDb2X0gYbrmGOuiotWdJhKeoht1I=; b=GnG3WEDA1nyUqk8UZY71cYx7QEf/uzu82PyGUyydBjimwp3zmdg9FuxMOJZIOALh8Y j4PJBpTJ7Cy+H8lDHsIQvMD/iuL75tdxL7T9mtJ6MzUD+52SiGNPWYoGbriwGOsJBSwC +c02KbEScBnwE4ecAueEdxsvzE8Ba64H1gQrl8RJA14Ll4xQsVcCn4ry8U2Isfdh0Jve wdNOxukdVLfBDexMGR1qTsyEbHWNWHp7CU62m1tOwHQyS7q0Ybu7Lg4/7B5rf92QvzSd UGRc7KPzqlsXPIey7ulT1VV4v+jGy9y4zNhqscU9FrHfkoZezUq92JFls4wblz4+gs4y /wRQ== X-Gm-Message-State: ACgBeo1ogd9PdLJbbbDPdqEPBR7cwaaNoBiu0jRe4OTBD/DXL0fVcHRR 80vI1VD5JYcUssIhV08bRg== X-Google-Smtp-Source: AA6agR5QsREs07ny8eIvz2gV/Ar/7vPkMTzYP+oipTqEbuZIqX+RuZlDjP55UFVzlilAKJUOEVqv8w== X-Received: by 2002:aca:5bc3:0:b0:345:30a2:89da with SMTP id p186-20020aca5bc3000000b0034530a289damr6755128oib.3.1661190360670; Mon, 22 Aug 2022 10:46:00 -0700 (PDT) Received: from robh.at.kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id k188-20020a4a4ac5000000b0042859bebfebsm2605613oob.45.2022.08.22.10.45.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Aug 2022 10:46:00 -0700 (PDT) Received: (nullmailer pid 39462 invoked by uid 1000); Mon, 22 Aug 2022 17:45:59 -0000 Date: Mon, 22 Aug 2022 12:45:59 -0500 From: Rob Herring To: Sean Anderson Cc: Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, "David S . Miller" , devicetree@vger.kernel.org, "linuxppc-dev @ lists . ozlabs . org" , Russell King , linux-kernel@vger.kernel.org, Krzysztof Kozlowski , Eric Dumazet , Madalin Bucur , linux-arm-kernel@lists.infradead.org, Camelia Alexandra Groza , Rob Herring Subject: Re: [PATCH net-next v4 2/8] dt-bindings: net: fman: Add additional interface properties Message-ID: <20220822174559.GA39398-robh@kernel.org> References: <20220804194705.459670-1-sean.anderson@seco.com> <20220804194705.459670-3-sean.anderson@seco.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220804194705.459670-3-sean.anderson@seco.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220822_104603_226675_072E95BD X-CRM114-Status: GOOD ( 27.46 ) 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 Thu, 04 Aug 2022 15:46:59 -0400, Sean Anderson wrote: > At the moment, mEMACs are configured almost completely based on the > phy-connection-type. That is, if the phy interface is RGMII, it assumed > that RGMII is supported. For some interfaces, it is assumed that the > RCW/bootloader has set up the SerDes properly. This is generally OK, but > restricts runtime reconfiguration. The actual link state is never > reported. > > To address these shortcomings, the driver will need additional > information. First, it needs to know how to access the PCS/PMAs (in > order to configure them and get the link status). The SGMII PCS/PMA is > the only currently-described PCS/PMA. Add the XFI and QSGMII PCS/PMAs as > well. The XFI (and 10GBASE-KR) PCS/PMA is a c45 "phy" which sits on the > same MDIO bus as SGMII PCS/PMA. By default they will have conflicting > addresses, but they are also not enabled at the same time by default. > Therefore, we can let the XFI PCS/PMA be the default when > phy-connection-type is xgmii. This will allow for > backwards-compatibility. > > QSGMII, however, cannot work with the current binding. This is because > the QSGMII PCS/PMAs are only present on one MAC's MDIO bus. At the > moment this is worked around by having every MAC write to the PCS/PMA > addresses (without checking if they are present). This only works if > each MAC has the same configuration, and only if we don't need to know > the status. Because the QSGMII PCS/PMA will typically be located on a > different MDIO bus than the MAC's SGMII PCS/PMA, there is no fallback > for the QSGMII PCS/PMA. > > Signed-off-by: Sean Anderson > --- > > (no changes since v3) > > Changes in v3: > - Add vendor prefix 'fsl,' to rgmii and mii properties. > - Set maxItems for pcs-names > - Remove phy-* properties from example because dt-schema complains and I > can't be bothered to figure out how to make it work. > - Add pcs-handle as a preferred version of pcsphy-handle > - Deprecate pcsphy-handle > - Remove mii/rmii properties > > Changes in v2: > - Better document how we select which PCS to use in the default case > > .../bindings/net/fsl,fman-dtsec.yaml | 53 ++++++++++++++----- > .../devicetree/bindings/net/fsl-fman.txt | 5 +- > 2 files changed, 43 insertions(+), 15 deletions(-) > Reviewed-by: Rob Herring _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel