From patchwork Thu Feb 11 15:25:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yassine Oudjana X-Patchwork-Id: 12083525 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5FF22C433E9 for ; Thu, 11 Feb 2021 15:26:37 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1764E64D9A for ; Thu, 11 Feb 2021 15:26:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1764E64D9A Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=protonmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:Reply-To:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:From:To:Date: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=cllp7LxAN11bMgz1DuFJCfQVEkxEUnduOSdsizNDlmU=; b=doBIw6sWoSXfJmONL3H5Hfsdu3 TpcoJlv0euC98UESO4LTMNhR7tve7Zs7jgr2yOAoJMkum7IArlNOTdNBYKOTqdgWoLRSlOy67U5w6 YkahjBK5TBOg1dj6Ap8tOzLlwn8DaT/xAf1NTQlouLbCmjKPxKQUZRM7o6Gl80sHGDQDL3RZwsmBX OipHc8WzN3MBnbW5R7G/hPLodQR922YczdCfOxBy9O83Os2jzob4F1nnol0t1h/5mEOe5qAhE8Esc KeCItv6u2fKfB7CPZWIadTw7kDzIApd761UiGa86JJkRaE3GzzgASixRwMPPpA8Ms/gshIJHEHZgD fpHtYE6A==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1lADqV-0000P3-Mg; Thu, 11 Feb 2021 15:25:31 +0000 Received: from mail-40132.protonmail.ch ([185.70.40.132]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1lADqT-0000OS-3J for linux-arm-kernel@lists.infradead.org; Thu, 11 Feb 2021 15:25:30 +0000 Date: Thu, 11 Feb 2021 15:25:23 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1613057125; bh=9OryoUxmgqWAontORTfCdXDAEicngqdQmtwMbqTQWrI=; h=Date:To:From:Cc:Reply-To:Subject:From; b=AYAscctucsVgUolbpGWxfmiD5rfuNIZLvGRPlTBgQ1oqpVVC1lfn7x3tDKhAnkqlf 70k7p74TJBOCG6ESnGaGLX1F5e9jQ0kUUg81tiOJOALLM6p7pOqVYJtLsBsqeCgEV1 lYVjRYRKl3MC8sw65/ab1CsBibdpQAN80hHVWzQQ= To: "linux-arm-kernel@lists.infradead.org" From: Yassine Oudjana Subject: [PATCH v2] arm: dts: sun5i: Add GPU node Message-ID: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210211_102529_279457_165FD6C7 X-CRM114-Status: UNSURE ( 7.22 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Yassine Oudjana Cc: "devicetree@vger.kernel.org" , "jernej.skrabec@siol.net" , "linux-kernel@vger.kernel.org" , "mripard@kernel.org" , "wens@csie.org" , "robh+dt@kernel.org" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org sun5i has the same Mali 400 GPU as sun4i with the same interrupts, clocks and resets. Add node for it in dts. Signed-off-by: Yassine Oudjana --- arch/arm/boot/dts/sun5i.dtsi | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) -- 2.30.0 diff --git a/arch/arm/boot/dts/sun5i.dtsi b/arch/arm/boot/dts/sun5i.dtsi index c2b4fbf552a3..e21b4fe64cbe 100644 --- a/arch/arm/boot/dts/sun5i.dtsi +++ b/arch/arm/boot/dts/sun5i.dtsi @@ -726,6 +726,27 @@ i2c2: i2c@1c2b400 { #size-cells = <0>; }; + mali: gpu@1c40000 { + compatible = "allwinner,sun4i-a10-mali", "arm,mali-400"; + reg = <0x01c40000 0x10000>; + interrupts = <69>, + <70>, + <71>, + <72>, + <73>; + interrupt-names = "gp", + "gpmmu", + "pp0", + "ppmmu0", + "pmu"; + clocks = <&ccu CLK_AHB_GPU>, <&ccu CLK_GPU>; + clock-names = "bus", "core"; + resets = <&ccu RST_GPU>; + + assigned-clocks = <&ccu CLK_GPU>; + assigned-clock-rates = <384000000>; + }; + timer@1c60000 { compatible = "allwinner,sun5i-a13-hstimer"; reg = <0x01c60000 0x1000>;