From patchwork Thu Jun 17 22:25:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Oltean X-Patchwork-Id: 1493988 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.a=rsa-sha256 header.s=selector2 header.b=GF3Ozf7A; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4G5c9C2sLhz9sSn for ; Fri, 18 Jun 2021 08:26:34 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A76DF82AE5; Fri, 18 Jun 2021 00:26:25 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="GF3Ozf7A"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 993F582B00; Fri, 18 Jun 2021 00:26:23 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FORGED_SPF_HELO,MSGID_FROM_MTA_HEADER, SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.2 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on20614.outbound.protection.outlook.com [IPv6:2a01:111:f400:7d00::614]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 1AAB680796 for ; Fri, 18 Jun 2021 00:26:20 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=vladimir.oltean@nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JKYPNGiACfhFCRzkOPO96Tv+jnF6kN9s9zLX7JerL1cJFrPchXwI9EpD0tbtYdIoJVOS1Oi2Z/jLArkgU/E07OSsT2Z9pe0qsQezXpGEZ4E+HndqTbudk+8idMvkci1J5HcCPiix/4ttX6yCbyQrfOCGzR5iAJLIFKFxMVLjzDOzgAcCvPtGXIkTASurczaYnT8xlrvP2K5S7E8iLWa5CPflYWw88w4L83Xtb92X51Yrfn603ig03atrxblFuypiCYOH0RBzy4JzMKDU5zSjUiZ8w/op6ksK6xd8rIfzLxj1Fv6+98d+0A3seDgljQZC8ZwOWlg3k5c6aWlE5VrkDA== 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=mfGQq0lHLuT0COScp/dX+mvg9sXlX1vbd8IEuXcY0a0=; b=D3xQEymBAiwy1ev70Oe6opL5b37vCOzq2mXE1jqagYwzKzNZwpNmaycgtdUzq77zt1kneU3kt1+ml5xJIgjT8A6uU4Phqw6RT7oRQBbe2eAv9b3eZ5+1JP62xRV/AoZufNh038OnIUuML7Nbkl5M9ZfWcyhXiqXgLap5ygfWG96pVroxaC0EUO22JlTxVA+yWAbLxvbllIdUTPRbRH16mkapv93V8JCNGa/fNtAT+hF8mIZywDRFMrPavzQ1vXUSjTl2qTfljM1sfRkdbmqeCl/94rr1tSujjm+0xh5kdn2wJ3CJjmLkVZqKNrdqiW6dOKs9hnyEe1BYOkDOZKVCeA== 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=mfGQq0lHLuT0COScp/dX+mvg9sXlX1vbd8IEuXcY0a0=; b=GF3Ozf7ABVDCIBRKwQrxVv9bWNcQra8UbQFKhW6QQVrXqeXEuWXJLV4Ri/OT/kirvEnA+trbs81Gjp3CxZ4flkyDnWrzhf+q9LY6jSuDpm9iC9FeeRGuShDf0cqkyPvLSnnsxr1kikf+fOMYb10+jZbGhBc5sOOCb0x/B/g8efw= Authentication-Results: ni.com; dkim=none (message not signed) header.d=none;ni.com; dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB5136.eurprd04.prod.outlook.com (2603:10a6:803:55::19) by VI1PR04MB6269.eurprd04.prod.outlook.com (2603:10a6:803:fa::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4242.19; Thu, 17 Jun 2021 22:26:18 +0000 Received: from VI1PR04MB5136.eurprd04.prod.outlook.com ([fe80::b1a0:d654:a578:53ab]) by VI1PR04MB5136.eurprd04.prod.outlook.com ([fe80::b1a0:d654:a578:53ab%7]) with mapi id 15.20.4242.021; Thu, 17 Jun 2021 22:26:18 +0000 From: Vladimir Oltean To: Joe Hershberger , Ramon Fried , u-boot@lists.denx.de Cc: Claudiu Manoil , Priyanka Jain , Bin Meng Subject: [PATCH v2 0/6] Fixes for the NXP LS1028A-QDS boards Date: Fri, 18 Jun 2021 01:25:58 +0300 Message-Id: <20210617222604.2563375-1-vladimir.oltean@nxp.com> X-Mailer: git-send-email 2.25.1 X-Originating-IP: [188.26.224.68] X-ClientProxiedBy: AM0PR07CA0015.eurprd07.prod.outlook.com (2603:10a6:208:ac::28) To VI1PR04MB5136.eurprd04.prod.outlook.com (2603:10a6:803:55::19) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (188.26.224.68) by AM0PR07CA0015.eurprd07.prod.outlook.com (2603:10a6:208:ac::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.7 via Frontend Transport; Thu, 17 Jun 2021 22:26:17 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3b702f1a-ace9-4074-6a0f-08d931deed09 X-MS-TrafficTypeDiagnostic: VI1PR04MB6269: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1468; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pysQIt0PjxGo/KyQzyi41VDpavbkMFeBlTDOZ08AHNOyCIwFcfIowq6yazhYOGU5bwqUlarwhcewFA325PDRPLJ7w6Rn/kBQArGBmNTKu8EC8rpdqsBBXk58EhAszhfX/06aTRzp1VTfImGXeectsYoI/U4iYLf/weS9mTA2Ldz2gNIbKLEAaCL2H+iSkBAzgGrMh4f8CqBPvElnsR7LET2elxUPRfCvs6c/W2ynfUEJ3ZJJqXIYoND9OgpW25dNK3cVPBUVMITDz3fatw0Y2tP1HvtYvdZI47fHqds+tfiJnWJ241UrkjBrIIw2WWdKJvPESWrHCgzPabM20fpSsA6828ZsWj+7XGh4ZU/fmc3BIDWBsRhsdK+pgWnT9JYTmQHCPyHWjnUZvsEPYwussrhIZT/stVni6b5GcCiZjNTCxx8rJr0pCQgbdC4cUmZayPzTlMtZX/lbC6lW+eH2WvEqD+ZA33RftDjSi7OomFNokgOG2bFe3ukFIFnvevL8209zc7Z0PAWP7wFRStXsYhZzJHA6nYi4MTxhl/zYCBF1hlKd88tKwoQsi5ys5EpweZFhsiKxcZ7b71NVKvqbpFZwVyRblegUf5qI1ZJRxTN3/x4D8hj8wZU7QDxZEMZ/UJfQOG3ldPxBPJla4HPtoYqOzmj3MW92GYjgdVmmJI8/PEVO3N48FlZfc9Dw48sX 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)(346002)(136003)(396003)(366004)(376002)(39860400002)(8676002)(83380400001)(36756003)(478600001)(6486002)(26005)(6512007)(8936002)(38350700002)(6506007)(6666004)(2906002)(66946007)(4326008)(38100700002)(956004)(110136005)(54906003)(2616005)(86362001)(52116002)(316002)(66556008)(66476007)(5660300002)(186003)(1076003)(44832011)(16526019)(69590400013); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: GL3TVw5NWL9VhDwZRzr6/W9dsJbp4TojnpDUW3mFMekog85NtBFGx+gJFrsMsRM/+uAbki6yy/PMTC4H1iBTwX8OA8f7TIGYcszHTtSJWNstg2s93ijCQOZsWgX2zsDbNBMBgSsVoE1gOAk/VvsJe5C53E8VMTw8OBVJuEUOYty6hMn7ojUsNnKFFzimpHY83GC2TMQbuM+3d+VLi3agCXsYDBkRrT6XhjbC94JBbwHWRiTgErOAgxflx/sTGtbjXmHlcvd0jZ2TOor1ehFf9LqSx57D0ZusW78OrhLTojy9DIagI6l3KWVG1QZJCdQ+1Jq3M521qFszGl+XMk5hX92Jjm7wsp8czvwqgUeb4ayb9GO3ffMKMAUXejBx17Qsz6XEKNIAGt/WNJ8RJopRmBDjf9j8S7JXnCjtUuwxMEmiyblgfXdtRTx6019ZiMJKOYDNXdXZSvMqvNy5mzna3WixHHYPiks27ZmsDXPrMrGjlXXMqVc6s4rRH4ZdgNWlUYkFHaKzemgMBy6GG2/XvyAalbQWL0igvLLZxvDkHceMxHkIFOIPaAp/ARm+pXZhF2OwGy2wzPG9iKUXNKsyrVCDpAG5hHrzPpEeZzGlXr7rMn/xe66ZjoD9ISP9QR1FcwZlu5HVHtivAqVrmWPD3sjMKPFfUL8dageB/IZvBCTib3mN5UVBrkKQpGDoKmEFutL94YZEM/zF3hZnRD2zPpx/QI7nGLk864DuEO7QthMiT8I9PliNy5FoO7KD00XmyS0aHBOKUSvrtDIaZOpkeL8gKIiQUu8ZO2LHpFbKJumFqIgYp7WXlLmDeFAJ9dtTCRIsN2AxJa4WiblsjN9DBZmLsIktfW6zGtPtYaJ6rmDNVVN5TGz87XxKlYKh5ri1j7z3w3e1l5W8QavaqcIvOgwJm0Hj8oxgY/egu0e4srs3QU9/6tnJ+57kziB3GB0++RrZqZpP97Wscc1xyibusPJCzDRxguGT0yItSAB9hRnz0aFuNR3YMu2TVYpu+LQFXB7N1KhOOuvov3Fo8nP1lZbNv+GyZJUKrToYS8ATRocYeKQAM9HX2sIjRRt9pzoFBNk/uXuf/eMR5mrH6hoHQOTKmzH5FKr1cljynZKeh5djY+xSfcaeMdrhHrXrm2Gm0yQSzZi7dvR2BMHvzTTHvgLLsynzSxq64Ek/XZeWaOUNOLxxDr//kvd4u6TGiOACPEJWbv/KAJCTqfONCiauetIol+0PujKXzPKJ823saXC/r3eSZwvPa3M0oHce201QQjr2XpOeYVjXg6xGN38qOZPv/axJb5c5JGnyZe97vGXI/whIQy4JbQ0X4h6W0E/U X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3b702f1a-ace9-4074-6a0f-08d931deed09 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5136.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2021 22:26:18.1421 (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: YvASwWDT8cY3gBsbFyhK2I87YrYJrS8kaCiJWTMtYi4eQQm8+1Ua/9dgOeuukBD9JNez/ae/nmi55oxNlwpcUQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB6269 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean This series fixes through patches 1, 2 and 6 networking issues seen on the LS1028A-QDS boards: - Traffic through the RGMII port enetc-1 does not work - The switch ports are not probed - RGMII fixed-link connections do not work Patches 3 and 4 are dependencies for patch 6, as follows: - Forcing the MAC speed to equal the RGMII PHY requires having a PHY unconditionally in the enetc driver - Having a PHY unconditionally requires updating the device tree to declare fixed PHYs for the internal enetc ports Finally, patch 5 is a cleanup change, which disables the DSA master port enetc-2 on LS1028A-QDS boards where the switch is not enabled. Changes in v2: Reword commit message of patch 6. Vladimir Oltean (6): arm: dts: ls1028a: enable the switch CPU port for the LS1028A-QDS arm: dts: ls1028a: enable internal RGMII delays for the LS1028A-QDS AR8035 PHY arm: dts: ls1028a: declare the fixed-link speeds for the internal ENETC ports arm: dts: ls1028a: disable enetc-2 by default drivers: net: fsl_enetc: require a PHY device when probing drivers: net: fsl_enetc: force the RGMII MAC speed/duplex instead of using in-band signaling .../dts/fsl-ls1028a-qds-7777-sch-30841.dtsi | 9 +++ .../dts/fsl-ls1028a-qds-7xx7-sch-30841R.dtsi | 9 +++ .../fsl-ls1028a-qds-9999-sch-24801-LBRW.dtsi | 9 +++ .../dts/fsl-ls1028a-qds-9999-sch-24801.dtsi | 9 +++ .../fsl-ls1028a-qds-x3xx-sch-30841-LBRW.dtsi | 9 +++ .../fsl-ls1028a-qds-x5xx-sch-28021-LBRW.dtsi | 9 +++ .../dts/fsl-ls1028a-qds-x7xx-sch-30842.dtsi | 9 +++ .../dts/fsl-ls1028a-qds-xx7x-sch-30842.dtsi | 9 +++ arch/arm/dts/fsl-ls1028a-qds.dtsi | 2 +- arch/arm/dts/fsl-ls1028a.dtsi | 12 +++- drivers/net/fsl_enetc.c | 55 +++++++++++++------ drivers/net/fsl_enetc.h | 5 ++ 12 files changed, 126 insertions(+), 20 deletions(-)