From patchwork Thu Feb 25 08:44:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 1444168 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=YM7/qnWl; 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)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DmRF04jLhz9sVF for ; Thu, 25 Feb 2021 19:45:02 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C420B80574; Thu, 25 Feb 2021 09:44:49 +0100 (CET) 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="YM7/qnWl"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 19AF9806C3; Thu, 25 Feb 2021 09:44:47 +0100 (CET) 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,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) (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 9AEE8804E8 for ; Thu, 25 Feb 2021 09:44:43 +0100 (CET) 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-wr1-x429.google.com with SMTP id v1so4373051wrd.6 for ; Thu, 25 Feb 2021 00:44:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Ns/4VUrAGZUaOhxNaPUd0mEtx7zeD255C2PYIlXfnM0=; b=YM7/qnWlewvuvcGFcCKWpzEeKL657s2DVRihKZMr+OfPsQUs3rd8vLyzXP+vIooR/m ufZTme7wnWBg2rCDoY+IR3S/SBN9+xtdwrkS8lfv46Rtn+tW4abrzjNgUWqyMUdTUowk 0vMAsL1BTWrDspRbV0LbZIGUDOn+Z6QzjuCi2erLm1LO8yUS4LANHN8HmAjTl/FKztV5 R4hKvSJ8gmBkIBKCcMugmgVS+DWp9YE9FM873CRbc3y+5pWXUIwBZilizejpzyJYrwIa 4+kBmDFzc4lCeiOfrUuzpGAQibFDlAERfmNe1JokHB7sGBZkhzvv+z7WmbncKXxmDSGI Juig== 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=Ns/4VUrAGZUaOhxNaPUd0mEtx7zeD255C2PYIlXfnM0=; b=UGd9XnuR75cdBS3L6h2NZt6pCIwbQskv7K682TghLz7W2wBY9/QCxdh4JAdvyviGag BA3tPrgfqOYZmsOKBd1D49Ux+zKXaX6XvkV3bvOF1VObEFHp6QMTTHbJobGbly57Ni4/ M3B4fPEZ67yeacbkRuC7ma/xD2P2lgqpOxStcV9erv1v63OL5tbd3a2mUzDyMvigIosp 6lGPid1jCMfNKt62uRdhzeKkjfEIC6r4GqnGvyhzpwlzKaBmdIkLdpLtqzhJnfp2+gcQ CSylw9f2dnWmwECz+XarKznJjL2zfJUA59zCiC1o6O3xPx4qkIIs3Asep8Hc6v031t+l RL+w== X-Gm-Message-State: AOAM532sQ0onTqFErZvwllVWVjaBOsZHEWRDZ3SQuKkvnR5QY5BYZ1Rp puEPbznD0hN9smmYceYCYsozlbfeRMZQ0G+D X-Google-Smtp-Source: ABdhPJya0Lsnyv/3p9ycs9KxW7WOEqrvwS2RGPTDbE0oxN6pHAO/21ea1ZyXGTDWW10z5hv727QYrw== X-Received: by 2002:a5d:6089:: with SMTP id w9mr2253289wrt.412.1614242682601; Thu, 25 Feb 2021 00:44:42 -0800 (PST) Received: from localhost.localdomain ([2a01:e0a:90c:e290:c3ab:3c03:bb16:99c6]) by smtp.gmail.com with ESMTPSA id t2sm7595705wrx.23.2021.02.25.00.44.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Feb 2021 00:44:42 -0800 (PST) From: Neil Armstrong To: u-boot@lists.denx.de Cc: u-boot-amlogic@groups.io, christianshewitt@gmail.com, b.galvani@gmail.com, Neil Armstrong Subject: [RFC/RFT 0/7] arm: meson: static ethernet init cleanup Date: Thu, 25 Feb 2021 09:44:31 +0100 Message-Id: <20210225084438.2964558-1-narmstrong@baylibre.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 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: , 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 This serie finally removes the static ethernet link setup, MDIO mux & memory power domain after introduction of : - "net: add MMIO Register MDIO MUX driver" at [1] - "net: designware: add DM_MDIO support" at [2] - "net: add Amlogic Meson G12A MDIO MUX driver" at [3] - "net: designware: add Amlogic Meson8b & later glue driver" at [4] These patches makes all this happen automagically thanks to DM_MDIO introduced last year. This has been tested on libretech-ac and Khadas VIM3 to check to most opposite setups, but the GXBB boards hasn't been tested. Note, you'll need [1], [2], [3], [4] applied before these patches [1] https://patchwork.ozlabs.org/project/uboot/patch/20210224140223.2617536-1-narmstrong@baylibre.com/ [2] https://patchwork.ozlabs.org/project/uboot/patch/20210224140239.2617642-1-narmstrong@baylibre.com/ [3] https://patchwork.ozlabs.org/project/uboot/patch/20210224163153.2678768-1-narmstrong@baylibre.com/ [4] https://patchwork.ozlabs.org/project/uboot/patch/20210224193356.2948805-1-narmstrong@baylibre.com/ Neil Armstrong (7): 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/designware.c | 3 - 43 files changed, 79 insertions(+), 306 deletions(-)