From patchwork Wed Jan 31 02:26:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 194451 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp1628480dyb; Tue, 30 Jan 2024 18:27:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IEQ3CqFxT1g/vkwCb99Qm0OPLIvJFNPL8vKaqwNry19TvLVnDhQ6ZXEzY04JwsbEIfjF9pL X-Received: by 2002:a05:622a:11cf:b0:42a:a88c:957e with SMTP id n15-20020a05622a11cf00b0042aa88c957emr531156qtk.24.1706668052669; Tue, 30 Jan 2024 18:27:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706668052; cv=pass; d=google.com; s=arc-20160816; b=kQqscP2iA3s6TtSzot/bwR/F+EdKQEwpv3wezwMGPOWKdyZKBacoPqdYgX4GnFNu6R 6Nm+tLaFiNkY4IIARew+RJrZbuS2uqWolvVKETpJwNuVz/mSNbAo4GRXRWl6kaoKxAMl RsXiSRxO9+TF1nO77W1HUqfX+CTTfUa2rK7du0QEzLOk7yGosUOhXqQV6PhZcG24YK3J m1byumarWlKunVewQ6jhEXu7EDpQQrurqJnsQdC4ndd7JhpFnQJlpR8gT3gZSkeaMbnp jqZXv7ak2MQPYugnBl+74QwkxxTLmFtWiFD22NfMUS+nkLofZUtHhSM/KTMVw4i3M3sZ svUA== 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=iD4Rxo3u2FKJPesJyRDxNog+LphdfZ0gkglhIxv3bHg=; fh=wGbpg4uyCcwTx3vGaU4I4OxPrFaIB/WG/de53kMvHfo=; b=EjFatOFCkjdx2ZcXqu7Ld0EcbaxN6UGhGUNwRzSw4ZKERSNWB82LEhZf6EYkUyMqvb 8ggdP6iuHnenLEduNfYo4MVZ6eXE0LF1fBFqDhZEZSJcvlB0BtT3X7atBaS1QrEJC/J3 UDlHT+PSIP5nhRT7Q0eNTaU/M+QFn4Lq+w5GCxwxK2dTYE+Q2FjfYJP2WumI3LhvFGOf 5lizFScR4UHZwhcWd3270DtI0acZmoHHwcONjyow9OLmkWR0nGi6K6w4qIEiKLQy9peU bOfz4Jn4FqY2Qj0nj5v/G4fBd7k8w0uBIlaokavl9ALhkLMZUGC/A0ZgkXOTgsTZYBVM 0qlg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=SqXjpqcx; 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-45671-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45671-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com X-Forwarded-Encrypted: i=1; AJvYcCWI1hJ/pUG7LpgaIZNLZ7Gr5e+buzWXrPzRJP53vPQTGMXc+SB6WJ09Rku3yy8nv3VCrd2y/uAD+IYYyualCYhGRmfOXA== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id h17-20020ac85e11000000b0042a749a8200si11248477qtx.564.2024.01.30.18.27.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 18:27:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-45671-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=SqXjpqcx; 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-45671-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45671-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 752D41C248EB for ; Wed, 31 Jan 2024 02:27:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DC33B17BD1; Wed, 31 Jan 2024 02:26:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="SqXjpqcx" Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (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 318CEFBED; Wed, 31 Jan 2024 02:26:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706667998; cv=none; b=IwW2/OD7eSBoZe7X2Q1ahlI2CDsJitCPcsWXN6tbwpKsuIsF5cmAh/GEmclwpawwxsXr+NrbJSKtSh43UKVQ1lj3nrTsa2zrcuxJH5VzZP5FP7Rv8it35asDX2nT290RiAzxsg8HLhF1w3kWjLQ9yKhG3m2+0WZHe/Kxud/AFPE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706667998; c=relaxed/simple; bh=EWl5WJhyGhHQRYYPH3ZG3ozKOxHrsOuIxslPmZVW9No=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ZCRSEh4zOmss4HVkSmXu3uW/oZoyqcZZ7xCsroh1pg4Ptinp4tWVHinYhF3a/FzWrhvdAuhWyCzIRwjVtt20hN2QQDqDrTig5a5HJva/dlD8b1+hPsjry/Fwig7rtyhkjRC0OTp1RKdJKA3qUTpibQ3M/CRqs0Uf4Ew9NfBUpPA= 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=SqXjpqcx; arc=none smtp.client-ip=209.85.128.41 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-wm1-f41.google.com with SMTP id 5b1f17b1804b1-40f02b8d176so10862115e9.1; Tue, 30 Jan 2024 18:26:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706667995; x=1707272795; 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=iD4Rxo3u2FKJPesJyRDxNog+LphdfZ0gkglhIxv3bHg=; b=SqXjpqcxrks0531w27MSGU5zgEQoCo4vWpY1VZUtv4xZhZcez2swNFRhK3ZkRF+Bfp uLHt6VeXMZ0pAFkr2TK8cGE9Qb1RRayZTOy2w8z9GYQLcFSdD3wP3/154EsvAWdKgEhF gODxJWY3del5AXGwi65ZSP87N/20sm9l+D9cPzg4SRkpN5qbSEBo82B3iiIllPEz1Zq0 LE7gXLm1vB/xqrxbudzZ3EzLeq1FrMh04e7Tz2mBxi5+HYQ9H3Yy7m7y0nDrrP+zaeNL GW2T0yvGUZKJi8+mGRloeu/OwHayt9eGTQdk0ser9GgKstIUeOUm8wI/S+5X934dZZpB n6rA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706667995; x=1707272795; 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=iD4Rxo3u2FKJPesJyRDxNog+LphdfZ0gkglhIxv3bHg=; b=ohGtt71Z9IU0LVtist/XteyCYcJ5Pyr8511R2N0ecrmZjAJm99jdhMWZ/naJ7rdaQ8 Wr7mmYbH4O1zLsO8C5cxxlQbm74m1g5oSBGS+2L3Wr7qV5mk73qPgSO9HLUbjDJelA74 pux9tsEFDGgUPRowwkJi0ojJO6OrHoijtcgGXtobqnCcqwvX6MmsDePE3f1Nod5icrt8 BUx55HiH/TcMMAOdTcn31gmbBwi/efYnt8KxeVWu56bXYw8UOLAmApk8M/5B+4tEDRdo zZ1n6GZWgn/+C2OGVTjZENcY6LWaNvIcMTVeI69uwIjm7dDkLogZFWvvkJ5D5IJQ2wDW fFxg== X-Gm-Message-State: AOJu0YwRbIiBfRqr0Pcxl1ZPyeNcx1qwNPPNw3zHptDXmcKHjQAJtyy0 auzjgnpCpKR9pkdAcjQcWRSqWKkKS1oLnph1q8z8Ws1/NCuQ6mF7 X-Received: by 2002:a05:600c:4fc6:b0:40e:c2b8:ad3c with SMTP id o6-20020a05600c4fc600b0040ec2b8ad3cmr183006wmq.32.1706667995065; Tue, 30 Jan 2024 18:26:35 -0800 (PST) Received: from localhost.localdomain (93-34-89-13.ip49.fastwebnet.it. [93.34.89.13]) by smtp.googlemail.com with ESMTPSA id f22-20020a7bc8d6000000b0040eea5dc778sm757722wml.1.2024.01.30.18.26.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 18:26:34 -0800 (PST) From: Christian Marangi To: Andy Gross , Bjorn Andersson , Konrad Dybcio , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andrew Lunn , Heiner Kallweit , Russell King , Robert Marko , linux-arm-msm@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Christian Marangi Subject: [net-next PATCH v3 1/2] dt-bindings: net: ipq4019-mdio: document now supported clock-frequency Date: Wed, 31 Jan 2024 03:26:03 +0100 Message-ID: <20240131022606.1532-2-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240131022606.1532-1-ansuelsmth@gmail.com> References: <20240131022606.1532-1-ansuelsmth@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789571159990609021 X-GMAIL-MSGID: 1789571159990609021 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 Reviewed-by: Andrew Lunn --- .../bindings/net/qcom,ipq4019-mdio.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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