Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1953871lqg; Mon, 4 Mar 2024 08:32:17 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWJAbK8Y1hu1kVEVLTFSL9FIQbJAjaWtgs8F17F5xEKYpwWTSgZTymMCvkWsOBFxh6RgRju1tphEPFSbjjxBRjn9sh22oNZNrtnh+apmw== X-Google-Smtp-Source: AGHT+IFbZEqVFpsxJDru2aijA4LRE+nbNnqvkG796pU3tE8PX9Qs7sdqfB1VcB1EZ6f1leQTQYQF X-Received: by 2002:ac8:57cd:0:b0:42e:f638:e605 with SMTP id w13-20020ac857cd000000b0042ef638e605mr2175301qta.27.1709569936979; Mon, 04 Mar 2024 08:32:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709569936; cv=pass; d=google.com; s=arc-20160816; b=hyvl7qrWy9EsrdAdIES7EDcFSPBCdoQ6HtYEwXwCCPbeoyXZBX0sajwzeaE6FTsFJo UdArhPP7sRdjPzyC7V6EY5f0uEwwa64AYlyaEl+8ETVQxXF0CXsILusZ/O6pZL2zbV1d G3N3iLuyF7cC3nWzP1HNLwBHW/GXyBHM9ChQC1MBZXBdCq+t1x7dGNebX0SkV/RH5DkG btuimqsoyDL9lDFF/CoC5ebqpllDpKF7t1O8CoCgCH4Ln/ByVMB7/9YcyPGK7tYp022A xwtuiqtxlUps2whHvd+PJ9+W140u4cbyNprTPLwqn+LLW/OV7P9vpckQ0JjE/GgibGdc EgGw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=3/qnNib0M9GUnijyk9s7zwiVKRUpPX2GRvn3P5WKj04=; fh=wda3IjMwqJSay8NevluNZtLumu26Bz1LwBqQtsOnA6U=; b=He9s3SGC4NEoaZXMfRp1x8icaHYtgYCw5VGe2E1IlDersNNsyyU24X37m78LoJWydk FcMY+zkU3DTvqrkz2vuR6ZrCvBMyWJArNGAScRo962EUFNzbm5W2WNTe52vWsYK0TPUT ORJXq0pQBrjIyfF61l4tDQ98z8IstFTbc2bfT1AcD6AlUdI4yZTG/czb+npkbr0LNp2V BzahpBRr0vflGqQ/eb1MtIeLxLkHxoCHbjPH2yzhBBRbdPpl6DWXsCnlo8zhRdDvAAiK bPAe7IegIh4mvELO5FgVv+x56oE6gsoOHJRb886PvQnvEgaaRVAPmeby/6QsFYIOLmJ3 PaBQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=F5NN31SA; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-90939-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90939-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id pj22-20020a05620a1d9600b00787bb6786d9si9750180qkn.513.2024.03.04.08.32.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 08:32:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90939-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=F5NN31SA; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-90939-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90939-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 7C8021C21316 for ; Mon, 4 Mar 2024 16:32:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6CB411D6A5; Mon, 4 Mar 2024 16:32:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="F5NN31SA" Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) (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 DEE191DDE9; Mon, 4 Mar 2024 16:32:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.200 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709569925; cv=none; b=YHKu5x3NHVcXlhhLEL7gsp8m8nTbd4Jg/AaifE8xVma33kcXJBhxdO797S2p+GXKR0pEG00S+AWSMUFFIqMz5vr/9mioOrZIOqOH563fqnWI73H5drThYHhvCETiSe2PHqOToNdqnC2i3A3x1pM1Ojt0dVedIKqg9SbI2RZS2n4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709569925; c=relaxed/simple; bh=+vFU8S+QBfINigPakfidbvLfH8t5sKKvHRwRghI+MSc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=uOLPIOs6m4MtU55PuFAF30I8b9/l3JAcjTph8AXd4nlHGN7g0OGO5jp+8H7a+ERfaB+l0a1nN4nhNSy9fdvWlPmr0VrKg3Ss5Uaac0iy19GFg6sBiyVxGGvNKWkace+yV31FyPCW8HclVl8K9T1e0y8fBoe/Eb6LvhfNXu/uVgA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=F5NN31SA; arc=none smtp.client-ip=217.70.183.200 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 973AE20002; Mon, 4 Mar 2024 16:31:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1709569921; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3/qnNib0M9GUnijyk9s7zwiVKRUpPX2GRvn3P5WKj04=; b=F5NN31SAPn67/H+8+2IjeoMzc+jGn9CxQT4ANWg4ABSznO2IH5W6/E/rL/jKzLbY3zi1ti KJcBbJi+0ddgVIyU/I4hEB3Y10wnsk7PXY9il2GKJGkQNB0BHYZsuoEy1YlP2AV+7WNYOy gzXVVJZr4zn6XVVv0nmiFS5Qfhg17XTVZbSgvYreIX1qDQ3cx6KRStlh+JXU+k7gzq6D35 82h1uWDCQg9Kd8ZkcZvn8VNep/XRL5ZEaNMVRH98rsg0HMqrZ7hExrncAykCkoVHau1xmY UVpKOW9OakW1X74yhAByY24evUAnmThSkJ1UoKgDioYSWahVsMvbc8P0QnjGEA== Message-ID: <70a00ad4-ee8e-4325-af09-b013247a003a@bootlin.com> Date: Mon, 4 Mar 2024 17:31:59 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next 1/3] dt-bindings: net: dp83822: support configuring RMII master/slave mode Content-Language: en-US To: Andrew Lunn 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 , =?UTF-8?Q?Miqu=C3=A8l_Raynal?= , Yen-Mei Goh , Maxime Chevallier 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> From: =?UTF-8?B?SsOpcsOpbWllIERhdXRoZXJpYmVz?= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-GND-Sasl: jeremie.dautheribes@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. Ok noted, thanks for your feedback! I will send a v2 containing a simplified description + implement your suggested changes on patch 2. Jérémie