Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp703286yba; Thu, 18 Apr 2019 08:13:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqz9Uj12ij2GjIgov+w9B2YUgHFtAjT9MNaPBzzFUta43DRbuhy2xnLyXhTDCxjZXILuF/CE X-Received: by 2002:a62:6490:: with SMTP id y138mr96697348pfb.230.1555600407332; Thu, 18 Apr 2019 08:13:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555600407; cv=none; d=google.com; s=arc-20160816; b=ca+lo0nwj/qBLSrxOuq9SgkUsVdRcrqaQKcMSnrJNUb2waVKC9USVWRrECA85JekwC YzxjzmfW83GoQRC2tR+7eQh4RLsWzsCVacAcWx/yk/EnG/ZxaZTcV617zdWwX2b4UZ+0 C9cpNolnWOZfUKHOGdbg46De98A8UaKeAuTZm5LgDUGa0dx5GX0UF3mJ2SPZHJgosUF/ m/kDNM7YSMRNvjDyovOQ30P/okjvj7Zpy38olww4z1CdrooU0VHg3/0+bVc+YWkvmLUz wktR4z+ctc5KKxrfOYBp1BpmSbk1EOqC7+1eO4U3cXEizG7VI6qVqRgLhvovTpAFmzWU Hqfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=h2FhR567rraAMxut4ZyFOldD4hDFVrA3MzhCSrjy4HY=; b=HnPAYM9N9mzLliuni+vFkETvQRwjuA35VOx1Xu4SO6ElY5jI/BlbKK8c+rLuO2c+6D 0WhUD84Od1nSGbqkWiEX8k1UP0+UcvdtLqi9o/D+UDE/o+S5y5JKnLFXTFoU0i4GtI0H iuB4zqvvW4RCAT2M6gIoK7PYbTs9BpDRUUIj3FRHf0HWkA0I1JlJT6Zpbi2ct4dqa/Ar JfAf7ZuntcfsaqoibTy7yIchxrgi89XcstzFlWJs4MN6otEnw2aO+ATb3z7YY8jJ5eN3 l1TAFqoQIo1ZcEv3KV7Zn5a77Gs/QZf30QHkIHMLNV+YijYdUfb9CwHkjWkxaD6GhEnM wCow== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v25si2190014pgo.317.2019.04.18.08.13.11; Thu, 18 Apr 2019 08:13:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389552AbfDRPMF (ORCPT + 99 others); Thu, 18 Apr 2019 11:12:05 -0400 Received: from mail2.sp2max.com.br ([138.185.4.9]:45062 "EHLO mail2.sp2max.com.br" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389489AbfDRPL4 (ORCPT ); Thu, 18 Apr 2019 11:11:56 -0400 Received: from pgsop.sopnet.com.ar (unknown [179.40.38.12]) (Authenticated sender: pablo@fliagreco.com.ar) by mail2.sp2max.com.br (Postfix) with ESMTPA id DC6327B3033; Thu, 18 Apr 2019 12:11:30 -0300 (-03) From: Pablo Greco To: linux-sunxi@googlegroups.com Cc: Pablo Greco , Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 1/7] ARM: dts: sun8i: v40: bananapi-m2-berry: Enable GMAC ethernet controller Date: Thu, 18 Apr 2019 12:11:16 -0300 Message-Id: <1555600282-9405-2-git-send-email-pgreco@centosproject.org> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1555600282-9405-1-git-send-email-pgreco@centosproject.org> References: <1555600282-9405-1-git-send-email-pgreco@centosproject.org> X-SP2Max-MailScanner-Information: Please contact the ISP for more information X-SP2Max-MailScanner-ID: DC6327B3033.A1ED6 X-SP2Max-MailScanner: Sem Virus encontrado X-SP2Max-MailScanner-SpamCheck: nao spam, SpamAssassin (not cached, escore=-2.9, requerido 6, autolearn=not spam, ALL_TRUSTED -1.00, BAYES_00 -1.90) X-SP2Max-MailScanner-From: pgreco@centosproject.org X-Spam-Status: No Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Just like the Bananapi M2 Ultra, the Bananapi M2 Berry has a Realtek RTL8211E RGMII PHY tied to the GMAC. The PMIC's DC1SW output provides power for the PHY, while the ALDO2 output provides I/O voltages on both sides. Signed-off-by: Pablo Greco --- arch/arm/boot/dts/sun8i-v40-bananapi-m2-berry.dts | 30 +++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-v40-bananapi-m2-berry.dts b/arch/arm/boot/dts/sun8i-v40-bananapi-m2-berry.dts index f05cabd..0d79e91 100644 --- a/arch/arm/boot/dts/sun8i-v40-bananapi-m2-berry.dts +++ b/arch/arm/boot/dts/sun8i-v40-bananapi-m2-berry.dts @@ -50,6 +50,7 @@ compatible = "sinovoip,bpi-m2-berry", "allwinner,sun8i-r40"; aliases { + ethernet0 = &gmac; serial0 = &uart0; }; @@ -92,6 +93,22 @@ status = "okay"; }; +&gmac { + pinctrl-names = "default"; + pinctrl-0 = <&gmac_rgmii_pins>; + phy-handle = <&phy1>; + phy-mode = "rgmii"; + phy-supply = <®_dc1sw>; + status = "okay"; +}; + +&gmac_mdio { + phy1: ethernet-phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <1>; + }; +}; + &i2c0 { status = "okay"; @@ -123,6 +140,13 @@ status = "okay"; }; +®_aldo2 { + regulator-always-on; + regulator-min-microvolt = <2500000>; + regulator-max-microvolt = <2500000>; + regulator-name = "vcc-pa"; +}; + ®_aldo3 { regulator-always-on; regulator-min-microvolt = <2700000>; @@ -130,6 +154,12 @@ regulator-name = "avcc"; }; +®_dc1sw { + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3000000>; + regulator-name = "vcc-gmac-phy"; +}; + ®_dcdc1 { regulator-always-on; regulator-min-microvolt = <3000000>; -- 1.8.3.1