From patchwork Tue Nov 13 12:00:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10680409 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 AED4E14DB for ; Tue, 13 Nov 2018 12:01:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9BF2F29FBF for ; Tue, 13 Nov 2018 12:01:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8C7FD2A002; Tue, 13 Nov 2018 12:01:40 +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=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW 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 4DA6029FBF for ; Tue, 13 Nov 2018 12:01:39 +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:References:In-Reply-To: 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: List-Owner; bh=bZTEiGWcWmngIP/Lyc9o/z1Ew8+kxtoYJ8+ysF/gu6o=; b=aplRBbdpp+nVHN ImfYlnEyQlSrP0Syn8fP5OiToO9Zu/XyRnaRL2g9nmpad1F9bLnC2dp3MdIVPKHDYT8LNy6RgqAx5 QzmBoMLI3eOiye9BILzai9sIuXy19dfxemnb7KJRDi6fJL496B5NPhKyNNVjl5iN+a/ogieWNmdAV Ec39LTqfRViaZPBirgDFGYSpzX1/WcY2gNjMjbeWku5w9sch1KfDseH0VXEPRm8zM/+6jOl5U8FCZ b9IKY6f/eitqvbi6wgrE3Ii8lKdHe8X3OYPsM+ILMlekbQLZnSu9KBTRlPL5ECQZTq7iupBuuPyrW 3iO3oQ9zLFOk7AOC6WSw==; 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 1gMXNv-00060k-Pu; Tue, 13 Nov 2018 12:01:35 +0000 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gMXNf-0005of-VM for linux-arm-kernel@lists.infradead.org; Tue, 13 Nov 2018 12:01:22 +0000 Received: by mail-pg1-x542.google.com with SMTP id d72so2147536pga.9 for ; Tue, 13 Nov 2018 04:01:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=s3gRYHT8FKG6ENi+N4NoaSa/TEH6QZAoYAGxS/97DJA=; b=eMrkOmeQdFndhYuXbN0GYk8cHj9GvETZgA6MzK5zvOcMDWKba5BQnxZy/+fsfw5jX9 NWFgDUQ6SlxzJcZISafOszvc4oihx//h6bjMCXb9SwpT9xbVrITj5O9QzE7hHkFzYulw geP5jnjTA3rEbAnXb8dSZMso0G5DcewdEAMCU= 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=s3gRYHT8FKG6ENi+N4NoaSa/TEH6QZAoYAGxS/97DJA=; b=pRuF2NLKGa6tCS0Y60n/EUUreXmMiKaIpuZ1sFBpbxIqfmekmSEMZh/rQGyh3CquI/ +utJld9iBz2AUilg0acnxZjnovO4cvH2Nv/pWo2y43sKQIordnL0LlRwPmeuEmAWcFUj uCsBsE4Y9yuHUB5wgulRFBd1ueIRSjoo0Bev1hFFMJm8cgMvN2NH+NTkXUOlL4V7fg6f pu5sA1anogmJFPdURQFVT/kLLow6pbupQI9wOAgI5jPKgd0vkXyPFkQC0vuYjbsaswMD 5QAusvzXa3kQ0f+7S/6kWi3RZfFwkniqOR7v81mSXn/5R3jigd3BiteqvoHdGEbth2Z6 8NOg== X-Gm-Message-State: AGRZ1gIYPSL8ICssh6sYEmLOhc1/lwwFDrdfvMhjxs7/zbPH5DSkoy5E G59Zxbwc7XFUJZTCttjvzso+6w== X-Google-Smtp-Source: AJdET5fMbsmhYlN0kvhApAR/rJ3y8eK0/dOn0rsv5wPQKn8bdoK3YeaLPNZVlEa5Q0TWDSxoAAltqA== X-Received: by 2002:a62:2095:: with SMTP id m21-v6mr1876669pfj.32.1542110475445; Tue, 13 Nov 2018 04:01:15 -0800 (PST) Received: from localhost.localdomain ([2401:4900:3670:3f11:bc71:2ef7:4a39:e260]) by smtp.gmail.com with ESMTPSA id 74sm21826267pgh.82.2018.11.13.04.01.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Nov 2018 04:01:14 -0800 (PST) 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, dri-devel@lists.freedesktop.org, David Airlie , Rob Herring , linux-amarula@amarulasolutions.com Subject: [PATCH v2 2/2] arm64: dts: allwinner: a64: Add device node for Mali-400 GPU Date: Tue, 13 Nov 2018 17:30:54 +0530 Message-Id: <20181113120054.17639-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181113120054.17639-1-jagan@amarulasolutions.com> References: <20181113120054.17639-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181113_040120_028157_3546714C X-CRM114-Status: GOOD ( 12.88 ) 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 --- Changes for v2: - Drop assigned clock properties - Separate dt-bindings as separate patch. arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index d6f269883759..d507be9879d8 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -813,6 +813,28 @@ }; }; + 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>; + }; + gic: interrupt-controller@1c81000 { compatible = "arm,gic-400"; reg = <0x01c81000 0x1000>,