From patchwork Tue Nov 13 12:00:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10680415 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 1791C14DB for ; Tue, 13 Nov 2018 12:02:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 06A0929FF2 for ; Tue, 13 Nov 2018 12:02:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EEDA02A00A; Tue, 13 Nov 2018 12:01:59 +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 AA55D29FF2 for ; Tue, 13 Nov 2018 12:01:59 +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=Rj02/HgpvUKn7y0aeJ/aOtwJ++yCx6o5P0ajSFI3YYI=; b=D1Y+r23lSkeghp MPx6usujcyNf4TGuzA4B5U8Fs/4xLSZW1SrYQ99C7Q2WiO/wKjB6J4uPuuGyM/Vb6jqsnF3l6K7l3 SM3LvMtiPKJgaypS0Lm5qWfNVB01xWon7L7iDaSn95u/wUmkNXbclN6FcFLn2CR5XjXbxyQItnU0M lD8cgGv/lsO7zbOwgOrvWjIKCkKhf86+vokx80W+R7mFekUD0lfP7AdM5P96uFsSUK1Q9DI5b6VAi pgRzrSpl5M7M9NlCWQEZhkXA/W7JAWwzGYxDRgyN7cCH2DE7kaHH6a3OlCQsvPB6Ijd0QeR1ozKWT ItRRW6aIT6fjKIUTSXhw==; 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 1gMXO8-0006Cj-0u; Tue, 13 Nov 2018 12:01:48 +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-0005o0-VS for linux-arm-kernel@lists.infradead.org; Tue, 13 Nov 2018 12:01:23 +0000 Received: by mail-pg1-x542.google.com with SMTP id f8-v6so5586989pgq.5 for ; Tue, 13 Nov 2018 04:01:09 -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:mime-version :content-transfer-encoding; bh=0GyIfuQ7O8QNBQ656omiyFVK2J89TEtJq5hYrjzMWEg=; b=LkT5lEnVHcOFaDAJfglvEfavnnUpmHXHITyiCyhJZMAj4vVDEBz8JLK2YEEo8sLcUt bypyWUyCiPmVwvaXKFucehxlDrtfDXEcV+M/8cKMfh+tVYdYgjkYjm5eS/jqJIbSyxn7 RfCtxAHJxfHSiDl0tvrxZ0//5hIVUfDEZSzv8= 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=0GyIfuQ7O8QNBQ656omiyFVK2J89TEtJq5hYrjzMWEg=; b=i+6iYGhf97Wl3pB7PUWetkcMjWmITYQFxq7jBcXJrCiZQnD+koKSL5bgLJ+2kjaMLz PbOpfem+AJw/ZpuBiJie03ro5Cv5PZuaIw6eCBmpYN8hk6DlrfBJ6fhrfrQx6V6Uefe0 I81a2mIMgvV4ITypQGQOwbcVoO6p1EKbRyoKGOiEDqICXDxcBhz3cosrlzRILGd0N1F7 VVFEBfWmBAA7DthffwFaWfrs8ywHdp42LZBrf0/RdSRv8i4mb4EB97qinjoKvxEaM1jd OI6mfv8mV83Tyq0pHORUEm9VNZZvRV0WNaI7acfvVJXzbHRxaW0P1HE/WSOZ3zX+nPqr OwjQ== X-Gm-Message-State: AGRZ1gJGD8/SYrXlS2UZ36tVqdpCpLGRUF7LlPRC9PNP+d4oA8b3or07 qSJ0F1l+LZ63E+G2lD+rCQJGCQ== X-Google-Smtp-Source: AJdET5da4x37mn00WuEQmErD5lV/1rV6L4jeNGC79wSg0EjfeoLGgWoSZ2NiNcLE79xoDVM57KXObQ== X-Received: by 2002:a63:2946:: with SMTP id p67mr4532163pgp.317.1542110469221; Tue, 13 Nov 2018 04:01:09 -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.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Nov 2018 04:01:08 -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 1/2] dt-bindings: gpu: mali-utgard: Add compatible for A64 Mali Date: Tue, 13 Nov 2018 17:30:53 +0530 Message-Id: <20181113120054.17639-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-20181113_040120_036912_AEB5B1EC X-CRM114-Status: GOOD ( 11.69 ) 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 Allwinner A64 has Mali-400MP2, so document the relevant compatible as "allwinner,sun50i-a64-mali" Signed-off-by: Jagan Teki --- Changes for v2: - New patch, separated from previous version patch. Documentation/devicetree/bindings/gpu/arm,mali-utgard.txt | 1 + 1 file changed, 1 insertion(+) 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 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>,