From patchwork Thu Jul 18 21:29:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Oltean X-Patchwork-Id: 1133865 X-Patchwork-Delegate: joe.hershberger@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="cV8cmR4a"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45qSB81RL0z9s3l for ; Fri, 19 Jul 2019 07:36:16 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id D42FBC2201B; Thu, 18 Jul 2019 21:35:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 3FF80C21FF8; Thu, 18 Jul 2019 21:33:18 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 7A973C21F3F; Thu, 18 Jul 2019 21:33:02 +0000 (UTC) Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by lists.denx.de (Postfix) with ESMTPS id 61A1DC21FDC for ; Thu, 18 Jul 2019 21:32:59 +0000 (UTC) Received: by mail-wr1-f67.google.com with SMTP id n9so5118920wrr.4 for ; Thu, 18 Jul 2019 14:32:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=DZnGoUfgda+UxBKmx19qg6vm4Jp87v3jI3TLeKdIprc=; b=cV8cmR4aIQ/Uoe/+K54Q0zVU75vGIzzi1vKsrJr36deY2Tnvwy3gdW7jab19fYpu4t 7O93dZNBuCMKO4505bwnCuctJtfeNC2f+sjn9eMmARnIrMkf4dEjvHXI2DB1tpBFUbBz 8nSLTYplVkVpc1STHHQSJAZUNatodU4tRcE0fooQtdDyIX8/f65oo5kVrZPHcThxBZlT EceTi6jSubqHumu2KXImS0mHmhdF77rnxM+dOjVk9K1RhSLQsAHrvo/mdOvEPf/28lVw rzMn2c7wA4Ki7/EpknWvFgH311+ap4Ttiymj2287EL7+9fWs0LBpQXyDgTkz3q8433BC vl8A== 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:in-reply-to :references; bh=DZnGoUfgda+UxBKmx19qg6vm4Jp87v3jI3TLeKdIprc=; b=Q8TTeClX6zqqhT82FzvbUsnf4jhZXnpSamYxrEIKRtd5Dju5kyWq38rOxdWlJbGlNW +gTFgkZyBma/zhIZbubH6XURdmq+RJ9IHo19qNDRXD8hCuPaUTV2pfOVgrYhzGJf6XLm 7qqLob/oPmTQn9IH0tH3DxYN8mnNCYRMuldBLA01kU4/VoCzvosPL4lnB51At3g205F4 mzxl/oehk0vntSnOvi6ZGIZv/aKj174NqF5/5UnQf1tEYrikdZDLO+o9Ef/nKQKqC601 dLrGw9TOMUwq70I5mrWDHYeVxwO5tnw82RUYH6MCzNSkEJJutjJR8+yI2Qu+avdpLQIQ ObRw== X-Gm-Message-State: APjAAAXKeEre6e9RnqYpOaPQ2G4b2tQ/dyD4yoJGMJM7SQkyL8jX/ehw lnAC4dW5hRHdVu0n6YtiSRk= X-Google-Smtp-Source: APXvYqzFOu1jiaePqfYgsIq4dteUVOJ31Go4IVo7p63RMzQ4ALcxopJ9l6iaU5JhJoJcMh8pKTVSLA== X-Received: by 2002:adf:e843:: with SMTP id d3mr2423150wrn.249.1563485579044; Thu, 18 Jul 2019 14:32:59 -0700 (PDT) Received: from localhost.localdomain ([86.126.26.85]) by smtp.gmail.com with ESMTPSA id f10sm19776404wrs.22.2019.07.18.14.32.58 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 18 Jul 2019 14:32:58 -0700 (PDT) From: Vladimir Oltean To: joe.hershberger@ni.com, prabhakar.kushwaha@nxp.com, bmeng.cn@gmail.com, u-boot@lists.denx.de Date: Fri, 19 Jul 2019 00:29:58 +0300 Message-Id: <20190718213001.24815-7-olteanv@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190718213001.24815-1-olteanv@gmail.com> References: <20190718213001.24815-1-olteanv@gmail.com> Subject: [U-Boot] [PATCH v3 6/9] net: tsec: Change compatible strings to match Linux X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" In the case of the tsec network driver, so far there has been no mainline user of DM_ETH where the DT bindings get used. In the case of the mdio bus, it looks like the "fsl,tsec-mdio" string was made up for the documentation, but there is no mainline code that parses the "compatible" property anyway. In both cases, there are no DT blobs that contain the old strings. So change the documentation to "fsl,etsec2" for the Ethernet ports and "fsl,etsec2-mdio" for the MDIO buses, which are strings that Linux also uses, at least for LS1021A. More compatible strings can be added once other (PowerPC) SoCs are migrated to DM_ETH. The current ls1021a.dtsi doesn't match what was documented for the MDIO buses anyway (the "compatible" is "gianfar" currently). This will be fixed in the next patch. Fixes: 69a00875e3db ("doc: dt-bindings: Describe Freescale TSEC ethernet controller") Signed-off-by: Vladimir Oltean Reviewed-by: Bin Meng Acked-by: Joe Hershberger --- Changes from v2: None. Changes from v1: Patch is new. doc/device-tree-bindings/net/fsl-tsec-phy.txt | 4 ++-- drivers/net/tsec.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/device-tree-bindings/net/fsl-tsec-phy.txt b/doc/device-tree-bindings/net/fsl-tsec-phy.txt index c5bf48c3cb51..59989e3b09d6 100644 --- a/doc/device-tree-bindings/net/fsl-tsec-phy.txt +++ b/doc/device-tree-bindings/net/fsl-tsec-phy.txt @@ -28,13 +28,13 @@ device that exists on this bus, a PHY node should be created. Required properties: - compatible : Should define the compatible device type for the - mdio. Currently supported string/device is "fsl,tsec-mdio". + mdio. Currently supported string/device is "fsl,etsec2-mdio". - reg : Offset and length of the register set for the device Example: mdio@24520 { - compatible = "fsl,tsec-mdio"; + compatible = "fsl,etsec2-mdio"; reg = <0x24520 0x20>; ethernet-phy@0 { diff --git a/drivers/net/tsec.c b/drivers/net/tsec.c index f6278817330d..f85cdcb97ebf 100644 --- a/drivers/net/tsec.c +++ b/drivers/net/tsec.c @@ -880,7 +880,7 @@ static const struct eth_ops tsec_ops = { }; static const struct udevice_id tsec_ids[] = { - { .compatible = "fsl,tsec" }, + { .compatible = "fsl,etsec2" }, { } };