Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752915AbbHCJr2 (ORCPT ); Mon, 3 Aug 2015 05:47:28 -0400 Received: from down.free-electrons.com ([37.187.137.238]:58896 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751756AbbHCJr0 (ORCPT ); Mon, 3 Aug 2015 05:47:26 -0400 Date: Mon, 3 Aug 2015 11:47:23 +0200 From: Maxime Ripard To: Timo Sigurdsson Cc: robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, linux@arm.linux.org.uk, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, wens@csie.org Subject: Re: [PATCH v2] ARM: dts: sunxi: Add regulators for LeMaker BananaPi Message-ID: <20150803094723.GD2564@lukather> References: <1438532305-5884-1-git-send-email-public_timo.s@silentcreek.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="zxqg9xXBu59m0EHX" Content-Disposition: inline In-Reply-To: <1438532305-5884-1-git-send-email-public_timo.s@silentcreek.de> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3509 Lines: 123 --zxqg9xXBu59m0EHX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Aug 02, 2015 at 06:18:25PM +0200, Timo Sigurdsson wrote: > sun7i-a20-bananapi.dts doesn't contain regulator nodes for the AXP209 PMU > driver, so add them to allow for voltage-scaling with cpufreq-dt. >=20 > Signed-off-by: Timo Sigurdsson > --- > Changes since v1 (RFC): >=20 > - Dropped the changes to the cpufreq operating points and renamed the pat= ch > accordingly > - Limited the CPU voltage range so it doesn't exceed the SOC specificatio= ns > --- > arch/arm/boot/dts/sun7i-a20-bananapi.dts | 35 ++++++++++++++++++++++++++= ++---- > 1 file changed, 31 insertions(+), 4 deletions(-) >=20 > diff --git a/arch/arm/boot/dts/sun7i-a20-bananapi.dts b/arch/arm/boot/dts= /sun7i-a20-bananapi.dts > index 9f7b472..74382f3 100644 > --- a/arch/arm/boot/dts/sun7i-a20-bananapi.dts > +++ b/arch/arm/boot/dts/sun7i-a20-bananapi.dts > @@ -92,6 +92,10 @@ > status =3D "okay"; > }; > =20 > +&cpu0 { > + cpu-supply =3D <®_dcdc2>; > +}; > + > &ehci0 { > status =3D "okay"; > }; > @@ -119,13 +123,9 @@ > status =3D "okay"; > =20 > axp209: pmic@34 { > - compatible =3D "x-powers,axp209"; > reg =3D <0x34>; > interrupt-parent =3D <&nmi_intc>; > interrupts =3D <0 IRQ_TYPE_LEVEL_LOW>; > - > - interrupt-controller; > - #interrupt-cells =3D <1>; > }; > }; > =20 > @@ -182,6 +182,33 @@ > }; > }; > =20 > +#include "axp209.dtsi" > + > +®_dcdc2 { > + regulator-always-on; > + regulator-min-microvolt =3D <1000000>; > + regulator-max-microvolt =3D <1400000>; > + regulator-name =3D "vdd-cpu"; > +}; > + > +®_dcdc3 { > + regulator-always-on; > + regulator-min-microvolt =3D <1000000>; > + regulator-max-microvolt =3D <1400000>; > + regulator-name =3D "vdd-int-dll"; > +}; > + > +®_ldo1 { > + regulator-name =3D "vdd-rtc"; > +}; > + > +®_ldo2 { > + regulator-always-on; > + regulator-min-microvolt =3D <3000000>; > + regulator-max-microvolt =3D <3000000>; > + regulator-name =3D "avcc"; > +}; What regulator provides the 3.3V regulator used in the rest of this DT then (MMC, GMAC) ? Maxime --=20 Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com --zxqg9xXBu59m0EHX Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJVvzirAAoJEBx+YmzsjxAgsAEP/1iW2N4TMEEocE5y34lJuyJz cXduqHs/6dG0gZ2Y2DxmYgo75dzoFJquzKFtkttartnWnd61nCy+/E7j/Z6Sg2wj TVGmpITR6fdjzj51e/XVbeh5KYWgKlyozxoiUSY/2fO7WAptoMOF44lLHo2m+RO0 wZhtuJPMguyrHWDetYQKcMnlgUgEgjYHTzsrtThtm47J/Sz7tIVSOl1Bo/o9pCaz WdhTmZsJRamMNOE1SYADcDUFcNSq3yRnUY+ZHfgkOXOpLQcA33iixK+x/L9MmzgD wzUW933fym+HcoHUJJFK5jDTlczQfMXG/KHNKw46NZvZq8DODTZgLIn/+x8lgu4W chqF9qoJOhZzBryuytBYxgrj0QZLMtAOFJh06ykryk+PFaUdWY9K+KnU0xAto7mU KWXB4qvyhKDMfr4/K4CjW1/zuiYcwTW4xW+LhDYBI/Ys6WGThAtG+/rPiL/rSh6S OWilo8PVAF90asZvwwObQMlBFH12TGp7uvYj64aR4XFg7VMv8p8rJ5ydL2vBrMfD w534nADF2Z27r9wVj6HL2The3bWWCQ++dk6wBAbx0rNg/0TpAo4RmshVlonodO0A GwcKWKf8WUgM3Ntu8BybLbgA/B3gG9T0Af5ARzcSveqdGOYITSTj7Xq4PMC1jP2w 1FRopjM9TtypthZlZro0 =rnUD -----END PGP SIGNATURE----- --zxqg9xXBu59m0EHX-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/