From patchwork Fri Aug 30 10:44:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guillaume Gardet X-Patchwork-Id: 11123745 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 217921399 for ; Fri, 30 Aug 2019 10:46:05 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 009A821897 for ; Fri, 30 Aug 2019 10:46:05 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ZkVZUYzO" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 009A821897 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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=QJbBxFBYDsP9G/1JVtEgVaeYZrAQaXMu/i3BjIHqD4w=; b=ZkVZUYzONyAexd 8XwD0cTnvMonYN80Mlxck988vx1GY5JHvbVYJfzmdBUiTQlxZvY0aZEFHbkDUBy4X6cwNElPrv9K0 5XWN4xHairdHlZ1aw4/x2T7PPQ1TmFKCQZJc96Yw6ZLzcPRG4WGu4dRQAQMXWbXbMvPOe49BHe2iH dnc7i9xQO0XTVBZ3/mkDgeITU0T0Vv+S83ZEkLA8B4S3+I/HrWzEixY5MIXnV+EMO2v6sRxjvFxQF nHoJajYKF0zquIlSaHOtyM5pKJG8IoEHDn+h8fCht1Isr6Ym3Amt4Weqx0/LLdJFaLqLCjMjTY8fl Ibd2FLXwsdnNHTpbyIAw==; 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 1i3ePm-0003FM-Sy; Fri, 30 Aug 2019 10:45:58 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1i3ePJ-0002eS-NV for linux-arm-kernel@lists.infradead.org; Fri, 30 Aug 2019 10:45:31 +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 332741576; Fri, 30 Aug 2019 03:45:27 -0700 (PDT) Received: from localhost.localdomain (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 2A46D3F718; Fri, 30 Aug 2019 03:45:26 -0700 (PDT) From: Guillaume Gardet To: linux-samsung-soc@vger.kernel.org Subject: [PATCH V3 2/5] arm: dts: exynos: Add GPU/Mali T604 node to exynos5250 Date: Fri, 30 Aug 2019 12:44:59 +0200 Message-Id: <20190830104502.7128-3-guillaume.gardet@arm.com> X-Mailer: git-send-email 2.22.1 In-Reply-To: <20190830104502.7128-1-guillaume.gardet@arm.com> References: <20190725083433.6505-1-guillaume.gardet@arm.com> <20190830104502.7128-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-20190830_034529_803915_7C4EED4D X-CRM114-Status: UNSURE ( 9.37 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 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: Marek Szyprowski , 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 Add nodes for GPU (Mali T604) to Exynos5250. Signed-off-by: Guillaume Gardet Cc: Kukjin Kim Cc: Krzysztof Kozlowski Cc: Marek Szyprowski Cc: linux-arm-kernel@lists.infradead.org --- V3 changes: * change clock name from 'g3d' to 'core' * disable node by default in exynos5250.dtsi * move dt-bindings before node addition in device tree 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..05b4d8755cfa 100644 --- a/arch/arm/boot/dts/exynos5250.dtsi +++ b/arch/arm/boot/dts/exynos5250.dtsi @@ -328,6 +328,53 @@ 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 = "core"; + operating-points-v2 = <&gpu_opp_table>; + power-domains = <&pd_g3d>; + status = "disabled"; + + 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>;