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 X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 01B15C433ED for ; Mon, 12 Apr 2021 14:14:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C4AAD6134F for ; Mon, 12 Apr 2021 14:14:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239388AbhDLOOt (ORCPT ); Mon, 12 Apr 2021 10:14:49 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:45534 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237579AbhDLOOs (ORCPT ); Mon, 12 Apr 2021 10:14:48 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1lVxKZ-00GH5W-Gh; Mon, 12 Apr 2021 16:14:23 +0200 Date: Mon, 12 Apr 2021 16:14:23 +0200 From: Andrew Lunn To: Michal =?utf-8?B?Vm9rw6HEjQ==?= Cc: Jonathan McDowell , Florian Fainelli , David Miller , netdev@vger.kernel.org Subject: Re: Broken imx6 to QCA8334 connection since PHYLIB to PHYLINK conversion Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org > [1] https://elixir.bootlin.com/linux/v5.12-rc7/source/arch/arm/boot/dts/imx6dl-yapp4-common.dtsi#L101 &fec { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_enet>; phy-mode = "rgmii-id"; phy-reset-gpios = <&gpio1 25 GPIO_ACTIVE_LOW>; phy-reset-duration = <20>; phy-supply = <&sw2_reg>; phy-handle = <ðphy0>; status = "okay"; mdio { #address-cells = <1>; #size-cells = <0>; phy_port2: phy@1 { reg = <1>; }; phy_port3: phy@2 { reg = <2>; }; switch@10 { compatible = "qca,qca8334"; reg = <10>; switch_ports: ports { #address-cells = <1>; #size-cells = <0>; ethphy0: port@0 { reg = <0>; label = "cpu"; phy-mode = "rgmii-id"; ethernet = <&fec>; fixed-link { speed = <1000>; full-duplex; }; }; The fec phy-handle = <ðphy0>; is pointing to the PHY of switch port 0. This seems wrong. Does the FEC have a PHY? Do you connect the FEC and the SWITCH at the RGMII level? Or with two back to back PHYs? If you are doing it RGMII level, the FEC also needs a fixed-link. Andrew