Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2004522ybh; Fri, 13 Mar 2020 11:12:46 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuvpW2a9j+XSyWYGzuxcLJOAYmGRlvyRTtXML9zUSWmFzkkLucpCWJ2Os0MiysyttbwWumB X-Received: by 2002:aca:dec6:: with SMTP id v189mr8153274oig.156.1584123166445; Fri, 13 Mar 2020 11:12:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584123166; cv=none; d=google.com; s=arc-20160816; b=KUxxEKekRRfpKUVfByJ4uYEEkTw4Q3aevUtGcxPkReivX5i3zNcigYKJ/gjVGvMx0h MUALb4aye/bSA2L+sMmifUtd2/O+Ti+VaiDkuogoodGnzv6wIYncJVwNZd6sivhZcthI J2XV7IUuWerKHq0zgryke1ihNUh1AOSIJ58iy+Q7A+EWkbgzr0p53/ipeRtww5y5TjVc muGHmfoacxfDWSFMyHCG3XOqx0R9pbZ+7HV5YcGe6prFlB0f4BY5XREbZgDRjLfGM35e z6/a3wDzDeE446BT6ccoyoaMUx57JJeqHyaHgzOwVRobAC2rRPEi/itFV7ozQTMCBpVj ofUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=W9a+0fAfmG82n7GJfhOGZ1nPwnwMa9XduCIBZsnFc4w=; b=dOTukJF0y96YPBuNIJ4WNtZHibihmL+9vc2LOwLkrKibLTcwcpHfxUm7XDmxQxxSWZ J9f8aWyM/+NKY5zJjoQfBbQyu1iXKNlZEqzwu3hwghTjXGKpxnfEkOaLNNLKQZaOnBzh uC5N9D9k94bjmQ4iyY4KSqpXMPmPgf93eNkGpz+EHUolSTrgQlhpXPyWpeglZ7JKB7Jd LAv9OiQ5+fhYhsfI21ntxighoh8/EL3AsTp0bsRMDFZFFcd1HND5rBAR5ScwTvUsqvL1 7dRCX7a0mkcO4DwseHz5j8ZmEnCHZhZx4ht9lTteLYUW4KuuJEEXzGdyQaNQnZFTOC2/ qU1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=VZNpBmBl; 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 w4si4789728oie.124.2020.03.13.11.12.33; Fri, 13 Mar 2020 11:12:46 -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; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=VZNpBmBl; 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 S1726637AbgCMSLF (ORCPT + 99 others); Fri, 13 Mar 2020 14:11:05 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:34188 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726414AbgCMSLE (ORCPT ); Fri, 13 Mar 2020 14:11:04 -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=W9a+0fAfmG82n7GJfhOGZ1nPwnwMa9XduCIBZsnFc4w=; b=VZNpBmBl5ZDoTsrw2KG7/2ePeo rrMX3dnNGMHXy4ZbZf385u23KVedALl8eCkeIyeRUI+rFglkBfZBJh/BI41sIcZAbj05KU48ihh9a IYcYP5VhpedG8cV73sM6yY9PlBh+ZcICtocOUkNvx9x2127drCFT9mW8GNZbKF6lHB0Y=; Received: from andrew by vps0.lunn.ch with local (Exim 4.93) (envelope-from ) id 1jCols-0007vu-Mk; Fri, 13 Mar 2020 19:10:56 +0100 Date: Fri, 13 Mar 2020 19:10:56 +0100 From: Andrew Lunn To: Florian Fainelli Cc: Oleksij Rempel , 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: <20200313181056.GA29732@lunn.ch> References: <20200313052252.25389-1-o.rempel@pengutronix.de> <20200313052252.25389-2-o.rempel@pengutronix.de> <545d5e46-644a-51fb-0d67-881dfe23e9d8@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <545d5e46-644a-51fb-0d67-881dfe23e9d8@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > 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 defines as > > + subnode of the first (parent) PHY. > > > 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. > > I would recommend doing the same thing and not bend the MDIO framework > to support the registration of "nested" Ethernet PHY nodes. Hi Florian 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. Andrew