Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2432420rbb; Wed, 28 Feb 2024 01:19:03 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXl8xodCGm9ntLrcKYxDqjtFBdAtiGOMW5Kl1ZLQBnR1dvvWm93pEJw7Cen2ZYVrpfQeCROoYJWkivJ0mrmf/+7j5MNzmAagRdlPYyCPg== X-Google-Smtp-Source: AGHT+IE5+TlAv3/S/JUSXCk2RfNsuk3/eTfDSTYslZQVNXtGbzC7uQr6HS8EPZPj3aOQNpOVUWlm X-Received: by 2002:a54:4886:0:b0:3c0:4b90:fc49 with SMTP id r6-20020a544886000000b003c04b90fc49mr3947665oic.58.1709111943447; Wed, 28 Feb 2024 01:19:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709111943; cv=pass; d=google.com; s=arc-20160816; b=j8PlApeqh1kbpqeCfqnqWKa9DL7Pz9X3x7JG/hjWx6CHhrsXX4R2xam20sYQv0ozrG s7SU3zlC3GwBohIiiPQGyQXsM7dfXZU81U+s/yc0F+Pf7OeN2aPJzlIT3r0E7asXDPv1 BFOHcW5TSlBZysRgszaQxILZgwlik9ghXHam+3czruccodv5ydEXzIqh95WRQN+LccEU 5Hhl7LekYCLQmPPa+zbxdAqeHa4X2IXXh5ejUJC9XWbELdzHXL6BXAdmR67vu91L6bNo lgHouAFmQPE1gj6jw7ndr1VHV2ABEqSM+jm4nDtQbte95uiKWgftuSyE7vHV1kjtOTZz Kbkw== 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=Syi58CMPJkvorX82mQ1AjpthNn56/vd9Bg3Z+y5i7zc=; fh=xf53zEEwO8UfwqXA8rNDXb86USgBpvamfpvPadu/NTs=; b=liIVc42HiiWoObgZA16TgRYRRy+UHptWGg7euo68gMOZHIQPxUKVAKRLin/QLzEqeo BXwncFWoxMFD671joPSGmAwETDseF5NmJmbNFFBCinsiX18nKpJ70uyAMrHeF5dVdzQQ Oev/X1n9aP92TFQ0rxIa9ORAne8eIUxB5hjCSbHGIFal+YIQGpNPWX/1ZrjHxBjdpg36 8YYXQd4GFbAehZnKgkW/zwPmn3CizRFPX9o4ru3DUbf3lsFmW8KbgG3BDXuW1VKOKGnp GI6cjyBhmaZXjaHbQVd2+HzdwK6hGIRv+vI5J7DwaAcf54e6/0Ms/NCZL6/ToAkakZcc Belw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Yg/ULCK2"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-84728-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84728-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 i192-20020a639dc9000000b005cdf8b4d2fesi7091591pgd.747.2024.02.28.01.19.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 01:19:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-84728-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="Yg/ULCK2"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-84728-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84728-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 2B508B23A21 for ; Wed, 28 Feb 2024 09:05:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C0B5E44C86; Wed, 28 Feb 2024 09:02:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Yg/ULCK2" 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 5ECD931A89; Wed, 28 Feb 2024 09:02:27 +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=1709110947; cv=none; b=ukv/CZcRFP9ozWyrNJFWC40xwAXmP1AH8W0Q9xKLST/F86f+YMQwV3IPWltLrFArAXkTqzNsE7K/gNZdvGe5iSInHigjPfZkyfb62XaXN1Uz8a6oJiFvWZ+Egsu94tqy/V1N341OSmSvx2B9L/8cbbdAOagHmFz9lAxgwOkJP14= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709110947; c=relaxed/simple; bh=MNYEXN+BFTezcIlzVe0klHXNpA0g3TpmZO9OeiTVtnA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=tJvGch4dIobqdaisEuMvg+zEbGYphsD/nl3wYMTknqWpXR755x0X6xBWXLynTu0Gc2ePTgbEEbz5XqNDhepYtv5DsCP6SrLCYOc2ZSIDdwNWS0z0xqSnM/MTo4g+pSEbv4sRecsfkepWzUXNM/yP3q4uofgL4pMJGNvGoGADenQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Yg/ULCK2; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 0BC23C32784; Wed, 28 Feb 2024 09:02:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709110947; bh=MNYEXN+BFTezcIlzVe0klHXNpA0g3TpmZO9OeiTVtnA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=Yg/ULCK2NLoe4vrLCoa6gYUCIT9mNdF4KBd/yxBkpM/8RxAKZ8HEhsGRgC4Hj/TAA RsIRI0Wq6LTka4MbwH+PE3KSFIkIv0x6mdGdDAyp8mIRgor5f6isIbH6m5D83g3FqO qDRj7lBeWGnh0L3u0oY8TMZLIQapTG7I4puTPdVq1T8k8L4fM0pnrGM9LE57lVT9/R z1J3jtf2oUJuFcCb4A6h3BJfb00V66yqQTgt2f6tvM3Wpuqr53vm9g29ipMgp2WVA6 h02sHzcRYgn9UeO18ZkEI9Rn7UpJkQMbTk+5klWQjmv0nWU/zdzKoz700RM6b3J3gD /ycg5GIoZuvFg== 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 E759FC54E4A; Wed, 28 Feb 2024 09:02:26 +0000 (UTC) From: Yang Xiwen via B4 Relay Date: Wed, 28 Feb 2024 17:02:32 +0800 Subject: [PATCH net-next v6 08/11] 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: <20240228-net-v6-8-6d78d3d598c1@outlook.com> References: <20240228-net-v6-0-6d78d3d598c1@outlook.com> In-Reply-To: <20240228-net-v6-0-6d78d3d598c1@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.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1709110945; l=2257; i=forbidden405@outlook.com; s=20240228; h=from:subject:message-id; bh=MD9OppYNChwYfG+o7jC+6/9qGjd639+9Q/OQeo2lPDE=; b=GZzpszJU5Lk1WHcFpWaL2FCo4+GVzam2ZcPlapSzzm5ZVst/XdgO4bRL4RTS5n3gUO4uYubDk Rq5HheLT4ZpDfvP6WYD5e+85IW39MwnY4q7DJZi800L5aNEq6csMTd/ X-Developer-Key: i=forbidden405@outlook.com; a=ed25519; pk=KAWv6ZzFsT54MGllOczJgFiWB+DuayEmyn24iiVVThU= X-Endpoint-Received: by B4 Relay for forbidden405@outlook.com/20240228 with auth_id=136 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. 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 6c5888897876..d56ff8538a86 100644 --- a/Documentation/devicetree/bindings/net/hisilicon,hisi-femac.yaml +++ b/Documentation/devicetree/bindings/net/hisilicon,hisi-femac.yaml @@ -24,6 +24,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 @@ -59,9 +68,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 @@ -77,6 +93,9 @@ examples: ethernet@10090000 { compatible = "hisilicon,hi3516cv300-femac", "hisilicon,hisi-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"; @@ -86,4 +105,15 @@ examples: phy-connection-type = "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