From patchwork Thu Jul 25 08:34:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guillaume Gardet X-Patchwork-Id: 11058233 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 AFE9713AC for ; Thu, 25 Jul 2019 08:35:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9F768287FB for ; Thu, 25 Jul 2019 08:35:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 934C128931; Thu, 25 Jul 2019 08:35:09 +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,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=unavailable 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 03995287FB for ; Thu, 25 Jul 2019 08:35:08 +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=xq7c0XWeziOWw6ISGytaiBxzGm1/aWvm+BOdxyD3iXU=; b=uK8XHn2EKnwPNz h5pv0u7gV+81fRfsm/QCoyXAMTIiW1LI42j6XoHf4efjFCmpu+uDCZRb3mjkv7NiP9U4cckC7b9yx dhEzgJUcs16qs7xQYVgou09uBo+H4zZ21oANIZc/Hgg684bkTkpuA7iCPpnl2QHFnF/y6lkGJp6q+ bxN+qvv/p0dXYQAxLi3SHALxfraIcBPCQwDPCPZwAAeLhx2Xn4mbma2z8/EcC9eR2Clt5V7puQPGW gFSiqq4nRZAoR8gcBc1s5wfrhtlpWIovOBUAo/FsLu9JXPu0r/ViGIEVE3/+ibr/cZ72W/GqtSRWP poIKA4MYcglEcxQtLcXg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hqZDI-0003Sb-St; Thu, 25 Jul 2019 08:35:00 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hqZDF-0003Ry-QA for linux-arm-kernel@lists.infradead.org; Thu, 25 Jul 2019 08:34:59 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5B0CE344; Thu, 25 Jul 2019 01:34:54 -0700 (PDT) Received: from localhost.localdomain (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 7006F3F694; Thu, 25 Jul 2019 01:34:53 -0700 (PDT) From: Guillaume To: linux-samsung-soc@vger.kernel.org Subject: [PATCH V2 1/2] arm: dts: exynos: Add GPU/Mali T604 node to exynos5250 Date: Thu, 25 Jul 2019 10:34:32 +0200 Message-Id: <20190725083433.6505-1-guillaume.gardet@arm.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190724072008.6272-1-guillaume.gardet@free.fr> References: <20190724072008.6272-1-guillaume.gardet@free.fr> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190725_013457_899405_1DF2659D X-CRM114-Status: GOOD ( 10.00 ) 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: , Cc: Kukjin Kim , linux-arm-kernel@lists.infradead.org, Krzysztof Kozlowski , Guillaume GARDET 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 From: Guillaume GARDET Add nodes for GPU (Mali T604) to Exynos5250. Tested with kmscube and glmark2-es2-drm on Chromebook snow. Load tested on arndale board. Signed-off-by: Guillaume GARDET Cc: Kukjin Kim Cc: Krzysztof Kozlowski Cc: linux-arm-kernel@lists.infradead.org --- V2 changes: * move mali node as /soc sub-node * move gpu_opp_table as mali sub-node * minor style updates * test on arndale board * enable by default * add dt bindings, in a separate patch arch/arm/boot/dts/exynos5250.dtsi | 47 +++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi index d5e0392b409e..f7f34d469bde 100644 --- a/arch/arm/boot/dts/exynos5250.dtsi +++ b/arch/arm/boot/dts/exynos5250.dtsi @@ -328,6 +328,52 @@ iommus = <&sysmmu_rotator>; }; + mali: gpu@11800000 { + compatible = "samsung,exynos5250-mali", "arm,mali-t604"; + reg = <0x11800000 0x5000>; + interrupts = , + , + ; + interrupt-names = "job", "mmu", "gpu"; + clocks = <&clock CLK_G3D>; + clock-names = "g3d"; + operating-points-v2 = <&gpu_opp_table>; + power-domains = <&pd_g3d>; + + gpu_opp_table: gpu-opp-table { + compatible = "operating-points-v2"; + + opp-100000000 { + opp-hz = /bits/ 64 <100000000>; + opp-microvolt = <925000>; + }; + opp-160000000 { + opp-hz = /bits/ 64 <160000000>; + opp-microvolt = <925000>; + }; + opp-266000000 { + opp-hz = /bits/ 64 <266000000>; + opp-microvolt = <1025000>; + }; + opp-350000000 { + opp-hz = /bits/ 64 <350000000>; + opp-microvolt = <1075000>; + }; + opp-400000000 { + opp-hz = /bits/ 64 <400000000>; + opp-microvolt = <1125000>; + }; + opp-450000000 { + opp-hz = /bits/ 64 <450000000>; + opp-microvolt = <1150000>; + }; + opp-533000000 { + opp-hz = /bits/ 64 <533000000>; + opp-microvolt = <1250000>; + }; + }; + }; + tmu: tmu@10060000 { compatible = "samsung,exynos5250-tmu"; reg = <0x10060000 0x100>; From patchwork Thu Jul 25 08:34:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guillaume Gardet X-Patchwork-Id: 11058237 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 384FA112C for ; Thu, 25 Jul 2019 08:35:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 26263287FB for ; Thu, 25 Jul 2019 08:35:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1A63128931; Thu, 25 Jul 2019 08:35:26 +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,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 BA115288C5 for ; Thu, 25 Jul 2019 08:35:25 +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=5IiBq0LMSWP1qSKqEHHr9VqPiOotW4v9ejw5DCZe8Y4=; b=f2qXovVZmfnZYA /lHEnd31rITLPES8BV4poYWQT1pZ76tpy/tZyi+EftqBDyCH7s2+EvQwAiG0d0IwZ0eD4qP3ZAbIs LvKQlMNVb2wei4EnUefaYpw3gdb0RmLSXe6xwA1Vdv4AVy+LETOCjqJ64qYefm8dQFqDuVFtOJHZa FwIrGF7bHs5Q6T5NlscO4PfGcvHs8z+kNS1cYOXMHKxZRSlzi9TWJxIokyhMyHMftSK7LMW4IEW0Z 5i7KCPOmtapt5bGCqgY8KQH9pVgHk3tn2OlYxrOFAmoQR5JnAW5GV+sEqvp7dWuQ940m0yCL8H0Iz 592I5v7bDQ4wX74N7q6A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hqZDc-0004ur-So; Thu, 25 Jul 2019 08:35:20 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hqZDH-0003S3-9p for linux-arm-kernel@lists.infradead.org; Thu, 25 Jul 2019 08:35:00 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5A1F9152D; Thu, 25 Jul 2019 01:34:57 -0700 (PDT) Received: from localhost.localdomain (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 68BA53F694; Thu, 25 Jul 2019 01:34:56 -0700 (PDT) From: Guillaume To: linux-samsung-soc@vger.kernel.org Subject: [PATCH V2 2/2] dt-bindings: gpu: mali-midgard: Add samsung exynos5250 compatible Date: Thu, 25 Jul 2019 10:34:33 +0200 Message-Id: <20190725083433.6505-2-guillaume.gardet@arm.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190725083433.6505-1-guillaume.gardet@arm.com> References: <20190724072008.6272-1-guillaume.gardet@free.fr> <20190725083433.6505-1-guillaume.gardet@arm.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190725_013459_388060_A5D300B4 X-CRM114-Status: UNSURE ( 9.91 ) 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: , Cc: Kukjin Kim , linux-arm-kernel@lists.infradead.org, Krzysztof Kozlowski , Guillaume GARDET 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 From: Guillaume GARDET Add "samsung,exynos5250-mali" binding. Signed-off-by: Guillaume GARDET Cc: Kukjin Kim Cc: Krzysztof Kozlowski Cc: linux-arm-kernel@lists.infradead.org --- V2 changes: new patch for V2 serie Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt b/Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt index 9b298edec5b2..bdd1396d9cc3 100644 --- a/Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt +++ b/Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt @@ -17,6 +17,7 @@ Required properties: * which must be preceded by one of the following vendor specifics: + "allwinner,sun50i-h6-mali" + "amlogic,meson-gxm-mali" + + "samsung,exynos5250-mali" + "samsung,exynos5433-mali" + "rockchip,rk3288-mali" + "rockchip,rk3399-mali"