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=-7.3 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,USER_AGENT_MUTT autolearn=ham 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 39465C282DD for ; Thu, 23 May 2019 12:43:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 082B221019 for ; Thu, 23 May 2019 12:43:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="wJO2sGD0" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730081AbfEWMnu (ORCPT ); Thu, 23 May 2019 08:43:50 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:44907 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729361AbfEWMnt (ORCPT ); Thu, 23 May 2019 08:43:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=6h1D4Ud/7r70N6KTznuJt38cxPCFT7J0mt36Y7aCy1M=; b=wJO2sGD0T6Xqve2m0J4I9ZDHZF 090A/YSc9PS+ej6Q1E4e05jB1eID9pC+RksuSLRBctWBk856DZxRbrM0lh5pSSX3XyDBGJ/rzp3au kg8JwChYSPQo8M6O6w0aoO0t9aYVgHHW5ot5nZzGFDr9YIcLPn9bH0hhMtTgHzbbIY3c=; Received: from andrew by vps0.lunn.ch with local (Exim 4.89) (envelope-from ) id 1hTn4W-0004Bk-Cy; Thu, 23 May 2019 14:43:48 +0200 Date: Thu, 23 May 2019 14:43:48 +0200 From: Andrew Lunn To: Benjamin Beckmeyer Cc: netdev@vger.kernel.org Subject: Re: DSA setup IMX6ULL and Marvell 88E6390 with 2 Ethernet Phys - CPU Port is not working Message-ID: <20190523124348.GB15531@lunn.ch> References: <944bfcc1-b118-3b4a-9bd7-53e1ca85be0a@eks-engel.de> <20190523050909.B87FB134148@control02-haj2.antispameurope.com> <25a1f661-277b-e4b3-ffee-9092af6abf5d@eks-engel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <25a1f661-277b-e4b3-ffee-9092af6abf5d@eks-engel.de> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org > thanks for your reply. You're right, both PHYs are 10/100. > > I already added a fixed-link like this: > > port@0 { > reg = <0>; > label = "cpu"; > ethernet = <&fec1>; > phy-mode = "rmii"; > phy-handle = <&switch0phy0>; > fixed-link { > speed = <100>; > full-duplex; > }; > }; > > I hope you mean that with fixed-phy? But this doesn't changed anything. You probably have multiple issues, and it is not going to work until you have them all solved. You can get access to the registers etc, using patches from: https://github.com/vivien/linux.git dsa/debugfs I've only seen the external MDIO bus on the 6390 used for C45 PHYs. So there is a chance the driver code for C22 is broken? Andrew