From patchwork Sun Jul 14 00:16: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: 1131670 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="kwWf24aN"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45mS5v2vg4z9sDQ for ; Sun, 14 Jul 2019 10:22:11 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id EC2ADC21DF3; Sun, 14 Jul 2019 00:20:49 +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, 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 B8134C21D56; Sun, 14 Jul 2019 00:20:04 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 14797C21D83; Sun, 14 Jul 2019 00:19:59 +0000 (UTC) Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) by lists.denx.de (Postfix) with ESMTPS id 08937C21E12 for ; Sun, 14 Jul 2019 00:19:56 +0000 (UTC) Received: by mail-wm1-f66.google.com with SMTP id v19so11892714wmj.5 for ; Sat, 13 Jul 2019 17:19:56 -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=Yj3cqZlatGW01KY12GhNbaxvHrMMhyvmCoHnWJ+zBrI=; b=kwWf24aNBsgBLRBcVQ0JscRW8Gq8vPy6bXDSTnCgF3/mdx8sp1CstrbJd3eXNxhh4O 63oxBb1fA6NexdHrY+tCzuNtwlNEZwJv5jbu22POtB9/3NzGa9OjrhQlLxJN/WTvqKad gX9ITXojM19PQcxbMEBWuTwUxkHiPy3KIIJVh8V24WSoq65aPioRaysuO+PeGLLsFkI5 iIzLmUWOsIMfAcgLCpQ8bc1FLpfbdVwyg6LsQauuEj5TlldisaAYLfmbIOs7eYrjnnL6 82Iv4fM6/gnSqGTVG5Q8ebeBkUQil83AObuk46vbk2puWYmuguI86MoDSb3sdaF47ySP 38/A== 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=Yj3cqZlatGW01KY12GhNbaxvHrMMhyvmCoHnWJ+zBrI=; b=otELNDFkJDfzoouXs5xTWyingbS+TPKq88JN/f7rOOEyfAdIhB6NW1Q4uZ10GHTv8W 9vv8w2hEX5SHwrTP6W2582RuCsTV8VYWEW0hlPgR0tdv9gIarYmUvy0r/1Ux09t0sHVL gYcGc4wcS6QSP7UnZnsWH9nHU5y2hmWrapCUbk4VQ/URenGeVcGovV3g9C8EFWmh49TJ Bw8Ldb1Nq9kTX03DZ6fP8/awNLmyc+JBxezJqVg64NEVtIlHc8bEA3mVprYE8qC04LXf ltbppi54hNhoyaSyZl8KZU3gT7YN444eCrZkfe+8dMC/0siIBadnPEUhdxPAGPBBuQ5E RDzQ== X-Gm-Message-State: APjAAAWH52C3EUEBFRANqt8AfUU16G1ND0zWhP0R4OQWJj/9H7htlZRn 51yzS58BVIUDtoS+Eea0Zko= X-Google-Smtp-Source: APXvYqzOM848KPxx7hiAc4E3rqHWHdlPIGFYvJVI0OUgZ/A1Posf7OXm920otdm9IKT/oiCJteDEqA== X-Received: by 2002:a1c:345:: with SMTP id 66mr16276542wmd.8.1563063595571; Sat, 13 Jul 2019 17:19:55 -0700 (PDT) Received: from localhost.localdomain ([188.26.252.192]) by smtp.gmail.com with ESMTPSA id m24sm7801973wmi.39.2019.07.13.17.19.54 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sat, 13 Jul 2019 17:19:55 -0700 (PDT) From: Vladimir Oltean To: joe.hershberger@ni.com, prabhakar.kushwaha@nxp.com, bmeng.cn@gmail.com, u-boot@lists.denx.de Date: Sun, 14 Jul 2019 03:16:58 +0300 Message-Id: <20190714001701.2781-7-olteanv@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190714001701.2781-1-olteanv@gmail.com> References: <20190714001701.2781-1-olteanv@gmail.com> Subject: [U-Boot] [PATCH v2 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 --- 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" }, { } };