From patchwork Wed Nov 14 04:28:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10682069 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 E25BA139B for ; Wed, 14 Nov 2018 08:17:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D98672AA63 for ; Wed, 14 Nov 2018 08:17:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CDDAF2B1A2; Wed, 14 Nov 2018 08:17:16 +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,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham 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 8E77D2AA63 for ; Wed, 14 Nov 2018 08:17:16 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7493D6E4C6; Wed, 14 Nov 2018 08:16:46 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by gabe.freedesktop.org (Postfix) with ESMTPS id 38B216E47E for ; Wed, 14 Nov 2018 04:28:56 +0000 (UTC) Received: by mail-pf1-x443.google.com with SMTP id s9-v6so7206716pfm.13 for ; Tue, 13 Nov 2018 20:28:56 -0800 (PST) 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=9T7qgvlLODeLc6ErlpcQegOzVpV+3/1/QmgVN1XI0tE=; b=A5UvLdEntrvI6XLkt5Awm9/rraLzcCMSt7dZ537ptlgrR67tlsoqfzLo8aMWkTvrUL HkQBO633L8Ndh/UEnXfKck0DEknqgpz86e4nQRr5I0Dt6qYbqj4ZXS5x6tvxNcztQIda eu+8T24C8BPWDbDTTQrxoC9jE00SuLLQP8tCO1Fj4h7FmBUVZoxThyS0VNByY1IIqSYg X7H87uURsDIHWy0YzAuWTGfmSTVGzSYOJs1FzR4gTSMub3lzQOaTXHdpvmlEyQXixwvB rB4Z5Os89y/oxL42aovgN3jY97zprzdT6PIU6IHA2Iklp6+4cbrY/DvP4UoDmQ8xGVhS B2EQ== X-Gm-Message-State: AGRZ1gIjrSJTpbx9jifMjVlssDTAircAYQ5myvlpraR2IB46LB4i/Xyl Sc0XfjlLRxPBOmDeP37PG+Eqfg== X-Google-Smtp-Source: AJdET5cowqRpL20/4sz2WhtObRymNiisAV3NVM5VQeoKMm4jJUZS6+ZIRezTQMpxcnE0q+R0MsxpVg== X-Received: by 2002:a63:31d0:: with SMTP id x199mr371980pgx.10.1542169735605; Tue, 13 Nov 2018 20:28:55 -0800 (PST) Received: from localhost.localdomain ([115.97.190.86]) by smtp.gmail.com with ESMTPSA id d24-v6sm37131140pfe.40.2018.11.13.20.28.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Nov 2018 20:28:55 -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 v3 1/2] dt-bindings: gpu: mali-utgard: Add compatible for A64 Mali Date: Wed, 14 Nov 2018 09:58:36 +0530 Message-Id: <20181114042837.15149-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 MIME-Version: 1.0 X-Mailman-Approved-At: Wed, 14 Nov 2018 08:16:04 +0000 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: Jagan Teki Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Allwinner A64 has Mali-400MP2, so document the relevant compatible as "allwinner,sun50i-a64-mali" along with reset line. Signed-off-by: Jagan Teki --- Changes for v3: - document reset line Changes for v2: - New patch, separated from previous version patch. Documentation/devicetree/bindings/gpu/arm,mali-utgard.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-utgard.txt b/Documentation/devicetree/bindings/gpu/arm,mali-utgard.txt index 63cd91176a68..3f128e4f95c6 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 @@ -73,6 +74,10 @@ to specify one more vendor-specific compatible, among: Required properties: * resets: phandle to the reset line for the GPU + - allwinner,sun50i-a64-mali + Required properties: + * resets: phandle to the reset line for the GPU + - allwinner,sun50i-h5-mali Required properties: * resets: phandle to the reset line for the GPU From patchwork Wed Nov 14 04:28:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10682087 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 308681747 for ; Wed, 14 Nov 2018 08:17:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 284CD2AA63 for ; Wed, 14 Nov 2018 08:17:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1C9112B1A2; Wed, 14 Nov 2018 08:17:36 +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,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham 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 CE5342AA63 for ; Wed, 14 Nov 2018 08:17:35 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 081896E4C4; Wed, 14 Nov 2018 08:16:46 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by gabe.freedesktop.org (Postfix) with ESMTPS id 96E9D6E489 for ; Wed, 14 Nov 2018 04:29:00 +0000 (UTC) Received: by mail-pf1-x442.google.com with SMTP id g7-v6so7216889pfo.10 for ; Tue, 13 Nov 2018 20:29:00 -0800 (PST) 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=MypUWzP/rb2MviOvNidl9IcL4F5bL7yyZ76plr/l33I=; b=IGF1mU1Fnm5QzZVKfc+HlL5SRGpaLHwRSC6idgBw903vRT261A3TMftENWf51LWtvl 8Z4tSYp2AKI0hqML5PNQ/rrBfYUAUcz4UrW0vqGlw2rXWjOdswBZV6wc4fE2Sf4l3lF9 LlrHZ9tI+rMLqrcP61iVHW1/b4Ss25g0UsUxQr00XWIQu6QMPDEQ8j2OJrYD5h15JBga xLAzCgjoqErRDREWXWy9fD3gObATAsRFfVWeQ3G5YSF511s27Qh5V6Z9FeFDhOG94EDh G7iL5UA7nBLIVfJLBSRujiPBz6MJC+SfB2E7Pt8guXMaoZwdX2BWZXHNpahdzdw63dUG GUsg== X-Gm-Message-State: AGRZ1gILb1mvQTBGiMdcXXL+Xnmrylj9VvTX0/Nx0pc4psaBrftlfHN7 xMksEA7PPzK6O+vAvNZGAhmcZA== X-Google-Smtp-Source: AJdET5f/QwHjfyDQvZ8NmgC+5FAxODbYqpNcgMVfotK6Hd298eoCEpPEdSP88CQtOklSlb18KiLoqA== X-Received: by 2002:a62:4587:: with SMTP id n7mr406165pfi.118.1542169740155; Tue, 13 Nov 2018 20:29:00 -0800 (PST) Received: from localhost.localdomain ([115.97.190.86]) by smtp.gmail.com with ESMTPSA id d24-v6sm37131140pfe.40.2018.11.13.20.28.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Nov 2018 20:28:59 -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 v3 2/2] arm64: dts: allwinner: a64: Add device node for Mali-400 GPU Date: Wed, 14 Nov 2018 09:58:37 +0530 Message-Id: <20181114042837.15149-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181114042837.15149-1-jagan@amarulasolutions.com> References: <20181114042837.15149-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Mailman-Approved-At: Wed, 14 Nov 2018 08:16:04 +0000 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: Jagan Teki Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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. Signed-off-by: Jagan Teki --- Changes for v3: - Clean commit message 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>,