Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3820754ybb; Mon, 23 Mar 2020 08:17:17 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsWOEUET+cmfPEcKE6QnEB4gT85VZcMzisXNotIZXLKH42RtnIoR1jGtE3AtwyxncoPqPav X-Received: by 2002:a54:4e13:: with SMTP id a19mr17822233oiy.108.1584976637057; Mon, 23 Mar 2020 08:17:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584976637; cv=none; d=google.com; s=arc-20160816; b=z9iUCuFy5CEdX0eXxHufJEfTjcWEsj/COCLS4MgemAz9kqEQ00mJZTa3A+iRjhgIDl zB46A6P95l3EQYfFvyoq6wa6CnNkbhvGyEVxRKUC9mBg+GhbhVXhipDspxEK+1PoHxlw VKZcosaI+eD/Br8Vf3VNjCKj28m2SH9js/nSBSgEIbd2kPEp014V7OK0A94fWlUkRTwh wV0YxeRkSpcg1B77lwMKPrvSuwd7EWkbcyWecOPzPcevwHydAC6cjhSTKVn6UVSXD+NH /GqXYGeoHiH//1wYE/f4hGdhloGOST4NHvTjmIFEkVMOn8o1M1M8QV1YU5J7XY2xtFjh 65vQ== 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=1m+OiC3y42SS9da+Tcx1VksIIwVDt7LFueQm6zuxGVo=; b=iwBfWW9FsQgS81F41sZsJLUUzpsPtlD8zfB8Wv20vcffoThGLLPxCNQ1cOCgUGwIZj VJJBQHJ6IErVM6qf5oOqOyXxks4Xx6jSiAFS+PAtybWG5B1DfQBOhn+oz1qB2ujI4apg uwewBor2UemniNWCMaCic9Aa5so4tFsoWHbDPcYeNO+eIkAWFoO42sneq/FIwvw14O60 nPvp6n53izkZK3aMTlCbu9K5/VtYaRl+5BZijflpu4KgDVZAqvII/Sq7l8HTQ0qJ4jv1 RUOVDDQLzZNZHHGwl2mHpnxa9GTT/A6IFtRRTIt482AWUF5d3soj/AGVYZ66485W5Xta dFiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=XURddeuh; 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 r21si4193597otp.320.2020.03.23.08.16.55; Mon, 23 Mar 2020 08:17:17 -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=XURddeuh; 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 S1727260AbgCWPOb (ORCPT + 99 others); Mon, 23 Mar 2020 11:14:31 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:52098 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726049AbgCWPOb (ORCPT ); Mon, 23 Mar 2020 11:14:31 -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=1m+OiC3y42SS9da+Tcx1VksIIwVDt7LFueQm6zuxGVo=; b=XURddeuh+RoTABs816IckUXkfW egzgUGPHZht3RdSInSrJYSrt7X9WDAhCHamL4zw3CVNk1yNkmg8mPClDl87yQBxh1ptYvfaoEDUbw Axs5liIRIXS3Nl3+tBfKHmEpVjiBJ/o8J0AiUUjo1zF+QiGToIJBQ4ZHZi7to6N0iFXI=; Received: from andrew by vps0.lunn.ch with local (Exim 4.93) (envelope-from ) id 1jGOmV-0000ni-Na; Mon, 23 Mar 2020 16:14:23 +0100 Date: Mon, 23 Mar 2020 16:14:23 +0100 From: Andrew Lunn To: Christian Herber Cc: Rob Herring , Florian Fainelli , Oleksij Rempel , 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: <20200323151423.GA32387@lunn.ch> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > 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. Andrew