From patchwork Mon Feb 19 19:57:37 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: 203260 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp16276dyc; Mon, 19 Feb 2024 12:09:48 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVJk28XlDcs2X4QbWJcNN4lWFlalccWnG65t6AW3PdLUxlxMMmp+7D84BCx/ooFprmQVQ7hMJWS3jc5cTglixj3scd8yw== X-Google-Smtp-Source: AGHT+IH69QNryuZ2DXGXzsM1WoLW18A4TyuXq1+SfVNqjnbRYgCvaFkHp+ALdhZRmUUjU8V97t4R X-Received: by 2002:a05:6a21:3511:b0:19e:bc68:3c67 with SMTP id zc17-20020a056a21351100b0019ebc683c67mr14172695pzb.33.1708373388118; Mon, 19 Feb 2024 12:09:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708373388; cv=pass; d=google.com; s=arc-20160816; b=dHXo0hdlTCm4yXpt81OUS4380V/s3wwHOoZtN92/UzvjI7ri9GIXz+Z00nvY8jgwmK Dfzxc8xrtkNLReMKCRou5zISPxGGH/8zrku2N/sUe16eKS/0GWNgSwEG/3yRCdgvLlFs kIsl4MpHCtAzmIQkvOqRo63vZIGvh5Q49+0vymC2QnTXjow8g3uoHKPeMyXBmM58zJfM R3RmIw/lTxKUZraf1KJSxpSxWx00/9ujpvMhx+TiF6Cfevx6S52IKRYQBAo8NJMbSbAe MafRVUWPBOsapRs/Z9SDaktM1mbGODiZ0UYxI2rP47brnT6ErrFSGLdN5e2CR3b5FdqI Dziw== 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=xf53zEEwO8UfwqXA8rNDXb86USgBpvamfpvPadu/NTs=; b=Ag7fbPSal4JMiqkCtkwU97JhkGDT7BBTuYRUeTJV+OTHSwWQKsJq8ISimywhKyNDT0 cwefnY7g5jhcWiyrVMV6UGdDzDTewRhLKAAqCR+dIf8LJcHrxkuh+U8+oTMBH4O6a4T1 Kp2SV+HZqhtZ7+TzVx6XmK4vDo0bHA3TBF76f5yVLOODxhVB3rZp3OdsP6KbaBZunzZi Z3LTdWSUdPQbOV0hPz6W/cYUP2v6QaDo+jZzv6jc/2zs3/jT7eZ9wXrY2P1cnFW6YDze SDWR0kuNjglgh9cODuWpmNtj1lF6Y00s1RMWhiDiwtT43Wqe/ddSLmwRRa8KcKLWueoS j4LQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BG7nX7GH; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-71926-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71926-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id n18-20020a637212000000b005dc957fe12bsi4763053pgc.165.2024.02.19.12.09.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 12:09:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71926-ouuuleilei=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=BG7nX7GH; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-71926-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71926-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 69C91B2639F for ; Mon, 19 Feb 2024 19:59:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D61F05645D; Mon, 19 Feb 2024 19:57:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BG7nX7GH" 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 22E1351C3B; Mon, 19 Feb 2024 19:57:36 +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=1708372657; cv=none; b=qqxy+/ToBnpmYEq6wTtlP7ZbvxDRobctJkYjxOXEJCENSvC7EPmbLj8dinRuTuxVoKVEmW3KRdV5O1ZqhwZSMp2t2YZnsuvQKzJD+SIcfCfqeyWEE0wy2pHaEMHaCEWecg1s9F+uFgz456CJN1LlGJq3L9TfT6MHwujXSz4CQ8Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708372657; 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=vC2Td63+s7C4Dr6XootBsUlL/UpXoTzBEcDsi9QCERlZOx6O2bktHhigqpLLCjeZ03sxlNT5bbo7lFMYp9Q5GHESEG23QaSPt93m64e8xOoKQzePQLvT8DBnUbyNa4aeliyLpw5GtBgA9o0QPO4pSvS3SHunQoOAN5RMfgFscPc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BG7nX7GH; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id B1976C43399; Mon, 19 Feb 2024 19:57:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708372656; bh=nop/OiGp844/xYKXXVQI+2hWwg8MMGvYavV5eOdNyP4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=BG7nX7GHEgjsHqlTeqi/yRJC+4RErti0x+S5kJYkVXJcxzjJIKSqcKBmEd6dIEIxh +xzo/n/nKL5DWb9x2dJBGb73qbrMui/9upAZ/Ly1fJMJbbXluLjiMiAvfje/TnV+Sn J/l3ksgnqvAu8RHhIhcSXCDVSat3Xk/lYoMWPkUIABkcuYVUlM4nhd3gxtYd2Te0B7 HlErm/2B6xVdo7oXq39/f6dvOjUk75AglAnwgSN2S67xuYjAa9X3MQqvOULM1d54L5 MYLmtFypgqCmUEytKG3Dhg/kOX+xTmu4S+Gie0WbyNXzYxLrptjFxPaKDCPTxSpxao z46ORRCFFTOdA== 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 99E28C54764; Mon, 19 Feb 2024 19:57:36 +0000 (UTC) From: Yang Xiwen via B4 Relay Date: Tue, 20 Feb 2024 03:57:37 +0800 Subject: [PATCH net-next v3 2/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: <20240220-net-v3-2-b68e5b75e765@outlook.com> References: <20240220-net-v3-0-b68e5b75e765@outlook.com> In-Reply-To: <20240220-net-v3-0-b68e5b75e765@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=1708372656; l=2430; i=forbidden405@outlook.com; s=20230724; h=from:subject:message-id; bh=iR9T/nPDOpVW3CABLZDGaiOeC7P5ZbMOoE+OAc1rwbA=; b=NdCawbGp2t76JUPylwDvThvzqdBGKVRdFCSkBeLmKz9L6dcqjLFKFKHlCFYlV4UH7xmGv/GXX Ud9aNyhBaRlCY9y6DqLuOL55qbV8XAp/cMHuYYlwMT3iIhX4qP1GKqt 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: 1791359333703259019 X-GMAIL-MSGID: 1791359333703259019 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>; - }; -};