Received: by 2002:ac0:de83:0:0:0:0:0 with SMTP id b3csp1171148imk; Sun, 3 Jul 2022 19:30:10 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u14FaHG7biRZNsn15Wrml3Hj36nSVF7nbNN2ra96c94z7034xpAYGJWMEHomxwtvAMxpIq X-Received: by 2002:a05:6402:5192:b0:435:b3c3:af89 with SMTP id q18-20020a056402519200b00435b3c3af89mr35411070edd.390.1656901809859; Sun, 03 Jul 2022 19:30:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1656901809; cv=pass; d=google.com; s=arc-20160816; b=YMYTNMfwheZWWUVcQcQcmye18yufqZ2K3hhKoWuNh2BNlK7aJFUmdrMLDxVIQYeoA4 fzPi06mIm/Dp4Xoxo75kqllY9kslNyGyMxmwK34nL/Rrj/vz+r06QUCwKDq5Gd9MgguO b4STtK6aSJmis0QiJ4zLamLKy4tyVsWmQducAkKsCsYuGtiqhqjA7O4za1lVCwom0UiA 2g1pdE4P6KWuQ4Ut/bKqfdtySLDCBdiJ76GbroyBJG7/06/iwyZQ/WKZrGJDiZiOrDLe tEVzqFdkpaxanbYjOJf8CUVvYC5EFI6GrCs9PLKLPTn8adb0e2CVRpK++Im0yzjbSQ/S gQbg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=HPMxwmbq0s7FNoq/KTQ+taIq+t3ms0p/fVbSqVr97yk=; b=hQWfaIUQke7iu1tFlNb7pPRHmqCszvixzEqTUDm+gL8yWYT60B4Yr0GgO0yNvfgj4q Xua7vbIkknu6jxFYjnWt9HEB1nBU0JcC9sqPNva0xmK8CRu3DtNoDA3tDp/Fjsr2KNUI He2MjBzoGeoSBTRwVoywLT1w6sJGS0pHvNm4AuG7FOUBSitkzf4RY5q7ogYTFzqv8bUE egkqGGlvFHo5UvT1AwXqRMZzcS4oIUMMAbsIY2gIZNZTBZJafhi3oXwBMpttr6q6wDIf Pac9bDCg5pFpV8T74idwTHryzzjaeGABw/Z5x2gP5p3voTbSoeigxP2P+Py82bdUFG0k 9+9w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=mFcIwQW6; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cr19-20020a170906d55300b0072697f3b5f1si31326242ejc.562.2022.07.03.19.29.45; Sun, 03 Jul 2022 19:30:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=mFcIwQW6; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231181AbiGDCP4 (ORCPT + 99 others); Sun, 3 Jul 2022 22:15:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229493AbiGDCPx (ORCPT ); Sun, 3 Jul 2022 22:15:53 -0400 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80070.outbound.protection.outlook.com [40.107.8.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9E0262F8; Sun, 3 Jul 2022 19:15:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J4BA+nrcKCMKh1ib1by76p5E4y8pOhGj3JJxVuh2d+G+Ic8R/NkQdu19ceZtNLfRcez36UNNSgB7xjryXAfqz6c5Oy5BdflooB2wXGYGBkTqpYfqG65qZGyzARy2K0V4HnzsBFW0HyECHoG28rwieEWlBu1875oujNK8InOTtk8yOYsR3X9CRArS/bYN5TRz8uXDMhJI4fNTSsKle8ihSnSiDoSktFsNwcUAESvWEbpQuKtCBnip+rD+RbH734zbkPPkooS6KO+PPTaMSVlyYiBg2ml6D7Z+r5zxQFZjdanmOi2bd1qZXBhlTIy1BHluBX6QAkDNOCI2eeYTQtoYKA== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=HPMxwmbq0s7FNoq/KTQ+taIq+t3ms0p/fVbSqVr97yk=; b=hlZLXipgTguNfh/DZ3TVhRXKo15yS1vNSXMoFYNRcRQShgzI4gQ5osU9R78cLpVU5oDhlXR0rsm8rXU/iWiJfdStmGrmKUrgLTfbqxo36CPpfyTYss9QIzASbMyxi9ivGEsOTjwNiHCg26O+ZS88g/Mfs6X4FW1WmFwMFX9bNmLLFZlp06d1bwMyktRztkaSSxoUpIUgTSTibE9qZ3D/MK2zVHCDZoPWzzo6yCe1BjijzFXvodP+v/1CH5LitkblmwIxpm9dsI87lcqTn5xMJCYlUvNoNqC+lhgH58aX7pMpmXwfLYYwMqnjbBK8gjWksjhpxhfCNq+JyxtreIkvRA== 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=HPMxwmbq0s7FNoq/KTQ+taIq+t3ms0p/fVbSqVr97yk=; b=mFcIwQW6ju+w+wN4aHZtU0R75exlVWl9xjkVBDZWM4b/r3chBDhTgYbsl9zU2xMm3r+LnBsMxgbjxE6JTB08mozKaIKN+CHDEn8vQxIzZOBpsRSr7Z8H6aqJ/LbZY0mKvU0296Af6I+Ea/RB6Z1Tdqe7hKg13tL9WBtIuln2w9U= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM9PR04MB9003.eurprd04.prod.outlook.com (2603:10a6:20b:40a::9) by AM0PR04MB6819.eurprd04.prod.outlook.com (2603:10a6:208:17f::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5395.20; Mon, 4 Jul 2022 02:15:50 +0000 Received: from AM9PR04MB9003.eurprd04.prod.outlook.com ([fe80::b00b:10eb:e562:4654]) by AM9PR04MB9003.eurprd04.prod.outlook.com ([fe80::b00b:10eb:e562:4654%8]) with mapi id 15.20.5395.020; Mon, 4 Jul 2022 02:15:50 +0000 From: Wei Fang To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, peng.fan@nxp.com, ping.bai@nxp.com, sudeep.holla@arm.com, linux-arm-kernel@lists.infradead.org, aisheng.dong@nxp.com Subject: [PATCH 2/3] arm64: dts: imx8ulp: Add the fec support Date: Mon, 4 Jul 2022 20:10:55 +1000 Message-Id: <20220704101056.24821-3-wei.fang@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220704101056.24821-1-wei.fang@nxp.com> References: <20220704101056.24821-1-wei.fang@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR01CA0155.apcprd01.prod.exchangelabs.com (2603:1096:4:8f::35) To AM9PR04MB9003.eurprd04.prod.outlook.com (2603:10a6:20b:40a::9) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f9d4a125-c935-4cc7-e7a4-08da5d631d79 X-MS-TrafficTypeDiagnostic: AM0PR04MB6819:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qjW8mz5pWwwLwF4sJXVx0NvEIt4g9Rt5wbe9J9iu6XTYeXgMFiP1HzRf3tgnTcoZGtuxdCvvNxzTvPDsRerTc27PaBLoAoOXj8Na/ERlfbg8MtAyN8qPoVBSYIudLb2Zq5S/BZfSDiAi5L0uZyinsNF+PW9+X4nZD64DLzCMlia2e+BvE+VWG3tsD2d4pcsj4jDoz/xYqRJi9lHYkVIDFXVZvELcwr7JSE3C4ikR5aku9yLMb/Yv1vgJnUgIGpUlEobrUrJsuZYIx13ud0Eu2PycWylZ9tk2qsEcLJVo4bplHgpTMd1LI8TJ/Q/FH2zAFzoNleTDDq7egPDLe7rCiJsN7LylFfoy16wJ0yDjd+fbV1RrdYgL5WnXXAgdNPvcSJp4wUB/dsehRC2mNTcdacfPBuafEs0JyPVCNN6kt5M49XY96FAYnZo23C0u9K7DsGaFQ64bbwef2pp4kAKZH5GORGsxPbD20iGV/krpwfuuYASXFFZuC1GjSurDXHCyxuYLkNbHTzjk07yUHkm6ILO9EZPeGJVmjrJG93y50FKDzg53F1vEvbDtSTnmdX3+4dO6809XugQSKBiuYX4IJKP/NOCXVDXUB7MofA1nzmEJ+N+SCH1zcGbmzUYYMojzR12O08FABtxV5UZ0RoLXOMPd4HMcJDg04euADezNxcgG69d5DSR3SCM186MuqkCFLyV5SN9Gsj58E5AiJC6AlNKlgLQ7/Jp0QhEi4RWrYA1+tpNoAuMT8zZMQO679Jjsq9UA1Pi2SHMfirbgFyUKCZyiwIKuO49BxG33NQWmdRYj3nTGZQDEUDuRYpAvqQU564LXBukhROLsAvRC2bL3hQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM9PR04MB9003.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(4636009)(346002)(39860400002)(366004)(396003)(136003)(376002)(6486002)(478600001)(6512007)(44832011)(2906002)(66476007)(52116002)(26005)(66946007)(316002)(6506007)(5660300002)(66556008)(7416002)(36756003)(86362001)(8936002)(2616005)(8676002)(4326008)(1076003)(186003)(83380400001)(38350700002)(38100700002)(41300700001)(32563001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?elIMBGFuXGpkVsaYdorACJ7RYQne79sEjh2CJEq/9yJHoEpNRVzWWrHPPXtu?= =?us-ascii?Q?q9RdPZKgjb2+zrQgjfHii9cEbERF8OWd9sKcJ7ptCe5tFafct5KdEAL28Nkd?= =?us-ascii?Q?JTb7EAf+k1PS9BGwf47IudkQOMkTp2j9HzFQzLW9M7Gg8mh/1mK87cbBUzV4?= =?us-ascii?Q?DeB6PaUPGJ3vZAfqlFZXB9GqtQ3xB+5Ji3fwAIWnpFJJ1Bf8d6bvylKhZrbS?= =?us-ascii?Q?TfTBkKlfLgmZZGoWP+ZlBVePlIxOk3AsGf3H059t1SM6nzQWOV4GWCtPAWLW?= =?us-ascii?Q?buNM1v5HHe6jCE23q9lYN/O9lG7ISP/Cj7csCpX/TAoEsJHPZUKNFiysdKML?= =?us-asc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QVQCMBHJbSW3SgGf5vkQnerAs426TB90D4Hlm?= =?us-ascii?Q?f/DnA/MWXMFojnqx2+I/iZYOZacSdf0ElsqMW6u5NOPIh0LbpwcxVbcZTQsH?= =?us-ascii?Q?zzbpDaCH/ZQc8GPHbhDeaiL4Gyt3HosPpM033clVZCy44y/OyVCUOfho5uD/?= =?us-ascii?Q?0Ov/jm2Y/1Nb/LNyc+wDdhzpxfP25F2nDtvJ2vhTJoQEVXwaaLIBF4AMUx2o?= =?us-ascii?Q?7v9MMKEkTYHreDytiKqb52XJZwh3kf/cAx19cVM3CkPlMiG71HbqYBaKprM1?= =?us-ascii?Q?me/I7vlQMlPdtWeEtqOxqok8KqILHzgNWIrdb17HifWT+ssrzZ7ynq0pI8Jq?= =?us-ascii?Q?2GHzMYXr7iaXLlHpi/H95xBv10aI4PiGFqBZFrv9?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f9d4a125-c935-4cc7-e7a4-08da5d631d79 X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB9003.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2022 02:15:50.6363 (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: e3YcG7yGPhoH6/t6O0IHJpWqZlSB+m8P2q+36YBRxMgegotO1qA9mXbnmA/W7KB5YzGhxnhqQeUsM8DjQx0ofQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6819 X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_00,DATE_IN_FUTURE_06_12, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the fec support on i.MX8ULP platforms. Signed-off-by: Wei Fang --- arch/arm64/boot/dts/freescale/imx8ulp.dtsi | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8ulp.dtsi b/arch/arm64/boot/dts/freescale/imx8ulp.dtsi index 60c1b018bf03..822f3aea46e1 100644 --- a/arch/arm64/boot/dts/freescale/imx8ulp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8ulp.dtsi @@ -16,6 +16,7 @@ / { #size-cells = <2>; aliases { + ethernet0 = &fec; gpio0 = &gpiod; gpio1 = &gpioe; gpio2 = &gpiof; @@ -137,6 +138,19 @@ scmi_sensor: protocol@15 { }; }; + clock_ext_rmii: clock-ext-rmii { + compatible = "fixed-clock"; + clock-frequency = <50000000>; + #clock-cells = <0>; + clock-output-names = "ext_rmii_clk"; + }; + + clock_ext_ts: clock-ext-ts { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-output-names = "ext_ts_clk"; + }; + soc: soc@0 { compatible = "simple-bus"; #address-cells = <1>; @@ -365,6 +379,21 @@ usdhc2: mmc@298f0000 { bus-width = <4>; status = "disabled"; }; + + fec: ethernet@29950000 { + compatible = "fsl,imx8ulp-fec", "fsl,imx6ul-fec"; + reg = <0x29950000 0x10000>; + interrupts = ; + interrupt-names = "int0"; + clocks = <&cgc1 IMX8ULP_CLK_XBAR_DIVBUS>, + <&pcc4 IMX8ULP_CLK_ENET>, + <&cgc1 IMX8ULP_CLK_ENET_TS_SEL>, + <&clock_ext_rmii>; + clock-names = "ipg", "ahb", "ptp", "enet_clk_ref"; + fsl,num-tx-queues = <1>; + fsl,num-rx-queues = <1>; + status = "disabled"; + }; }; gpioe: gpio@2d000080 { -- 2.25.1