Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1937557lqg; Mon, 4 Mar 2024 08:07:35 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWaKMsji7GwaRcnA4tJNhpYjA6FlqQ6xglgRgIV/t3wti4EbkvO0JyX+kpr5cuHI59+wgbQqB6aI+p8Z31y9LHQcPTJh7mHIeKmwckTVQ== X-Google-Smtp-Source: AGHT+IFxzokJF05HlvamVjAfy+D37ZIYiVyFQiEqoXCS29qaEsPiVMaDuK12wRVVNkmKrG7lmWE6 X-Received: by 2002:a17:902:6841:b0:1dd:1c6f:af52 with SMTP id f1-20020a170902684100b001dd1c6faf52mr1809182pln.12.1709568455064; Mon, 04 Mar 2024 08:07:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709568455; cv=pass; d=google.com; s=arc-20160816; b=XfkJ4XvN6FFfcW9OC/JilccRUrRfi8V3PP1U+sK0kbXyTbOLpAXSSyvMVbw7MKRju0 oAoDng79A6AqyIMq7CayCP1eBXYNaTWeOIU6GoDrvdZrZk+c+fDkLcI2QU8mg0QOEZSf Cw9XlreZlHBRM8+/x7p7hrXWmO8A1QWOzV+W68qpAiOe0IVhTwoFi3WrvhTlWAaJS18C kV1SVsBwNkoScklT5rifxQJxtSdpLirtjHwPv6Z4Bi6W9M1mnmfgOHW5cwnBKBQ9u7dv KhV39/xWbqdQKSLuyjbVNlVydihKd8rriPffTuVCGajSaPtXLekggvDJW+2vel1c166V lGGQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=8ESWzfwNLBdRiQerL5+aFQnFwsh7Ey/Kqyb4OBW7amg=; fh=KsSJivdssjCiEIVo6bnmS+KeN4Nx87nG7zWndI/ee3U=; b=YaNa17Wjp2oKRWRHO1HAsJTk4FZjvcRUD3FqwwS8q8Zc6CGY9osuHHsnMUhokbG/X4 bpM8AA7iVSxGh3BZuSBH+eOBjQtjscaKb04FPvqDXPI4sTC3KIaG18Ly2bCsBblTpdjH ZpMAMzTHSmCbZWjuzyjXkHRJhB9EvLJcnznVOw7+e1b/ioueqKZ9mCCcrfFSBFQfcaDd BytKADl6DxeDBSTOT+DtqIuAYvf/iW3vnFLyBzlrDRWzDpIHZiLbp85YbBjvije3pDtZ 5A7qWlpF0WKhnLHQ51d/4cncBh4c4zxb4CYGe8x1D4Ra42Q/ptJDxgFxzzEL9IHucmqH oIow==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=mzHOxqSV; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-90899-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90899-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id h13-20020a170902680d00b001dc66acc34dsi8284817plk.62.2024.03.04.08.07.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 08:07:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90899-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=mzHOxqSV; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-90899-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90899-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id CD5F9282141 for ; Mon, 4 Mar 2024 16:06:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 57DB84C3C3; Mon, 4 Mar 2024 16:06:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="mzHOxqSV" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 16D85481DE; Mon, 4 Mar 2024 16:06:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709568383; cv=none; b=D7wFpFnGJ20qdFAqEtlv7P+d9GsThZBiuhdmXnwD1WRp5EA+X6Mmlhn1LP3/EhmOEPOjfWPLOAHc+Z5Z3G8wZTemnm7R/TKIE4fKGpFRFQbB5OB5cwce3KXsTyr/ljUBk5RBAAztczyTuDpbh+AKkIevRcD+nYPtof/9cE7+54s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709568383; c=relaxed/simple; bh=AlNDwPISgBcM6OVPgM4WaoPIp68689qJHcWCy+OYqyk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=BpOvEWSpQPoe9/JzQY4AKNkVpmlAF8KFEY5FzVEFPtRw1H5QuLWewF8Qs0ogeiYrxQ3s6sqML9N9KYI4L3I6CWZjNy1RBSMNGCdStTcLAKl5hPAFLLLHWcWJTzdEylxlwS/A7ui3iGjO2Hv0R6EgmiInl3BoT1yhhbV/8VnKLBw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=mzHOxqSV; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch 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=8ESWzfwNLBdRiQerL5+aFQnFwsh7Ey/Kqyb4OBW7amg=; b=mzHOxqSVyQhSjRX4F5gBr6b//K Z13FzT+KYEs/6y4GhaVF3Cxf3GvoUDAwYIFi2bOvk03KYDyQnzQog1PBU94N/pl4HYEfz9hQ9GMFa g8UhNBtV7mfJ7oeTgjJr/9+0RaPwlq+vn3lEdEe2qlfmBEK9SOggUO/STE6swk31S/5U=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rhApo-009LBC-Gj; Mon, 04 Mar 2024 17:06:36 +0100 Date: Mon, 4 Mar 2024 17:06:36 +0100 From: Andrew Lunn To: =?iso-8859-1?Q?J=E9r=E9mie?= Dautheribes Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiner Kallweit , Russell King , Andrew Davis , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Petazzoni , =?iso-8859-1?Q?Miqu=E8l?= Raynal , Yen-Mei Goh , Maxime Chevallier Subject: Re: [PATCH net-next 1/3] dt-bindings: net: dp83822: support configuring RMII master/slave mode Message-ID: References: <20240222103117.526955-1-jeremie.dautheribes@bootlin.com> <20240222103117.526955-2-jeremie.dautheribes@bootlin.com> <860648fa-11f5-4e0d-ac4e-e81ea111ef31@bootlin.com> <68112ecb-532f-4799-912d-16d6ceb9a6f3@lunn.ch> <021dbe50-5eb9-4552-b2bb-80d58d3eb076@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <021dbe50-5eb9-4552-b2bb-80d58d3eb076@bootlin.com> > > We are normally interested in this 50Mhz reference clock. So i would > > drop all references to 25Mhz. It is not relevant to the binding, since > > it is nothing to do with connecting the PHY to the MAC, and it has a > > fixed value. > > > > So you can simplify this down to: > > > > RMII Master: Outputs a 50Mhz Reference clock which can be connected to the MAC. > > > > RMII Slave: Expects a 50MHz Reference clock input, shared with the > > MAC. > > > > > That said, would you like me to include this description (or some parts) in > > > the binding in addition to what I've already written? Or would you prefer me > > > to use a more meaningful property name? > > > > We don't really have any vendor agnostic consistent naming. dp83867 > > and dp83869 seems to call this ti,clk-output-sel. Since this is > > another dp83xxx device, it would be nice if there was consistency > > between all these TI devices. So could you check if the concept is the > > same, and if so, change dp83826 to follow what other TI devices do. > > > So I had a look at this ti,clk-output-sel property on the TI DP8386x > bindings, but unfortunately it does not correspond to our use case. In their > case, it is used to select one of the various internal clocks to output on > the CLK_OUT pin. > In our case, we would prefer to describe the direction of the clock (OUT in > master mode, IN in slave mode). I would suggest we keep with the current property name, but simplify the description. Focus on the reference clock, and ignore the crystal. Andrew