From patchwork Fri Feb 16 10:02:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Xiwen via B4 Relay X-Patchwork-Id: 202052 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp409577dyb; Fri, 16 Feb 2024 02:04:34 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCULh4/SxoBYF/Z+3yO+9/Gxwey0Yjw6wklaqPrxhwFg8SCD3o9Q/fwTDJUYFV7dZlS7vCc/tSdYWOLimTjdWzKcH3c9pg== X-Google-Smtp-Source: AGHT+IHeBi9a60aJbQlY8IiFcOU7Im8T5mVX2C0xlGm46E0fa0b8Eo9wuAMW912kKDDZPsL1VlrF X-Received: by 2002:a17:906:716:b0:a3c:7ab:aa6d with SMTP id y22-20020a170906071600b00a3c07abaa6dmr3000673ejb.12.1708077874455; Fri, 16 Feb 2024 02:04:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708077874; cv=pass; d=google.com; s=arc-20160816; b=B3zkufMpruAkaJ3CizXFZgJlOXE+4u7MxVc98YftYVjALqdBHesuWitCHKKK8kVgC/ z5L35nnoxEvdVzVMXFt9M+x+EHZwd850G5pmN2OCT1AdfRLyhP6GQ067Bw2S9agE1pv2 x+nfYBjzOdLCtTg1QW+0cpa3Sn827XoZ/OUj5RXJF5JH6LG5TQaQJAB52mFujD52WLNS c578k8gjw3hFxPTjAm55o/7KYX0KwX3cVV1ukEwzlPjF8btjBpjaOw4oG2IMa9oFlX43 nW+XFI8Ow6FShVNk3ziaheSthEZpgjO/3OSNsdqt69J8su9GzT0JlC3LOEW8KImi9Auy n/VQ== 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-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68407-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id v24-20020a1709063bd800b00a3d8d08afeesi1467484ejf.227.2024.02.16.02.04.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 02:04:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68407-ouuuleilei=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-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68407-ouuuleilei=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 10D5C1F22DF9 for ; Fri, 16 Feb 2024 10:04:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 983A722F03; Fri, 16 Feb 2024 10:02:06 +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 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: X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791049465193728607 X-GMAIL-MSGID: 1791049465193728607 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>; - }; -};