Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp241661lqs; Mon, 4 Mar 2024 23:57:23 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVCpNir7Ca7KNTg0Vv2CVp+sr8hNARPrzXmmXIRLf5Y04AymFCIQF1c2SHpf3afkOyH/OFqDehQgwNVOqYvN+pINVsw3FN/jAh8akuW8Q== X-Google-Smtp-Source: AGHT+IEOcMJf7sB/ZLsx/gYiXexLjHwtbOWHEIVey/4CjWn9o9xLSMy8Mlc8rG9ikiqnSKCRl3cg X-Received: by 2002:a05:6808:2207:b0:3c1:e618:f8cb with SMTP id bd7-20020a056808220700b003c1e618f8cbmr1335562oib.22.1709625442926; Mon, 04 Mar 2024 23:57:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709625442; cv=pass; d=google.com; s=arc-20160816; b=x9JRvU4DmuavdGYR7a3err8xZiZowjrDhrF5ogLPgxOHNMrgp+GjrE13t9a5v5lILC V+iuLa0iSI1Gq+VSx1Dcngctyu/XnrqYGxey3YWFeHtUNQoFb7T5KEhU6IzVfjPEKpuP W/qt0j0FKHSaPPM6dcv8jgrzZsTq4r2BAVhFa4gbOAHiAlR4t87vVHrgxBjxcCpOR5J/ YSUcO/YpbIzfqG+a/T02RHNgC+hGb5121DfvdTd/Od8ZoyvoyGt51jLnWxstEr48VDFa jvr3i8kvWJ5UFsLGZtUAA1znV4ehEHCMvialGWINNyRA9j45KuLM/6Tsuay81pNoV4Mu 2jbQ== 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=ZxMig4+An2l0ffa/D8LHm035Z69A53O1UkhdAtPWpkQ=; fh=TR7t0/HIFS7TJMgggPPQqyHSmBG4J3N9Yyv99IDuaus=; b=yMDDlSlE/WG5yffizyH/2oViMKv9DXvaeYM6Ixr764lUaXEmw0CfOrILofIKGFG2rl juWNwm/OCo05J0PXqyncEvP1n8MzUBPr/xcz0zdQCU5IzfZEy8JMJyAlaqrEcAcwaik1 qorc1ksLr+T5hjjeBxC5dYryysbk48WairqmpJ8lINZ+mIvjHHiCyTJTQjEbfK1y6AGV SO98jgPZermyNFNSypH1jQMMRwtkS3d1UNhyeuXVL3Zbu7Fe6kSI+t60rxc0YXOeuilc ScgDrbJyN3WbZ15JzMsHL2PifDlTF56CEbqAn3ZhUtOJcEzKv4GjDPMEg9PkR8FV4/ay tFtA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MEvfZzt1; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-91836-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91836-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id k11-20020a634b4b000000b005dc10248136si9510531pgl.314.2024.03.04.23.57.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 23:57:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-91836-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=@kernel.org header.s=k20201202 header.b=MEvfZzt1; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-91836-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91836-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 02F6BB21A96 for ; Tue, 5 Mar 2024 07:52:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9AD5E7FBB4; Tue, 5 Mar 2024 07:51:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="MEvfZzt1" 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 A11707E795; Tue, 5 Mar 2024 07:51:12 +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=1709625072; cv=none; b=JDDgn+Dc6uh3I5RwT/6CvCJ8OuMtqIsWgfMMgALALrlusqHQFqXaDRyIkKy7cZPuZ5eppC9AXmBQKexwnmRzicu1y35Z/4Ex4U3PnKHNV6615FPPoclINtkAhk+65Qt3zw8iKzSS1vuMJCPr4BtuZog5+UNdXenx92ghzNFgvbU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709625072; c=relaxed/simple; bh=3nX8fP3l7Bt65toEN0CdGwFHFH0sX3inF2oQP8On+7k=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=YZIEghUv5KUr8U/I3bfx7G5I1ZGIQiB6cCB8RUY3JVaEYPvsZASmpdx9dLwT7qmFXVhVxkBY90ult6Q+TdyFxjSKj36JJ0Dh3UAqm2G7aeeX2f3uiE/2RI5BpearhK2r1L/jLonePjhdfAsduDodoTQ13e8wElKWb7HriRDmJXI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=MEvfZzt1; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 44410C43390; Tue, 5 Mar 2024 07:51:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709625072; bh=3nX8fP3l7Bt65toEN0CdGwFHFH0sX3inF2oQP8On+7k=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=MEvfZzt1qfKHWBPwaJiwRnSi46xS4djLNOUc7r3aWaVJfM9qN7ll2jm2bCPUiDNXo H573k7JSwjS4JIZrRjgoYPys7+ujQ32wZRtgzzfJk8o6IC6qV1txFQ+NSC+CA0y09t UciVsKdXjUzZkKmOXWnX5xxZ/6ls1BROseg69MhZymxdk3MmYt/mRklmm2fXWDfyYX 2kUQMQmpCIlddFJIN+lIEQFN2GvQrg/k4Gp+aySi2l1nu+KnK6VlXWLVNibgTeNVsJ BN2YZw69RuaF9j6aqGg7ctfyeqaPkPVNSz5FVISuwby/AK8gQ1vSL7ctiaXhLW4Sfk SVWs0zlug/VVg== 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 2BEA2C54798; Tue, 5 Mar 2024 07:51:12 +0000 (UTC) From: Yang Xiwen via B4 Relay Date: Tue, 05 Mar 2024 15:51:10 +0800 Subject: [PATCH net-next v8 1/9] 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: <20240305-net-v8-1-166aaeea2107@outlook.com> References: <20240305-net-v8-0-166aaeea2107@outlook.com> In-Reply-To: <20240305-net-v8-0-166aaeea2107@outlook.com> To: Yisen Zhuang , Salil Mehta , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andrew Lunn , Heiner Kallweit , Russell King Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Yang Xiwen , Krzysztof Kozlowski X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1709625070; l=2517; i=forbidden405@outlook.com; s=20230724; h=from:subject:message-id; bh=stv+a/mRLJaLswc2WeXjirfjJSRDl5txIs38K87wIhs=; b=mljznLqdpJB/j6Qo9uSrnVVgf9fHHL62cVBkYnL0iq7zSHiVZhXn4ictBDiBxD9Yg6EfgL9o6 ycB2UepQilmBqCPFc2qfuECxxQMpnajTWPHICuS5KNG0YpHculaH9I9 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 convert the old text binding to modern YAML based binding. No semantic change. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Yang Xiwen --- .../bindings/net/hisilicon,hisi-femac-mdio.yaml | 44 ++++++++++++++++++++++ .../bindings/net/hisilicon-femac-mdio.txt | 22 ----------- 2 files changed, 44 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..36def9d5eecd --- /dev/null +++ b/Documentation/devicetree/bindings/net/hisilicon,hisi-femac-mdio.yaml @@ -0,0 +1,44 @@ +# 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: + compatible: + const: hisilicon,hisi-femac-mdio + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + +required: + - compatible + - reg + - clocks + +unevaluatedProperties: false + +examples: + - | + mdio@10091100 { + compatible = "hisilicon,hisi-femac-mdio"; + reg = <0x10091100 0x20>; + clocks = <&clk_mdio>; + #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