From patchwork Wed Apr 10 23:25:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= X-Patchwork-Id: 10895227 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 003A2139A for ; Thu, 11 Apr 2019 08:01:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E2FCD28852 for ; Thu, 11 Apr 2019 08:01:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D57FB28AF1; Thu, 11 Apr 2019 08:01:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8C7A328852 for ; Thu, 11 Apr 2019 08:01:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3C5C8897FD; Thu, 11 Apr 2019 08:01:04 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by gabe.freedesktop.org (Postfix) with ESMTPS id 50288893E8 for ; Wed, 10 Apr 2019 23:15:35 +0000 (UTC) Received: by mail-wr1-x443.google.com with SMTP id h4so4825470wre.7 for ; Wed, 10 Apr 2019 16:15:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=9BEpM5Gvyvd4udCA+glYkPWMTJCgvlXeRuBegEu1lKo=; b=F9jRBCu9zoRx1xM7v3VEacUOXXbQrABr3SoPOlnzR7Jz5X5tqtYYtQw3PUkcDD9wSi vPCfpTjhXI9j76GBxczpH5pp7OOBnJ3tXi49pdZ3tSSMgFub90dH1KQS+oyf3BzWwikq VOmvxp1vO5nTh/0YfINPUpS7vDyhcSSRV1rUM0L+pdpr2wLcD2Rjw1FLfKGhdxCG/b/8 9TMfGABLXAvvDIKjCCfhzUFnYxKrXY7APaQyCMmtBvlGCz4icYsjA7psYNyOyskqVANQ VIfZhVnUVXL/XA8YZQMeIBgJUOHRq6DjpXQzD7uYKtPjBh9y1OYXqb6fDb3BTFNaNTc3 OnHA== X-Gm-Message-State: APjAAAVSCEqClAIUTecMZs/ahiADuY96wAPAXnWq/uFQodg7BpciLIiI /pTAvWoBEpXmgXCNCAn9hn8= X-Google-Smtp-Source: APXvYqxmMnOuV9QlB1rJNCq2zuN/qWbxaNtjCYrscjABEvCSyhXiKDR+O/48hfVcxZgt8oAvb7CdIw== X-Received: by 2002:adf:e602:: with SMTP id p2mr9735994wrm.105.1554938133850; Wed, 10 Apr 2019 16:15:33 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:1f1:d0f0::df7e:4a05]) by smtp.gmail.com with ESMTPSA id n6sm8504947wmn.48.2019.04.10.16.15.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Apr 2019 16:15:32 -0700 (PDT) From: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= To: Rob Herring , Maxime Ripard , Chen-Yu Tsai , Icenowy Zheng , Jagan Teki , Jernej Skrabec Subject: [PATCH 4/8] arm64: dts: allwinner: Add ARM Mali GPU node for H6 Date: Thu, 11 Apr 2019 01:25:39 +0200 Message-Id: <20190410232543.13297-5-peron.clem@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190410232543.13297-1-peron.clem@gmail.com> References: <20190410232543.13297-1-peron.clem@gmail.com> MIME-Version: 1.0 X-Mailman-Approved-At: Thu, 11 Apr 2019 08:01:03 +0000 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=9BEpM5Gvyvd4udCA+glYkPWMTJCgvlXeRuBegEu1lKo=; b=SNGO69hQE55nUj7jA/Zvn61DSUs+8kjWx3AzLpr8wXajyDAs3FSPM3SF1RyBC5YSMJ naL5iOq4NG7jlGFqZzC0mwDLRP9EGisSKsMcSPlzRvgq5SeWUQdIM7ekpA9Cx3K/U1ws coWSYoLZgy7EXSayIz8IIbeOwn5Ec0F0tEkA/MB3gIIiSyoTNNf0L4zseV4CHPLqlFvm 8TPN4lQxo1Aq84fLD/teOn+732IhdGUz0XiyvHzasjiaLOaLdBPPtodWE4lwV/wV5xJ6 iGP5ApNNQjijSlc/2aPb27sIzo0/Ha2W5koWk/IuNiipw7BWvHBCJ4mPpm47qYmxnY93 PwBw== X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-sunxi@googlegroups.com, =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= , linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Add the mali gpu node to the H6 device-tree. Signed-off-by: Clément Péron --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 80 ++++++++++++++++++++ 1 file changed, 80 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi index e0dc4a05c1ba..152b2128aadf 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi @@ -17,6 +17,71 @@ #address-cells = <1>; #size-cells = <1>; + gpu_opp_table: opp_table1 { + compatible = "operating-points-v2"; + + opp@756000000 { + opp-hz = /bits/ 64 <756000000>; + opp-microvolt = <1040000>; + }; + opp@624000000 { + opp-hz = /bits/ 64 <624000000>; + opp-microvolt = <950000>; + }; + opp@576000000 { + opp-hz = /bits/ 64 <576000000>; + opp-microvolt = <930000>; + }; + opp@540000000 { + opp-hz = /bits/ 64 <540000000>; + opp-microvolt = <910000>; + }; + opp@504000000 { + opp-hz = /bits/ 64 <504000000>; + opp-microvolt = <890000>; + }; + opp@456000000 { + opp-hz = /bits/ 64 <456000000>; + opp-microvolt = <870000>; + }; + opp@432000000 { + opp-hz = /bits/ 64 <432000000>; + opp-microvolt = <860000>; + }; + opp@420000000 { + opp-hz = /bits/ 64 <420000000>; + opp-microvolt = <850000>; + }; + opp@408000000 { + opp-hz = /bits/ 64 <408000000>; + opp-microvolt = <840000>; + }; + opp@384000000 { + opp-hz = /bits/ 64 <384000000>; + opp-microvolt = <830000>; + }; + opp@360000000 { + opp-hz = /bits/ 64 <360000000>; + opp-microvolt = <820000>; + }; + opp@336000000 { + opp-hz = /bits/ 64 <336000000>; + opp-microvolt = <810000>; + }; + opp@312000000 { + opp-hz = /bits/ 64 <312000000>; + opp-microvolt = <810000>; + }; + opp@264000000 { + opp-hz = /bits/ 64 <264000000>; + opp-microvolt = <810000>; + }; + opp@216000000 { + opp-hz = /bits/ 64 <216000000>; + opp-microvolt = <810000>; + }; + }; + cpus { #address-cells = <1>; #size-cells = <0>; @@ -157,6 +222,21 @@ allwinner,sram = <&ve_sram 1>; }; + gpu: gpu@1800000 { + compatible = "allwinner,sun50i-h6-mali", + "arm,mali-t720"; + reg = <0x01800000 0x4000>; + interrupts = , + , + ; + interrupt-names = "job", "mmu", "gpu"; + clocks = <&ccu CLK_GPU>, <&ccu CLK_BUS_GPU>; + clock-names = "core", "bus"; + resets = <&ccu RST_BUS_GPU>; + operating-points-v2 = <&gpu_opp_table>; + status = "disabled"; + }; + syscon: syscon@3000000 { compatible = "allwinner,sun50i-h6-system-control", "allwinner,sun50i-a64-system-control";