Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3999952yba; Wed, 17 Apr 2019 02:22:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqwwkTZt+Jarv+xsmaZrhlmfPsruvHyRwqXCQrB5bRcPS0pjySZXX0FL4ROKg/vO6C7oLbzO X-Received: by 2002:a17:902:2f:: with SMTP id 44mr46002773pla.137.1555492976093; Wed, 17 Apr 2019 02:22:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555492976; cv=none; d=google.com; s=arc-20160816; b=yIyvGfeLkOao9OrC/MuUToQwDORZlr2ZD2QXmbz+9tbtP5pH6A1LTCDr/W28xXvtne XtISvNVYuFd8Qi5Z3X5waYkBfSlLMWY3IpiJH9ZlQZGPf/AJv8nVETLcI641sJroOTR1 UTGKMDxvcbuVl8Wo8iXsLIfERCCwRJMicQcNONonBEY6x0jH7WwfWARxNV2ZPJM3Vb8M d2Myy2aCchW9ZJ3TrvOWx8wrlCldm7ZTa34FZMsrnEov8/1C7b6HxqSJ6v4K9tmNaII5 VvJwZShwLu0wso98YcGx+/pvLjrhQm/gemgOVO6h6q0uZK3RIQD70oJ0yW0xLPXfYHoV qZ0A== 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=GkuL4rBxqFD1v9+HpORoMADx6DkrGFqrXotVslZdEbA=; b=S6yQOpMbBXBF0sgjp3gDOH/G3QL+IVupksXfbO9SQPxv4YVELhuCzzR5PNTU1dvyzy LBF8468sokUuS3W4HJ5HcRh9fqg+bk3DzsPzzfAuywhI73yd0KaEThhhnco9esv1NZjQ pTPDljTndIy516/BHeAEVXEKI3oAs2504r6UhJ2duztZ3hSLRFrWlzAAXydhndwptI2M uja5114xKUUxBLFZBJiJ6pWjk/EYdxPyKG68t/M4Gnz670SDU7knah92Fce2J5A2fEYW RBOWzwGDzGs0/yoow1dIl7YkGOst3CXgJdclLypzMj5TjVh+ftZMTO0YAdaSIbosANS6 ndQg== 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 h185si53530209pfc.241.2019.04.17.02.22.41; Wed, 17 Apr 2019 02:22:56 -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 S1731560AbfDQJVj (ORCPT + 99 others); Wed, 17 Apr 2019 05:21:39 -0400 Received: from mail2.sp2max.com.br ([138.185.4.9]:48792 "EHLO mail2.sp2max.com.br" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727013AbfDQJVj (ORCPT ); Wed, 17 Apr 2019 05:21:39 -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 3983A7B305B; Wed, 17 Apr 2019 06:21:29 -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 v3 3/7] ARM: dts: sun8i: v40: bananapi-m2-berry: Enable GMAC ethernet controller Date: Wed, 17 Apr 2019 06:20:58 -0300 Message-Id: <1555492863-88860-4-git-send-email-pgreco@centosproject.org> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1555492863-88860-1-git-send-email-pgreco@centosproject.org> References: <1555492863-88860-1-git-send-email-pgreco@centosproject.org> X-SP2Max-MailScanner-Information: Please contact the ISP for more information X-SP2Max-MailScanner-ID: 3983A7B305B.A81E4 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 | 32 +++++++++++++++++++++++ 1 file changed, 32 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 e63f5f2..ec4dbcc 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"; @@ -126,6 +143,15 @@ &pio { pinctrl-names = "default"; pinctrl-0 = <&clk_out_a_pin>; + vcc-pa-supply = <®_aldo2>; + vcc-gmac-phy-supply = <®_dc1sw>; +}; + +®_aldo2 { + regulator-always-on; + regulator-min-microvolt = <2500000>; + regulator-max-microvolt = <2500000>; + regulator-name = "vcc-pa"; }; ®_aldo3 { @@ -135,6 +161,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