Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp251349rdb; Thu, 22 Feb 2024 02:32:42 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW+YhbZ69EsZ5eIorsEQnOc60P7Ug29e0903hdxcHcU5HJTeOovnM7L5i1k77BWDTqjYenwXH0irgkI/m3DjeOmfF8Tlo7Jt0i9z1kVTg== X-Google-Smtp-Source: AGHT+IG3jVDq17cPAT1VzdYAs46e5inRZFK4uFOVC8g6/oJe56znkYFi1sUZpEa64dc6CxC5uE4a X-Received: by 2002:a17:902:d4cc:b0:1dc:93b:8985 with SMTP id o12-20020a170902d4cc00b001dc093b8985mr11235574plg.4.1708597961958; Thu, 22 Feb 2024 02:32:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708597961; cv=pass; d=google.com; s=arc-20160816; b=kfgufrCQhU4EIYc68PZyOUTebMN7JtrlklvFGqGVOVflI/uC4C1E9jSQ7x2dqaUngV mnBcejQ3Ob43fI8ZS+nys5HU/5IlCp0Y1Anu702jQL/1mr7iWRaP7n0mPYVsSiaMTHTU +QbJdZOs85eHpE9coNL6hdxM9EhnhbMu4swgSo0Y1xgzVPhZCj8uuBDZ/hIYlhdySm5x /HZKP+3KvvKjczUgCP4iyOhSc5bX0EMSe6KU92Dyp3cV1bzPtHPfRg6mEA/MmSBMqG5/ 8TC+8PaCaGRf5OIdYzhs5NTLhFM2Th8d9oMdNZMuq6/EqN36hntbBA9C3t9iY3vy+Sm3 /nuQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=TZ0cUDvYq4R1bU50dHJq2WkbKtaTugSYh0eL5IQfQUI=; fh=NV4JY3TRCs9o+gW717PVoUKK/H/wDO8M32W8z62HLwY=; b=Po3sAxwaWx25uB0nnIBCDIVPsak1p2aWkPNIiG5eeGIiIDNeMIy2M/8A0jPk7FgP+L 6tar/OM4jPARf2pQkHqObNsf8qWBhP7RcMf5SVAOCQyOCLtyIeY6ebdIfXY+pTgkgYmp zCyfXTVtVThY/FyPg3Rr5PBoT3DHMjfdEiOOSm6rBujyP1y6f+Uo0ECOv5z9KlLvL5fx ukUK5tUJ6nDr9F/IenipqVrQMrKpP49ZQ6nz+ezMJcM6wfMNHUoc48Acm65Z3YSp4Wt/ drZqGgYRejYggq2VRT7ZfHJtYqBO4aI/gq0raQ0KQRsKrB9LiVITu78LQT6CNpyRbhFs /RIw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Y4WfRmy9; 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-76337-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76337-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id b17-20020a170902e95100b001d95ef48eddsi9819044pll.312.2024.02.22.02.32.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 02:32:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76337-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Y4WfRmy9; 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-76337-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76337-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 35DAAB22BB6 for ; Thu, 22 Feb 2024 10:31:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 965BD3FB3F; Thu, 22 Feb 2024 10:31:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="Y4WfRmy9" Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) (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 B71A01E53A; Thu, 22 Feb 2024 10:31:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708597889; cv=none; b=jvlomQVbJzZwxpwMwP5/BKNSHWP/0PXFtkVmrg9AoLelEgU4mKkTNroU66iQSIPO07Dr9ZC9q/SgOqTnpFpS/ARFpNoKjT+pK+/u28UKYMLgtwdOZuaBn6yFAR6Y2eX/yz1eEWa6bIUGXQcTZKwuDIpXljyPK6f3XSdGyMHgGoE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708597889; c=relaxed/simple; bh=Z8S1pm3sZXOEcha/HzGW8TfXPCgUETag5hRGfbJIfdM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=LaC+YB8r0bOz4BDi6oEnIRErUCh2i9/pbb4kMuDYpTmMrHXDhRCuOB7EQSK3thDZauvjg9AdZdyhEaU7XVpxlIcUhiMWsoXzmGDeHN9MJ7yMShJHihgXenb5RyLnmEMhtwdvkEGwzshvT0n0o+lXBHV4nJXiaKwOHE+QKqx/zVM= 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=Y4WfRmy9; arc=none smtp.client-ip=217.70.183.199 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 3C12BFF816; Thu, 22 Feb 2024 10:31:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1708597886; 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=TZ0cUDvYq4R1bU50dHJq2WkbKtaTugSYh0eL5IQfQUI=; b=Y4WfRmy9vBrtrQp2BWz0JcEKr4TgGLE8PZOZ9WcbX+h0FH+mND7t6Ab528pxfQx5M9zXfP PV+dqhWBuU6VzUo0E5NH4Dea3Itz47NNig+6jnL0a+FONsJmLh7JKjXrr9jZaSfZ/ouLgH MDLzfmOJzceQgG/hdXVVReh6pUuSrxK77hVeLtsJFN/2NGLJIMmeeV1oByhcupb3jGifQB ZW9MuEmJEBMF/HrbDBM85PN4vVSZWxigX2dLUTgrGkHUbOEea4+mPBYIUqdeZ5e9RGMNo6 sFCGh1YNNwOZUEwaytp/p/g2TOfgXb8R3hBxz5qIo+vPooqqgB/2Nts/HW24Kw== From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Dautheribes?= To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andrew Lunn , Heiner Kallweit , Russell King , Andrew Davis Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Petazzoni , =?UTF-8?q?Miqu=C3=A8l=20Raynal?= , Yen-Mei Goh , Maxime Chevallier , =?UTF-8?q?J=C3=A9r=C3=A9mie=20Dautheribes?= Subject: [PATCH net-next 1/3] dt-bindings: net: dp83822: support configuring RMII master/slave mode Date: Thu, 22 Feb 2024 11:31:15 +0100 Message-Id: <20240222103117.526955-2-jeremie.dautheribes@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240222103117.526955-1-jeremie.dautheribes@bootlin.com> References: <20240222103117.526955-1-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=UTF-8 Content-Transfer-Encoding: 8bit X-GND-Sasl: jeremie.dautheribes@bootlin.com 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 + The RMII operation mode can also be configured by its straps. + If the strap pin is not set correctly or not set at all, then this can be + used to configure it. + $ref: /schemas/types.yaml#/definitions/string + enum: + - master + - slave + required: - reg -- 2.34.1