Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp749948yba; Thu, 18 Apr 2019 08:58:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqyMX1MMmR6gblCcXZWZ4cWYs2k3+B/qjYrg/8tOk4lj0GCx3ZMKCXJYZ6RBGOF3FE5wUUyy X-Received: by 2002:a17:902:106:: with SMTP id 6mr52651610plb.98.1555603084280; Thu, 18 Apr 2019 08:58:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555603084; cv=none; d=google.com; s=arc-20160816; b=uvlsZlvTIB0fqwa0iTHAYBK0Km5VtelVkDNSHNzHF0pMW8jrjeFmChZ+RwNADHIeJm ICEq0LcYXn3g8VN/MzHUoLDTw3xMDMeVErTRdUIo9gDD/obUWF0ea7jOYzCnBXzRcVSB 79fBSQCqBG8SfDIObu+mznxEMORlOl9JjLl2cnX5obu9X8x+lP2L+QQciy+xnPdpIxyS a8A7HF3w78pU5GB9vnBWmYAQWZMhlZtR5CMMDbfR8M8qfp4rq0IU4Mu8qkzlFo6UZOi4 7o25J1ZZSAFZ8T/FNzuX553J6IGrk6T5eT8VS96z1P9YivUzR36xyCs2wNmcyBjTVkk1 k8UA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=m9arGQLuVnxhTlrIzSePWhxICyLKipngQF2Yu2p5Kro=; b=sLAtSi1harM8aHDEwWBclJ1CU9D5ZrzeC4XONecaofRYkTaNrMd/kQZH6awPUCgKA8 rxSOoSLemO5rXZainxJF9nJSFHoZDy74Keo3noUaAW0EyB4ofnBfiMRS5ZkebPH9Q1VP 342z0AE2VNV23Jp+opOEgxwJFDtywef2vj5CtbhJn2AWqW6giQ/47onoQhLeKas7QNgQ gH2+Ppuxnaacp+FUhzBrtZU6m2T+7ejK1+j2b6tfP4KEpD0xEIkIjZtCoMt58Z0YB6vY qHj9X99v1BuLqzlbvrXnT3XzZtXZN/5wKqzbJsOeMaoRFUpBGhbuNA2Gvp5sHp4QIFlk b3zg== 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 r12si2724769pfn.135.2019.04.18.08.57.49; Thu, 18 Apr 2019 08:58:04 -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 S2389552AbfDRPzT (ORCPT + 99 others); Thu, 18 Apr 2019 11:55:19 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:46255 "EHLO relay4-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733067AbfDRPzT (ORCPT ); Thu, 18 Apr 2019 11:55:19 -0400 X-Originating-IP: 90.89.68.76 Received: from localhost (lfbn-1-10718-76.w90-89.abo.wanadoo.fr [90.89.68.76]) (Authenticated sender: maxime.ripard@bootlin.com) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 3EC2BE0002; Thu, 18 Apr 2019 15:55:16 +0000 (UTC) Date: Thu, 18 Apr 2019 17:55:15 +0200 From: Maxime Ripard To: Pablo Greco Cc: linux-sunxi@googlegroups.com, Rob Herring , Mark Rutland , Chen-Yu Tsai , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 1/7] ARM: dts: sun8i: v40: bananapi-m2-berry: Enable GMAC ethernet controller Message-ID: <20190418155515.cb2saxlvthzhaozq@flea> References: <1555600282-9405-1-git-send-email-pgreco@centosproject.org> <1555600282-9405-2-git-send-email-pgreco@centosproject.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="zbzvrvpxfhwci4pw" Content-Disposition: inline In-Reply-To: <1555600282-9405-2-git-send-email-pgreco@centosproject.org> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --zbzvrvpxfhwci4pw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Apr 18, 2019 at 12:11:16PM -0300, Pablo Greco wrote: > 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"; And if patches 6 and 7 become the first one, you can drop the always-on here. Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --zbzvrvpxfhwci4pw Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXLid4wAKCRDj7w1vZxhR xQ0QAQDSqU5QZpnYtQOpyxf6WF1r2eoIBEj7/e2Ls7IM67vjWgEAn8WmjUblSOev QQsoVS1lz+iER6wyKQR8sMIuwXRgiQQ= =fC1u -----END PGP SIGNATURE----- --zbzvrvpxfhwci4pw--