Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5974960yba; Thu, 11 Apr 2019 09:26:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqxy8EnuDtSevmYldNmZqF9PPREe3vfMtqizBrErkLM+grgJKoz2vVBOcZ0mlAuXIYDCDcA3 X-Received: by 2002:a62:1d0d:: with SMTP id d13mr51112843pfd.96.1554999982031; Thu, 11 Apr 2019 09:26:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554999982; cv=none; d=google.com; s=arc-20160816; b=0VLiX25imapsVDQ4IyJwNBIGhTjeXU99eDXcF/9Dx8R3QPKJ21bk4oddcwW5njGQk4 ONQKKncU650ntiS+yRvwYyhs2ojUnDevp5sNCeqziCy+4WfsIFNKltYwpREl6OM4VxzH XGbTQoCrYSo9brVnTrEOXqFzwaZpDWN5D7gE2OvIHdD1wYD59Au65XqHd0Y91XhuUUZ/ hZzj04T/VtQJ3qiocoNIXYJYiuBpT3JetBpe7/SYSxkT2iExbfsA4f10z5gJZPApPkI2 p97vbF1oiMKBySuEMDIXeincJY84AQ1IhbuUWUtSeLepLnhJ1wXbhMtUqu/aq7nklHhj NhWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=9Rv1UbXO6onYUJISmWCqApcmXgAA58H8pBqnxYffAjk=; b=rM5pqPofinPRWysoAqXUNGg3KXwkEQcmBhOnZpMaHG+94gQTf2SOkPHn/J8Dx8o4Hg M/gDgG1Yj9s0TnCho97UPTY/KP9zAkTSGFtNmYPysxsoTHJNIRHd4cQlwe3hl1a8aJvo i1cT+xuosg78STNIOemW/r+eenyUCfss30NflD+3sKLhWZ1DpgCbMHRl6bHGams3x5Yk IqQN5d8h4YqeRrbIsBmn7uTfHl9XGmay6RQY5q+ouWMRQw04C0Qv18IqDzFehnJ+fDSp htmL42rkvNTm8nhnz0k2/vnoFqEpLbjn/Eam3ZH1/4JvdOrvUnO4e4I/pvusIDVl95l0 QWaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=SXpAXQvT; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v124si33916589pgb.475.2019.04.11.09.26.05; Thu, 11 Apr 2019 09:26:22 -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; dkim=pass header.i=@kernel.org header.s=default header.b=SXpAXQvT; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726676AbfDKQZK (ORCPT + 99 others); Thu, 11 Apr 2019 12:25:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:33788 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726536AbfDKQZJ (ORCPT ); Thu, 11 Apr 2019 12:25:09 -0400 Received: from mail-qt1-f170.google.com (mail-qt1-f170.google.com [209.85.160.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E505D21872; Thu, 11 Apr 2019 16:25:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554999908; bh=5ZY6Ux4o/b4SgaHZR1GuMTomVW6gaqvwWf8MJYCI0dw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=SXpAXQvTaCl36WoCz9YvXugpE9tYxXXgzKj8teUtmAvSIZ8LDgS8Uqp4Iu0Df3bcP kx3gAOK2wzWtQClj+N142dDBB6ArHpsMTwBxwrCte0qI0tS2snA6nhG03A58lrZ59O oei7Wr5RRi57AXFumiZFMtvDDeidAfLACZIucUKc= Received: by mail-qt1-f170.google.com with SMTP id k14so7850780qtb.0; Thu, 11 Apr 2019 09:25:07 -0700 (PDT) X-Gm-Message-State: APjAAAXVA/vpajSun+Yc/SVJt6cYhEd0Zy3CmN6ccpLhmw0t8/zivnMV 0ki5RtwG5IoLPnc62j9ci5IATN9UBtksQd0SCA== X-Received: by 2002:ac8:3f6f:: with SMTP id w44mr40633789qtk.59.1554999907079; Thu, 11 Apr 2019 09:25:07 -0700 (PDT) MIME-Version: 1.0 References: <20190411105720.32357-1-peron.clem@gmail.com> <2957024.jOddxINRMN@jernej-laptop> <2797515.ZAugZ1JPiN@jernej-laptop> <20190411152752.qlabx7heh74dy2ao@flea> In-Reply-To: <20190411152752.qlabx7heh74dy2ao@flea> From: Rob Herring Date: Thu, 11 Apr 2019 11:24:54 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 4/8] arm64: dts: allwinner: Add ARM Mali GPU node for H6 To: Maxime Ripard Cc: =?UTF-8?Q?Jernej_=C5=A0krabec?= , =?UTF-8?B?Q2zDqW1lbnQgUMOpcm9u?= , Rob Herring , Chen-Yu Tsai , Icenowy Zheng , Jagan Teki , devicetree , linux-kernel , linux-arm-kernel , dri-devel , linux-sunxi Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 11, 2019 at 10:27 AM Maxime Ripard wrote: > > On Thu, Apr 11, 2019 at 05:23:25PM +0200, Jernej =C5=A0krabec wrote: > > Dne =C4=8Detrtek, 11. april 2019 ob 17:20:04 CEST je Cl=C3=A9ment P=C3= =A9ron napisal(a): > > > Hi, > > > > > > On Thu, 11 Apr 2019 at 17:05, Jernej =C5=A0krabec > > wrote: > > > > Dne =C4=8Detrtek, 11. april 2019 ob 12:57:16 CEST je Cl=C3=A9ment P= =C3=A9ron napisal(a): > > > > > Add the mali gpu node to the H6 device-tree. > > > > > > > > > > Signed-off-by: Cl=C3=A9ment P=C3=A9ron > > > > > --- > > > > > > > > > > arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 14 ++++++++++++++ > > > > > 1 file changed, 14 insertions(+) > > > > > > > > > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi > > > > > b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi index > > > > > e0dc4a05c1ba..196753110434 100644 > > > > > --- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi > > > > > +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi > > > > > @@ -157,6 +157,20 @@ > > > > > > > > > > allwinner,sram =3D <&ve_sram 1>; > > > > > > > > > > }; > > > > > > > > > > + gpu: gpu@1800000 { > > > > > + compatible =3D "allwinner,sun50i-h6-mali", > > > > > + "arm,mali-t720"; > > > > > + reg =3D <0x01800000 0x4000>; > > > > > + interrupts =3D > > > > > > > IRQ_TYPE_LEVEL_HIGH>, > > > > > > > > > + > > > > > > > IRQ_TYPE_LEVEL_HIGH>, > > > > > > > > > + > > > > > > > IRQ_TYPE_LEVEL_HIGH>; > > > > > > > > > + interrupt-names =3D "job", "mmu", "gpu"; > > > > > + clocks =3D <&ccu CLK_GPU>, <&ccu CLK_BUS_GP= U>; > > > > > + clock-names =3D "core", "bus"; > > > > > + resets =3D <&ccu RST_BUS_GPU>; > > > > > + status =3D "disabled"; > > > > > > > > Usually self sufficient peripherals are enabled by default in DTSI. > > > > > > I follow the other Mali Midgard (rk3399, rk3288) syntax. > > > But I think you're right here, will go for an update I think. > > > > I quickly checked A64 and H5 DTSI and both have GPU enabled by default = (status > > property is not set). > > I asked myself the same question, but the H6 seems to have a supply > wired to the GPU, while the H3 and H5 do not. So I'm not sure we want > to enable it on all the boards, even though some might have left out > the GPU supply which will result in a non-working GPU (I assume?) If the default state is enabled, then only devfreq will be disabled for panfrost, but it should otherwise work. I guess we could be smarter and just do frequency changes if all the OPP voltages are the same. Rob