From patchwork Fri Feb 23 13:28:16 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: 205380 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp583446dyb; Fri, 23 Feb 2024 05:30:19 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWc3mIHL2HsidA0poUCTLWAyiWc4WYucqFBBAs8pPU723Ine4+Z4XzM1yNLFSJSd+4ZRE+LvalbFbVnLaLwWXaedlyNdg== X-Google-Smtp-Source: AGHT+IGgvQw4WFj1iFBVpOwTIikh3ubJpvfr3EzVtxTvw04Cs2I9mAix3L5jzZxzFaaiOUjoeuNk X-Received: by 2002:aa7:d484:0:b0:565:862c:bf85 with SMTP id b4-20020aa7d484000000b00565862cbf85mr423522edr.12.1708695019589; Fri, 23 Feb 2024 05:30:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708695019; cv=pass; d=google.com; s=arc-20160816; b=I+o+SU+irEooMMZKIYop66JB67EMGAk1Yyt08ZELwNUB6Vg4TxDAZBUWJa0u95+40S N7VG5KyAPcLB95vV6KErC98EWO7PuYZUtR/Rc5JoFdz1X2vQwh9t7WdUJn9Gt8TZsM0u wikHVMYcaY0jUMOM3FiULttytyYYuflDwgxV+syXIsfaI9VBAOPKzsJmv1ZhCA9anpeZ XtTt7Aseu/HB6aO5K/3cRY11OL7UFKbZAaHUKvC0hWcVoPsXZEf64hqc2DYwGnjfoSL1 bEyWfmNJwrMYugnZ8BbWNtlpJT4Tf9QkFMq7URt2rYvR0GbQjWPqfZKVVeKCUKA1MWCx unHw== 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=mqdIV7EMb99UKTo/K/U8ikNUR6Jc0mPYkBEjAdwuMxo=; fh=xf53zEEwO8UfwqXA8rNDXb86USgBpvamfpvPadu/NTs=; b=sf5XIkcjDJkjpHp0Xhjt2xOlBf64w2Y/3KdZbTjDU1UlkMSvmUBYeJYNlPTwCFDvKa 2xkgfxOc5261Gf5V1roOwlb8N4/FJHTj49Z3NRvAhXfiuyuDQQhlnpd8S38BMdX6I55t culGLlQLDZNUlQq2OLsoNy7r/jqanvMRaCbIyVPI8EkiJ6AzUOftl5n9ZxT/IDFAlNi4 UGszy8176RePVXJm9g6ahIpud9GITHpgxaJHdL0I0SGml9oGtdm+KCFB2hdwKL0hiWEY dXMtkQS8sodvx0nNgdbCrgAMwzSFD/pvt/Q7G9r/fLSI9hcsyCcZt2Vhq+nzj04D2V6k 03DQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iPpHt3uf; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-78377-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78377-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. [147.75.80.249]) by mx.google.com with ESMTPS id y4-20020a50e604000000b0056415925e47si6081487edm.21.2024.02.23.05.30.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 05:30:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78377-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=@kernel.org header.s=k20201202 header.b=iPpHt3uf; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-78377-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78377-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 0EDE41F2500C for ; Fri, 23 Feb 2024 13:30:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 09A1D8288B; Fri, 23 Feb 2024 13:28:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="iPpHt3uf" 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 F0B837EEF7; Fri, 23 Feb 2024 13:28:28 +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=1708694909; cv=none; b=hfdDI0T0cKLLQurBTtye1D/3Gr4Y+7O1sNSAc0Eh9hUIeIWcfwSW/PNO7lmw2k5oDH/Lbzr24pjpqQ7bUhDwxEkSsbdn/AwqHay39gMVt0k4aaRuWfmSPggnJ1mbJ1vyQqoqQ75bVcgmodiej+aDdcFIF1Tk0lS64RkGgAYpDQU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708694909; c=relaxed/simple; bh=jPvfA4fCiMz71iIgn/ZKZZv+zI2oDR0duOAnRqgl5k0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=dLw7PG/O8pla8894+u0g1ShEJv8QiUVKIDpPR0jysAe2wDdGP6aSlXjtblSLqshpJykMDX6oeQ63Vt4GpaOFWwLyKYLZwCGuqnNzQmtnqbTBKmEr+OugryvTqHdMcpmfmKwdjHCmTX1oSRUEmjQVAm55sVYwUfs4+L5FU433b5I= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=iPpHt3uf; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 8EBC1C43390; Fri, 23 Feb 2024 13:28:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708694908; bh=jPvfA4fCiMz71iIgn/ZKZZv+zI2oDR0duOAnRqgl5k0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=iPpHt3ufxV+fTr7UQnXkcJ3aHJs6f+/wyLsQnpC9aTIbByvYzc29IB83QY0rQVdK0 ojhKKclCNkR5fnv8WpvWMO1H1wkZkvvimtII0uDcvjn1a3aWrojnTs5G93c8tKd9x/ vFGjcW5qcaDlhCgSd1pdaqGqIoEJvivmFH3zvJnUzQCYx4HLjL9Nd6ByEB2OHne4Ky 5ND5jWv5Or5bMHiCQRgyaZZVHh/HfZ00OZ4hhqjG79T1IsA3nSEhV5QtbzIKO2C4K3 /wNJ9ciVFruga43J3QOsw67jqgY7wKaXB+/xY5DeoSYRXCVsebsRUz/7v2DzX2pjrB 6nsvIQEMNjrRg== 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 72D99C54E41; Fri, 23 Feb 2024 13:28:28 +0000 (UTC) From: Yang Xiwen via B4 Relay Date: Fri, 23 Feb 2024 21:28:16 +0800 Subject: [PATCH net-next v5 1/7] 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: <20240223-net-v5-1-43b22d39c013@outlook.com> References: <20240223-net-v5-0-43b22d39c013@outlook.com> In-Reply-To: <20240223-net-v5-0-43b22d39c013@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 X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1708694896; l=2450; i=forbidden405@outlook.com; s=20230724; h=from:subject:message-id; bh=J7K5LXcWUGxtur5Z9g90nuEgkuP8UoU2HOmGiUfxnWU=; b=2elWyDB1l81ckj1MUDjHGcaDAVl57/FpK4J2WPJV+HGVNM+eRIrd0UocZ1tRhzxdz0MTtyQAH 19C09bN1BtMANsFGeJZiwfqOt3p2aQIEJw6hnS15ftrFBsgq2KiV+Eu 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: 1791696588879117095 X-GMAIL-MSGID: 1791696588879117095 From: Yang Xiwen convert the old text binding to modern YAML based binding. No semantic change. Signed-off-by: Yang Xiwen Reviewed-by: Krzysztof Kozlowski --- .../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>; - }; -};