From patchwork Wed Aug 14 17:03:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13763738 X-Patchwork-Delegate: kuba@kernel.org Received: from AS8PR04CU009.outbound.protection.outlook.com (mail-westeuropeazon11011040.outbound.protection.outlook.com [52.101.70.40]) (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 DF9261B3F10; Wed, 14 Aug 2024 17:03:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.70.40 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723655025; cv=fail; b=W+Js17jFeYQfNH8U9HjxRyYi/oqdEtEC+186oGS35lFVV6MnkDwNbYYIF/IZi7691GVdK2jSf1sb0jC7wmqExTB+Sq3kUYQ6T1TP16DY799/QaiAJik8hJtdbK7oyTmLyxVPWaKAt2QOIO1ej+Sek1F1NbGkaxBwy1aEUT7Jj0I= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723655025; c=relaxed/simple; bh=dyW2hMmqtsYd77p43Yx1kHx+1IOHvMbDqvnUzA5Gy2U=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=XNGabjPa+rRecaiEIVXnWMyWKkq39pW6kB5OMJvdZUbkKD2F1vMHImxRB6RfuX77hE2qMSOxUKNaZZXpmbCNSUKJ5rDSoMtfA1bK76Ko9IkCpoUEaCO/3msP5hh9IkvNmphSvkyA/38/rI4L+jgHAzNeWmrUdM74caWH3e1relI= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=kBp76mJ0; arc=fail smtp.client-ip=52.101.70.40 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="kBp76mJ0" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=KRlgsQ2a7c5G4JrPdvqs4EfcieJ2se6GZUBEqxy+ypb9zAEwGcki2KExgCSYzNuV4KRf4MyQ9nj5h8nfJeC6kuBWHLxEbsgBNmIwKWC6HbpOdhdnMQ6Gnpah1FRBYf0prpHHCOYafl4nMpEQzqUEJ2uhWr2YxO8DtSBHYMp+uP25DcNQUD7vMdg1bm5M3XMzjZ5+2ZSMOwXmZ0Zoz7f2ywLoaIcFscjop6rHa/6rAVy7tJg4yMt10YsmyhI8cm8bz5fA4wQ1KBEvdyAwHdi75NqKo81EaAKPGkepaSUd+m7HZYyS5VHUBkvEZXQ7vqGRswy+KV2/DeaEzlXRDyHDSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=XQSBEq0HtSaDSgPJjhgUlwaubJZxkxwz48Q8pwkvoWA=; b=k1VnfmVYRlXi2+qKkvejTdQJaYZcahjkuj1UTpFYHzXYbLRTGtak0DxY0FY1LYt5VXiSUj/2+mkjHmaCewOA2yFWc0Tu/A9qwP9nbxloAHAVejGhnpBhMXLnGo3HUCy1WlUTkNIK0yI/lBdMuyc3KzNuv3iiHPhrygP4IWvkNkZfxb0G9262umhjiPp9HzL5GK7ecxSHQ5+SGRzVQCgx/jfT7mI+8F8OpF47YGca3rpLaYKfjwrhbUw9V9YtbkjvPexecHNUuNUMhb9pgYurQpMEmdT6oaK5EtnyFSyhmPDMVysh9UfHL26bn9KIxK9fjvT9saO9RMrqN0NIHJcT7g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XQSBEq0HtSaDSgPJjhgUlwaubJZxkxwz48Q8pwkvoWA=; b=kBp76mJ0amrtIdjxzpMrw9bF0TSux3tPUCjzm6z/iF2r5akXNsOn+ZXHe+4BJg3wxNRpAOCx5ISH1baCqKdJd8kX1do/wE2oAmUx1mRO50V7K2hJuZuV5ED6N5xG4+Zdsa7BbWF5WKuQzbwTh7hKrG1nsWSQj4h7Hi68RXEhVIabwY3izeVzH2SoF+GpmB59UtTJkPUyeJM2m7RhFC4iLhqoMFj2be4Ur9n/vPiLWrmrw8vgeDqI+sbFcTrWywJ2gYiYNw3gKnH3MXTIBKHmroTu5V2LNYSZYa6EhCI/phxcFfSx4ILWoHrGQcEbLJf0eVfOxJohomEBGsIDSK9hBA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by AS8PR04MB8404.eurprd04.prod.outlook.com (2603:10a6:20b:3f8::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7849.22; Wed, 14 Aug 2024 17:03:41 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%3]) with mapi id 15.20.7875.016; Wed, 14 Aug 2024 17:03:41 +0000 From: Frank Li To: Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , netdev@vger.kernel.org (open list:ETHERNET PHY LIBRARY), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list) Cc: imx@lists.linux.dev Subject: [PATCH v3 1/1] dt-bindings: net: mdio: change nodename match pattern Date: Wed, 14 Aug 2024 13:03:21 -0400 Message-Id: <20240814170322.4023572-1-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SJ0PR05CA0099.namprd05.prod.outlook.com (2603:10b6:a03:334::14) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|AS8PR04MB8404:EE_ X-MS-Office365-Filtering-Correlation-Id: 9771853d-7de0-428f-c619-08dcbc830c0b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|366016|7416014|52116014|1800799024|38350700014|921020; X-Microsoft-Antispam-Message-Info: qKyqzmAVP3stRLi4EB5pYDd4g9MeiK17K3VqOwrwY3ENRF08BCH7W+T3ll1GF28EjTo56MziX6SCHprmjPJJehCWPqo0hoT+eFMYXgAV982IGv9V1woLIivT3ExYhRo2ZzSuIqdRF24n75pUP8a8l5/LD4F2kTmtPc5cqSclUVa5Hn94JTu0LNJRO/d4L2e8qVa04hp9vzliK5syoVdGKnHodQleIrGFxa8HJPzWXmmjUpk3ynOw9OuMcIpTul69hf/qBMsWKSWj2dYjeqUjuTrIp0NDSRjfOBmmuk79VRdT5BvvxQnUwUjjSnyAdC935pi9hRUlgOOhQ91OLa1kImqfwbu9+9WYQ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SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(366016)(7416014)(52116014)(1800799024)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: DnF8ZyBTY+skrv2tl8ymvuFotAp09uI1aySO7/wUw34WbwBqRk/MsP6khw5b1YCiAQwIO9H3W//jV/xpQySFtL0xBPbxA7jpq0hHGO0vgM/f65wCtfyGqIabw3cTZ2OPgkgnNVEDCGFww5GXyoqYhIGlxVt4sKQNesy3qTzxBpRcNvCPsrtG/3xgCjcUKBNOWIaOi1io2+oAlWxMrc20uthBthKi/fNutBZ/mZfObCfvoOMBjzTAzOgw9lB+bYTqftqHoLD7EJ37aWN1FcKnqlybyUIElirUGra8Go/wR6/2mlA3FalbT5gMEpInq1rWvbwohSZypjFogjsc/dzTx3rNv7dY3yX7x0tSn3EPNjvdJ/nT4rQjyKzoXJegIRIV6zjCv9xs69CKxcngw0fZY2NGzpxEomyctvcfCyDyzm3C7vqRQYBhgO1m5irwXy9JRQ+1fVxDsx2tGAKdQB5vEfIqDOm4afYWLk6lMx7dvjVU/ruPtyrYaf2RfUNLPCNKJ9vCZ+fMSe+9KGBG3GWgv/uowmbCZMXnKD4tNv11XFF5sVuGxqXj4uICkbaAE4g27OlqdKZQ1Yxy0k+HeQie+qUqXZSwi6HMf+nL2tVSxK+rZbDORmYzN/X9iaUhkl0lnlnXmSLTR4O168MRj14GCjHMZk4i0WHMFfhw8w9928YwpYeALw/CwEC1dIyIwilJm42jQvaFjN5u3IS1dswKSr2EZaPkN5sfzbDj/KvrCtcd/35zhUy0lpq+XbQ14oWNkHEyj4JMa7l+G3eskq8A4NrqUqE+vjLiemVY/WxaQxCPPJBRCrQnht4bfIfqWEByAjYq1gaztqiMYt/5T+jw2RhNflJ0Qg+uOob6jsusZly7XPcm6H6mN1S6M5I1Ie3cUcoAS7tUyLkJ2hSr9r1nqUNMr3ozrdktIUpV2fd6eao89dgGMdK6bYiXI94QBnq9I57YpvQ3o4Q609YCYSOR0WnF1ebnhUYSAtgHp9a70occJJiSfjNACl7GoYT3tlOD/EFxyK6ImlqX9XFTa1sYfYsRI/MQpJt5j6YnzZaiStRpUYW0vvKA3Xi0n7oQolgBMwLlb+qWceaFz06Vk4fgWmKw/+OOyTEFa8uuQNguB4WFYQk2N2nWmjJ2FG4MBaieVSvshcJ15B8371IUUJmvgkJvaXBpl3Hlloa8EJeidhaU2N3hLVvEv4mZWE4A71Mpk1dwlxzZqU73S9zLE25+XsHi3ClRAxj6qlW5nEgbnajR3NVeEBkDE3iN0dZY0SNR5+19JnGKlr4eeu7EesC9PTKTUgD+WEbGKZC8MDC29b+ArZOBmamT2SgnWQgWh/3kZDW4kdj5ClwjyuKEGaBMbtqFjsQOrkkouObSAacIxoamN1auM6xm/7I/zDQRoMMY1Z+rHTufITWy922ICrGvOYFxSFS2Dnzqge0wIccqBbQ644DEhJgwfnypxqaJ75HlZLGVNfQh5Gur/3LCt1FnGSYGnI1aFLS7bLV0LDLhaZZri9rhFCqW2veOCl6nHXctdr4Uvd2dOFBg4ZAZMUtmVvBGPBK1seYusd+BJn9Ukj4= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9771853d-7de0-428f-c619-08dcbc830c0b X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Aug 2024 17:03:41.0473 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 7qUB8chymBcKQZ/p6ZKMAxYBt6zmiXQwtws4MTe7xvd24z42yQi21GHlqm9X1rmpJ1s9UwCtANErR4eAgC7kVw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8404 X-Patchwork-Delegate: kuba@kernel.org Change mdio.yaml nodename match pattern to '^mdio(-(bus|external))?(@.+|-([0-9]+))$' Fix mdio.yaml wrong parser mdio controller's address instead phy's address when mdio-mux exist. For example: mdio-mux-emi1@54 { compatible = "mdio-mux-mmioreg", "mdio-mux"; mdio@20 { reg = <0x20>; ^^^ This is mdio controller register ethernet-phy@2 { reg = <0x2>; ^^^ This phy's address }; }; }; Only phy's address is limited to 31 because MDIO bus definition. But CHECK_DTBS report below warning: arch/arm64/boot/dts/freescale/fsl-ls1043a-qds.dtb: mdio-mux-emi1@54: mdio@20:reg:0:0: 32 is greater than the maximum of 31 The reason is that "mdio-mux-emi1@54" match "nodename: '^mdio(@.*)?'" in mdio.yaml. Change to '^mdio(-(bus|external))?(@.+|-([0-9]+))$' to avoid wrong match mdio mux controller's node. Also change node name mdio to mdio-0 in example of mdio-gpio.yaml to avoid warning. Signed-off-by: Frank Li --- Change from v2 to v3 - update mdio-gpio.yaml node name mdio to mdio-0 to fix dt_binding_check error foud by rob's bot. dtschema/dtc warnings/errors: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/net/mdio-gpio.example.dtb: mdio: $nodename:0: 'mdio' does not match '^mdio(-(bus|external))?(@.+|-([0-9]+))$' from schema $id: http://devicetree.org/schemas/net/mdio-gpio.yaml# Change from v1 to v2 - use rob's suggest to fix node name pattern. --- Documentation/devicetree/bindings/net/mdio-gpio.yaml | 2 +- Documentation/devicetree/bindings/net/mdio.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/net/mdio-gpio.yaml b/Documentation/devicetree/bindings/net/mdio-gpio.yaml index eb4171a1940e4..3be4f94638e61 100644 --- a/Documentation/devicetree/bindings/net/mdio-gpio.yaml +++ b/Documentation/devicetree/bindings/net/mdio-gpio.yaml @@ -44,7 +44,7 @@ examples: mdio-gpio0 = &mdio0; }; - mdio0: mdio { + mdio0: mdio-0 { compatible = "virtual,mdio-gpio"; #address-cells = <1>; #size-cells = <0>; diff --git a/Documentation/devicetree/bindings/net/mdio.yaml b/Documentation/devicetree/bindings/net/mdio.yaml index a266ade918ca7..2ed787e4fbbf2 100644 --- a/Documentation/devicetree/bindings/net/mdio.yaml +++ b/Documentation/devicetree/bindings/net/mdio.yaml @@ -19,7 +19,7 @@ description: properties: $nodename: - pattern: "^mdio(@.*)?" + pattern: '^mdio(-(bus|external))?(@.+|-([0-9]+))$' "#address-cells": const: 1