From patchwork Thu Nov 30 09:33:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Valentin Longchamp X-Patchwork-Id: 842944 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3ynXLj2YGJz9sBd for ; Thu, 30 Nov 2017 20:35:09 +1100 (AEDT) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3ynXLj1cP6zDsFP for ; Thu, 30 Nov 2017 20:35:09 +1100 (AEDT) X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=keymile.com (client-ip=195.8.104.250; helo=mail-de.keymile.com; envelope-from=valentin.longchamp@keymile.com; receiver=) Received: from mail-de.keymile.com (mail-de.keymile.com [195.8.104.250]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3ynXK85t10zDrp4 for ; Thu, 30 Nov 2017 20:33:48 +1100 (AEDT) Received: from secmail.keymile.com ([195.8.104.201]:41034 helo=totemomail) by mail-de.keymile.com with smtp (Exim 4.82_1-5b7a7c0-XX) (envelope-from ) id 1eKLDy-000110-2X; Thu, 30 Nov 2017 10:33:42 +0100 Received: from 10.9.1.54 ([10.9.1.54]) by secmail.keymile.com (Totemo SMTP Server) with SMTP ID 27; Thu, 30 Nov 2017 10:33:47 +0100 (CET) Received: from CH900635.keymile.net ([172.31.34.77]) by mailrelay.keymile.net (8.12.2/8.12.2) with ESMTP id vAU9Xf5j025800; Thu, 30 Nov 2017 10:33:41 +0100 (MET) From: Valentin Longchamp To: oss@buserror.net, linuxppc-dev@lists.ozlabs.org Subject: [PATCH] powerpc/kmcent2: update the ethernet nodes to use phy-mode Date: Thu, 30 Nov 2017 10:33:35 +0100 Message-Id: <20171130093335.8150-1-valentin.longchamp@keymile.com> X-Mailer: git-send-email 2.14.3 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.24 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Valentin Longchamp Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" The fman driver only calls of_get_phy_node, ignoring the phy-connection-type field. While we're at it, update the fixed link to the new more readable way to specify it and set phy-mode to rgmii-id for the node with a phy. Signed-off-by: Valentin Longchamp --- arch/powerpc/boot/dts/fsl/kmcent2.dts | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/arch/powerpc/boot/dts/fsl/kmcent2.dts b/arch/powerpc/boot/dts/fsl/kmcent2.dts index 5922c1ea0e96..095c9a661a08 100644 --- a/arch/powerpc/boot/dts/fsl/kmcent2.dts +++ b/arch/powerpc/boot/dts/fsl/kmcent2.dts @@ -214,13 +214,19 @@ fman@400000 { ethernet@e0000 { - fixed-link = <0 1 1000 0 0>; - phy-connection-type = "sgmii"; + phy-mode = "sgmii"; + fixed-link { + speed = <1000>; + full-duplex; + }; }; ethernet@e2000 { - fixed-link = <1 1 1000 0 0>; - phy-connection-type = "sgmii"; + phy-mode = "sgmii"; + fixed-link { + speed = <1000>; + full-duplex; + }; }; ethernet@e4000 { @@ -233,7 +239,7 @@ ethernet@e8000 { phy-handle = <&front_phy>; - phy-connection-type = "rgmii"; + phy-mode = "rgmii-id"; }; mdio0: mdio@fc000 {