[net-next,v2,1/3] dt-bindings: net: ipq4019-mdio: document now supported clock-frequency
Message ID | 20240130003546.1546-2-ansuelsmth@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-43675-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp917338dyb; Mon, 29 Jan 2024 16:37:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IH3AjQiK1Ne3uSDHydHRT+YHS6vsH0she3rzPw57CJZJaKy+s1YwCmIOx0qu7CQJNbVDcuf X-Received: by 2002:a05:6402:2709:b0:55a:813f:8802 with SMTP id y9-20020a056402270900b0055a813f8802mr5977165edd.25.1706575026676; Mon, 29 Jan 2024 16:37:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706575026; cv=pass; d=google.com; s=arc-20160816; b=Cyke45HC/bk4GlFGhNXhkXoSkBr05JeJHcwiK9yjAao25ZjX3JZd3zKfh9KFZu0M5D hvBgDprFlgCoMQSLThluNXmK+2E1BUSJj20lakRAh3Vz0pCvPb2ukkU/TNoLEgMGbgLy Wlwzqd2SzepIw+kG9fguCT9rblbcirZGj+mzmnbzbrBNW2hwruiVbAENwh+W+1T3U8kz goDCb422tN+2dupi998mkew/K2D4lNYjxCfYQInI/3F8CaCtx+rFym4D3CD/6Mg2QF+S ZYtW9FcPq0m2TUMAFXLjoxIJ9CvortrGFHzAHcVxGWqEjAlyaY6Gu5teURysxZRmKaWe I1rg== 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=t1kG9myj9Lva9ka/USySAgGs9YBQNCRf+gxiz/F3DH0=; fh=cQ7XA3MYQ9nsuIQUoAwOGxcdk1xJQL7zXSk9w8uvCAc=; b=a07YO9Dnl6PVD8gn2dBY1aqne8ix3q0h78UopGhvNmWSVGPbyZqU6zZ3QLwh6puLp1 C34/4mpLYUPNMUiS36OIyk6RsyhNFSDkDSZR5s0BYvidXy5OQV8+uClrX0/j2Z4muYiZ WceAeCU2tNGcMa4AlLcArmdP67GyiULsF0sHbTIn1QuJva11dMR2YTt3XlLhtVT9Ctg5 z20Xpfp9lKLXy8w5a5VXna8M8ioTD3vbH4wRnmuqTi1Z3vC0uMTVvRFE11XYcXo2BfUU Di7eMWks3rRnycl3ZRa6OtvChKnyShlkRrcT7TKl/fKfr/soKAaY+0XVg5L3gInb6FVL Nx5w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=b8Mu22Ys; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-43675-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43675-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 15-20020a0564021f4f00b0055d2a604041si4050428edz.206.2024.01.29.16.37.06 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 16:37:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-43675-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=b8Mu22Ys; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-43675-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43675-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 45AC71F2386F for <ouuuleilei@gmail.com>; Tue, 30 Jan 2024 00:37:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2108B36AE9; Tue, 30 Jan 2024 00:36:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="b8Mu22Ys" Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 50C2D14F70; Tue, 30 Jan 2024 00:36:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706574966; cv=none; b=SPjh4tPBDhZJ2Sd81cmM+mZ2px8JiqJmzn/9KgpGHYzldClrLBtqWyr6gF/ka1A0ItIXNrP1mKEnFS56/pRMGvCk6dIkaixDtzYOfdP4T9Ki2AdMf2DxSpdz0tl4i3mJo/X211Y2jDpsfoLnkAaJmag+Nofqpnwqe6cIKYEFxgE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706574966; c=relaxed/simple; bh=ye34zMbl/QLi0u3MaSPXOmlJeFl9PUpZ9o0/z8YiMNU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=B5PCROH58CGEl7Li7yoRKhUI44v854lGtzOTd6akgnd+K/hk97fzDRl/wSi4j8kVlS35x8UiwyXC/oUYDLc708W5tuTpuumA7SJnVT4uTn7GsfKKV1bGGI9u56SPOqnwi+PMdaa2W8+PYKgxbh6XzG07lNcyEVBAIYcpl6YWqhw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=b8Mu22Ys; arc=none smtp.client-ip=209.85.221.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-33ae3154cf8so1623605f8f.3; Mon, 29 Jan 2024 16:36:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706574962; x=1707179762; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=t1kG9myj9Lva9ka/USySAgGs9YBQNCRf+gxiz/F3DH0=; b=b8Mu22Ysa7M7UXc3j03as7cABv+7Ys041fbHaPq9yeb7qhqB+swelK1Oedd1iy/Ffs 2lxuGsOCFOOsUz3PbU3hOhsWijHWusOhAcn+eMOt5LbdMSPXrqQqthDNeGeLfVD6zSz9 atnq0zDn28JbE9LhPovRCTLjxK6iX+y+EqajJ+vRmamm/ZcvrDYt22rFIozMhLLnia0C RWHhiCGPM0G6YRYux/vNsTGGOwhlgSfnJIfK9N3LlAyzcjAlhoTdamIMAE00iBW9Q4ft qyLEq2qAbgOQqcgM3VBN0I+A0nwBMI/pytnpiRixb6bGpVTaTQ6vCGTL1PjW9yVsxZcm EDyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706574962; x=1707179762; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=t1kG9myj9Lva9ka/USySAgGs9YBQNCRf+gxiz/F3DH0=; b=sYKJkdWNBTeFzQElo7cYrpPdXZcsctgHY5AzKWO6dkg+LuSYaK6hXsmQj0PIDtL4ZE 9635AtgTabLmNgKen4wDy+8e59gQDg7j6r/yNYnKUUulveys3fAHV2pAxyBztDos0A/q 1ps6DIyD/h/k+HY4TIaLkrnD/YixW4ybFpIVfa66qz7u6PbEkfwJG00feEZt916taNwq CD0FZMhs32pmmpsNRLXbhXwSVGCRi7rdhdN4vltk95JNiZRiDQzlxmDDnyxTd9+kwIiX ieUssrWciLdpzT7mtViBc5/ONH5fst+AYLKUgOjGAPghzEbFxYZJ+Sm7FEWR332JDQiV X2+A== X-Gm-Message-State: AOJu0YxTGeAT9g5GaH+IC2+dGJDiTrk10uePDwvjCVlTe4rGfs7Cpd9r kfNLjhLjvwXgsMihgqJ7xB5CpRzKjfGVkRcXjvGy02BTrJ/i1LDT X-Received: by 2002:a5d:51ca:0:b0:33a:ee39:5b4a with SMTP id n10-20020a5d51ca000000b0033aee395b4amr3110196wrv.36.1706574962304; Mon, 29 Jan 2024 16:36:02 -0800 (PST) Received: from localhost.localdomain (93-34-89-13.ip49.fastwebnet.it. [93.34.89.13]) by smtp.googlemail.com with ESMTPSA id l10-20020a056000022a00b0033af350fb88sm2542167wrz.25.2024.01.29.16.36.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 16:36:01 -0800 (PST) From: Christian Marangi <ansuelsmth@gmail.com> To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Andrew Lunn <andrew@lunn.ch>, Heiner Kallweit <hkallweit1@gmail.com>, Russell King <linux@armlinux.org.uk>, Robert Marko <robert.marko@sartura.hr>, linux-arm-msm@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Jie Luo <quic_luoj@quicinc.com> Cc: Christian Marangi <ansuelsmth@gmail.com> Subject: [net-next PATCH v2 1/3] dt-bindings: net: ipq4019-mdio: document now supported clock-frequency Date: Tue, 30 Jan 2024 01:35:20 +0100 Message-ID: <20240130003546.1546-2-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240130003546.1546-1-ansuelsmth@gmail.com> References: <20240130003546.1546-1-ansuelsmth@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789473615135994332 X-GMAIL-MSGID: 1789473615135994332 |
Series |
net: mdio-ipq4019: fix wrong default MDC rate
|
|
Commit Message
Christian Marangi
Jan. 30, 2024, 12:35 a.m. UTC
Document support for clock-frequency and add details on why this
property is needed and what values are supported.
From internal documentation, while other values are supported, the
correct function of the MDIO bus is not assured hence add only the
suggested supported values to the property enum.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
---
.../bindings/net/qcom,ipq4019-mdio.yaml | 15 +++++++++++++++
1 file changed, 15 insertions(+)
Comments
On Tue, Jan 30, 2024 at 01:35:20AM +0100, Christian Marangi wrote: > Document support for clock-frequency and add details on why this > property is needed and what values are supported. > > >From internal documentation, while other values are supported, the > correct function of the MDIO bus is not assured hence add only the > suggested supported values to the property enum. > > Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Andrew
diff --git a/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml b/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml index 3407e909e8a7..0029e197a825 100644 --- a/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml +++ b/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml @@ -44,6 +44,21 @@ properties: items: - const: gcc_mdio_ahb_clk + clock-frequency: + description: + The MDIO bus clock that must be output by the MDIO bus hardware, if + absent, the default hardware values are used. + + MDC rate is feed by an external clock (fixed 100MHz) and is divider + internally. The default divider is /256 resulting in the default rate + applied of 390KHz. + + To follow 802.3 standard that instruct up to 2.5MHz by default, if + this property is not declared and the divider is set to /256, by + default 1.5625Mhz is select. + enum: [ 390625, 781250, 1562500, 3125000, 6250000, 12500000 ] + default: 1562500 + required: - compatible - reg