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: mYZi5M8sKRvWZrZ57xcKu5sBBqp8cDUtuFnj2UpMtGsQHgoFlSJJdDIgloWp5uNPuSXN2JSDhAUfqxEDSHvMLSPa2xUWjnGtokWvtvFiNLsPEfsCMXxAsR03BLjLzrZPav3uCYEpDPVoCkkKW5X1Y6eR2gezcvZSQ8ab7sG4cRpWAJWcX0hxlIYTOqqnPJbTu8Jyp+LwPq2X+q/n6S4fdA/0IKWZWPvJNUETueb+IgfY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cuKO6wspIqpp5BeQhWoBlmuvVvT8hPRzowga2BFT8RBFR9ctgB7QOMwp7zZ6Z6ll95znGbCN9O2QJVDrUZa845uJt7LifNEpYQfz4EBqWpmGP/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>;