Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4866188iob; Mon, 9 May 2022 03:34:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwIrnQzUVutGjS41wm8yEVFuUIgIU1Empgzxb98rCbB1AaNn1W1VhIMZQgYXl3z9kqwUBBr X-Received: by 2002:a17:90b:1b52:b0:1dc:54ea:ac00 with SMTP id nv18-20020a17090b1b5200b001dc54eaac00mr25946955pjb.99.1652092440970; Mon, 09 May 2022 03:34:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652092440; cv=none; d=google.com; s=arc-20160816; b=EnblsooYFRJyc2i6d8DlrR8CHxQFdLIv+qzNaGe3VsxCI0t9zT0EDn5k3BKmBMaD8x VWOgQWOksdaR7fbiM8uR+ss6floPHzte6IQvhBvICg/QAk/EG+3NLeuv9oH0ID7lBLgq /MZHE4fKoKXwRCwEnvfj3V0unfyCjAXEyXxQxOl6iDESDHMj6RhFETEYBgBQ9R8K/tZG VDb0VpySJ1Lk0tCDrGaoBeb6Flr0x1/RNgjBOmQO9Gmrq/MXgjT4j6Aq8ZBs/h0riphq 0XSdFddRXgInParM4366rolw9aWw5ofiBdOZFITaqouc5aeFvN8HrW3V++Qr0zQ9M2eK 5rNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=PZ2W3KNFaY25uwPYOAUBqo//QhydCTG90+jdDVlc4xA=; b=Ai/Kcm7aUorIaWfEWsB51dRyWTG83wq9W1ADFy5OSCauIHy7vXWGfTQHjG0De7IpKK l8Cgz4xa1BDEaSFvDwisVKwv6rz/rw8yHHCsmPDKOWJ+zhOcilN+6Szspc5pcx0qSRUO 0SaADmFacgb7/XDbf/69sa33BQRIykPABjJv0qVRTJ53rwNwWmAnEEsL7hMdvfiWj43m gYQ3lUxGz/UB/PMXXLyUBfWI3FxpkwB1JM3RuGg8oX60FUULWc91ex6CSRn6IvhwH6K5 9N+4UXXSZoS+srK4ISmLJl61EFL9pMH7gIfEoc1fHzEj6l4ZmHJmxaqNTa+XoVbClwsI Foqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=SsCIPp2y; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id k5-20020a654645000000b003c6c6dfc3e3si3370176pgr.143.2022.05.09.03.34.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 03:34:00 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=SsCIPp2y; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C370825C2A2; Mon, 9 May 2022 03:03:59 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236030AbiEIHze (ORCPT + 99 others); Mon, 9 May 2022 03:55:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236528AbiEIHw7 (ORCPT ); Mon, 9 May 2022 03:52:59 -0400 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F1C1ABF42 for ; Mon, 9 May 2022 00:49:06 -0700 (PDT) Received: by mail-wm1-x32b.google.com with SMTP id v64-20020a1cac43000000b0038cfd1b3a6dso10227357wme.5 for ; Mon, 09 May 2022 00:49:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=PZ2W3KNFaY25uwPYOAUBqo//QhydCTG90+jdDVlc4xA=; b=SsCIPp2ySQpY3254xzJt4ErJObYSQGSZEWU6X7IY0SFlD1Kh8uODF6gzKe/ygx7J/o QSN9M64o4SLkt1XmMTnzD1rheiktoy3zResGYIC/18S5uNdX/HLiMfVmuwfHS0UmH2J1 56zMKZiNaUulXDHuZyqd/XlGQ5KOyC6WJCZRnW+PstcyfuttFGZzrUkPS7LIpC1QjC14 GCU/gunXAFEWBYE6EEq1137icpShNdb4bflJwng7mR12JSqqhaEq0LNkz5Z+RvSgjeRY fbR26UOPA3yDsXPBzJ9H7UbMJw0Pe4IrvJ3380Baz+N09dkYijZcf6k1lQ10EfHHhtLw TXCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=PZ2W3KNFaY25uwPYOAUBqo//QhydCTG90+jdDVlc4xA=; b=VQuEZrqfTD5bdKvplNjRjIdP3FvsrWbP4YKVC+nlT63RPXR4iVMYbsVl73wI2lOToF Vba6gQq94z+SgjWRDTXOVFaFUXYGDl4K+WfMpl8M2dfds/gK8E+/nV3mk1oZzWNl4b2G tOPlVhn64GCsBOxzFHMMDtjdCT6I0kdoCCOjwcBcana4EuPvX1UaFnrqVAkFAYHCAp9g vk32nSRIAVc0P9yTehDLG96H7iFkqotUM7lEeWVmskSTrdmbw1NbmP2L6YYbiUnNwT9H KQMW4A5+qVTZIsY5ogN3eiF1Ntf64Yq6YkTqLyr4Lo99q9DonlMbys3d3Q41TvIWavkR SE4A== X-Gm-Message-State: AOAM5335pw6ur4+tmtc5x5VcTHp91vqSGFiSPOmFPVKf0PwRtD079F1t XZlL+hY6PG/nbEGmTPVEIUu9+Q== X-Received: by 2002:a1c:35c1:0:b0:38e:c4f6:1931 with SMTP id c184-20020a1c35c1000000b0038ec4f61931mr14583358wma.161.1652082545111; Mon, 09 May 2022 00:49:05 -0700 (PDT) Received: from localhost.localdomain (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.googlemail.com with ESMTPSA id bw22-20020a0560001f9600b0020c5253d8d8sm11784768wrb.36.2022.05.09.00.49.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 00:49:04 -0700 (PDT) From: Corentin Labbe To: alexandre.torgue@foss.st.com, andrew@lunn.ch, broonie@kernel.org, calvin.johnson@oss.nxp.com, davem@davemloft.net, edumazet@google.com, hkallweit1@gmail.com, jernej.skrabec@gmail.com, joabreu@synopsys.com, krzysztof.kozlowski+dt@linaro.org, kuba@kernel.org, lgirdwood@gmail.com, linux@armlinux.org.uk, pabeni@redhat.com, peppe.cavallaro@st.com, robh+dt@kernel.org, samuel@sholland.org, wens@csie.org Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev, Corentin Labbe Subject: [PATCH 0/6] arm64: add ethernet to orange pi 3 Date: Mon, 9 May 2022 07:48:51 +0000 Message-Id: <20220509074857.195302-1-clabbe@baylibre.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello 2 sunxi board still does not have ethernet working, orangepi 1+ and orangepi 3. This is due to the fact thoses boards have a PHY which need 2 regulators. A first attempt was made to support them was made by adding support in stmmac driver: https://lore.kernel.org/lkml/20190820145343.29108-6-megous@megous.com/ Proposal rejected, since regulators need to be handled by the PHY core. This serie try to handle this. This serie was tested on whole range of board and PHY architecture: - internal PHY * sun8i-h3-orangepi-pc - external PHY * sun50i-h6-pine-h64 * sun8i-r40-bananapi-m2-ultra * sun8i-a83t-bananapi-m3 * sun50i-a64-bananapi-m64 * sun50i-h6-orangepi-3 * sun50i-h5-nanopi-neo-plus2 The resume/suspend of PHY was tested. Regards Corentin Labbe (5): phy: handle optional regulator for PHY net: stmmac: dwmac-sun8i: remove regulator dt-bindings: net: Add documentation for phy-supply ARM: dts: sunxi: move phy regulator in PHY node arm64: dts: allwinner: move phy regulator in PHY node Ondřej Jirman (1): arm64: dts: allwinner: orange-pi-3: Enable ethernet .../devicetree/bindings/net/ethernet-phy.yaml | 10 +++++ arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts | 2 +- .../boot/dts/sun8i-a83t-cubietruck-plus.dts | 2 +- arch/arm/boot/dts/sun8i-h3-nanopi-m1-plus.dts | 2 +- arch/arm/boot/dts/sun8i-h3-nanopi-r1.dts | 2 +- arch/arm/boot/dts/sun8i-h3-orangepi-plus.dts | 2 +- .../arm/boot/dts/sun8i-h3-orangepi-plus2e.dts | 2 +- arch/arm/boot/dts/sun8i-h3-zeropi.dts | 2 +- .../boot/dts/sun8i-r40-bananapi-m2-ultra.dts | 2 +- arch/arm/boot/dts/sun8i-r40-oka40i-c.dts | 2 +- .../boot/dts/sun8i-v40-bananapi-m2-berry.dts | 2 +- arch/arm/boot/dts/sun9i-a80-cubieboard4.dts | 2 +- arch/arm/boot/dts/sun9i-a80-optimus.dts | 2 +- arch/arm/boot/dts/sunxi-bananapi-m2-plus.dtsi | 2 +- .../dts/allwinner/sun50i-a64-bananapi-m64.dts | 2 +- .../dts/allwinner/sun50i-a64-nanopi-a64.dts | 2 +- .../sun50i-a64-oceanic-5205-5inmfd.dts | 2 +- .../dts/allwinner/sun50i-a64-olinuxino.dts | 2 +- .../dts/allwinner/sun50i-a64-orangepi-win.dts | 2 +- .../boot/dts/allwinner/sun50i-a64-pine64.dts | 2 +- .../allwinner/sun50i-a64-sopine-baseboard.dts | 2 +- .../sun50i-h5-libretech-all-h5-cc.dts | 2 +- .../allwinner/sun50i-h5-nanopi-neo-plus2.dts | 2 +- .../dts/allwinner/sun50i-h5-nanopi-neo2.dts | 2 +- .../dts/allwinner/sun50i-h5-nanopi-r1s-h5.dts | 2 +- .../dts/allwinner/sun50i-h5-orangepi-pc2.dts | 2 +- .../allwinner/sun50i-h5-orangepi-prime.dts | 2 +- .../sun50i-h5-orangepi-zero-plus.dts | 2 +- .../dts/allwinner/sun50i-h6-beelink-gs1.dts | 2 +- .../dts/allwinner/sun50i-h6-orangepi-3.dts | 38 +++++++++++++++++++ .../allwinner/sun50i-h6-pine-h64-model-b.dts | 8 ++-- .../boot/dts/allwinner/sun50i-h6-pine-h64.dts | 2 +- .../net/ethernet/stmicro/stmmac/dwmac-sun8i.c | 37 +----------------- drivers/net/mdio/fwnode_mdio.c | 32 ++++++++++++++++ drivers/net/phy/phy_device.c | 20 ++++++++++ include/linux/phy.h | 3 ++ 36 files changed, 138 insertions(+), 68 deletions(-) -- 2.35.1