Received: by 2002:ab2:5d18:0:b0:1ef:7a0f:c32d with SMTP id j24csp146817lqk; Sat, 9 Mar 2024 04:28:50 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXVxsT+lep5IRIKaKAPv5Df/JrSVoeaB4yX617rAkGafFKSDazMygIb514wIxWU2rpynxvmsWkVzsiFITPVFVknUT5M8Gjo/RFn8YD4hg== X-Google-Smtp-Source: AGHT+IFee4vGGt7sTn2db0LVoMQpgDkaH0Hr7dtgoYUKydQ09+UHFi3NcD8WQHhkfHoBn21+Zww6 X-Received: by 2002:a17:906:3552:b0:a44:144e:3463 with SMTP id s18-20020a170906355200b00a44144e3463mr1352664eja.7.1709987330541; Sat, 09 Mar 2024 04:28:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709987330; cv=pass; d=google.com; s=arc-20160816; b=YIoFgKl8xwxR3p5WNLJGOq/4pi1Gt1ATOD8QqzO92XEvznSlb2Uz+ynNVNpilX6vF0 qkIcztCvDYJrm+0/pUGP4E0CIWuffxYHtu4aLcZwurO9PuRsebgiN/jo+ihqVWYFwtkJ qBvmmq+S0JpphI6bCyqQcyHNSCEDshcfls9r5piDouYNJVqeJjGFPd1Wn2AgG05EOUbg P534a++snYVjDw+wawlnEYQ7MvnPOn7uhoFCHFcPSgG/E0hsX7M/DNZqLpR+xR+u+Vir yjYL9v9hHIJxAk7aLYq+2ecD+qYjLxVgBWPQQ7vqbR6qvtUvoi6b4ZSJn4Ge6pGepSaw dt6Q== 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=pOop4o9C5AD3E9hLGrYs7etUY2dVNvBn281KLKSaBOI=; fh=TR7t0/HIFS7TJMgggPPQqyHSmBG4J3N9Yyv99IDuaus=; b=0ALVpjSjTrSJqtEQJv8tPKrWe3LkVGnIJbJ3fazD+SGWAhVqR0uioRA+b0t3erqyZO YsIy5QCgaDSFT4GkwOxhIu/VWkF93MHvuEE8aXFfI3kZtpoc51EUIEdt3YepkpLSm1sU EA5P9lkFZi6b3xdU8K3xsnKJpxSUjFvaczC2xoUE4ePyGjAdpTOQAgq+2n5MnPA4WD+U K6gC0bmfZg8DZEjYQAsFZnmiDvgWlFn/hJgJ27PP8vwoIQYUT2lIitF+elrsp6KBvMpI kNHD374FZDiyNj5+o6u32RUWDMJ7l5j07pyb7KN2nxgbrD3D1A96JkDQZ+VNpRr8yfvB 4hLw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tV8fOuGY; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-97883-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97883-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. [147.75.80.249]) by mx.google.com with ESMTPS id r11-20020aa7cfcb000000b00567dd1c1770si718230edy.148.2024.03.09.04.28.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Mar 2024 04:28:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-97883-linux.lists.archive=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=tV8fOuGY; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-97883-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97883-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 36EAA1F2166E for ; Sat, 9 Mar 2024 12:28:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0303D481A6; Sat, 9 Mar 2024 12:26:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tV8fOuGY" 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 0A37E3B190; Sat, 9 Mar 2024 12:26:24 +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=1709987185; cv=none; b=isQSlBh9a+Ha6TvqqdqDI4je1Q7gk8B6+6zxysfBLnrvPybKhQdlYMeFH8qg4Uq6bC9aNr30Lbt0xvrtVKKueJUNI/EEtufBkRQyy0xLSv6lYo5JtG3vjEYbLqcMdGhY8AB9pULTpgUOvSrDn5er3jyTpUFIV4BZAaEzQ1hmN90= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709987185; c=relaxed/simple; bh=S/doFh+gAKWZAIIBgfTAfdC4/d/iX9a1igOHcKDtz+w=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=lt9/bkdnlvpyLMHgP8aQgbqiWpBrrVvELobUIw+5Cu3P3YLm6nXG5k/Qp8BKD4UnFS4F+qF+XKHX20p/oK2cSWbg/dJgpynS1F3cJ0x81K0acl0NPo0bFVPJmJhSftLBa8ErrYFErlM3cKP8cJzYAY0AAB+7z/UJtAxJFsiR81g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tV8fOuGY; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 6E6E0C43141; Sat, 9 Mar 2024 12:26:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709987184; bh=S/doFh+gAKWZAIIBgfTAfdC4/d/iX9a1igOHcKDtz+w=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=tV8fOuGYO9o5NS7Db+RIGTgHQ5OddoRjPblkjQM1gbEc9LjkV0dhMm7TNOEldvjjK DNVYRtdgb8Kw62mLa1/sTejcScQrT4sqQOsGegApKGwEpUL/tdeqeUjm1k5C4uN5o1 asdGoVBCeuCloLD1v5hIeCZGGhYlqPt94TixludZcQaseSxiih8wrx8oumv0ImV0oi Nn92relKbuobJZDHC7n/TotnOsaupZ+Fq16CNkOEPUL7IVp23yXIU51LOpTBa8CiKS TUNaQN4ykaZPOMr3gPgC3j+76sztofllc3pbC28QXxcfo6b951ht57CxQ8eRs3+o3o rnGg2dzXRylmw== 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 5BFB5C54798; Sat, 9 Mar 2024 12:26:24 +0000 (UTC) From: Yang Xiwen via B4 Relay Date: Sat, 09 Mar 2024 20:26:27 +0800 Subject: [PATCH net-next v11 5/9] dt-bindings: net: hisi-femac: add mandatory MDIO bus subnode 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: <20240309-net-v11-5-eb99b76e4a21@outlook.com> References: <20240309-net-v11-0-eb99b76e4a21@outlook.com> In-Reply-To: <20240309-net-v11-0-eb99b76e4a21@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=1709987182; l=2289; i=forbidden405@outlook.com; s=20230724; h=from:subject:message-id; bh=4fkGrr79J0kJPETyUJ+upr3jatyv9l4bbxNa0d6pOpo=; b=2GHYPHV/hc07ybivl621iErFTLb+UDsZtdcnRa5QfnSLwu268J7fiAlr09l9J1B5BUcYdGKlL P5KL9rPfxEwCkuLzgSJZu2pSnAON0YJixUW6m/GdgoL8kUnprhBseMe 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 FEMAC core always has an integrated MDIO bus mapped in its address space. Add required properties '#address-cells', 'size-cells', 'ranges' and MDIO bus subnode. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Yang Xiwen --- .../bindings/net/hisilicon,hisi-femac.yaml | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/Documentation/devicetree/bindings/net/hisilicon,hisi-femac.yaml b/Documentation/devicetree/bindings/net/hisilicon,hisi-femac.yaml index 3344d3bfefb8..5cd2331668bc 100644 --- a/Documentation/devicetree/bindings/net/hisilicon,hisi-femac.yaml +++ b/Documentation/devicetree/bindings/net/hisilicon,hisi-femac.yaml @@ -22,6 +22,15 @@ properties: - description: The first region is the MAC core register base and size. - description: The second region is the global MAC control register. + ranges: + maxItems: 1 + + '#address-cells': + const: 1 + + '#size-cells': + const: 1 + interrupts: maxItems: 1 @@ -57,9 +66,16 @@ properties: - description: reset pulse for PHY - description: post-reset delay for PHY +patternProperties: + 'mdio@[0-9a-f]+': + $ref: hisilicon,hisi-femac-mdio.yaml# + required: - compatible - reg + - ranges + - '#address-cells' + - '#size-cells' - interrupts - clocks - resets @@ -75,6 +91,9 @@ examples: ethernet@10090000 { compatible = "hisilicon,hi3516cv300-femac"; reg = <0x10090000 0x1000>, <0x10091300 0x200>; + ranges = <0x0 0x10090000 0x10000>; + #address-cells = <1>; + #size-cells = <1>; interrupts = <12>; clocks = <&clk_femac>, <&clk_femacif>, <&clk_fephy>; clock-names = "mac", "macif", "phy"; @@ -84,4 +103,15 @@ examples: phy-mode = "mii"; phy-handle = <&fephy>; hisilicon,phy-reset-delays-us = <10000 20000 20000>; + + mdio@1100 { + compatible = "hisilicon,hisi-femac-mdio"; + reg = <0x1100 0x20>; + #address-cells = <1>; + #size-cells = <0>; + + phy@1 { + reg = <1>; + }; + }; }; -- 2.43.0