Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2009685ybh; Fri, 13 Mar 2020 11:18:13 -0700 (PDT) X-Google-Smtp-Source: ADFU+vu1VtcZnO8C172iHARqH2sGItd/hQKNwhIFCyonMtGw5q9OvEZWydTolEElmhpoOp28yxoF X-Received: by 2002:a54:4890:: with SMTP id r16mr8208728oic.121.1584123493443; Fri, 13 Mar 2020 11:18:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584123493; cv=none; d=google.com; s=arc-20160816; b=DOxTimfZsdhzIpf00HAE5QwYESom+VUecrylyvWwRBWDW8y0eeFOHbV9Q2GALz1C5C l/bh2vZRuPiv5T6DCni7yOqAU41Zf1OBwiP6YhzH5r64AtS+osFBf5wGcQtDZWPLByiT KQ6AkZ/BI3Gib7RIELguNRCnSWDQ0wFux/Vx7OjhGlkZdqUTwgZLa6FJ94gPzOeDAwxI L8bOb1tWJ+MMjCOkRHCL07EMcQG3892xnw3L9HyAe9DQxewIUKJtE/da8mW/L8mr44wJ o+9be/1DkNNpvrprvYTPfWlVbXFeH7TTxvkOf1pcaqjapnIwlrVjLOjC+7WofD0x3ojc 5R+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=xjgCr3RydayRVtl8gMvmODwDsFLvZoBthRfaHDBhrns=; b=DQQ8jNtbP5BDtUODD8dt6kQhhzhLxeDj4QEJAKBIhIQowEy/c1AVrjbBw7JYVC9LNm CFJkhvNbi2+Ew64SaYm8/X2MtJfznEd46Kp0PbUAk5dIpD0mZZRHLUVprG0RDHfLozNW 7eaiZbnZ27x2nLqVwGSbo0nyvwiz7w2idET5AzRq5kvMuEuPwkInpAca4JAQqf91YfKn V9SYg/bawpcr4cFDfGlwvXluMxclKEXC8toeXMg9RC4aPr9983GC+AkYp2oJTTZjOD/k BuwEktWsnmqLdgAPeq4c/AobhQTOPDOpaMw/Z5RU9l3qsi1Nf9JrgacUVzvTFyQjk2Qx 4q+A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u7si518505otq.29.2020.03.13.11.17.56; Fri, 13 Mar 2020 11:18:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727014AbgCMSQM (ORCPT + 99 others); Fri, 13 Mar 2020 14:16:12 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:52377 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726303AbgCMSQM (ORCPT ); Fri, 13 Mar 2020 14:16:12 -0400 Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jCoqp-0007rb-Gk; Fri, 13 Mar 2020 19:16:03 +0100 Received: from ore by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1jCoqn-0002TA-On; Fri, 13 Mar 2020 19:16:01 +0100 Date: Fri, 13 Mar 2020 19:16:01 +0100 From: Oleksij Rempel To: Andrew Lunn Cc: Florian Fainelli , Heiner Kallweit , Mark Rutland , Rob Herring , Pengutronix Kernel Team , linux-kernel@vger.kernel.org, "David S. Miller" , netdev@vger.kernel.org, Marek Vasut , David Jander , devicetree@vger.kernel.org Subject: Re: [PATCH v4 1/4] dt-bindings: net: phy: Add support for NXP TJA11xx Message-ID: <20200313181601.sbxdrqdjqfj3xn3e@pengutronix.de> References: <20200313052252.25389-1-o.rempel@pengutronix.de> <20200313052252.25389-2-o.rempel@pengutronix.de> <545d5e46-644a-51fb-0d67-881dfe23e9d8@gmail.com> <20200313181056.GA29732@lunn.ch> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="h5xqpdlw2psmzsqz" Content-Disposition: inline In-Reply-To: <20200313181056.GA29732@lunn.ch> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 19:11:37 up 119 days, 9:30, 137 users, load average: 0.10, 0.06, 0.01 User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --h5xqpdlw2psmzsqz Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 13, 2020 at 07:10:56PM +0100, Andrew Lunn wrote: > > > diff --git a/Documentation/devicetree/bindings/net/nxp,tja11xx.yaml b= /Documentation/devicetree/bindings/net/nxp,tja11xx.yaml > > > new file mode 100644 > > > index 000000000000..42be0255512b > > > --- /dev/null > > > +++ b/Documentation/devicetree/bindings/net/nxp,tja11xx.yaml > > > @@ -0,0 +1,61 @@ > > > +# SPDX-License-Identifier: GPL-2.0+ > > > +%YAML 1.2 > > > +--- > > > +$id: http://devicetree.org/schemas/net/nxp,tja11xx.yaml# > > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > > + > > > +title: NXP TJA11xx PHY > > > + > > > +maintainers: > > > + - Andrew Lunn > > > + - Florian Fainelli > > > + - Heiner Kallweit > > > + > > > +description: > > > + Bindings for NXP TJA11xx automotive PHYs > > > + > > > +allOf: > > > + - $ref: ethernet-phy.yaml# > > > + > > > +patternProperties: > > > + "^ethernet-phy@[0-9a-f]+$": > > > + type: object > > > + description: | > > > + Some packages have multiple PHYs. Secondary PHY should be defi= nes as > > > + subnode of the first (parent) PHY. > >=20 > >=20 > > There are QSGMII PHYs which have 4 PHYs embedded and AFAICT they are > > defined as 4 separate Ethernet PHY nodes and this would not be quite a > > big stretch to represent them that way compared to how they are. > >=20 > > I would recommend doing the same thing and not bend the MDIO framework > > to support the registration of "nested" Ethernet PHY nodes. >=20 > Hi Florian >=20 > The issue here is the missing PHY ID in the secondary PHY. Because of > that, the secondary does not probe in the normal way. We need the > primary to be involved to some degree. It needs to register it. What > i'm not so clear on is if it just needs to register it, or if these > sub nodes are actually needed, given the current code. There are a bit more dependencies: - PHY0 is responsible for health monitoring. If some thing wrong, it may shut down complete chip. - We have shared reset. It make no sense to probe PHY1 before PHY0 with more controlling options will be probed - It is possible bat dangerous to use PHY1 without PHY0. Regards, Oleksij --=20 Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | --h5xqpdlw2psmzsqz Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEERBNZvwSgvmcMY/T74omh9DUaUbMFAl5rzd0ACgkQ4omh9DUa UbNpEw/+LHH8MzgLbJS3H6AZLbBx73nKWAZSeS0xsINrSfeBd5XgyBHIUOVugm0p wML9tUFMXvgemYhgB1vJkywFsB2gJjw1Yc2RwJI5W1j9agZmOIeAJX0cgbHhTBFP NX9DitLsN1+AnaTHj/q7OTbf3B/PBnh9qPjNrMjGuyEvN0UZP36dUw7mVe+KjUEo NkOejzVqDEvGB4Vnq0TjOx4aJla8bpOI95X4NAbGEMb9bTg/+9f/W3RBzVpKk9k4 gi2qX3hAzryMmgVEOsPzjSZD5a4Y8oF5Ioc4PRxzFS8axtF38UMKYn2E3rTpkfBH xGnk5sQMoRv5wFLY6xkg61qrZEY1GzJWXTMWvo9oyjvRF1EIq90dFRGBCyouDJPu 3lHmWY0WaoLw45E7UFonbEEt3aAaZ1tjhf4QT3cytgJmCTh1hcUmW0nzn9xQRmAQ eS7W+4Q4dK1mjn98BkUwyxgXYIo1SS4OQhHCpYpnvglTlwTZCbKgjEBE4nvLpTGn +JlOvqAOZt0uxtnPRM5TJAriNIOYqXPmC+sP5CoVUOSNvYl+HBVZB7OYGOkJg1/N A9NlW5HOp1iFL2ytNDdE8yPDigjdCuJB+lW6qKtNr7a0YVgVltWpNaKlbpJhSngE GWwdUPlHkGPSm6IBh3aeWNPV42Lof8KuUgIpffFBjrsAF5J1308= =l+DD -----END PGP SIGNATURE----- --h5xqpdlw2psmzsqz--