From mboxrd@z Thu Jan 1 00:00:00 1970 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=-8.5 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,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 EA5E8C433E0 for ; Tue, 2 Mar 2021 15:36:04 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (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 3048764F1F for ; Tue, 2 Mar 2021 15:36:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3048764F1F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:40464 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lH747-0002om-7n for qemu-devel@archiver.kernel.org; Tue, 02 Mar 2021 10:36:03 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:51718) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lH73J-0002IY-U8 for qemu-devel@nongnu.org; Tue, 02 Mar 2021 10:35:13 -0500 Received: from mail-pg1-x535.google.com ([2607:f8b0:4864:20::535]:37511) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lH73I-0001QN-3F for qemu-devel@nongnu.org; Tue, 02 Mar 2021 10:35:13 -0500 Received: by mail-pg1-x535.google.com with SMTP id o10so14050964pgg.4 for ; Tue, 02 Mar 2021 07:35:11 -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=8OaSHWE5WnYiHJD8Yqu01jM70tH1uOX52Z4XjcgzF5U=; b=QjlF1UOJEKDDOQlQbPbXbfoSYWjhWQbF7qfuosidXNz9ShIVH8Z3BYNqrj8M0N+dhR I3yyXVtIrqivP+Bi9H0yTcevzZXZO5OfNHYs0qq63UDochIfXjhZ69fIYFZYIX8MHmLQ 19oIon+UHqh6G7MrcD64reIcjmBk1L6UlTluWhm9LPYxcfqSkW78dpLEW6doA04kBDCf 58KUhR68rWbNcfziMdFl2uG9Wc8qYFG0cyEe5i49dcmUCVRRSVWZu+xJH8AhlyF+gwIo jKx9/dgVrrCkLnNLDRtBdGc2aWL3UAHzgcD1xwUYQebP6tslLcThbalzyGBmu/EckvJg uvuw== 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=8OaSHWE5WnYiHJD8Yqu01jM70tH1uOX52Z4XjcgzF5U=; b=g96vH1pOXRuMZ//Tp1gozFpRW7eDkXGCg52O1rLKx1rXWeXM8hylVjzRWD4oKwPyzK BU/bdbZvRyF8+g6CQRYxLlM/Wu4RKLrvKRr86HFCqdyRdhho0NPSFokA5Z2SEErsSRLc hSdU8CPyQCQYBjKCsvsHIvwBmCnsUcwCz5gOOSKXDwq5Ah59jjspJHGjcKmK4O6VzFQC ZWzCmBmlxt6g3orsss29gjiY+FePvSTkn38QJkRU8duFzSPyp1Pe4AJGeKzcZzRdugG3 GyLDbzen3sCHgL0FXM0orAKnXKRk2aQhBjS9aZ6X+BqJrjBpD6S8JnpUDUfAMPCW/Xro Wwgg== X-Gm-Message-State: AOAM531aL6PumPnQru12IjwSRv2vVMUGTSjbIotSZ/PxhEF74xO3hbD+ E2Lh1AFEVf4gf4PcF05rLKE= X-Google-Smtp-Source: ABdhPJxPJlhaXALsK5q1LD8ovcwge2jogPsE7F6i1eZuiTjZNhAcs1tlzfpOD7uQP4RIYGxbrDAoNA== X-Received: by 2002:a63:c80c:: with SMTP id z12mr10646418pgg.376.1614699310497; Tue, 02 Mar 2021 07:35:10 -0800 (PST) Received: from i9-aorus-gtx1080.localdomain (144.168.56.201.16clouds.com. [144.168.56.201]) by smtp.gmail.com with ESMTPSA id mm12sm3541139pjb.49.2021.03.02.07.35.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Mar 2021 07:35:10 -0800 (PST) From: Bin Meng To: Priyanka Jain , Simon Glass , u-boot@lists.denx.de Subject: [PATCH 00/20] ppc: qemu: Add eTSEC support Date: Tue, 2 Mar 2021 23:34:31 +0800 Message-Id: <20210302153451.19440-1-bmeng.cn@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::535; envelope-from=bmeng.cn@gmail.com; helo=mail-pg1-x535.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Vladimir Oltean , qemu-devel@nongnu.org, Sean Anderson , Joe Hershberger , Stefan Roese , Tom Rini , Heinrich Schuchardt , Michal Simek , Amit Singh Tomar , Ramon Fried , Joel Stanley , Alex Nemirovsky , Jean-Jacques Hiblot , Dario Binacchi , Madalin Bucur , Andre Przywara , Hou Zhiqiang , Claudiu Manoil , Alexander Graf , Dan Murphy , Florin Chiculita , Abbie Chang , Bin Meng , Samuel Mendoza-Jonas , Meenakshi Aggarwal , Patrick Delaunay , Etienne Carriere Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" QEMU ppce500 machine can dynamically instantiate an eTSEC device if "-device eTSEC" is given to QEMU. This series updates the fixed-link ethernet PHY driver as well as the Freescale eTSEC driver to support the QEMU ppce500 board. Based-on: http://patchwork.ozlabs.org/project/uboot/list/?series=230985 This series is avaiable at u-boot-x86/eTSEC for testing. Bin Meng (20): net: phy: xilinx: Remove non-DM prototype of phy_connect_gmii2rgmii() net: phy: xilinx: Convert to use APIs which support live DT net: phy: fixed: Remove non-DM prototype of phy_connect_fixed() net: phy: fixed: Convert to use APIs which support live DT dt-bindings: net: Add the old DT bindings for "fixed-link" of: extra: Introduce ofnode_phy_is_fixed_link() API test: dm: Add a case to test ofnode_phy_is_fixed_link() dm: mdio: Use ofnode_phy_is_fixed_link() API net: tsec: Use ofnode_phy_is_fixed_link() API net: phy: Simplify the logic of phy_connect_fixed() net: phy: fixed: Make driver ops static net: phy: fixed: Add the missing ending newline net: phy: fixed: Support the old DT binding dt-bindings: net: Update Freescale TSEC to support "queue-group" net: tsec: Support property from the subnode "queue-group" dm: core: Correctly read of simple-bus test: dm: Add a test case for simple-bus ppc: qemu: Create a virtual memory mapping of the platform bus ppc: qemu: Enable eTSEC support doc: board: qemu-ppce500: Document eTSEC usage arch/sandbox/dts/test.dts | 11 ++++ board/emulation/qemu-ppce500/Kconfig | 6 +++ board/emulation/qemu-ppce500/qemu-ppce500.c | 18 +++++++ configs/qemu-ppce500_defconfig | 4 ++ doc/board/emulation/qemu-ppce500.rst | 5 ++ doc/device-tree-bindings/net/fixed-link.txt | 47 ++++++++++++----- doc/device-tree-bindings/net/fsl-tsec-phy.txt | 15 +++++- drivers/core/of_extra.c | 26 ++++++++++ drivers/core/simple-bus.c | 15 ++++-- drivers/net/phy/Kconfig | 1 + drivers/net/phy/fixed.c | 37 ++++++++++--- drivers/net/phy/phy.c | 52 ++++++------------- drivers/net/tsec.c | 30 +++++++++-- include/dm/of_extra.h | 18 +++++++ include/dm/simple_bus.h | 6 +-- net/mdio-uclass.c | 3 +- test/dm/Makefile | 1 + test/dm/of_extra.c | 18 +++++++ test/dm/simple-bus.c | 33 ++++++++++++ 19 files changed, 276 insertions(+), 70 deletions(-) create mode 100644 test/dm/simple-bus.c -- 2.25.1