From patchwork Mon Mar 8 13:08:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Oltean X-Patchwork-Id: 12122237 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=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham 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 14DFCC433E0 for ; Mon, 8 Mar 2021 13:10:39 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 7511A6512C for ; Mon, 8 Mar 2021 13:10:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7511A6512C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References:List-Owner; bh=8VJ7Nzn/07rJWjNPXPLwJhr1kVBjfEIk7PRIwiee91M=; b=B9m7cycNiWWKBp+nkdW2Eg/0Jf VT+aXQTiyKpm0OcZGdTOTmtIMjRWzFPUxPWLdyIxUpn1wJEdc9IlMQmv+LOglCfJjrMFlKxxK5kVc YGcj++9i9L99l0J5EEzwAqgNa21ZLmO8sKds0lL7SiqCtt13YBIfXRrLSLRccfjBvsQZXq2yQoQMC iQGIXK6dkWX4f9Qmp7SFX6VzzFARiKU0yOHRlYgeOohXwJPf2jkL2GmXiHd/9qvTe+CJs1lfCvinD FGPHj+2Fb7M70UbiZvk7lpe5JWVQ1NcYorSlReYVhDf4jTWJm7rKp1ps2d1DIbE7bBAMCYRC8ry3v TOyt1Jrg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lJFdB-00HLn3-K2; Mon, 08 Mar 2021 13:09:05 +0000 Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lJFd6-00HLk3-8d for linux-arm-kernel@lists.infradead.org; Mon, 08 Mar 2021 13:09:02 +0000 Received: by mail-ej1-x631.google.com with SMTP id mj10so20262977ejb.5 for ; Mon, 08 Mar 2021 05:08:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=COQSx+BU5m3hRHXgEDr9pW1DvKqmkyBSspURkSZqzdo=; b=SkRZUSy+Q+ZZJNP90Qf0zfiJEPy6Z1GxVFohwD8Jo95gY0KNjktEBZlSfd5w38WenP 9Hou8ZCGQ45HNXyzyGbCZg90OWu9Jg8gIOuUB5gKGVctiM8bLb7JK1dXaRjqGzetfdra bs32OYys8L3ymP15WNcfESDAM7OuMENaHahxJd2k4Oh+3M9IjIlg+rT/YlBTU/WHZxPi zS0okbJVsrVsP5BQ0cs+lGTZ0vqsKlp868sgvIX+Tk5eT0AzABC/7dv/++ZmpzDCy49A ntCiVOl9WHz7HmLs2YwTBgpixyWvGgtnAEBTbJITYhRQyaGc0LqXyMiQjGhVSrW1/qIG EMDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=COQSx+BU5m3hRHXgEDr9pW1DvKqmkyBSspURkSZqzdo=; b=Kk46KzIm2fyt2PtUtKHpGcsnvJopUlh8SWgopPg8/j7dCIBv74Xo7x1NeTjFkFro8N OXVMvIb9YaNGCtT/IbdO4/E03SBtuE7SS5n/m7zp2/T7dZNjDkl09Df0jLdYVWn7O8sX YQUsNYuiob1Ppfrxku2DPqUShDnobyjrI2tzu2Hzvb2rWJOwywBPv8cXNOm2KdgoLYO0 ziZRcLzvfJvaKV6cLuocdbF1XZ7fJGAb2Z1LhbYZnKtZ208YEO//cK9xDHuKDL1lJvSx agO5G7Mm5e3xPIVbwpqE5KB+rTPFbkBQ1Pv8b0FuGHQLmk69yN71oX0kkXskhvsY22Yo ScSA== X-Gm-Message-State: AOAM5305jKx8R49geHt9ronuI4dHmzgell+j7ZEMkp4OeGk2iYaGPdxD OFLkJY5qBzZsUbBwnKgkCnM= X-Google-Smtp-Source: ABdhPJy3vySAVrTjjiQgeBSEnREDCrTSbGTD/9AOrzK/k5Q1/va3eokyUO1aWkkFREtDsjtHe+Ht0Q== X-Received: by 2002:a17:906:2db2:: with SMTP id g18mr15307428eji.73.1615208938930; Mon, 08 Mar 2021 05:08:58 -0800 (PST) Received: from localhost.localdomain ([188.25.219.167]) by smtp.gmail.com with ESMTPSA id s13sm7260961edr.86.2021.03.08.05.08.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Mar 2021 05:08:55 -0800 (PST) From: Vladimir Oltean To: Shawn Guo , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Cc: netdev@vger.kernel.org, Alex Marginean , Claudiu Manoil , Michael Walle , Vladimir Oltean Subject: [PATCH devicetree] arm64: dts: ls1028a: set up the real link speed for ENETC port 2 Date: Mon, 8 Mar 2021 15:08:34 +0200 Message-Id: <20210308130834.2994658-1-olteanv@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210308_130900_410928_6905AD9B X-CRM114-Status: GOOD ( 15.68 ) 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 From: Vladimir Oltean In NXP LS1028A there is a MAC-to-MAC internal link between enetc_port2 and mscc_felix_port4. This link operates at 2.5Gbps and is described as such for the mscc_felix_port4 node. The reason for the discrepancy is a limitation in the PHY library support for fixed-link nodes. Due to the fact that the PHY library registers a software PHY which emulates the clause 22 register map, the drivers/net/phy/fixed_phy.c driver only supports speeds up to 1Gbps. The mscc_felix_port4 node is probed by DSA, which does not use the PHY library directly, but phylink, and phylink has a different representation for fixed-link nodes, one that does not have the limitation of not being able to represent speeds > 1Gbps. Since the enetc driver was converted to phylink too as of commit 71b77a7a27a3 ("enetc: Migrate to PHYLINK and PCS_LYNX"), the limitation has been practically lifted there too, and we can describe the real link speed in the device tree now. Signed-off-by: Vladimir Oltean --- arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi index 262fbad8f0ec..bf60f3858b0f 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi @@ -1027,7 +1027,7 @@ enetc_port2: ethernet@0,2 { status = "disabled"; fixed-link { - speed = <1000>; + speed = <2500>; full-duplex; }; };