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=-0.8 required=3.0 tests=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 1CF5AC433E0 for ; Thu, 18 Jun 2020 13:47:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EDEB12082F for ; Thu, 18 Jun 2020 13:47:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730349AbgFRNrK (ORCPT ); Thu, 18 Jun 2020 09:47:10 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:46798 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728159AbgFRNrJ (ORCPT ); Thu, 18 Jun 2020 09:47:09 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1jlusi-0017YB-PG; Thu, 18 Jun 2020 15:47:04 +0200 Date: Thu, 18 Jun 2020 15:47:04 +0200 From: Andrew Lunn To: Kurt Kanzenbach Cc: Vivien Didelot , Florian Fainelli , "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org, Sebastian Andrzej Siewior , Richard Cochran , Kamil Alkhouri , ilias.apalodimas@linaro.org Subject: Re: [RFC PATCH 9/9] dt-bindings: net: dsa: Add documentation for Hellcreek switches Message-ID: <20200618134704.GQ249144@lunn.ch> References: <20200618064029.32168-1-kurt@linutronix.de> <20200618064029.32168-10-kurt@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200618064029.32168-10-kurt@linutronix.de> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org > +Ethernet switch connected memory mapped to the host, CPU port wired to gmac0: > + > +soc { > + switch0: switch@0xff240000 { > + compatible = "hirschmann,hellcreek"; > + status = "okay"; > + reg = <0xff240000 0x1000 /* TSN base */ > + 0xff250000 0x1000>; /* PTP base */ > + dsa,member = <0 0>; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; > + label = "cpu"; > + ethernet = <&gmac0>; > + }; > + > + port@2 { > + reg = <2>; > + label = "lan0"; > + phy-handle = <&phy1>; > + }; > + > + port@3 { > + reg = <3>; > + label = "lan1"; > + phy-handle = <&phy2>; > + }; > + }; > + }; > +}; > + > +&gmac0 { > + status = "okay"; > + phy-mode = "mii"; > + > + fixed-link { > + speed = <100>; > + full-duplex; Hi Kurt The switch is 100/100Mbps right? The MAC is only Fast ethernet. Do you need some properties in the port@0 node to tell the switch to only use 100Mbps? I would expect it to default to 1G. Not looked at the code yet... Andrew