Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2149287ybb; Mon, 30 Mar 2020 00:03:00 -0700 (PDT) X-Google-Smtp-Source: ADFU+vugOxqF48QSQoisDys5YQnR2CtnT23pCuQn0SEvuFkxotwD/U3jlr+x+wZ8xZpA4Bt1T3p4 X-Received: by 2002:a9d:728e:: with SMTP id t14mr3752527otj.63.1585551780820; Mon, 30 Mar 2020 00:03:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585551780; cv=none; d=google.com; s=arc-20160816; b=Lxkry6oqyAUTHNlZScEF0PH64LQCvgT0Jp9HpvKKIOsuil9wC/IxB1e66/i87EMV0l 6mVVCHtS2ed6goFj1a1xtApNUxPs/nQqgwq1zoqCnQzW2vYEbozT98llxoYDbXHC05zm 4CEgrWX3umztDhZRV4G8EiL/uiiDh6lxbX5xxx/JnbU7tcmiYGek0w4P0w+5Jz8k9LTa B2WF/2BcY5SEtGU7+0D86THLZ43yxx7tJyEm2AX3Ub84TX/P4hbgwbiXEJ4m/V0GJ3O2 I0RCqQpX//LxTDNNADSIXp2yyH5YadU7jt7nKWObw9puRtGxhf6+DPSSxP4Z4P24dWCg wlBg== 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=6wEsDzMLMUKSPKvScMaH1M+J5WJe99J8uP3C7+QDIwE=; b=U3bQDH1bmOuuIqKm6izZhGxhnF7v06Hai4afdLDV8TJ/eb3guNhIq7KYx8oUHsHmCg svhk6LO2cP/r0qwPUY7V+YudeqWCNTs0qtPjrtzALrka4VJaWz6hHF7I89CIU64zx4mO ivjSYQ9Y8DCSW211tG3sJ8zUH2JRPKg5CYtxVeCe4x07/f9XujvNVkH+RYOMplI8p5Z8 4timeZqi3KTHvMVc9RoFnu2Onahc7ilAApib8Hy8e4HBtliTyo/1dzlJdFDmOLNVlg+4 ql5QlE6NEv1JajpmaTa3zwAzjVniieES+pConKCON6gMhjvZ5td5o0Iy0UMKMwXm9HsH YgMA== 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 p67si68429oig.41.2020.03.30.00.02.47; Mon, 30 Mar 2020 00:03:00 -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 S1729398AbgC3HCO (ORCPT + 99 others); Mon, 30 Mar 2020 03:02:14 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:47063 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729378AbgC3HCN (ORCPT ); Mon, 30 Mar 2020 03:02:13 -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 1jIoQx-0000IP-Kx; Mon, 30 Mar 2020 09:02:07 +0200 Received: from ore by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1jIoQv-0007Uu-Bq; Mon, 30 Mar 2020 09:02:05 +0200 Date: Mon, 30 Mar 2020 09:02:05 +0200 From: Oleksij Rempel To: Andrew Lunn Cc: Christian Herber , Rob Herring , Florian Fainelli , Mark Rutland , "devicetree@vger.kernel.org" , Marek Vasut , netdev , "linux-kernel@vger.kernel.org" , Pengutronix Kernel Team , David Jander , "David S. Miller" , Heiner Kallweit Subject: Re: Re: [PATCH v4 1/4] dt-bindings: net: phy: Add support for NXP TJA11xx Message-ID: <20200330070205.pi5oaju5kjzjms5s@pengutronix.de> References: <20200323151423.GA32387@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200323151423.GA32387@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: 09:00:16 up 135 days, 22:18, 153 users, load average: 0.23, 0.08, 0.03 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 Hi, On Mon, Mar 23, 2020 at 04:14:23PM +0100, Andrew Lunn wrote: > > Yes, it is one device with two address. This is if you call the entire IC a device. If you look at it from a PHY perspective, it is two devices with 1 address. > > If you just look at it as a single device, it gets difficult to add PHY specific properties in the future, e.g. master/slave selection. > > > In my opinion its important to have some kind of container for the > > entire IC, but likewise for the individual PHYs. > > Yes, we need some sort of representation of two devices. > > Logically, the two PHYs are on the same MDIO bus, so you could have > two nodes on the main bus. > > Or you consider the secondary PHY as being on an internal MDIO bus > which is transparently bridged to the main bus. This is what was > proposed in the last patchset. > > Because this bridge is transparent, the rest of the PHY/MDIO framework > has no idea about it. So i prefer that we keep with two PHY nodes on > the main bus. But i still think we need the master PHY to register the > secondary PHY, due to the missing PHY ID, and the other constrains > like resets which the master PHY has to handle. this discussion is stalled. What is the final decision? What is the proper and mainlinable way? Regards, Oleksij -- 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 |