Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp999522rdb; Fri, 16 Feb 2024 02:03:45 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVfa+vQfiIKPUVZfckYdOpbtZCpxTiI0lU5oXmZQvKdZRWNZmksH9kjUGJegTcd1okuu2gk87Qi7WTzVix/XLPTPpMoQmCKHuYrYy/CLQ== X-Google-Smtp-Source: AGHT+IGH2umbObiL32EKzOERCXsg1/W6IQec8QWqjoiA9a3BlBPLRF5t6V3oCvRN7mtIm7WIn90A X-Received: by 2002:a17:906:2e87:b0:a3c:f586:9e1f with SMTP id o7-20020a1709062e8700b00a3cf5869e1fmr3074640eji.31.1708077825012; Fri, 16 Feb 2024 02:03:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708077825; cv=pass; d=google.com; s=arc-20160816; b=yaJuAkaN07iDlNI3M5TeeaNGtI751RfGMet2S/bzi+3rmzDr4Ujgs9/eWV/PT1YQAt 5w78OLrgP3rl/UnI2/j+Nyb0k1FeKHMOLhivkzDtLMR3V8OqtMzZYUxGT5VTwvpoQhFx OCw0ePLb5h9L+zqyFEr29w1nwt3kPfPdEB2831lDOexNvBVhytQVCWR7diWJ0ThzL+uD cMm1abMX9CALxz+1uwYqycjyKC6+uDzse2e6UNZU/qhIiIWzNXT9l1hZa/HbqN7pXpup W/sLPuToncoriTvyGREkc7nzKYAF9oVUpLSNmvvs0nFJfVdnlCc2nfLpU2vnEzC5jEEJ yg8g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=DoQNtomnKLhybyBXSyImJ23Z4S4i7pW8ESUyIZzzfyM=; fh=YUyCOKAW57vGpD9UsAB1Jf96lQXTx0J/i1SlBxoko4U=; b=gUij0cg+eADz9wsZgR2iJB/a9Ha+YR4aZWBxp8LkgAawbJsFGT4y0tZUoH+n1IPxlO 25qL8bnsq19Pgrxng15C6/9RB7C/674Fmzn1t3R0wKH+OStBIpwaVIxGaQgmqvIwJy5l KLRQj1sj63j9g6/VFxlDC+dmom5Op8GrgSH3nAnJxHkL3NAi7Gr/fH0ol3hNzOl07Eaw En/p7h523AcimwAH7DddIqbaj+bxgK0NoI8J+shtJvOh2ROB11THxbiD/s7yMdAPOYCf QH6toB4IIGTGWpDpX+ZTV/28ZVXqCTJYAtVoeUFgLgEFuGX4lXVkQ1A2BOLOc2XPJk6t GDsA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=R7z5qE8w; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68407-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68407-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id s14-20020a170906bc4e00b00a3d2af00f5bsi1471807ejv.36.2024.02.16.02.03.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 02:03:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68407-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=@kernel.org header.s=k20201202 header.b=R7z5qE8w; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68407-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68407-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 A84611F22448 for ; Fri, 16 Feb 2024 10:03:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A44F920B12; Fri, 16 Feb 2024 10:02:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="R7z5qE8w" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 09A4E1CD18; Fri, 16 Feb 2024 10:02:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708077723; cv=none; b=hl/XWCYEnPKGcjJFTuIsKMTzYFzeiYjQfDAgjivyTY5EruHP1pnRDyFB4rWKFgJdmQuhBraxZW8iBi6OCdeHEFmmK/PTzRLQsnIHQZxhzWDU2SqSO9y3JyWAr6Epq6u32aNGtVHuVwnn034VTz3afWj7oC+7drmVUvHTzXn5iJc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708077723; c=relaxed/simple; bh=nop/OiGp844/xYKXXVQI+2hWwg8MMGvYavV5eOdNyP4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=BbjYYfHsn46fdDbeBTTYN1rSixZ3betpOdeRVBaLSbcG894GCH/Nqlty/nNvXDefKohV33XujRFTxPQdhtN/y3xv/AeI9uLB4dxcCxYj0WQcVEK9KScZLCAdIoJBIZ/e3i/CGjkUxoHPDvf20z9U8RJeKPb1BRPioHCA22eXuJs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=R7z5qE8w; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 3CA6CC4166A; Fri, 16 Feb 2024 10:02:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708077722; bh=nop/OiGp844/xYKXXVQI+2hWwg8MMGvYavV5eOdNyP4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=R7z5qE8wA13oagIgw9yE/nc7ra8LGlh/LaljN6XzRou2xoFkeR/qmoyVSlfys5Bec xh7BkzB+qY74BXS2SafJXEtPsQBYplTbx1CBx8ANhA79mk7p4B6jsJQlLz91etkfR0 phLUzVJUM1W2HSG11qKOhKZL3tjSrFw/kL1gVuizwfLI6AHFXyU6hD29KNGw0mz3Om shMJ9V4r1yfNMPJEbwT92ga9szDXKPyhbC0OTccKVsimjVlprbHIr8VU4vQZeuefAW z7r/4Ta0lc/i1JvajqGII+ZFyxGQG/3NxpIt9CHQAau9i4Feds2tyYIkajcFnTYRaw VTw8diWwjDkHw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 29139C48BF5; Fri, 16 Feb 2024 10:02:02 +0000 (UTC) From: Yang Xiwen via B4 Relay Date: Fri, 16 Feb 2024 18:02:05 +0800 Subject: [PATCH v2 6/6] dt-bindings: net: hisilicon-femac-mdio: convert to YAML 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: 7bit Message-Id: <20240216-net-v2-6-89bd4b7065c2@outlook.com> References: <20240216-net-v2-0-89bd4b7065c2@outlook.com> In-Reply-To: <20240216-net-v2-0-89bd4b7065c2@outlook.com> To: Yisen Zhuang , Salil Mehta , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Yang Xiwen , Andrew Lunn , Heiner Kallweit , Russell King Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Yang Xiwen X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1708077720; l=2430; i=forbidden405@outlook.com; s=20230724; h=from:subject:message-id; bh=iR9T/nPDOpVW3CABLZDGaiOeC7P5ZbMOoE+OAc1rwbA=; b=dlWdIEfs9sbKqrT0xpD5XZbZFy5CAi4go7n+kDnxJBVH/rZDSM6sNxQaxhy+QZ06XM1bL5lfX tqjAGdcktdVCBLmjvNKEzWTdMaLBYlJgN4l2j+ON/zqHoP5I7E4sbo5 X-Developer-Key: i=forbidden405@outlook.com; a=ed25519; pk=qOD5jhp891/Xzc+H/PZ8LWVSWE3O/XCQnAg+5vdU2IU= X-Endpoint-Received: by B4 Relay for forbidden405@outlook.com/20230724 with auth_id=67 X-Original-From: Yang Xiwen Reply-To: From: Yang Xiwen Also mark the clock optional Signed-off-by: Yang Xiwen --- .../bindings/net/hisilicon,hisi-femac-mdio.yaml | 48 ++++++++++++++++++++++ .../bindings/net/hisilicon-femac-mdio.txt | 22 ---------- 2 files changed, 48 insertions(+), 22 deletions(-) diff --git a/Documentation/devicetree/bindings/net/hisilicon,hisi-femac-mdio.yaml b/Documentation/devicetree/bindings/net/hisilicon,hisi-femac-mdio.yaml new file mode 100644 index 000000000000..1c85e6e7f8f6 --- /dev/null +++ b/Documentation/devicetree/bindings/net/hisilicon,hisi-femac-mdio.yaml @@ -0,0 +1,48 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/hisilicon,hisi-femac-mdio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: HiSilicon FEMAC MDIO bus + +maintainers: + - Yang Xiwen + +allOf: + - $ref: mdio.yaml# + +properties: + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + compatible: + const: hisilicon,hisi-femac-mdio + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + mdio@10091100 { + compatible = "hisilicon,hisi-femac-mdio"; + reg = <0x10091100 0x20>; + #address-cells = <1>; + #size-cells = <0>; + + phy@1 { + reg = <1>; + }; + }; diff --git a/Documentation/devicetree/bindings/net/hisilicon-femac-mdio.txt b/Documentation/devicetree/bindings/net/hisilicon-femac-mdio.txt deleted file mode 100644 index 23a39a309d17..000000000000 --- a/Documentation/devicetree/bindings/net/hisilicon-femac-mdio.txt +++ /dev/null @@ -1,22 +0,0 @@ -Hisilicon Fast Ethernet MDIO Controller interface - -Required properties: -- compatible: should be "hisilicon,hisi-femac-mdio". -- reg: address and length of the register set for the device. -- clocks: A phandle to the reference clock for this device. - -- PHY subnode: inherits from phy binding [1] -[1] Documentation/devicetree/bindings/net/phy.txt - -Example: -mdio: mdio@10091100 { - compatible = "hisilicon,hisi-femac-mdio"; - reg = <0x10091100 0x10>; - clocks = <&crg HI3516CV300_MDIO_CLK>; - #address-cells = <1>; - #size-cells = <0>; - - phy0: phy@1 { - reg = <1>; - }; -}; -- 2.43.0