Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp87882rwb; Tue, 25 Jul 2023 12:21:30 -0700 (PDT) X-Google-Smtp-Source: APBJJlEj8V7otiwId3ImBIeh8WAw7Ma+MF1+Quj2qdDJV7p25esOiGDVzCzw+H3ZT17C3o08FEBP X-Received: by 2002:aa7:cd79:0:b0:522:18b6:c023 with SMTP id ca25-20020aa7cd79000000b0052218b6c023mr9912009edb.18.1690312890062; Tue, 25 Jul 2023 12:21:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690312890; cv=none; d=google.com; s=arc-20160816; b=bkL6J7wk75IGJj91V3ABAMuWXO0rw2vTb/l+SDbKmKqfr5FlMn70yT1HmiOwCSE2PR v1RLDWT3G9W/M1cDXq/wYI3FIOmB/D8/clsq9rC1lOtjjgHpUY933YogkQ1vE75NWmLU sCDs1rabkN3VdID5dvEcZFkGVtk/WRhllw+FuB3id/rca10W0a8cdZ+53dqHOIb62swI BZbIrQkKRbqFnv+iS8XyJ63UjEbSiquBEVaqXzyw9LHrDMqRkTU6Ooaja3+3RH1G/YLe 9zjHqggmNublQYaNoU3FyJCrx9ouLUzv+sV27zu7vzNj4BQjcgMk38sEsceTTeMbdpPO GUUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=yNyoNVRI5+OCod59EicTdcPDoMu4zFqhfsWIGBVcAYg=; fh=iuVUWtRVk+jSDvXsgwiNtKzO7SsTWK3PMEtuXqLFda8=; b=TuWH3jTcwe3gLbscdxcQ0C3GeXUcmLWZtwS5o9bYoKtE2FucZ6begnEw7EcH5Yhqeg jbJwFy16qM7CpZo8kYliJet5v4AwpkGnGYJz7TG9JX6gbMjX1FlGolsZ2TOsFA+4VXAR MAFeGAkb9/8JhjB1yqfhEA6l7OIYFfKIwwh02B+YJq5h2YTqyeHl0tyF3k/+/y6pYzeg IILQY2s0nrMJ/G+8SZ2bGOuojY8BzEQNf3ETyMuwr8DPLF4wU9e3WeRmdalinetqDg6U 0ShKu+6EyhnG8Fr14aSJ314lp0Sn0EClb/jbCefL96e6NuG5FicOEk4SYV9vOUKaKCmR h0Eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=vkRAHPvl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y19-20020aa7ccd3000000b0051de2e74786si8023218edt.266.2023.07.25.12.21.05; Tue, 25 Jul 2023 12:21:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=vkRAHPvl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230398AbjGYRvl (ORCPT + 99 others); Tue, 25 Jul 2023 13:51:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229778AbjGYRvh (ORCPT ); Tue, 25 Jul 2023 13:51:37 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80005E2; Tue, 25 Jul 2023 10:51:36 -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=yNyoNVRI5+OCod59EicTdcPDoMu4zFqhfsWIGBVcAYg=; b=vkRAHPvlC1MAJG2qnz3G/UvB5y O9rFGsc7O5vUdb46RoWwHvf7PtGdD7zY2dN1k+nI8Q+HRfdZI9IAuDDLl6TK+R+m8uu4HY8ZRRtkc SZ//OGAADklx9x6UmAHweHZzAOulObMwM+Zw4WaHCIcHFzaznp0HplOG8a9kOQzrvSFI=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qOMBp-002IJZ-4m; Tue, 25 Jul 2023 19:51:17 +0200 Date: Tue, 25 Jul 2023 19:51:17 +0200 From: Andrew Lunn To: "Hawkins, Nick" Cc: "Verdun, Jean-Marie" , "davem@davemloft.net" , "edumazet@google.com" , "kuba@kernel.org" , "pabeni@redhat.com" , "robh+dt@kernel.org" , "krzysztof.kozlowski+dt@linaro.org" , "conor+dt@kernel.org" , "netdev@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v1 3/5] dt-bindings: net: Add HPE GXP UMAC Message-ID: <4c19532d-a909-4ca6-a0a7-d4cd9cc828b0@lunn.ch> References: <20230721212044.59666-1-nick.hawkins@hpe.com> <20230721212044.59666-4-nick.hawkins@hpe.com> <57d882ed-82e5-4584-8126-ca2007064126@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 25, 2023 at 01:44:30PM +0000, Hawkins, Nick wrote: > Hi Andrew, > > Thank you for the feedback. > > > > +examples: > > > + - | > > > + ethernet@4000 { > > > + compatible = "hpe,gxp-umac"; > > > + reg = <0x4000 0x80>; > > > + interrupts = <22>; > > > + mac-address = [00 00 00 00 00 00]; /* Filled in by U-Boot */ > > > Do both ports get the sane MAC address? > > No they do not. The first one will get the MAC address, the second > will be an external phy we are managing via the MDIO path. Then please put the mac-address property in the correct place, inside port@0. > > > + ethernet-ports { > > > + #address-cells = <1>; > > > + #size-cells = <0>; > > > + > > > + port@0 { > > > + reg = <0>; > > > + phy-handle = <ð_phy0>; > > > + }; > > > + mdio { > > > This seems to be wrong. You have a standalone MDIO bus driver, not > > part of the MAC address space? > > I based this from other yaml examples I found. Is there a better way to > represent it? The validator when given examples does not validate phy-handle actually points to a known node. So you can just leave the mdio bus out all together. > mdio0: mdio@4080 { > compatible = "hpe,gxp-umac-mdio"; > reg = <0x4080 0x10>; > #address-cells = <1>; > #size-cells = <0>; > ext_phy0: ethernt-phy@0 { > compatible = "marvell,88e1415","ethernet-phy-ieee802.3-c22"; which is wrong. Please read the binding document for PHYs. Andrew