From patchwork Wed Oct 20 11:36:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Oltean X-Patchwork-Id: 12572153 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CB6F1C433EF for ; Wed, 20 Oct 2021 11:38:36 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9ADA160FD8 for ; Wed, 20 Oct 2021 11:38:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 9ADA160FD8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=gMesqsrmZHuXDpipsak+1EAA2om2rZlFhSQlKBtbI5I=; b=sZgIF+R9IJ32gQ ruC0OMPEISpZPFl4rEcdTJsjaHcBtJg02lIDg7R13mkWVFPt6MENquzpCzh6QlOB518OwrKnv4UKa JfZ6b/Yaz7uHsWiCc+QSB3aPdplOK2KgoqZeLseoK77E5LmwSI/MDfYWGtGj6xG4mBO9Rd4O4qEf4 QmoylG8NxTDpwnz4JK8BhzKkHn4BxSTCtNF3y9ZkIjWhsOSJzc7i1upSbWSbPjLlVjsAAtcmrFoql Wyz1m0l+rYIGfMemuVRsqHc5yOcYv0GwYb3ScTsiVIdIm1Z6tMCk1TYnJZXvRiC/LxcbnXU9mdssa qnlHOsJJFTQeBsKda18A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1md9tw-004KHi-RA; Wed, 20 Oct 2021 11:36:57 +0000 Received: from mail-eopbgr80089.outbound.protection.outlook.com ([40.107.8.89] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1md9tf-004K8z-Jz for linux-arm-kernel@lists.infradead.org; Wed, 20 Oct 2021 11:36:40 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gb3Mb+o7y5SfGZdX0B0t46qAyNc05xgptIXFBgo+5BALPYYueJmaTvMURk0xlg8t8d2uu+WnIN76WkLuNq2av9h30mO0Q0mmJifTkP9zDCWynhRoBrggQ9gzrmxkrMkovHknojKPRCvxsuPNzHm4LC/Eq4H/OCOK/QycIKK4dTedNEweuoIdVh9ypczCxhBHshfo7YU4vubMgY3qhgaQVv7xh/Nr/Xa4deOCnGiN9PaJEtZaOlOYRbUO9MlC/puoaZH8cXQE8CSRpmHA4oybWSCsXOCqnk/P9fKq0IkcfKeX7ilbvtVWYmR1LvLkjMI8KhmcJTUROqXd3TTXRz3l+g== 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=IJc5LjUOwczkqmpjEHtYpnzZ+oowQmp6jsWB82ntNLo=; b=eVQy3Rz2nqadDcAv05k/K5q7rB/SX/4+fasrM6etwBfFlg43mp39+jpIgm0gT9v75IHlu6v/FXttI14E9w5LzUruEbUOE08PDfKSsGY/ON5mFMadcsf36fVw2ULLjlfUg/6QHi5y9/AC62niMPwQXED50MzN5bluif1vtZFnHNgQ80uG13cg7clctB670ifnXl5C4Qu1N+wcEYsGjPnTDvu2Ndb+oEn69R2Ge3GJ7+NbPDkf19M31b0WkhM4Or5TTiK5xSmZi0WsJFCVi0f0NdISM1KJu4BNhDglx4r2WroogDfLDnxhWTrUqoeeZSAKZe70gjaNr/B3i+iXodM7MA== 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=IJc5LjUOwczkqmpjEHtYpnzZ+oowQmp6jsWB82ntNLo=; b=hmrOYr/5XLHAngxSY9esVcUSSmBImZaeBDIael7UpmU29oDa3v74Sg8XS2YII6A3WDTy1b2WAjMSfiVmw762Y9mAAErdUvvQ92CpmT6tLFML6DZdR8fRua7qAl5sCVxK3E47I1HuQx4+XpRJMDs2Gewhx2NObGlxL82Qa0avd7U= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB5136.eurprd04.prod.outlook.com (2603:10a6:803:55::19) by VI1PR04MB4685.eurprd04.prod.outlook.com (2603:10a6:803:70::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.16; Wed, 20 Oct 2021 11:36:32 +0000 Received: from VI1PR04MB5136.eurprd04.prod.outlook.com ([fe80::e157:3280:7bc3:18c4]) by VI1PR04MB5136.eurprd04.prod.outlook.com ([fe80::e157:3280:7bc3:18c4%5]) with mapi id 15.20.4608.018; Wed, 20 Oct 2021 11:36:32 +0000 From: Vladimir Oltean To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org Cc: Rob Herring , Shawn Guo , Li Yang , Oleksij Rempel , Florian Fainelli Subject: [PATCH devicetree 1/3] ARM: dts: imx6qp-prtwd3: update RGMII delays for sja1105 switch Date: Wed, 20 Oct 2021 14:36:11 +0300 Message-Id: <20211020113613.815210-2-vladimir.oltean@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211020113613.815210-1-vladimir.oltean@nxp.com> References: <20211020113613.815210-1-vladimir.oltean@nxp.com> X-ClientProxiedBy: AM0PR03CA0036.eurprd03.prod.outlook.com (2603:10a6:208:14::49) To VI1PR04MB5136.eurprd04.prod.outlook.com (2603:10a6:803:55::19) MIME-Version: 1.0 Received: from localhost.localdomain (188.25.174.251) by AM0PR03CA0036.eurprd03.prod.outlook.com (2603:10a6:208:14::49) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.18 via Frontend Transport; Wed, 20 Oct 2021 11:36:31 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6ddaa41a-5e4b-41d0-676c-08d993bddd66 X-MS-TrafficTypeDiagnostic: VI1PR04MB4685: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4714; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4M6+yoW5QQNXvNc0GZeeHXvWkOPTGd4aq23d1RovopEVhVlhlHhQgnSgWY6+rDDb7qzyiQ5GV8XN2xXby3935EIMboy3KNAfynmq/QL+b0R9A/fCDGKCEbnfDvjuP3z7BmHdKvuQFWz0Jy/u/Vv33tVgJYO2toyD3R3CTbZWyvK32C7jK89iiSjHTnj+ckhq7Yb7SuzCi+BLa75LyOqrQ3Zk68fpAyDmxPFH+KOYwdv6rkDKhxTEAM/hF8TewJGg1YSHDiB3tD/4P23XzX6w9eKJu2ppgjzGiUD7fNnRj4PkODl5avu3O/W+KLJVIL0saoz9DjIZgtVFtUpXvQIns8u5OUyBhJF1P8be2YN7l7pXwP26CKkSxsLlcLTLN/uy7uZyTM+jCKjFdVikdeQ0jNkE8YNsY48hFI3RUEzOtWrIYpeHoTC9JnE38Jb3uFZppcIkDSRM4PqRJ6Opu52FAl9XN1tmFa7MZCHc+msKkZnfBd2DsZVVR8GkTCpQAO08gVNIxXDcwnB103izvRqML9YlLk9/ZW4Q+5FsgzqZ8RFuSBTHS0yxyUiue1mZBhZ7/Y7/NqumXo89hezxWZH/xJCPNzYg+4GVuQGhLsxWO2g0kcfHb+rJdnAF+xKHDE9oMpiAhg7IKn6linsJF040nqtaAfl6QORzD8w9gxK0ItODfkEWZEjMYZyijFxIbPdPW4nTYFFvBucSEpHp4NxbpZgQWAG4SGHz1oxqKhndliQ= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR04MB5136.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(36756003)(8676002)(4326008)(6512007)(956004)(66946007)(2906002)(44832011)(186003)(8936002)(2616005)(86362001)(5660300002)(316002)(6506007)(52116002)(508600001)(26005)(38100700002)(38350700002)(6486002)(54906003)(1076003)(6666004)(66556008)(66476007)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: yEhR9I9rj9xxWWumAtnU/5gxsoNfnVe1C7ORnaUkp90W+NJFtAzdDrHNvH1VSPsdheebfau80u0QkXL39KCm2+IWgMVpqpKbcpzU6w+qtnTZcpsnGf8xp+PdrKNJBRmE1FSItdnfur3dKGlBamVd+xc6LKpdCMyEiT4v9p1RgEa70FZMV6EWVJZOmoao2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277KZYhE9939y41c7tb8h3dnYWTwvJmD9s8DKzL0IjlK9k4lHwZkDMtRlstm0flYNeODPA4L6vOZVKDcIb9exz8IIdl5zec+tE4FmHbSqqjamjBeoHoCxZB+x9yNgFoQrdDa2evmfpATHGTh6V2C6fwndcHODQAoNGScOlVEgp5LTsFOPxtK7UrP989kSOo0/8bDQ2vfJO4l4c9x7CSdhrp6EzHsGQno5SlOLARXIR5K6mWpc+rZxefi1lfpR+NurddWX/eq3em5caDYE57jLHXPGNFthWF1JifBYZUDGRkPcrqMqQ2gTL0pLsbsAIPUod1dVLPPS/5OCUtyNdue6KBaXTn3namaPpiXYWlbx82v5ePbH4t+9LyapSPZ+vJ70tFv24= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6ddaa41a-5e4b-41d0-676c-08d993bddd66 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5136.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Oct 2021 11:36:32.3882 (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: eM8p/Ih+rK7+klFDFcpaW/tcGTkg0YN+yvAVCvHsxWyy8oen2W/vuKOXooaCxvjr37qxu+pKetQ4UXFVyoDLTA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4685 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211020_043639_688037_88AB07BB X-CRM114-Status: GOOD ( 14.28 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org In the new behavior, the sja1105 driver expects there to be explicit RGMII delays present on the fixed-link ports, otherwise it will complain that it falls back to legacy behavior, which is to apply RGMII delays incorrectly derived from the phy-mode string. In this case, the legacy behavior of the driver is to apply both RX and TX delays. To preserve that, add explicit 2 nanosecond delays, which are identical with what the driver used to add (a 90 degree phase shift). The delays from the phy-mode are ignored by new kernels (it's still RGMII as long as it's "rgmii*" something), and the explicit {rx,tx}-internal-delay-ps properties are ignored by old kernels, so the change works both ways. Signed-off-by: Vladimir Oltean Reviewed-by: Florian Fainelli Reviewed-by: Oleksij Rempel --- arch/arm/boot/dts/imx6qp-prtwd3.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/imx6qp-prtwd3.dts b/arch/arm/boot/dts/imx6qp-prtwd3.dts index 7648e8a02000..cf6571cc4682 100644 --- a/arch/arm/boot/dts/imx6qp-prtwd3.dts +++ b/arch/arm/boot/dts/imx6qp-prtwd3.dts @@ -178,6 +178,8 @@ port@4 { label = "cpu"; ethernet = <&fec>; phy-mode = "rgmii-id"; + rx-internal-delay-ps = <2000>; + tx-internal-delay-ps = <2000>; fixed-link { speed = <100>; From patchwork Wed Oct 20 11:36:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Oltean X-Patchwork-Id: 12572155 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6B575C433EF for ; Wed, 20 Oct 2021 11:38:51 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3BB6C611B0 for ; Wed, 20 Oct 2021 11:38:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 3BB6C611B0 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=dtXbsV7EFyKt802bd+LBW4RU1Pu/yKQ2eVX8C5nfpeI=; b=Z4PPBmBBqEhVlG t+Ge+y4UoRZKJJ6vCuaJpoTkTa+kqPg+pf+ZSi3DwamCKpeoWlXyYraXtiyx9wmQmDbmFWyWggFLL cd1dT0euBsrCaqwRcbaV99dZ47Z6osRgMlA0ZZQ85g7V2Y9eZd38tG6kPPNQBhCNCFtKgJ9LlVpFz IS3q5ju0oRivObiNDx+r4N1kZGNRv0/r+n20cotunv5RXcvaLwqOHn4P+GruNMrUoLhkGDgCySG+g FF9CT3N/3FAGmKlmVuugp0ZEXNRRvUq4rB/27elKnnZ/PqBFiylhgoodKVOwW5FB8s3EI6d0IQsNi Od81oZt81EZ8wrZzb3Vg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1md9uA-004KMe-VJ; Wed, 20 Oct 2021 11:37:11 +0000 Received: from mail-eopbgr80089.outbound.protection.outlook.com ([40.107.8.89] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1md9th-004K8z-8M for linux-arm-kernel@lists.infradead.org; Wed, 20 Oct 2021 11:36:42 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mPCDuEIsPTMUIpJnyyBeZwmBN6w64jTOyoYCpwjE0iVmdHQ+/iclnakQwPCSHPRBLIehbYkx0ixnkP487mgXBfyjWuHtaXddJnju5aeoCKUqmNnJJTAyl31OhHujSkygBRI5AI1TAn65ueJzsw9ryWeqynNlLUgujJqBRBmdh/k8UI1Ru08ptupV8PQsa9Tq97gHW6CgenYxSWOCvURX12TTIqliIoJdx8qyTlSB0J8i/QjQl9hmzgssodkz8bBSaRJZN8X7PwJTaNaTyo4+uWC+twKN21GcKvuEfG3uylrbpM2qxQVS3ws5cKEdtccL67Y5MdI2sN4PiUR+tv+yCQ== 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=lMpGEiWOnt3Q2GFsNwvTJr1DMFfaam+U+COJnSpcIaE=; b=LDg0djysokMyL1otsxROcv0h5Q9AcXEvcln7N2AVmQyL7GMLc5c330iDLWDrLIOViZZWnQ3/GHmcmvKGC3RXpcz+bpnLQIzpz4UJ+457G7zRoXw07C85U2ba6kuFlwtwgpTnCic1/+I46881XH/wxYAgWBz18t9gN5B9r9zqPeBEP0szLMQ/YY1miKaHMXEwsAXiwFdgmkrQ0pCoQ8WOZpv5CjSxjaCMdGOkVCj+aHupHUrIK5iELyBd+KauRWyc7+nGdVfChHkiOmLK2UZQD2hxN7rh+WWYs0sWSlAXPv3WJcvEl8qr0TiYshUQbu9QPE1tqMyqiCckRQ9/2sucfQ== 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=lMpGEiWOnt3Q2GFsNwvTJr1DMFfaam+U+COJnSpcIaE=; b=TB9aJKW9Mb7hEp/WFR2pxRqdPw36EjyWkDtFmG2StMpx1WE0VnEyIGejp8YopwHUKo6w1L2h8wlmvkTlWSYNHQHgZx0E876t6vAxa2jK3y6yakPsul3uuSGZkl0VZb4lHJoUv5qzFiNmOjGnlcMG97dOG2eUmJM3ZvqpkYaoOOU= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB5136.eurprd04.prod.outlook.com (2603:10a6:803:55::19) by VI1PR04MB4685.eurprd04.prod.outlook.com (2603:10a6:803:70::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.16; Wed, 20 Oct 2021 11:36:33 +0000 Received: from VI1PR04MB5136.eurprd04.prod.outlook.com ([fe80::e157:3280:7bc3:18c4]) by VI1PR04MB5136.eurprd04.prod.outlook.com ([fe80::e157:3280:7bc3:18c4%5]) with mapi id 15.20.4608.018; Wed, 20 Oct 2021 11:36:33 +0000 From: Vladimir Oltean To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org Cc: Rob Herring , Shawn Guo , Li Yang , Oleksij Rempel , Florian Fainelli Subject: [PATCH devicetree 2/3] ARM: dts: ls1021a-tsn: update RGMII delays for sja1105 switch Date: Wed, 20 Oct 2021 14:36:12 +0300 Message-Id: <20211020113613.815210-3-vladimir.oltean@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211020113613.815210-1-vladimir.oltean@nxp.com> References: <20211020113613.815210-1-vladimir.oltean@nxp.com> X-ClientProxiedBy: AM0PR03CA0036.eurprd03.prod.outlook.com (2603:10a6:208:14::49) To VI1PR04MB5136.eurprd04.prod.outlook.com (2603:10a6:803:55::19) MIME-Version: 1.0 Received: from localhost.localdomain (188.25.174.251) by AM0PR03CA0036.eurprd03.prod.outlook.com (2603:10a6:208:14::49) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.18 via Frontend Transport; Wed, 20 Oct 2021 11:36:32 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c4595303-817c-46d7-34ee-08d993bdde08 X-MS-TrafficTypeDiagnostic: VI1PR04MB4685: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yWeV+WnVmVZn6MaK+XwlMYWa4NWYV9dpp0u+aG0pJMPBX9g0UQDDHOF0UVPpNBaaOq8gb9oqlT9wXC+6qAWnoE6XLwFUBYm3S/PcV42G35KqEcuyDClFPNc0UaSJv2x0X3QMW40iinfZGqyTAnNHHzjfSig6bWD3NN7mUSG+Mf5CRny+F+Zvc6H8TTIMKjnucAxZjMycNTtTvhqwlGx2W9NGv7GpNyPvdGC2QKCL8UjYRJk1xJmiv3BZayBur2smBr1p3ZezvNxcfpInpNPSBXXPttHwHdMbAjhR2J7aVLAocmx8WpMr3wvziPGTJ+S6+numxuJ6S++/IpgAivFvDwX1dc0j+5z/N9tUIKt/MDXmNHvQOz3EvDkc3STsBm3HvX2kPrFWjr+TD53v/tLLb05jSqc3zzGOI2XBQ/bSHhFko+fo73pCAQNl4p/IFP6ybVTtO4ARa34KfCZWTM6dhdxWrhtW7gQxBIBPTOoh0j/od3zb7J6xO39miyjVl/1qDmoHDjzECtvQovDFFNiiQoYzXXAk0unxFTHfXqtz5WxJPKRCGGaPcNNWSgA4EhCgLA+XXD2dA86DrrCaYlbE4zmxDXe2igp6+6Xu9Ovw0+KYDWn7GHGGVU8vOn5VYui6qMm9wI1lY8vWm/rBjKbY7sCqnQ/3D5zE/e+DKMDo0McMmau5Tz8cliZjlWzEVW/0mUe/PBj2KASrQF9iIVzJwA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR04MB5136.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(36756003)(8676002)(4326008)(6512007)(956004)(66946007)(2906002)(44832011)(186003)(8936002)(2616005)(86362001)(5660300002)(316002)(6506007)(52116002)(508600001)(26005)(38100700002)(38350700002)(6486002)(54906003)(1076003)(6666004)(66556008)(66476007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: aJrHUlEp9BANvHTNGVpfNgHy0dlG8TexJn52OOquZKKhQWFysGoiTuRCR4fnkn4SHpW1HXEISjGrboJ4+a+2gMg32QLOkgY5FRKotFOQSG2Na6lG0TzF+Mr/MwM7C8uw1BOWsYx3rogc0clHqB3Cyt2yGB56iNoOuDnjX8OC+ch2LU2DI+J/czkUfxwC1xuc6QGVhz/YjvpsQ1pCXrrZCCg5V82cEpDmLKrzLNYdLRsY7g4DqRxa4dDWhOcgf0KJoVlbS/ZcHluBKck8pzvXZQM2d8vJnFiE3FF6YJaE3DwdAke4YRXB5dmLLpoOGbR4T8UKSGWELUY9yjvi+Ijzo85e3cEi2LYJ26AmNuneUuKsD89IUgi5PxGnU8MMaF86CP0bSJE/ftgHtE7aTEmUzXiYP7uXwWIViq3Wb2h5WlMucvfCGVkoEyKnd8WR2iwOU2slniDDWY49C/vB8ZlQJkd0KcoPYm1Jp7ztN5ePUO85QikXEhPVUcQf+pzlH5rerVItmBxgTf7jo0s7z02wI4ljLQtB77ySLYJLZAB7f6k2PiyFg8hFgtBHuKjNThqKkX+e3fUG4+OBkD11VXD+mRZzgB5M523i5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4595303-817c-46d7-34ee-08d993bdde08 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5136.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Oct 2021 11:36:33.4466 (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: 7cGQ4+cwdMsYSexnHF4ZzbU5dwuksDzPSB5v4TpBivwe+BinvxzjKe3NJr2/yqXzkiygrtUJ4zC+MWdXltxGCQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4685 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211020_043641_365494_31EB0307 X-CRM114-Status: GOOD ( 13.83 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org In the new behavior, the sja1105 driver expects there to be explicit RGMII delays present on the fixed-link ports, otherwise it will complain that it falls back to legacy behavior, which is to apply RGMII delays incorrectly derived from the phy-mode string. In this case, the legacy behavior of the driver is to not apply delays in any direction (mostly because the SJA1105T can't do that, so this board uses PCB traces). To preserve that but also silence the driver, use explicit delays of 0 ns. The delay information from the phy-mode is ignored by new kernels (it's still RGMII as long as it's "rgmii*" something), and the explicit {rx,tx}-internal-delay-ps properties are ignored by old kernels, so the change works both ways. Signed-off-by: Vladimir Oltean Reviewed-by: Florian Fainelli --- arch/arm/boot/dts/ls1021a-tsn.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/ls1021a-tsn.dts b/arch/arm/boot/dts/ls1021a-tsn.dts index ff0ffb22768b..1ea32fff4120 100644 --- a/arch/arm/boot/dts/ls1021a-tsn.dts +++ b/arch/arm/boot/dts/ls1021a-tsn.dts @@ -91,6 +91,8 @@ port@4 { /* Internal port connected to eth2 */ ethernet = <&enet2>; phy-mode = "rgmii"; + rx-internal-delay-ps = <0>; + tx-internal-delay-ps = <0>; reg = <4>; fixed-link { From patchwork Wed Oct 20 11:36:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Oltean X-Patchwork-Id: 12572157 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A6CE1C433EF for ; Wed, 20 Oct 2021 11:39:01 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 71B74611B0 for ; Wed, 20 Oct 2021 11:39:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 71B74611B0 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=f/SHekwam8wWvUbNNi3w0AbE096VJStFZqTXWtAgsVY=; b=Ju6q0uk22j3eb7 3WdtZu+X1NWz9xFRokHO6Z+8Zqyynfvl4AAmWQGgDxUOaVIugwD4iQV5KnBUErKDnFJQhlMzq/T+8 WXH+FzWmilc6La3DLnUPQXSG7srP90FocQP7SWIhI3KczBdnhb8oJTc5OgOFCv2Tbaql7EdeY3/95 Rt3zRxHS30ZXg5SifIWjFefYuTsaMuaOYrYFeo3oUeKYMzKMaC67B47sLoMN7Ywxxlkb51SVKW/Vf DbiKk+P4EJn0Lp8DnxPzcbWx76HQ3HasCY/1m5q0aNYSmkX+Dq7vdXTkOb7Dhh4TE38cbTWeVeydw hjY0GUwoiu+D3lru0IbQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1md9uP-004KRz-Mw; Wed, 20 Oct 2021 11:37:26 +0000 Received: from mail-eopbgr80089.outbound.protection.outlook.com ([40.107.8.89] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1md9tj-004K8z-0N for linux-arm-kernel@lists.infradead.org; Wed, 20 Oct 2021 11:36:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IXWwhyCzDw53wF+a8BRNpexpOInQipUa1fuUJlWxUGwLZ+fBi98sb+RU1QGAoDrDRyiay38nbLfMMZx6CtF/rOoOEe3ryJiIwPFyFID8GiuucoP3rJ/5Czg0J/lc25Qlqm89tI4QW/TwctqR4vw2KDZDdWfPEZLMEaEujxmtltIveID0w6De41CimAh+u4m0+wB9SVXaNfoohHKfL3u5Y8Xlykbww2uog3V/XrCM0TH/3Cjod8/mSEPo7gGEWhPxJnLgthB3qWhGQcDDM6yJltRMAuISkBKbr4omAqfA0xZLJgs5ib60wS8pUPk+NJit/igoz7PG+uzjMxEGPwN3fg== 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=A8Vd/jBOFsd86DVejRlEa87vQLB3umTV1r/F9VTTiG4=; b=M/Z0eMauVQek+XiLkzleQ8B7AJH0206iful8+jzrkRiABNOPbjYaCiEYMk2sH/jxss1hABK7vS4t3sjDWmJUKCEco93YVkjD865sZT6w8sP1EagLq9wJfl6mmsNvm2KAZVkH+9oH+OoEhrKDGEEwx+4W3IQjYFpaCtLOewVexsQAwbz9ltPUUIBCJXtIAFcsA9WjLzjCRbJ7wl5oaCvt1V5vxS3GoQowVxMYIahIq3EUlsDIQYsSTTjbrUe81wYiESuLLscPnVtI2PXE00FS1I3/Tp/SPOlIkZliayXBtvhnejSeb9rc+ceRttkoBqwJCTN5VcWlz5eEH0S7Jt2miw== 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=A8Vd/jBOFsd86DVejRlEa87vQLB3umTV1r/F9VTTiG4=; b=XZMdjkeDerXRxrzMde4cMWhgjUFVNqHbUxhDjlsI8OLo9Fe3LkisRh9eud1jgiuKonXv10tZcdafYKLDZFZ1gw7YaxaDUZ03Md4SLVeBOodbg9dE9CD1x7Ht9qTRXkYAXZ6OnOyFbOwJaZlw0CBU7z++ZxDRcUidp4TmvWweDAE= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB5136.eurprd04.prod.outlook.com (2603:10a6:803:55::19) by VI1PR04MB4685.eurprd04.prod.outlook.com (2603:10a6:803:70::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.16; Wed, 20 Oct 2021 11:36:34 +0000 Received: from VI1PR04MB5136.eurprd04.prod.outlook.com ([fe80::e157:3280:7bc3:18c4]) by VI1PR04MB5136.eurprd04.prod.outlook.com ([fe80::e157:3280:7bc3:18c4%5]) with mapi id 15.20.4608.018; Wed, 20 Oct 2021 11:36:34 +0000 From: Vladimir Oltean To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org Cc: Rob Herring , Shawn Guo , Li Yang , Oleksij Rempel Subject: [PATCH devicetree 3/3] arm64: dts: lx2160abluebox3: update RGMII delays for sja1105 switch Date: Wed, 20 Oct 2021 14:36:13 +0300 Message-Id: <20211020113613.815210-4-vladimir.oltean@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211020113613.815210-1-vladimir.oltean@nxp.com> References: <20211020113613.815210-1-vladimir.oltean@nxp.com> X-ClientProxiedBy: AM0PR03CA0036.eurprd03.prod.outlook.com (2603:10a6:208:14::49) To VI1PR04MB5136.eurprd04.prod.outlook.com (2603:10a6:803:55::19) MIME-Version: 1.0 Received: from localhost.localdomain (188.25.174.251) by AM0PR03CA0036.eurprd03.prod.outlook.com (2603:10a6:208:14::49) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.18 via Frontend Transport; Wed, 20 Oct 2021 11:36:33 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e382236e-71e1-44cc-5a23-08d993bdde9d X-MS-TrafficTypeDiagnostic: VI1PR04MB4685: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4714; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: WMyvV2aIzXAyAtwgm1a+Lq1wGbIDsx3HDHBBABONnW42PDmLOk1md9bM/QpPYHthk1JU+9ARikDgPocLa7DeMPhqkH1jvKpp5bdnleu5BJi8B+aSdJy2JJcd6lastWCyirj9YhW5TRx1LaHwqw02y5zNWHpVupMFD1jWXoUJgDEr3koZBBsE1nDqCaTS0G2k1N4eC51b9CdRs8wMHvNVvtFr7WO+lt87hmjKpCo2znhq3n4Z/l4TL420k+0z9NZ67C4GZ2D72EtIS99jEAeoHEHoif8cOf8PvrzDkvg0tYS0HOkH36/hKVc1cGHFU7Mm4ni0/bFRmFDMGakKYz1+aOVcPeIvByNG2L3ArRQ4hF/aB47nA6U8KhJhGU21ZV5DaJxxh/BqrO+aFAgBneZ1Ucynwxi16ILPOqqD+KofPtYxTRfYtrPO7DswVaMY1WHPvANxHxwBNrafnF2O/OmnG98ONj72YWNzu6XyYgDU8TjuATprBJG+D9uMzRIv6jpAojgPGWDvU2N90SjafSt2SUcLNhsTpL4OuRbGw7gWS2C1fEnTY5G7SArsGtZx8NmsIckbkBghlg64HKGkwjmXnOZpkhZdL9hBuKJyWP/HzsO9bqBHwwL8+1XjzD345cdP12aZU3JrlWYOPSuC1li/Gzq3oyiZClKIrdvfqFlStusWphiRSgOWrj+42RkEmJL0Y+4JGERTtfEUcp2JxFP6RA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR04MB5136.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(36756003)(8676002)(4326008)(6512007)(956004)(66946007)(2906002)(44832011)(186003)(8936002)(2616005)(86362001)(5660300002)(316002)(6506007)(52116002)(508600001)(26005)(38100700002)(38350700002)(6486002)(54906003)(1076003)(6666004)(66556008)(66476007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: mYZi5M8sKRvWZr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UfXQ/wtlic/iHwZjaMwYDN3ESQ2zwtwkgKrefaGfVUTqFZcckM58eW4cHEd4Nsq+Qapar0iDbkOn6qPH2i8YyuLnHBW4zshpI9PPz48vTENTcnLRjQJ2nwaKP7lZ+ZKBMg4zlAssvBCDq2gDIctPI55BU/b9yiswtbNagt87ytxZY8edWsji0GZ2pvMXM15AHL33hmCx8smzFy+yku0yvrh9hHcD7gzrfh9ZU6cuKO6wspIqpp5BeQhWoBlmuvVvT8hPRzowga2BFT8RBFR9ctgB7QOMwp7zZ6Z6ll95znGbCN9O2QJVDrUZa845uJt7LifNEpYQfz4EBqWpmGP/q95WPsy30YsZxE/Mu1n7U5UzDVFRvsIpjiyNMBOkhL2EczC+BUx0ho7CSeGtpQj3DobmnQNTTpbqkbOqOe7ZZRhlAb+P5GstjKZXooLNxcb9BLGuE0IBOAVF9Ut/qhAK9ljP6XExD7Yoa6HJoMCMG/T4r7k0zSTO69WNIGThTskP40mgwEI3X1YhP0u7colKDguZ73pxCQSfqqsV9I2FSo= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e382236e-71e1-44cc-5a23-08d993bdde9d X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5136.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Oct 2021 11:36:34.4680 (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: Lboe29NJp4OucI2ko/fCJh90ior1TTGJuFqPVLNS861349wJ7uRyZO3r0cL2haZn2dgrURaet7GkYyWqhZ8ZMQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4685 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211020_043643_087203_DDDC7F71 X-CRM114-Status: GOOD ( 13.95 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org In the new behavior, the sja1105 driver expects there to be explicit RGMII delays present on the fixed-link ports, otherwise it will complain that it falls back to legacy behavior, which is to apply RGMII delays incorrectly derived from the phy-mode string. In this case, the legacy behavior of the driver is to apply both RX and TX delays. To preserve that, add explicit 2 nanosecond delays, which are identical with what the driver used to add (a 90 degree phase shift). The delays from the phy-mode are ignored by new kernels (it's still RGMII as long as it's "rgmii*" something), and the explicit {rx,tx}-internal-delay-ps properties are ignored by old kernels, so the change works both ways. Signed-off-by: Vladimir Oltean --- arch/arm64/boot/dts/freescale/fsl-lx2160a-bluebox3.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a-bluebox3.dts b/arch/arm64/boot/dts/freescale/fsl-lx2160a-bluebox3.dts index b21be03da0af..042c486bdda2 100644 --- a/arch/arm64/boot/dts/freescale/fsl-lx2160a-bluebox3.dts +++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a-bluebox3.dts @@ -386,6 +386,8 @@ port@2 { reg = <2>; ethernet = <&dpmac17>; phy-mode = "rgmii-id"; + rx-internal-delay-ps = <2000>; + tx-internal-delay-ps = <2000>; fixed-link { speed = <1000>; @@ -529,6 +531,8 @@ port@2 { reg = <2>; ethernet = <&dpmac18>; phy-mode = "rgmii-id"; + rx-internal-delay-ps = <2000>; + tx-internal-delay-ps = <2000>; fixed-link { speed = <1000>;