Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1376892rbb; Mon, 26 Feb 2024 07:28:11 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVhv7YKnjKiVewW3c3e3GBsdcKUa443bPSD9ViCJ7dfb+eW/RpfHEoRcZ96ULji4if8HMGmeNlcFCoCIdD3OQ5Z+XkgmwwQ0sKpJBDrSA== X-Google-Smtp-Source: AGHT+IGt7y12kytsqj+Vf0I/gB3kAASCGjEDyZYQ24H6rao0cklRx1cBZTiXt83GSKacQv5p/vEM X-Received: by 2002:a05:6512:758:b0:512:ed27:ae80 with SMTP id c24-20020a056512075800b00512ed27ae80mr4112452lfs.35.1708961291261; Mon, 26 Feb 2024 07:28:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708961291; cv=pass; d=google.com; s=arc-20160816; b=OjGgD2QXaWCDzpIY7cJU1IeeolYO4XUKDeY12EXej5D1SxVytVgD0UDGNPsAPR/a0J p32SaPbV5nkDHE8ezKh3eAMQLMinaAI5sigxPGjd0Ic0upju7eewlePdrXjPs8+1LpE7 chWD80HuRsBzmdkpAvkdP9Y3bC2RnQGcupCYArOPnH0cZBRLZi04YYIbaM3wR4xCUY8g 0iklV6gRPfKcNTNVrbSAKrTF+W2YJwvSbq8guLW8LxaAf/f1/RlIyP6t2zJf36oWcZj6 yuYKQvcDdqN7sMELKZIZJkBvbSHAhi2GIJpzJYbA+LsoSDqLMYBW8dGoH5k7zoU9huvT awkA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=OgvLF2sxTIfRPsS3ujCyxTkAmer7UG07rXHGb61zVMk=; fh=KsSJivdssjCiEIVo6bnmS+KeN4Nx87nG7zWndI/ee3U=; b=tp1mOcVtNsyDV5B0uhby7p10E5/s52imqhF/Wb2Z1yYzyvEnwA4z8smc/SKVE+Jeqi a+S47MP2aoOtl8lXMPQ0GWvzyfGbOONurDzysGOdatrWbfVCOOCTNdbpfSsi6RjIDkkq L2KcnDPnwDBlwycxftnG1d0aVck+Ftio6yhmg0sdosnU6FZ7FY6keCM3xaVlhod5df/O y3ksyNAED4dyxp+3AJ9m+efOagFQ0vlOjXDq28FgKj0S7JuLW8Mh/0XBYSvOpFUV+Z1g wgpaD4IvzK7iW/S9krSgcxqQ3ozQu2hXZeEY19+nruh0Yv7m4YnRXv/AwNjAj+itxmkS qxkw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="Ynvz/lPN"; 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-81799-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81799-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id rv4-20020a17090710c400b00a3fc641ace9si2243932ejb.556.2024.02.26.07.28.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 07:28:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-81799-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="Ynvz/lPN"; 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-81799-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81799-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 am.mirrors.kernel.org (Postfix) with ESMTPS id D48161F228F2 for ; Mon, 26 Feb 2024 15:28:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1F4ED12AAFF; Mon, 26 Feb 2024 15:28:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="Ynvz/lPN" 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 DB013219E3; Mon, 26 Feb 2024 15:27:57 +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=1708961279; cv=none; b=OfkLrOrCyFXwKCN/mgXLhgCtuQUTr6Nzqa0h/C/Kb/WTOFUygtXHZRlmcj8Do0+7oBxtsrYipknnDnmKLLRZ4XQb3aEAPKji9LahFnfhaa+hLe/NTT4Rr5DKzOLBhIZ5EE7T8cQNdzIEnZksW3QlKTSuYOTcjRRBcjeLzaysjs8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708961279; c=relaxed/simple; bh=XaHk1CGkgz44435i/fuj0zT7LXSXHOspkU3pxQTrO7Q=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=tV+AkCwA1feSp8Ik7yXEXQvKwYUkxdT2voDifpi8UQYaqxoIpYuYehqHYzTMn8c+rYT2qY7/B4PAKs3qv2dmgG69BoeZ922xg74qsZVi3UVbE7PsZ4qwc8TbIxuVBzFzpuVObNXdZ45O7Y1gmwiUMseziQImw/0IBsLI2hQ0iv8= 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=Ynvz/lPN; 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-Transfer-Encoding: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=OgvLF2sxTIfRPsS3ujCyxTkAmer7UG07rXHGb61zVMk=; b=Yn vz/lPN+xCrwZAx6sK9e2RXXTIp3hv4HL8OFQfR7MnxY3UjQduln30YkNamCCzJ0o42bBHvEFtllBx vzKle+N6NDcL+EW8WGvWMAY6doakPbVNU7YW4oDOf7My5yKjskwawrGDneBIAGmWLHV4xSIz5K4Ks 5ws1ipWzW/2e1TQ=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1recte-008jix-Df; Mon, 26 Feb 2024 16:28:02 +0100 Date: Mon, 26 Feb 2024 16:28:02 +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> 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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240222103117.526955-2-jeremie.dautheribes@bootlin.com> On Thu, Feb 22, 2024 at 11:31:15AM +0100, J?r?mie Dautheribes wrote: > Add property ti,rmii-mode to support selecting the RMII operation mode > between: > - master mode (PHY operates from a 25MHz clock reference) > - slave mode (PHY operates from a 50MHz clock reference) > > If not set, the operation mode is configured by hardware straps. > > Signed-off-by: J?r?mie Dautheribes > --- > .../devicetree/bindings/net/ti,dp83822.yaml | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > > diff --git a/Documentation/devicetree/bindings/net/ti,dp83822.yaml b/Documentation/devicetree/bindings/net/ti,dp83822.yaml > index 8f4350be689c..8f23254c0458 100644 > --- a/Documentation/devicetree/bindings/net/ti,dp83822.yaml > +++ b/Documentation/devicetree/bindings/net/ti,dp83822.yaml > @@ -80,6 +80,22 @@ properties: > 10625, 11250, 11875, 12500, 13125, 13750, 14375, 15000] > default: 10000 > > + ti,rmii-mode: > + description: | > + If present, select the RMII operation mode. Two modes are > + available: > + - RMII master, where the PHY operates from a 25MHz clock reference, > + provided by a crystal or a CMOS-level oscillator > + - RMII slave, where the PHY operates from a 50MHz clock reference, > + provided by a CMOS-level oscillator What has master and slave got to do with this? Sometimes, the MAC provides a clock to the PHY, and all data transfer over the RMII bus is timed by that. Sometimes, the PHY provides a clock to the MAC, and all data transfer over the RMII bus is timed by that. Here there is a clear master/slave relationship, who is providing the clock, who is consuming the clock. However, what you describe does not fit that. Maybe look at other PHY bindings, and copy what they do for clocks. Andrew