Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp240420lqs; Mon, 4 Mar 2024 23:53:39 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWcoHnrM7B4qvRiE2KZuFnL9PTafg2WRvwNZzx+OO9amD5JPvPu0cSSL3FoZc8xSMLn3ghLPItxuVPGNbXvlYQn+BkgRnXalQ2mP9aoBw== X-Google-Smtp-Source: AGHT+IGj0jZJQp6ZAZDjc93iVlQKtMrDxmoyTTpAM+9P8nGipho2r1Osn88prkdAKMuVp2M6y2Bf X-Received: by 2002:a0c:aad7:0:b0:68f:ba43:2e77 with SMTP id g23-20020a0caad7000000b0068fba432e77mr1147144qvb.48.1709625219744; Mon, 04 Mar 2024 23:53:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709625219; cv=pass; d=google.com; s=arc-20160816; b=zOAobsqUbflEDeVjDWvWqBGuuKufYyQzEBX4u42BbrL8YQZYCsvVOIno82hZJwhL3y GlN0rxtl8lcX/M/j42lQ9uGUWIQ/4nGQ6ziqqMtRp1sZ17CbA/JwgAEIy2lQf6M4X3kk hHqOaxou0Zw/p4UwGnga0GE6PueCOtBm8tZ0+FRDuDcy6udLAbFIZ31ecYII4rLFC1a9 Xe6YtUmtW6zC1LaApRW95tlEUADl/hBChpaABvXRXmqmmXsk/iTLFnBKH+gL+eDbn3FN QXQPtoSxUZK5drxiir7wHDXmbD+xseX1iJrWG85sRBGVDcpLxZ3Fm7RVaFKZ23o81bao F5mQ== 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=pHDJhjEBn0IwimpQeIEQytGkLM2oxQGx+knNram1KOM=; fh=TR7t0/HIFS7TJMgggPPQqyHSmBG4J3N9Yyv99IDuaus=; b=Ny2GHXm484FHEpx3/yP1y7oiiNfpg1EHm4d/eW/ttwaK7EE8PiQOmFx7rGZRxsZ8H+ kyGLVvzpY5gH/wXmDrPWUqVdud4VWnzjUWsm/GzR/VZV3BlFy0bIwDn3ijREHzlKcfcV xKL4+HIwW/tlanxDy2klFIjdbusaUgH4v5lVtXpf2Sze0ceF2TsFbLFbkm39lGhQoWt8 aEiXTXxjIf3MYJSnTzo0ZjD4W2CyyedyAwewCP7pXeNOsMWUyMzcm2IqsJfeTQZnlCc9 JssE2wQhlRkpWXB2moQwfyAUKExa1WIyAzMKpnT/+BGF4uzhQTw0jZ6YGZiG57fBQoVQ YX1Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dSmLJ0x2; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-91839-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91839-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id gu12-20020a056214260c00b0068c6fa95b48si11685473qvb.466.2024.03.04.23.53.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 23:53:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-91839-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dSmLJ0x2; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-91839-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91839-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5E39E1C213F9 for ; Tue, 5 Mar 2024 07:53:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DC08E81751; Tue, 5 Mar 2024 07:51:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="dSmLJ0x2" 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 E97A97EF0D; 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=1709625073; cv=none; b=SdSvFKtU2FVdX6Je/W87ur7dGaUfgOyq5MdS541nUKJGnhpT1BO5SkoVz4rCGJxkHLCP/wfjEQOR0Winf5NVgR9BrPomIBwHZ/GoleHL7PeU/FaF5lJsRkBm/G8/sDr7Ao+/rgIkgoZ8XfFHTCy2yo1Cy/3223qLlnf2GFR2+zQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709625073; c=relaxed/simple; bh=KBkbSBUYWsrzUyqKx9vXlQcN5p5QtPpYZGQe08xtkko=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=AGPkMkaQxfTUsoLkZz7AoTRnBfXqL1+cKmseExyZ7U+nkFWn6I3DDX5ytWAcs+wwfTNc6o7QHJIfGEJ+IvSnuFkf7gudHT6I4FcUuxrpOUc21QZlKWWsqEx+C+cdOdQngohJdDuXph+a5bLKFm3hC91GRVMHpm4fJmD/Dcx8pwg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=dSmLJ0x2; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 6D8E2C43330; 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=KBkbSBUYWsrzUyqKx9vXlQcN5p5QtPpYZGQe08xtkko=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=dSmLJ0x2jw/a8G5bOS9gRrUXubX3Js+M+nLXCqI++/e3HToMlw2O1KlD7NwBFnCfc rjwjwRsXfLdvZyROHZ170flTpA8IEbvnmi7LGPye3osyvUSKz2BlQgNc+dQXRCY0Cc hyNIRWoswYgN58n7ukSRrzQx0xyzgnQIW2o/vTcY9krDgJs8dXgQpugq0ibcuwy95O SAOSNHkb7ZXz87vxCR67w/2qLWsEjcb9A616/GwVwfLpo3JTWeIF6ea8BZDdPtrUBe R+XCI68D6rvwswqUrNblG9ZnelgcxLlmXNNOfMDOc8t9ZNN4VZtax4LyjEfI1nAr8o jO5bU8DnIlwVA== 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 586F6C54E58; Tue, 5 Mar 2024 07:51:12 +0000 (UTC) From: Yang Xiwen via B4 Relay Date: Tue, 05 Mar 2024 15:51:14 +0800 Subject: [PATCH net-next v8 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: <20240305-net-v8-5-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=2313; i=forbidden405@outlook.com; s=20230724; h=from:subject:message-id; bh=S6obhoBKcsATY4ri5n0BubHFcd7WZY9xaY4+Ts8DAWM=; b=slQY/8XIF3Ek9MZs/Xbnyg3WHsVOtruFWskH0YxEQvGj0R5Ay7isYcUAFiGhPU0SpPY7svZmm eMsI1UC5fv5AmxsePl1JfvpD8OmlakH4tjAXUgkNIubTl+rJ3VLhWDw 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 ba207f2c9ae4..ff6b090ed34e 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-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