From patchwork Tue Oct 23 16:12:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10653371 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 323C414DE for ; Tue, 23 Oct 2018 16:12:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1EB4129F07 for ; Tue, 23 Oct 2018 16:12:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0D36F29F0D; Tue, 23 Oct 2018 16:12:42 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0477D29F07 for ; Tue, 23 Oct 2018 16:12:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Sk+8JOd8PZVnxK06TiEIJg6aduD2g8nnz2YS4TCLM8U=; b=P9otnStD9yt2Xj yH1jj4kxu6Mc1FcaRATbk6kptmBfeN0nVPOE7FBTot4SPXsf1mEc1efmzlt3WWBZNRWo1HnVBeoUb XqD9pzrAxHv+50Z+pUgfuHaCvSh2WwhNOn3QDfjdgzXVy+PVYeiF6je08dW8FBmu2GgIJNEK7hO0P wi5olQXfkSUbWiDxa4zocMryxWdi+vd6Z7fqBODQ7FwatCA8SLMEk9Ty9ZNE7yECTJ1cab2unDjEj iA6l1MXc9UoFMPYlaY7LcSfr4vV6LnAgsCCNd4GBfLmaFcr4vnUrrs81Zl3OjCN7lP8d3mX6UCX+l eC5QUy0SHTDW0DKyhRSg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gEzIG-0007Cz-4k; Tue, 23 Oct 2018 16:12:32 +0000 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gEzIB-0007Bu-5X for linux-arm-kernel@lists.infradead.org; Tue, 23 Oct 2018 16:12:29 +0000 Received: by mail-pg1-x544.google.com with SMTP id w3-v6so874573pgs.11 for ; Tue, 23 Oct 2018 09:12:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1i2lznVyglXGUJdFbyOeaEkfvd6J8yKfE652P5VFc1U=; b=MQ2Wig8y8nsZc8ub8dy2kA61PJ5KOBypJ+sIhKmOvBfNE6cDiR3D0X1/rTel7pg3wT 99lXS1kyLWteGQWnQyr36DMEIl4J42/7WTN651LPxRQf3gpxLpyertp6l2H9M8FjXHDA DRrFUDA3bukw6atwYxAsuWzZzWVbbvMl0PYpQ= 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:mime-version :content-transfer-encoding; bh=1i2lznVyglXGUJdFbyOeaEkfvd6J8yKfE652P5VFc1U=; b=LfAlj2JH5XLl/oZPyHYQZZP0RGo/BeLNuWviaoo2jfM1LzQX+KGPYz07QiQlvmUoN3 gtaAvPQcZCxbPKrjPo9Xq1vghPmS46XfStwI8U278zleYE1nNpLTlwJQ49XU5qeBb8/4 VERipdA+t/ojuxrMlV7znMPlWENh6FjdchuLbCttXXkXrGPB+ooyz3ecCti3tbWeG/LI dmXOq49UyrUnUbFvzNUspFOJ2adffpTavwCn/q5vvDUSXQGNcLLRiwFp1gM5vJB0teit 65f9D42dl95B6je6lBu8w42ATQpxfwv/HiJpVvpAYEGcdE8ip44XWK8/DzwPgSy7tNtM N9yg== X-Gm-Message-State: AGRZ1gK2iysps2WTTMsyTEaeeEq9WQ84Yvn9QXwcf7AEDJgopJUmkaju 7hfZ2MgDLdq5Nl9l9I1TL5S8aw== X-Google-Smtp-Source: AJdET5ei1Xh0Jr57Y+8ahXuHjX6PvN6g8BqGc0gI9s0LlKHMFabDUapOsDuZyA4D6J8QFTQgYMIF6Q== X-Received: by 2002:a63:314c:: with SMTP id x73mr7782810pgx.323.1540311136170; Tue, 23 Oct 2018 09:12:16 -0700 (PDT) Received: from localhost.localdomain ([27.7.51.1]) by smtp.gmail.com with ESMTPSA id u21-v6sm2771449pfa.176.2018.10.23.09.12.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Oct 2018 09:12:15 -0700 (PDT) From: Jagan Teki To: Maxime Ripard , Chen-Yu Tsai , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Subject: [PATCH] arm64: dts: allwinner: a64: Add device node for Mali-400 GPU Date: Tue, 23 Oct 2018 21:42:03 +0530 Message-Id: <20181023161203.2956-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181023_091227_376264_0BD2765E X-CRM114-Status: GOOD ( 12.81 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jagan Teki Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add support for Allwinner A64 has Mali-400MP2. All interrupt lines are mentioned in the manual so used the same. Used 408MHz as assigned clock rate used by BSP, so used the same as well. Signed-off-by: Jagan Teki --- Note: - Modules was able to load it on 4.19. .../bindings/gpu/arm,mali-utgard.txt | 1 + arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 25 +++++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-utgard.txt b/Documentation/devicetree/bindings/gpu/arm,mali-utgard.txt index 63cd91176a68..a0ee62a5b221 100644 --- a/Documentation/devicetree/bindings/gpu/arm,mali-utgard.txt +++ b/Documentation/devicetree/bindings/gpu/arm,mali-utgard.txt @@ -11,6 +11,7 @@ Required properties: + allwinner,sun4i-a10-mali + allwinner,sun7i-a20-mali + allwinner,sun8i-h3-mali + + allwinner,sun50i-a64-mali + allwinner,sun50i-h5-mali + amlogic,meson-gxbb-mali + amlogic,meson-gxl-mali diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index f82e6b165d57..2db3aa151902 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -812,6 +812,31 @@ }; }; + mali: gpu@1c40000 { + compatible = "allwinner,sun50i-a64-mali", "arm,mali-400"; + reg = <0x01c40000 0x10000>; + interrupts = , + , + , + , + , + , + ; + interrupt-names = "gp", + "gpmmu", + "pp0", + "ppmmu0", + "pp1", + "ppmmu1", + "pmu"; + clocks = <&ccu CLK_BUS_GPU>, <&ccu CLK_GPU>; + clock-names = "bus", "core"; + resets = <&ccu RST_BUS_GPU>; + + assigned-clocks = <&ccu CLK_GPU>; + assigned-clock-rates = <408000000>; + }; + gic: interrupt-controller@1c81000 { compatible = "arm,gic-400"; reg = <0x01c81000 0x1000>,