From patchwork Fri Jul 16 10:29:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joakim Zhang X-Patchwork-Id: 478748 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER, SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D4CB9C07E95 for ; Fri, 16 Jul 2021 10:29:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BE594613EB for ; Fri, 16 Jul 2021 10:29:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239107AbhGPKcD (ORCPT ); Fri, 16 Jul 2021 06:32:03 -0400 Received: from mail-eopbgr60085.outbound.protection.outlook.com ([40.107.6.85]:32401 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S238534AbhGPKb4 (ORCPT ); Fri, 16 Jul 2021 06:31:56 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GbNbgq8vMYxTdeCLOq7u8ypI8vjXFfbHMmLySpuIOE9JDNdQ1g+S4xS58wvgr4ju7B1ybBTqnh2aimZ3OrgeqoDkogkiRKOGZKucboyvUusVkitCeMV2g1MrZmkyFEOvprfXf+4b/2oS8zITxNV61JpZlTP/FB8sLEEwqGWgYffCOKlQvjK+8wjxGlp/ZDXtHBHyyFgtsZHkr32K9cFwXbjERZ0ruON3JGSAJSHdvfT4psWr9DzBpx5jCp+bWuocIegGZ3wgS6M9DWm+niRW9F31XWYWNwqvP0h9dcwPr14KOIRxKrSEXRukepYYo3KflzGE1re25/oGIcz2dqLhxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=i0CT4BjfpeLWOqiw2Yn/eygKLbBIsarum9X1/9YdDJs=; b=hvGUS91V4MZAWbE4MPyU4XwnAhbdo+dyg5UiutGlaPniu8JDEDwfFFVI5AtwsCzlZVLmXqo0GiQKqIp32Io5AW9O9HSw/rtrMK0ovZMVJD7m69evftsoG3gMlipz2UZ9N7F69qdM/ot2V8lK+vjv5nHBhvfspyk40HDJikH7MuhhrnJ0TlK7AGF1OlRyEg3jGKy067vKo8fBlVqvFL/+0fg+Bo03sztKoYkJssCTMcLK1sGPPpTYlDADh4quBZBgN/xxZXehOg+v3nzboYQYHy9jgzl5lhEJoBKya5CA1UA5Zxw5/CzOaiEyLJYbA2oKCqkQ/RjgUis/6+ha63TFVw== 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=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=i0CT4BjfpeLWOqiw2Yn/eygKLbBIsarum9X1/9YdDJs=; b=SYoWBl18vPm1QrZGixm2wZfzO6NTnrnvJKlakku7MJRkv1E6tEyPz/qwXQg1cYWg0VDQUKegy0xJs+qn0K6c+kvTssq3cYzX0FFEr+VGDaGa3LeBUN8m/TsOpVgKsZ1gkkHi2mVOwywsTefeapYQWCWfS6AUgRY3OIjoINGMCRE= Authentication-Results: davemloft.net; dkim=none (message not signed) header.d=none; davemloft.net; dmarc=none action=none header.from=nxp.com; Received: from DB8PR04MB6795.eurprd04.prod.outlook.com (2603:10a6:10:fa::15) by DB6PR0402MB2725.eurprd04.prod.outlook.com (2603:10a6:4:95::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.23; Fri, 16 Jul 2021 10:28:58 +0000 Received: from DB8PR04MB6795.eurprd04.prod.outlook.com ([fe80::9c70:fd2f:f676:4802]) by DB8PR04MB6795.eurprd04.prod.outlook.com ([fe80::9c70:fd2f:f676:4802%9]) with mapi id 15.20.4331.021; Fri, 16 Jul 2021 10:28:58 +0000 From: Joakim Zhang To: davem@davemloft.net, kuba@kernel.org, robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, bruno.thomsen@gmail.com Cc: linux-imx@nxp.com, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH V1 1/3] dt-bindings: net: fec: convert fsl, *fec bindings to yaml Date: Fri, 16 Jul 2021 18:29:09 +0800 Message-Id: <20210716102911.23694-2-qiangqing.zhang@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210716102911.23694-1-qiangqing.zhang@nxp.com> References: <20210716102911.23694-1-qiangqing.zhang@nxp.com> X-ClientProxiedBy: SGBP274CA0008.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b0::20) To DB8PR04MB6795.eurprd04.prod.outlook.com (2603:10a6:10:fa::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.71) by SGBP274CA0008.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b0::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.22 via Frontend Transport; Fri, 16 Jul 2021 10:28:54 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9f73d085-2cc3-4717-3f94-08d948448574 X-MS-TrafficTypeDiagnostic: DB6PR0402MB2725: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2201; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Tf5pd66bwS/SURnkXe81rg34GWHxcLL5TakT0SZIObkp/FPQq3pKmLMPCzN6/+2gPtsW5n7X1vylXBEt7hadWj7YIQPo3jkHoWHZWXEIF8ZD9CxYLynpTbtITQkUZez/giZdgI3yci2btfQWPikiXrTM0TJva46BSpbvULV0Jr8A/CcdUqNyDbhFVfBj72SN9e0gjDhVAtaalZUHlHvKi6OjWpcCZkt4JInH8vacEKXlVvSeszVtmNADUKUZiMEGv1n6k+V8KsbQkrMB/cFS2JgeaBtUrG4HeqTmQRqHE2T9jkVaX1Z5FEDbSuYKXuBRHt3/svQa68u3VnYtMEeQrGqtrI1GCo/rAobKBhCB/T4ZvlwJqhrYr84lA8oaR7OT9n46fdcUFuJE3sdTNFjgSgbCPDlRHyfSN4LonIMVBnAp2qOY0lMAgTDV8qJ31DZ6P+aSrQS1t9Ra08cJHGKLX7eT9UaCRG9hxzSgaTHUPH8/GBHiBF5OETz6/sDG/oNK2IwfVW7nqFvSq+xngtXBOjj875yUjzfTyIpODBK3DBVC7eouNoEMqBzfjy2sDI9ZYgrUzG3MI77yhPGwUSA8Sg9TAnYbHPTK5LuJKdfL/AjnM2Ka7rGsn1p1U14A9tSlxa5qLIahlcRB4ccUWJc4nqhHqApg5c8fs3If51sB34P5FBMD3+mihBrDCGoHxzR7g/zkvLycyWPXpjKSBQhlS0NvNmKgrtsancB0qUiDiTI4qNa3UOHNEo4ZfdjX40QnA/FJ/KoyauK7wV3AQQ34FetValocOMaMJ57YKdJlsFbLfb6Kjw8cvWvihwfgPb3c X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB8PR04MB6795.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(366004)(136003)(396003)(376002)(39860400002)(316002)(83380400001)(478600001)(5660300002)(30864003)(86362001)(66476007)(1076003)(966005)(66556008)(52116002)(36756003)(66946007)(2906002)(4326008)(26005)(6506007)(956004)(2616005)(6486002)(8936002)(6666004)(7416002)(186003)(8676002)(38350700002)(6512007)(38100700002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: eGWaYgY5CICZSHWWq2Em+jKoWiwXixMDz6bwp8545GpNS90rEJKCHNivJJtcTkuAZ8gnS+QVbaSNc9ReursImpOoG3oCwwOeXPWDpunRgWLxaFquBQoLtADovXLhvjSREfBd5SwVry/+jGpH3TVN5ffyEpm1oSubQSK23PXCGqX5PJfWFQj9YvzexJ7uqSLZmJovKI2Vu4MPDf1wS6QrHxsDoAE09eYt+1Uy/nPBEPhdzeqeFkaNtc9+aPr1Y9Q0CDXT4w0tgtsSU0npxzteZkI8e1us5adS4hEXQ2haL1TcJqd7kiEmwxOaM9WweOdpl3Y1c2GzlD335jifxRaHfm3yqG//XlMycDL+i6Lyn0qjSBJt01Gf3ee32nMM/eKBs6/l6TGBdd90sfiDbkKp0Pxe3sHcVoMhRKQR09Fr7o5nTJt09mqEG8ZEku1fUaWA1SjOHc53vYBNsGpkS0sLTa4ZITketxi1sVs7IlKjYbBGFteoBdIMXPhJzmvW6o+CLejhw5X9ri8jyuhC7xW5iHKu2ELSODY4reSHItQhiPhu8HdYJJFtRP/hVn3dktPivRIwLEQGaAo9djM0DR0d8PgwASJJC0JsCyMjYe+kJ68Sgv9KqfmfvhcMo5u6kDmqDiCAwu8V1P5KuElgcIxNuG7l45N3Mv+NBAD/Fb6Xfa33e0zlT72uDVD1ube4Hdr17jaNcwuPHa2ZKsoO1fK/+1/ZHm9SEud7xTL8KirkrFNb6FiJLZCdodqlGaGUk5Wuw4UzWYwe7F/bc5pPOKr4KzGeS5+2C30Gb2d0kJsymaT1MUOagQfYF4xkYNVrXyNxeulzH7N4wrgf1eoShBP8ynZQ9Wpyd3BpcRExk7dQrh396yHn4gX/K3JIou6TXS3Aew6VdzPTIhIx6jOEJOYiyGTbp0cypLkdq6ueO9G8sZNerWytDvkLH0VQ3sNFSLxgKDs2+DKGYgpXUX9a/vw5Lbh1HGxG1g0yAXQfl2jcnA0JowhBmMNcUWxD1HtEdRrsei+roeVKO6t9858RtTbYOYUZdPyHhWEaajWlKNfS9oOYINBVT6YTlseJKcmlgBepgNn6ch6t8Pr7oIfhrJ1Hunw8zo4zM7SKi7DfZMOqbSaC8N45WS6ZQjtCBcFuw43o15FuIScN5dR2SQL55N9Lwmb6NzppjJFmkplshFiLLQbK7LsXM13v4FPwmvoeucIp5J1P/vbwIMbqMUODKkG5EQMB2iG+PxQmMRhkOgCEUoJxfoZ1bjbdPlxJqnbfsXzRrqHvkhPxD9DieQm0mHQSCHShuUToRxCORWQrH/LITaVN8Sq+mzurLm9EsqLwozjL X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9f73d085-2cc3-4717-3f94-08d948448574 X-MS-Exchange-CrossTenant-AuthSource: DB8PR04MB6795.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jul 2021 10:28:58.6079 (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: 2KXArnZ8RKqD+4x+8xV0uL1PurSr2dRGwrygrqGpCmuwT/t0wIYmp+jHUYiTcVauAGwNBQYF/gngUE1bl9vRag== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0402MB2725 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org In order to automate the verification of DT nodes convert fsl-fec.txt to fsl,fec.yaml, and pass binding check with below command. $ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/net/fsl,fec.yaml DTEX Documentation/devicetree/bindings/net/fsl,fec.example.dts DTC Documentation/devicetree/bindings/net/fsl,fec.example.dt.yaml CHECK Documentation/devicetree/bindings/net/fsl,fec.example.dt.yaml Signed-off-by: Joakim Zhang --- .../devicetree/bindings/net/fsl,fec.yaml | 213 ++++++++++++++++++ .../devicetree/bindings/net/fsl-fec.txt | 95 -------- 2 files changed, 213 insertions(+), 95 deletions(-) create mode 100644 Documentation/devicetree/bindings/net/fsl,fec.yaml delete mode 100644 Documentation/devicetree/bindings/net/fsl-fec.txt diff --git a/Documentation/devicetree/bindings/net/fsl,fec.yaml b/Documentation/devicetree/bindings/net/fsl,fec.yaml new file mode 100644 index 000000000000..7fa11f6622b1 --- /dev/null +++ b/Documentation/devicetree/bindings/net/fsl,fec.yaml @@ -0,0 +1,213 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/fsl,fec.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale Fast Ethernet Controller (FEC) + +maintainers: + - Joakim Zhang + +allOf: + - $ref: ethernet-controller.yaml# + +properties: + compatible: + oneOf: + - enum: + - fsl,imx25-fec + - fsl,imx27-fec + - fsl,imx28-fec + - fsl,imx6q-fec + - fsl,mvf600-fec + - items: + - enum: + - fsl,imx53-fec + - fsl,imx6sl-fec + - const: fsl,imx25-fec + - items: + - enum: + - fsl,imx35-fec + - fsl,imx51-fec + - const: fsl,imx27-fec + - items: + - enum: + - fsl,imx6ul-fec + - fsl,imx6sx-fec + - const: fsl,imx6q-fec + - items: + - enum: + - fsl,imx7d-fec + - const: fsl,imx6sx-fec + + reg: + maxItems: 1 + + interrupts: + minItems: 1 + maxItems: 4 + + interrupt-names: + description: + Names of the interrupts listed in interrupts property in the same order. + The defaults if not specified are + __Number of interrupts__ __Default__ + 1 "int0" + 2 "int0", "pps" + 3 "int0", "int1", "int2" + 4 "int0", "int1", "int2", "pps" + The order may be changed as long as they correspond to the interrupts + property. Currently, only i.mx7 uses "int1" and "int2". They correspond to + tx/rx queues 1 and 2. "int0" will be used for queue 0 and ENET_MII interrupts. + For imx6sx, "int0" handles all 3 queues and ENET_MII. "pps" is for the pulse + per second interrupt associated with 1588 precision time protocol(PTP). + + clocks: + minItems: 2 + maxItems: 5 + description: + The "ipg", for MAC ipg_clk_s, ipg_clk_mac_s that are for register accessing. + The "ahb", for MAC ipg_clk, ipg_clk_mac that are bus clock. + The "ptp"(option), for IEEE1588 timer clock that requires the clock. + The "enet_clk_ref"(option), for MAC transmit/receiver reference clock like + RGMII TXC clock or RMII reference clock. It depends on board design, + the clock is required if RGMII TXC and RMII reference clock source from + SOC internal PLL. + The "enet_out"(option), output clock for external device, like supply clock + for PHY. The clock is required if PHY clock source from SOC. + + clock-names: + minItems: 2 + maxItems: 5 + contains: + enum: + - ipg + - ahb + - ptp + - enet_clk_ref + - enet_out + + phy-mode: true + + phy-handle: true + + fixed-link: true + + local-mac-address: true + + mac-address: true + + phy-supply: + description: + Regulator that powers the Ethernet PHY. + + fsl,num-tx-queues: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + The property is valid for enet-avb IP, which supports hw multi queues. + Should specify the tx queue number, otherwise set tx queue number to 1. + + fsl,num-rx-queues: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + The property is valid for enet-avb IP, which supports hw multi queues. + Should specify the rx queue number, otherwise set rx queue number to 1. + + fsl,magic-packet: + $ref: /schemas/types.yaml#/definitions/flag + description: + If present, indicates that the hardware supports waking up via magic packet. + + fsl,err006687-workaround-present: + $ref: /schemas/types.yaml#/definitions/flag + description: + If present indicates that the system has the hardware workaround for + ERR006687 applied and does not need a software workaround. + + fsl,stop-mode: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: + Register bits of stop mode control, the format is <&gpr req_gpr req_bit>. + gpr is the phandle to general purpose register node. + req_gpr is the gpr register offset for ENET stop request. + req_bit is the gpr bit offset for ENET stop request. + + mdio: + type: object + description: + Specifies the mdio bus in the FEC, used as a container for phy nodes. + + # Deprecated optional properties: + # To avoid these, create a phy node according to ethernet-phy.yaml in the same + # directory, and point the FEC's "phy-handle" property to it. Then use + # the phy's reset binding, again described by ethernet-phy.yaml. + + phy-reset-gpios: + deprecated: true + description: + Should specify the gpio for phy reset. + + phy-reset-duration: + deprecated: true + description: + Reset duration in milliseconds. Should present only if property + "phy-reset-gpios" is available. Missing the property will have the + duration be 1 millisecond. Numbers greater than 1000 are invalid + and 1 millisecond will be used instead. + + phy-reset-active-high: + deprecated: true + description: + If present then the reset sequence using the GPIO specified in the + "phy-reset-gpios" property is reversed (H=reset state, L=operation state). + + phy-reset-post-delay: + deprecated: true + description: + Post reset delay in milliseconds. If present then a delay of phy-reset-post-delay + milliseconds will be observed after the phy-reset-gpios has been toggled. + Can be omitted thus no delay is observed. Delay is in range of 1ms to 1000ms. + Other delays are invalid. + +required: + - compatible + - reg + - interrupts + +# FIXME: We had better set additionalProperties to false to avoid invalid or at +# least undocumented properties. However, PHY may have a deprecated option to +# place PHY OF properties in the MAC node, such as Micrel PHY, and we can find +# these boards which is based on i.MX6QDL. +additionalProperties: true + +examples: + - | + ethernet@83fec000 { + compatible = "fsl,imx51-fec", "fsl,imx27-fec"; + reg = <0x83fec000 0x4000>; + interrupts = <87>; + phy-mode = "mii"; + phy-reset-gpios = <&gpio2 14 0>; + phy-supply = <®_fec_supply>; + }; + + ethernet@83fed000 { + compatible = "fsl,imx51-fec", "fsl,imx27-fec"; + reg = <0x83fed000 0x4000>; + interrupts = <87>; + phy-mode = "mii"; + phy-reset-gpios = <&gpio2 14 0>; + phy-supply = <®_fec_supply>; + phy-handle = <ðphy0>; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + ethphy0: ethernet-phy@0 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <0>; + }; + }; + }; diff --git a/Documentation/devicetree/bindings/net/fsl-fec.txt b/Documentation/devicetree/bindings/net/fsl-fec.txt deleted file mode 100644 index 9b543789cd52..000000000000 --- a/Documentation/devicetree/bindings/net/fsl-fec.txt +++ /dev/null @@ -1,95 +0,0 @@ -* Freescale Fast Ethernet Controller (FEC) - -Required properties: -- compatible : Should be "fsl,-fec" -- reg : Address and length of the register set for the device -- interrupts : Should contain fec interrupt -- phy-mode : See ethernet.txt file in the same directory - -Optional properties: -- phy-supply : regulator that powers the Ethernet PHY. -- phy-handle : phandle to the PHY device connected to this device. -- fixed-link : Assume a fixed link. See fixed-link.txt in the same directory. - Use instead of phy-handle. -- fsl,num-tx-queues : The property is valid for enet-avb IP, which supports - hw multi queues. Should specify the tx queue number, otherwise set tx queue - number to 1. -- fsl,num-rx-queues : The property is valid for enet-avb IP, which supports - hw multi queues. Should specify the rx queue number, otherwise set rx queue - number to 1. -- fsl,magic-packet : If present, indicates that the hardware supports waking - up via magic packet. -- fsl,err006687-workaround-present: If present indicates that the system has - the hardware workaround for ERR006687 applied and does not need a software - workaround. -- fsl,stop-mode: register bits of stop mode control, the format is - <&gpr req_gpr req_bit>. - gpr is the phandle to general purpose register node. - req_gpr is the gpr register offset for ENET stop request. - req_bit is the gpr bit offset for ENET stop request. - -interrupt-names: names of the interrupts listed in interrupts property in - the same order. The defaults if not specified are - __Number of interrupts__ __Default__ - 1 "int0" - 2 "int0", "pps" - 3 "int0", "int1", "int2" - 4 "int0", "int1", "int2", "pps" - The order may be changed as long as they correspond to the interrupts - property. Currently, only i.mx7 uses "int1" and "int2". They correspond to - tx/rx queues 1 and 2. "int0" will be used for queue 0 and ENET_MII interrupts. - For imx6sx, "int0" handles all 3 queues and ENET_MII. "pps" is for the pulse - per second interrupt associated with 1588 precision time protocol(PTP). - -Optional subnodes: -- mdio : specifies the mdio bus in the FEC, used as a container for phy nodes - according to phy.txt in the same directory - -Deprecated optional properties: - To avoid these, create a phy node according to phy.txt in the same - directory, and point the fec's "phy-handle" property to it. Then use - the phy's reset binding, again described by phy.txt. -- phy-reset-gpios : Should specify the gpio for phy reset -- phy-reset-duration : Reset duration in milliseconds. Should present - only if property "phy-reset-gpios" is available. Missing the property - will have the duration be 1 millisecond. Numbers greater than 1000 are - invalid and 1 millisecond will be used instead. -- phy-reset-active-high : If present then the reset sequence using the GPIO - specified in the "phy-reset-gpios" property is reversed (H=reset state, - L=operation state). -- phy-reset-post-delay : Post reset delay in milliseconds. If present then - a delay of phy-reset-post-delay milliseconds will be observed after the - phy-reset-gpios has been toggled. Can be omitted thus no delay is - observed. Delay is in range of 1ms to 1000ms. Other delays are invalid. - -Example: - -ethernet@83fec000 { - compatible = "fsl,imx51-fec", "fsl,imx27-fec"; - reg = <0x83fec000 0x4000>; - interrupts = <87>; - phy-mode = "mii"; - phy-reset-gpios = <&gpio2 14 GPIO_ACTIVE_LOW>; /* GPIO2_14 */ - local-mac-address = [00 04 9F 01 1B B9]; - phy-supply = <®_fec_supply>; -}; - -Example with phy specified: - -ethernet@83fec000 { - compatible = "fsl,imx51-fec", "fsl,imx27-fec"; - reg = <0x83fec000 0x4000>; - interrupts = <87>; - phy-mode = "mii"; - phy-reset-gpios = <&gpio2 14 GPIO_ACTIVE_LOW>; /* GPIO2_14 */ - local-mac-address = [00 04 9F 01 1B B9]; - phy-supply = <®_fec_supply>; - phy-handle = <ðphy>; - mdio { - clock-frequency = <5000000>; - ethphy: ethernet-phy@6 { - compatible = "ethernet-phy-ieee802.3-c22"; - reg = <6>; - max-speed = <100>; - }; - }; -}; From patchwork Fri Jul 16 10:29:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joakim Zhang X-Patchwork-Id: 479577 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER, SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E9CE1C636CA for ; Fri, 16 Jul 2021 10:29:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D4826613F3 for ; Fri, 16 Jul 2021 10:29:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239151AbhGPKcG (ORCPT ); Fri, 16 Jul 2021 06:32:06 -0400 Received: from mail-eopbgr60057.outbound.protection.outlook.com ([40.107.6.57]:36628 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S238984AbhGPKb7 (ORCPT ); Fri, 16 Jul 2021 06:31:59 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WkWcj/U5QVegByUJ4/fc3r/qh/8shqS0VMQ8PgkGgskWGrU3NboSdNjIQNMSDWCNohLRvy3SMtl4Er3YB/VaY0qW0ZwlIo975o/ulhOTNA8ioORhI5jPahMteOAiQTWk3gjKmdZlmojKOIyNdjIAj6GBU02cJTCVfWY5DeN7pel1+ZwFppRNLlf4ETXrlttTIoJiKRrWV+uNzHg56mDoWunNVV7hKMUCm/CW1BsQNnxpWTDMAIrL0GyMj1T0ubEe5eTJSC6AuXGqrwbKNQC0MO0d3GBeo5QMEe/LP/flAM0g9Am2M+n3DR/JczYc2p26Q5d8utAZveEJ5aVhJxArvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FOFyjdgQdlVGL/juKGTn+jWd99f9j+/KwZCfqk8Y2Y4=; b=axBiBUCwBJmh/O4zqGTAEc4Wpj7/iPcOk55856PUPkRmRo5nCOqxeLcr0LXEAzqkVo11yEj+C3NwR1JLRKj/gzUxQky1Zqq6LJuA5jueMueIFq3fotz4F8Wnndxr4KEbhLo6zzLLKt5jq84jJSkJTAyfLDou8o5MbIbXmAG7svhldAgcZQq81qe+IZ2ziVhprSF7dU4VKCtOCyYzcYNxWSNAm1WwSwaemFiAvcuG5fpn0oev5jnhljVW3tLbn64Oyodz8yL+A7140kHPIe3RUU2VRpnRgEh2VfFlZ7CyJngga6bB92DouR1lkW+xvj/ZdXrwzl2xXI1mtLZ4Ks+YkQ== 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=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FOFyjdgQdlVGL/juKGTn+jWd99f9j+/KwZCfqk8Y2Y4=; b=rqwFnB/oSOWpXM0ZNNcnOVEjMcyf/jr+VyEsJl3sE9w8u18mgT5Gl2nS4TZYBzZBar0zUC1S1KToarY0zzIn9h35H4oz1OUuob7Sz8D9NEeCzELW3grPCMFWi68PAxgBVLcETh4En3ZjZvT1TKsGfdLIvpHCRZD4/tEp1B8GIXI= Authentication-Results: davemloft.net; dkim=none (message not signed) header.d=none; davemloft.net; dmarc=none action=none header.from=nxp.com; Received: from DB8PR04MB6795.eurprd04.prod.outlook.com (2603:10a6:10:fa::15) by DB6PR0402MB2725.eurprd04.prod.outlook.com (2603:10a6:4:95::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.23; Fri, 16 Jul 2021 10:29:02 +0000 Received: from DB8PR04MB6795.eurprd04.prod.outlook.com ([fe80::9c70:fd2f:f676:4802]) by DB8PR04MB6795.eurprd04.prod.outlook.com ([fe80::9c70:fd2f:f676:4802%9]) with mapi id 15.20.4331.021; Fri, 16 Jul 2021 10:29:02 +0000 From: Joakim Zhang To: davem@davemloft.net, kuba@kernel.org, robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, bruno.thomsen@gmail.com Cc: linux-imx@nxp.com, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH V1 2/3] ARM: dts: imx35: correct node name for FEC Date: Fri, 16 Jul 2021 18:29:10 +0800 Message-Id: <20210716102911.23694-3-qiangqing.zhang@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210716102911.23694-1-qiangqing.zhang@nxp.com> References: <20210716102911.23694-1-qiangqing.zhang@nxp.com> X-ClientProxiedBy: SGBP274CA0008.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b0::20) To DB8PR04MB6795.eurprd04.prod.outlook.com (2603:10a6:10:fa::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.71) by SGBP274CA0008.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b0::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.22 via Frontend Transport; Fri, 16 Jul 2021 10:28:58 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c0936b60-745e-4de2-be3a-08d9484487f4 X-MS-TrafficTypeDiagnostic: DB6PR0402MB2725: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2512; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OhGahZ7xQ5JXrZ6YQzMB9eVGMslnOHz9eHMP2ceEULfXahIGGsMrvEXPsGKT1GN379rU9EZV+fq5dpkipoPaHcV8CI0KQbf3NE4zbFGdkWRqJDS/CWsLmrrTZHLXd2ifIH7Fhsza4lhUe81gouUSjlJGL9bRMs3UE+gJfQ0lP7bjFwcUIDWb0QQULLDJTnXSVcU4Jawa1DWIYdyTMX3rQaQAsEd+LXR+pgYigKKQByisBNjZjxeCho42FIbfDhCAbqcVxcqAxInLt8Juhl1IswxZH6Q5jJ5QLF8ktk3S4u2TN7Y8DXLvbYPhGYCHwqK/6EVhsGf0K3t0Vh6kB/jw0myhpTgU9DU1yHpby0fEUNmyUAjNNPk1bIiU1yTbI1Q8/cC9rL44pBPVvCoWeYDFaXguM8jYPJYBdvI7f+Ot+bRwa2QSVXy6VzJNMStWxsBgg6mvCPbSUwwFjz6DdAM+2PlLyzTTkcOKtgbM19CdT7UB0s8bbJsbuJl4+QgInlRpqdIRBa/u6cxIIzMC1jvzjpUSyB5biGXQMl/JArE4bsJurva7bADvx2/bWjBR1wkPxDEoQ6mo+hwna4ZNYQghtB1/S8uLeMuAIIHtJ2dsWrOfhb6vCQ0joEc4/thQ0fJiu6OmSNm4OlnYG51G+WI88g1HVhi4s6C5HfNFVQU72gc18tqoOdR2zvOcmZJvcxxks0gyOmNsmu/UcdeXIZ4ETA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB8PR04MB6795.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(366004)(136003)(396003)(376002)(39860400002)(316002)(83380400001)(478600001)(5660300002)(4744005)(86362001)(66476007)(1076003)(66556008)(52116002)(36756003)(66946007)(2906002)(4326008)(26005)(6506007)(956004)(2616005)(6486002)(8936002)(6666004)(7416002)(186003)(8676002)(38350700002)(6512007)(38100700002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 2FxEUtn9IdOJ3meqg1YvesfsBK+PCVbjWQXqK85qBMRerUjwGF+ZATVx3103o5dbJBcs4S4Xu/Rw1hbuD8EVsj4Lrts0oPJVmHPfwQl8uZP9dz7r1lawkpy19DkoF5iT4L+G5Mon5yOiAVNFZe5HlaPIC10ECCxYtaXMTgNUILXvsaO46MxayDou7YwpYr1NChWvCnwmnOW9RKg514Baz29yPA5cWf/HADjdYM1WZinXSJp1NWqIrlb9aWPUBV7xq8ZqrSnZPlKN7+1c4tNGD67It1oa+GaUFdMX3j43iEbGUWcd04ceLL6g1hgs/BXeacl+6/ulzaDNrWuH0OiZApV64yBogpS7CNS81la0+R9adMb8jOvfWYWPf367ywrKXGbjdyCp6onp8hxRerAIsqC5ivera8Welj6MkShwKlugl4sfSIHhq5d9ItJcjR61G1AazZEz2JHfJbj43YpuEvcr1CEu9Sbt459UuxYI5/TmUSoHXfyQpn3iXhhzI0ngt7EcHux3Xm4DHsySKY2FCpqx3H3DsGxXGkHYvvjRkO8OHAGKK/ExzGMhf11TvEJ1DcCC3ySCR+/oeDHllVea8/2UbWHNM7lfGq7xkdqP+dlcliCxkH9ilWJ/tBQt4xRtEUKmk5lUDjXJC9l44GeG2W6wqd+i0cvcqFq51S2numl7WdHsgHV2qztkwz28q9n2P2dU7WFRVLidkEG3ZvAnodxrUSN1mISaTby3ADWfI+3y++UQaes4GPT4BpMjRobSp3Ph4Kp8Gd8pc+/X6Bki2PVD6kPA+wky7Qy4cdPBUb5+9WZ7ZLDQs9jcSJ3UBpIil+e9uMdlW90ASUnlR1DRupZCBn5CVgfnURlmW+y3CZ7cNfUC8xOy92TI9kiLXpHlLE2y1jsqKg+tNL9MlrqDiU2rMNQ9CKV0HAqKTEItQqTG3BsCHjkvY1Cm5wZsJ8IBoo1gKaAxLeMxPN6pfb3e0EczEzb5AzjC9cw5QJeYulNf0TmTNy7YcN1NK4yfgkMYGpZE/1STN4vhEobIB4Kb1BL3YqhHxuoduadiMCG+thSmcAX4BvrFuBiE3GIeoRj5YfN4dX9vJr0tGszQUUAT2HgFhTwTTDZq0/jJBMF1s3ctugdkt8qI7mAJPK+Vqe0OWmvpGs/hMdheLYsFIZXeCrOpwXvmk0U1fQeWJXwIe9PxUglLZb6HsvydzC6pey8MD32w9x0bnqhJsC2AO1bOJhz6BLYhGfOr7snRP2AiAgig0pOc+XbGfL+h8C5WXmbHISoTr//XuuVAJX/dMGmVDiGgS9LEMPhN55yRqqzBpi6s+4AnWM+MXzUcdm7BO8Wj X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c0936b60-745e-4de2-be3a-08d9484487f4 X-MS-Exchange-CrossTenant-AuthSource: DB8PR04MB6795.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jul 2021 10:29:02.8273 (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: n/OOSeDCa3BrzfgTZIpmd2lza9+OF3eiEBORWiw2WvQTDYxPK+LMJ5S5/h5YqPpGXssMpjAh5PAN898Ky0gndw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0402MB2725 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Correct node name for FEC which found when do dtbs_check. $ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- dtbs_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/net/fsl,fec.yaml arch/arm/boot/dts/imx35-eukrea-mbimxsd35-baseboard.dt.yaml: fec@50038000: $nodename:0: 'fec@50038000' does not match '^ethernet(@.*)?$' arch/arm/boot/dts/imx35-pdk.dt.yaml: fec@50038000: $nodename:0: 'fec@50038000' does not match '^ethernet(@.*)?$' Signed-off-by: Joakim Zhang --- arch/arm/boot/dts/imx35.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx35.dtsi b/arch/arm/boot/dts/imx35.dtsi index 98ccc81ca6d9..8e41c8b7bd70 100644 --- a/arch/arm/boot/dts/imx35.dtsi +++ b/arch/arm/boot/dts/imx35.dtsi @@ -189,7 +189,7 @@ status = "disabled"; }; - fec: fec@50038000 { + fec: ethernet@50038000 { compatible = "fsl,imx35-fec", "fsl,imx27-fec"; reg = <0x50038000 0x4000>; clocks = <&clks 46>, <&clks 8>; From patchwork Fri Jul 16 10:29:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joakim Zhang X-Patchwork-Id: 478747 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER, SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 27E31C07E95 for ; Fri, 16 Jul 2021 10:29:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 126F2601FF for ; Fri, 16 Jul 2021 10:29:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239254AbhGPKcT (ORCPT ); Fri, 16 Jul 2021 06:32:19 -0400 Received: from mail-eopbgr60057.outbound.protection.outlook.com ([40.107.6.57]:36628 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S239113AbhGPKcE (ORCPT ); Fri, 16 Jul 2021 06:32:04 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QTEjMNqpmbaoMbO12tlGcKnJCfb2lVuE3lyRxH2NUFLSvFU6qKKXsIrDzCkr3lDnUXkPkY4kOLP7LyZvBEvqPO/qy/mobcjSpJ/OKA8oUcLHpLQNihBYS05DBhMI3kYgCi9CeUu5cwaQWrY85XwTOuoQaf+40jDDiiFx9fJwF/JGCa2xvb6M9cre2cktV5/1CUlsduj0NfnqCX9upMbCtkLbpcUVvo6qIo77+119pFyp/NlBr9/+vLb2tZkHKpHXeDvokPrCmo9b35VmJB2Fzt3iM/3UeX4xoBo+QMw9qI3lX8O0+5S2Qq35MfPkvhOQ7P/ZTwGvShp3TufvTNVleg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+DVdX2Is8wVT7CL0bxK+EKx4uFNLSksf0FFgl8R4Nzg=; b=UsWmGkwaLSCEA8KB2FucXTw3YQF1yffFxw0fNBFwJ5IkmzLRlFf17NTVJgx41aLnmn27kbgkqbYP3h1xZj/leYsMFjxb30RP/GjyCycprGQcrIQXFVwWvlb7S/GgXCxJw+/hMfr873yUmPN9hXi6kwbvu3ZdZBKzPn8hsAQU2u8duhZ3eqYHbCdnSfav93sf6abgg8oRgshOdH3rum0jT7LEOtzP9g270dbVIK13BKU4kWvzAMUkWK5eTk3OZBMIqujVmgMsNHaVWeRbZjpUkDKGRd6ZcxKjkb/RsmomCgqGRkFaj/bsdkPEtsoGQAfbgFsKGD/pioA5fcJchnQfKQ== 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=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+DVdX2Is8wVT7CL0bxK+EKx4uFNLSksf0FFgl8R4Nzg=; b=C3bfvKw84xHG197cr/mCO/9nnw2kflvefETzStQiSkIptE9bxXz/azLEyHEm3UJV971w8mFH15JaZ5mEwm7cwkZMqTZICFSpTDWX7MFaa4nB7sH5nPZIzgp6yeMjqAHa34LmXztvgFMpuHSEMxwvF2PqQrZ0V4Ts71LVKO638s0= Authentication-Results: davemloft.net; dkim=none (message not signed) header.d=none; davemloft.net; dmarc=none action=none header.from=nxp.com; Received: from DB8PR04MB6795.eurprd04.prod.outlook.com (2603:10a6:10:fa::15) by DB6PR0402MB2725.eurprd04.prod.outlook.com (2603:10a6:4:95::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.23; Fri, 16 Jul 2021 10:29:07 +0000 Received: from DB8PR04MB6795.eurprd04.prod.outlook.com ([fe80::9c70:fd2f:f676:4802]) by DB8PR04MB6795.eurprd04.prod.outlook.com ([fe80::9c70:fd2f:f676:4802%9]) with mapi id 15.20.4331.021; Fri, 16 Jul 2021 10:29:07 +0000 From: Joakim Zhang To: davem@davemloft.net, kuba@kernel.org, robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, bruno.thomsen@gmail.com Cc: linux-imx@nxp.com, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH V1 3/3] ARM: dts: imx7-mba7: remove un-used "phy-reset-delay" property Date: Fri, 16 Jul 2021 18:29:11 +0800 Message-Id: <20210716102911.23694-4-qiangqing.zhang@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210716102911.23694-1-qiangqing.zhang@nxp.com> References: <20210716102911.23694-1-qiangqing.zhang@nxp.com> X-ClientProxiedBy: SGBP274CA0008.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b0::20) To DB8PR04MB6795.eurprd04.prod.outlook.com (2603:10a6:10:fa::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.71) by SGBP274CA0008.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b0::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.22 via Frontend Transport; Fri, 16 Jul 2021 10:29:03 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6c017561-9d42-451e-c53d-08d948448a7b X-MS-TrafficTypeDiagnostic: DB6PR0402MB2725: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:569; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 72x9JL7NU6RfSZyLXK3M82GFUwjRmIEeXC05q0KAxnK9O1LRUrGG8BPSDST7LtiPvQyoS2CE5FPKfggYeHTZtYMJrKmqp+RAVF+BQH21odYwnRd9qEAWtyUiwwpA7NZ/zZEb+2NMGtKVl41GTs7kFlz6MhXN9S2xZrVoNwZWcO+tlqrD+djBdQ3LYjVfAFGXVilhfSlMCemlb6sHxo9iz22G+6w0RVhBqEeVOVhwDbehceQTQvXypp7+Pd7CLFdA66aM0nGb095V9oc5jAAc2hHTB3dzGiE4BGy/97E0Bph8cI+XyLBk/ns2cIQru2W2RGNy5lESPAxIGt4+Yi7de45kySLTGof+tF8gVi2FdMpNM00MUrAhoRSiWB39Scny0BuU1fSM0sS0sxBtAydxnFj4vY9mTyq+ddUaI10SMPisF858jmmFrOCLJ8WldUC/ENLf5HKYfEsXJuDLtITjEMWTiQFl2ScKJDYxS2VnIEv5bdNGOQeU3gC9qoUREk3CBbdjMxjkrwqxN58m/o85kRtBfCX925d/YlUOuSa6QTyZfQakijdk728utsaVm9onVL/uWnhaRQzi2ykoHGxyupEH36Prkbfqf+vktWLUKXlJRBx2Ar8qq/xOXPUoe16hSvava4t1Rb9BXxIW8FT7GzaaLP/6bfV8Ktib4hC/G2Rd9Yuf88EN3iKLqhW26cfjblBn4KqEpQQE+h5rs7fdsg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB8PR04MB6795.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(366004)(136003)(396003)(376002)(39860400002)(316002)(83380400001)(478600001)(5660300002)(86362001)(66476007)(1076003)(66556008)(52116002)(36756003)(66946007)(2906002)(4326008)(26005)(6506007)(956004)(2616005)(6486002)(8936002)(6666004)(7416002)(186003)(8676002)(38350700002)(6512007)(38100700002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Q+Z0sGj4czjuZwpRkUbzDn2s5JEe+CwRYMefCa/Omm3qI4T0DmvdXRmE8HxYmPCVlmY44myGkXccE3TI+A8aJk/IurM4IDgoQjUj/IcvNmTEVtx5tAvdF/kaxHPLDs8V8FOKoKa//0Bepc9dAEGUero8ibxfJQLRjnJ3dIW2vtQkUWCPlqGKq27GRgZM61u4lVKg+EMLJunPIpzEBmIFprKArH8owDBZxJRYBVNyhO+MkOpgBnT0K65sl0WLf0FQ8GWl9arVqcpRNCHGuA1tA+DJ1b7Cwz+z98tbb2HllD+VRDJ5oKVDFP3Yk06ghFc/Cj/yfCd1k3mNvwHpMTmZpcDMyztpfgzIpBitGpDErJrpcMCYBC3kVXkzVwAQoV1w4Y3e5Q98tUAGWrEcercqnU1pRk/pjFTjwQLY7Ew7gRXiP+NMA0DgedSBss/rVg/9fQL8z8as0/WBow6Zqh2xQKLJ6fBp8iaohlM+RvgQHVajIRI/84zSgSY5GfqjcpoQESBTwH6Siwts1rUD/N0BAZS5F8KnKZPbhwTRLQwcXHn7fuODYdbOk/E+qLV+0paN8ngcqMLutPn46uVUlX8nmQ9Afx66D97zjvcXE+JVqmx+mdCNVToyn623WBr3XttQ7VqnnLK34BbfT89khK9nDrIhMvJPmVGxQ/vVZ3t+B0ugb+LCmcUxsvhRv7SbBWH8T573X97bboEFmyJkfzK6Vi3LE4AqgV/Wv7QqwqerbwjIyOX9FH/IF9iA1kNyowetFlxftAEL+Jk4/AgeGF4zwdwNf3oj7I43mE2grstNYx8kIlv0DwnieSzyk7Zjcb2FX+Aoxc9YVjcEh/A15Hi0EjXwQZM7DHGIZQwj7LPIAhHVOsHXBXpuQZ4ScLRgkN0kAC6IR/d/vZRIJ32Lv/fOhjfKjT75UQ84Iyfxjbsu6J1rQxtCDg2A4c4Sw6UipH1x/XSQmeDlUdNZk7MaSosP9GwOWQ+g5eVJk2IsJU48GdeJhmQw1lVMv7+xSE5gwlH67coQFIPGVbfsaVohn1cFOQesfV2dSk3l+EP6SR79+cZGOmxrW7gDjXqbkf/LIRvosM7pR2GlMmN4eTPpmFlfPXq0F0/0cbrnq2q2TTcMsho3ajGhzkNprKtIdkwNryNV1qAgVitTYm85pZ8jsVEBzDbHSV540ganlqB4EqPRD5u3bYuLJ1e+Z0mIz5UCmAPxcAEcNijm//xEfArOPIN7wP7NiG8j5PstQayjFMei38tR0HKyhDvxlvzGrHMNpDLuHVX8FX96N9hMM+wsnfnNERQvVtMfnFnzqdY79bAeigB0GekygX9DTqDvmVdadUUk X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6c017561-9d42-451e-c53d-08d948448a7b X-MS-Exchange-CrossTenant-AuthSource: DB8PR04MB6795.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jul 2021 10:29:06.9372 (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: 0xm4OFZA+u3VCfTDL+5qDIZYlBBj4BSB0cEY0v9tg3IVolhSLW9jWAi2fG+cnEXTz0MHKWcNp2gwaohQKwjatg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0402MB2725 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Remove un-used "phy-reset-delay" property which found when do dtbs_check (set additionalProperties: false in fsl,fec.yaml). Double check current driver and commit history, "phy-reset-delay" never comes up, so it should be safe to remove it. $ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- dtbs_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/net/fsl,fec.yaml arch/arm/boot/dts/imx7d-mba7.dt.yaml: ethernet@30be0000: 'phy-reset-delay' does not match any of the regexes: 'pinctrl-[0-9]+' arch/arm/boot/dts/imx7d-mba7.dt.yaml: ethernet@30bf0000: 'phy-reset-delay' does not match any of the regexes: 'pinctrl-[0-9]+' /arch/arm/boot/dts/imx7s-mba7.dt.yaml: ethernet@30be0000: 'phy-reset-delay' does not match any of the regexes: 'pinctrl-[0-9]+' Signed-off-by: Joakim Zhang --- arch/arm/boot/dts/imx7-mba7.dtsi | 1 - arch/arm/boot/dts/imx7d-mba7.dts | 1 - 2 files changed, 2 deletions(-) diff --git a/arch/arm/boot/dts/imx7-mba7.dtsi b/arch/arm/boot/dts/imx7-mba7.dtsi index c6d1c63f7905..5e6bef230dc7 100644 --- a/arch/arm/boot/dts/imx7-mba7.dtsi +++ b/arch/arm/boot/dts/imx7-mba7.dtsi @@ -216,7 +216,6 @@ phy-mode = "rgmii-id"; phy-reset-gpios = <&gpio7 15 GPIO_ACTIVE_LOW>; phy-reset-duration = <1>; - phy-reset-delay = <1>; phy-supply = <®_fec1_pwdn>; phy-handle = <ðphy1_0>; fsl,magic-packet; diff --git a/arch/arm/boot/dts/imx7d-mba7.dts b/arch/arm/boot/dts/imx7d-mba7.dts index 23856a8d4b8c..36ef6a3cdb0b 100644 --- a/arch/arm/boot/dts/imx7d-mba7.dts +++ b/arch/arm/boot/dts/imx7d-mba7.dts @@ -23,7 +23,6 @@ phy-mode = "rgmii-id"; phy-reset-gpios = <&gpio2 28 GPIO_ACTIVE_LOW>; phy-reset-duration = <1>; - phy-reset-delay = <1>; phy-supply = <®_fec2_pwdn>; phy-handle = <ðphy2_0>; fsl,magic-packet;