From patchwork Tue Apr 6 12:19:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 1462794 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=QjRatxLy; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FF66b0CTCz9sTD for ; Tue, 6 Apr 2021 22:20:04 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 992B78039D; Tue, 6 Apr 2021 14:19:49 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="QjRatxLy"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D89E4805B4; Tue, 6 Apr 2021 14:19:46 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 6676C801FC for ; Tue, 6 Apr 2021 14:19:42 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=narmstrong@baylibre.com Received: by mail-wm1-x32e.google.com with SMTP id a76so4057097wme.0 for ; Tue, 06 Apr 2021 05:19:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:subject:reply-to:to:cc:organization:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=9iLK4JysqlI4AMBFG99GFX0ZMln6Xz+5Aw5ksXr0ZzY=; b=QjRatxLyVL7pyELyBy3qJU9l/GKeWI/3tCOJSojc00Rrn4U40cXJq/kKB4D80zYdk3 N7W83MN1aWVANpSIZ7RzctB/V1WCXPrpSXyC0uYfa2yQKrQI0yo2VPfQtY8d09GiWUCu vtC5T/gcaO0Ewqpv3uea6jwOjxjOzlhupREr6uqPU//xFtIrH88UPMqkEVGyhkD035E8 azQW7+lfjaiK6oytKwiL5AKZxE/tkFylfOxpkaNbMQII/500Y+s+6xDD9H283qP6h++6 X/dF3azNo4rW1Q4TLigX4Vral5uSrsQ4HiY8sW33eIX6NtE3F2Qnb/eDS9RMwTV0m3Gn A7Eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:reply-to:to:cc:organization :message-id:date:user-agent:mime-version:content-language :content-transfer-encoding; bh=9iLK4JysqlI4AMBFG99GFX0ZMln6Xz+5Aw5ksXr0ZzY=; b=Bihj8i6/4tpZ/o6oR9/IwdwOjsuHdsPM+4EO4SebIQ+mu0oNDcFJrnafdaNr2wvfnI vhNl0wc72YtdaVNdKEJoetPIiZprlTTWdqMFAaA0F82XA0u/EkNmzj5FcRDiagfRY55g 3xI/Fusqsyp+FIpNdIEhM6fnAgDUprzEZiPE6uhm7LRNJMNinI63ARGlfX+XvC6nvzP+ pMb2NflKZH5u5An0uYxxrV7udq44mMjcba+nBYE8IwVkkdBbMhxLPSzcIc1QkRmpLJOu USL+oltrGfrP5oixg+/fLl7tjrsEdiPbLyx7IezxaMZdTVmDFdFbr7OPreZqo1O8DzfX ZLVg== X-Gm-Message-State: AOAM533olopiA/K+me46A8cgTKtdb4DyYO7b+F3Y5VmyhMckgJyiuAyS Z+LEkG9bDkrL7ZWt6y+sJWO/6a7Oa79t+AEm X-Google-Smtp-Source: ABdhPJwCK5OnT/yfaHNCWiGTLj5vhNQ05aLCsS2KrdNsRSPV7eVMln2T4G3AX6tEiYCAKYEDMthgLA== X-Received: by 2002:a05:600c:4f8e:: with SMTP id n14mr3959316wmq.34.1617711581223; Tue, 06 Apr 2021 05:19:41 -0700 (PDT) Received: from ?IPv6:2a01:e0a:90c:e290:157c:8238:60a0:2437? ([2a01:e0a:90c:e290:157c:8238:60a0:2437]) by smtp.gmail.com with ESMTPSA id k16sm11954540wrl.47.2021.04.06.05.19.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 06 Apr 2021 05:19:40 -0700 (PDT) From: Neil Armstrong Subject: [PULL u-boot] Please pull u-boot-amlogic-20210406 To: trini@konsulko.com Cc: u-boot-amlogic@groups.io, U-Boot Mailing List Organization: Baylibre Message-ID: Date: Tue, 6 Apr 2021 14:19:39 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 Content-Language: en-US X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: narmstrong@baylibre.com Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean Hi Tom, Let's start this new version with finally all changes to remove static ethernet MAC & PHY setup for Amlogic SoCs, with DM_MDIO to support MDIO mux driver and a proper designware Glue driver. And finally it removes a whole bunch of ugly static code, yay ! The CI job is at https://gitlab.denx.de/u-boot/custodians/u-boot-amlogic/pipelines/7021 Thanks, Neil The following changes since commit 90eba245a66aa20589404ba537215faf2012c1a3: Merge branch 'next' (2021-04-05 11:29:57 -0400) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-amlogic.git tags/u-boot-amlogic-20210406 for you to fetch changes up to 2fbd37001c77f0b78d43c578d8e350a6afa27e24: arm: meson: remove static ethernet link setup (2021-04-06 11:10:29 +0200) ---------------------------------------------------------------- - Add MMIO MDIO mux driver - Add Amlogic G12A MDIO mux driver - Add DM_MDIO support for designware ethernet driver - Add Amlogic Meson8b and later designware ethernet glue driver - Switch all amlogic boards to Amlogic designware ethernet glue driver - Switch all amlogic boards to DM_MDIO when necessary - Remove all static ethernet setup code ---------------------------------------------------------------- Neil Armstrong (11): net: add MMIO Register MDIO MUX driver net: designware: add DM_MDIO support net: add Amlogic Meson G12A MDIO MUX driver net: designware: add Amlogic Meson8b & later glue driver configs: update Amlogic Meson GXL & GXM config for MDIO MUX configs: update Amlogic Meson G12A, G12B & SM1 configs for MDIO MUX arm: meson: remove static MDIO mux handling configs: meson: use Designware glue driver for Amlogic Meson8b & later SoCs net: designware: remove amlogic compatibles arm: meson: remove static ethernet memory power domain enable arm: meson: remove static ethernet link setup arch/arm/include/asm/arch-meson/axg.h | 22 ---- arch/arm/include/asm/arch-meson/eth.h | 12 --- arch/arm/include/asm/arch-meson/g12a.h | 35 ------- arch/arm/include/asm/arch-meson/gx.h | 20 ---- arch/arm/mach-meson/board-axg.c | 34 ------- arch/arm/mach-meson/board-g12a.c | 67 ------------- arch/arm/mach-meson/board-gx.c | 48 --------- board/amlogic/beelink-s922x/beelink-s922x.c | 2 - board/amlogic/odroid-n2/odroid-n2.c | 2 - board/amlogic/p200/p200.c | 2 - board/amlogic/p201/p201.c | 2 - board/amlogic/p212/p212.c | 3 - board/amlogic/q200/q200.c | 2 - board/amlogic/s400/s400.c | 2 - board/amlogic/sei510/sei510.c | 3 - board/amlogic/sei610/sei610.c | 3 - board/amlogic/u200/u200.c | 3 +- board/amlogic/vim3/vim3.c | 2 - board/amlogic/w400/w400.c | 2 +- configs/beelink-gtking_defconfig | 5 +- configs/beelink-gtkingpro_defconfig | 5 +- configs/khadas-vim2_defconfig | 5 +- configs/khadas-vim3_defconfig | 5 +- configs/khadas-vim3l_defconfig | 5 +- configs/khadas-vim_defconfig | 7 +- configs/libretech-ac_defconfig | 7 +- configs/libretech-cc_defconfig | 7 +- configs/libretech-cc_v2_defconfig | 7 +- configs/libretech-s905d-pc_defconfig | 5 +- configs/libretech-s912-pc_defconfig | 5 +- configs/nanopi-k2_defconfig | 2 +- configs/odroid-c2_defconfig | 2 +- configs/odroid-c4_defconfig | 5 +- configs/odroid-n2_defconfig | 5 +- configs/p200_defconfig | 2 +- configs/p201_defconfig | 2 +- configs/p212_defconfig | 7 +- configs/s400_defconfig | 2 +- configs/sei510_defconfig | 7 +- configs/sei610_defconfig | 7 +- configs/u200_defconfig | 7 +- configs/wetek-core2_defconfig | 5 +- drivers/net/Kconfig | 22 ++++ drivers/net/Makefile | 3 + drivers/net/designware.c | 96 +++++++++++++++++- drivers/net/dwmac_meson8b.c | 150 ++++++++++++++++++++++++++++ drivers/net/mdio_mux_meson_g12a.c | 149 +++++++++++++++++++++++++++ drivers/net/mdio_mux_mmioreg.c | 129 ++++++++++++++++++++++++ 48 files changed, 624 insertions(+), 307 deletions(-) create mode 100644 drivers/net/dwmac_meson8b.c create mode 100644 drivers/net/mdio_mux_meson_g12a.c create mode 100644 drivers/net/mdio_mux_mmioreg.c