Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1922755yba; Mon, 15 Apr 2019 00:54:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqyTo6bWeiU65sYT3qXR1JU4E6S/ud2sBQ3XzHVWS+ExFijM8EDyCIGqbdh0iyxgy/G55tPH X-Received: by 2002:a62:ed10:: with SMTP id u16mr74694728pfh.187.1555314855106; Mon, 15 Apr 2019 00:54:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555314855; cv=none; d=google.com; s=arc-20160816; b=RI0ppNkvKcIrQR7IyIjUynEYke3Hc9Nh9SX6Bp0b50+IkgyKv9Y57+9FL4pDzYWdw4 mLe7mEFyTQGDNEhVK2fxZVcaJZj56cngx6Cixz2GPBI9CNwOBYvgpaETd8e4miML+sW0 6bp94/EHZTDyqhZq5bZ7okt/caiFUbz8R/x8WWEvkAS1PfLTp0b8lB7ojr/WaCtEIqoV M0zCBFAr35yLJkOFrkxy5HVnaDjPuuomsFo0Ma/hPsIyU5TxkWvrk5K1lY3FxvyWo7ys OjkuW/vmNwMN1UigqZeqZPfUrLyAIDpEIm2HhhNrucnl3ByKZSw8/IsAt9B2GAnDYi36 GxYw== 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=rOlTM677CxSmE1YGTVquHT44ZXcnNuTLiPeT0IhKYTw=; b=Nx0IRHKW+yqdVisXRkcrRwLjMZMw8iKxW/1B6+gC6HPxqUHYsDqw+p8SvevQ1vOarD 4bQj+kHGS+xddMLIN91qAh198buqq3TIdp9GHHvP3AxQaCMgnfYOAr195w2tzfyT5ySX eO42fCbppnnxewmNbh/iwKbcWBpeTScJXVUxZu2aDM7oTaitWFQmIzUZxWA7iDUNnIDU P1YjMQE4Ivk2maAaCaUsYphNENju8yNgar09/GA0m/0pAtDJjYaKgI4t8cXmZOCCYG3f OZl/TcYDYhj8Oc4lUdHwIY7sVdkkgr/Fg11ZKDVrvQFsh0WHvthxgZXsECdYDoeuc2kr ae5Q== 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 e6si44358454pgb.435.2019.04.15.00.53.59; Mon, 15 Apr 2019 00:54:15 -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 S1726363AbfDOHxQ (ORCPT + 99 others); Mon, 15 Apr 2019 03:53:16 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:43837 "EHLO relay8-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725794AbfDOHxQ (ORCPT ); Mon, 15 Apr 2019 03:53:16 -0400 X-Originating-IP: 90.88.18.121 Received: from localhost (aaubervilliers-681-1-63-121.w90-88.abo.wanadoo.fr [90.88.18.121]) (Authenticated sender: maxime.ripard@bootlin.com) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id F05041BF20C; Mon, 15 Apr 2019 07:53:09 +0000 (UTC) Date: Mon, 15 Apr 2019 09:53:09 +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 v2 2/6] ARM: dts: sun8i: v40: bananapi-m2-berry: Enable GMAC ethernet controller Message-ID: <20190415075309.p7pgj62mmtmxsnnr@flea> References: <1555065186-8154-1-git-send-email-pgreco@centosproject.org> <1555065186-8154-3-git-send-email-pgreco@centosproject.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="tjisfipvq5kg6xrt" Content-Disposition: inline In-Reply-To: <1555065186-8154-3-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 --tjisfipvq5kg6xrt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Apr 12, 2019 at 07:33:01AM -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"; > +}; > + If this one provides power to the pins, it should be tied to the PIO node. Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --tjisfipvq5kg6xrt Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXLQ4ZQAKCRDj7w1vZxhR xdz4AP4jMVZj59cnymFUR2ZwiQDpO5JWncdeKZAmj3ZK6Z67fgD/a0hw/unD2EE+ EHb1zlIz9mKXtVXL3kjTfP40wW7Uuwk= =r1tW -----END PGP SIGNATURE----- --tjisfipvq5kg6xrt--