From mboxrd@z Thu Jan 1 00:00:00 1970 From: maxime.ripard@free-electrons.com (Maxime Ripard) Date: Mon, 30 Jan 2017 15:00:15 +0100 Subject: [PATCH v2 2/2] ARM: sun8i: dt: Add mali node In-Reply-To: <20170127202119.cnnuuojtjor6rleg@rob-hp-laptop> References: <681511dd6370b9146ae8e3f8009eba1e15d36cc0.1485180017.git-series.maxime.ripard@free-electrons.com> <20170127202119.cnnuuojtjor6rleg@rob-hp-laptop> Message-ID: <20170130140015.dopcfbula6spu2xo@lukather> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hi Rob, On Fri, Jan 27, 2017 at 02:21:19PM -0600, Rob Herring wrote: > On Mon, Jan 23, 2017 at 03:00:46PM +0100, Maxime Ripard wrote: > > The A23 and A33 have an ARM Mali 400 GPU. Now that we have a binding, add > > it to our DT. > > > > Signed-off-by: Maxime Ripard > > --- > > arch/arm/boot/dts/sun8i-a23-a33.dtsi | 26 ++++++++++++++++++++++++++ > > 1 file changed, 26 insertions(+), 0 deletions(-) > > > > diff --git a/arch/arm/boot/dts/sun8i-a23-a33.dtsi b/arch/arm/boot/dts/sun8i-a23-a33.dtsi > > index e4991a78ad73..982705719ef2 100644 > > --- a/arch/arm/boot/dts/sun8i-a23-a33.dtsi > > +++ b/arch/arm/boot/dts/sun8i-a23-a33.dtsi > > @@ -486,6 +486,32 @@ > > #size-cells = <0>; > > }; > > > > + mali: gpu at 01c40000 { > > Drop leading 0. > > > + compatible = "allwinner,sun8i-a23-mali", > > + "allwinner,sun7i-a20-mali", "arm,mali-400"; > > + reg = <0x01c40000 0x10000>; > > Does this really use 64K or that's just the register spacing? Set it > to what's used. The memory maps in our datasheet allocates 64k for that block. I always thought that we had to put the size of the whole memory block allocated to that device. For now, the driver only uses space up to 0xe000 (so we wouldn't "waste" a lot of space anyway), but what if at some point the driver needs more than what we put in the DT? Thanks, Maxime -- Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 801 bytes Desc: not available URL: