Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp339776ima; Fri, 1 Feb 2019 04:14:48 -0800 (PST) X-Google-Smtp-Source: AHgI3IaFxErPWrDvROCj8O0MY4ODzc+atSmZ0+LiqiC7yYeYlOBmgJO7ntUfK2A7a94SoJFfpGsI X-Received: by 2002:a63:6984:: with SMTP id e126mr2001035pgc.143.1549023288335; Fri, 01 Feb 2019 04:14:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549023288; cv=none; d=google.com; s=arc-20160816; b=MUw9fqRO8HHvIET/c4YMQVrveOAkkJkwlMg8K2yxUbvXnp4jJlparvhfYoYy6jA0Z/ 96/RpIjQKNaFcwsDfU+jxoSk20K1UKMD/naRJlr3jxKcAwk3WdwGi88Zbijg0554FGnM znh+qdY4jAqeN8dLdxEwGxkywPCF6a/sqriISbAbIvtF72r2N3wwfsQQc0nyuutKvk0S /bJ34vHny6JVsT4ZTKd2g/nK8SVe5QtocuDMovOPPvX39QllmndpvQahVbu8HzTbO41Q ewYKHsVQkFt1/edC41ys4E/ouwEdpy/dX74bbdBh+/Gbhwe4iNe+QAUj6cAQXG6pDbHY Kl+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=AT9dUHlUfYc9lkuCwlS47Y0kKkBgHoWeZxa89MUtTrw=; b=izDZ41tAi6rgeBm6mHwn7TJbGtyokX9z95aFS0u/ZFZcqGG9WV8F00Gz40JqxHolC0 zxVXR7HRm8VN+fy9nza9UbJ7KQFZBcS23XhLglbpvcSbDI9Cim2tl0t9U78zxaL9I1mb wzCSsun23STjlqs1HCVTgD4QE4WyFnsNnc+1BXVLqpnktfymnbZVunrZAk0/sfDxIU8N gdCrMPtM00i3u59UV5OWt7S+5jmgdgRMKlFaBSUispJCgT9F2kBiJ6bx285kbvFQWXqM 3MaAeOvT12pA95I23iskX3xf5FDUP51oIrj0Tgg3iQ9LPVtTH3fZ7FD03MrePBjxKQeG +wKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=gHFlgPYz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u22si7148990pgh.286.2019.02.01.04.14.33; Fri, 01 Feb 2019 04:14:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=gHFlgPYz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727709AbfBAMMW (ORCPT + 99 others); Fri, 1 Feb 2019 07:12:22 -0500 Received: from us01smtprelay-2.synopsys.com ([198.182.60.111]:39330 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725857AbfBAMMV (ORCPT ); Fri, 1 Feb 2019 07:12:21 -0500 Received: from mailhost.synopsys.com (dc2-mailhost1.synopsys.com [10.12.135.161]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtprelay.synopsys.com (Postfix) with ESMTPS id 48DF210C1358; Fri, 1 Feb 2019 04:12:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1549023141; bh=fqROi6V+w4Wme87XQ0cMwRFlaq5JypspIoXi33wf73E=; h=From:To:Cc:Subject:Date:From; b=gHFlgPYzrvz+Cg2QiJLoeEohwDpAbjoii9wv95sH9atWiVKHtNT9DXvn0T8keAhTU cbShEGe/Hum5Z+nPQpLnfYz6QfrewWXwivtiytfcobLVelT4wLZhMsJo8Ny0kKhX1L pX+33MhSBoW9ETVPRQ0lX2YP9vY7sSEtK527hxId5TmEAR1XbDEI9aYFEDIoDEAcey 9PJ2q0Mfw5T+Y/M5aJmhkuIMjMHqFGmPofIb261XNEmSWzizWXbXC9SOJdpyAJZSk1 sB2ITSAtksUJdjko6/a3FD3gxdjgg0mDbymWSfITVE9UQWc3MH7Djr20e53RFoUCOx dBMCz5GkVtI4A== Received: from paltsev-e7480.internal.synopsys.com (unknown [10.121.8.46]) by mailhost.synopsys.com (Postfix) with ESMTP id D966BA0070; Fri, 1 Feb 2019 12:12:13 +0000 (UTC) From: Eugeniy Paltsev To: linux-snps-arc@lists.infradead.org, Vineet Gupta Cc: linux-kernel@vger.kernel.org, Alexey Brodkin , Rob Herring , devicetree@vger.kernel.org, Lucas Stach , Eugeniy Paltsev Subject: [PATCH v2] ARC: [plat-hsdk]: Add support of Vivante GPU Date: Fri, 1 Feb 2019 15:12:11 +0300 Message-Id: <20190201121211.23701-1-Eugeniy.Paltsev@synopsys.com> X-Mailer: git-send-email 2.14.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org HSDK board has built-in Vivante GPU IP which works perfectly fine with Etnaviv driver, so let's use it. Signed-off-by: Eugeniy Paltsev --- Changes v1->v2: * Add clock inputs to etnaviv device tree node (reported by Lucas Stach) arch/arc/boot/dts/hsdk.dts | 29 +++++++++++++++++++++++++++++ arch/arc/configs/hsdk_defconfig | 2 +- 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/arch/arc/boot/dts/hsdk.dts b/arch/arc/boot/dts/hsdk.dts index 43f17b51ee89..df86d0818db8 100644 --- a/arch/arc/boot/dts/hsdk.dts +++ b/arch/arc/boot/dts/hsdk.dts @@ -167,6 +167,24 @@ #clock-cells = <0>; }; + gpu_core_clk: gpu-core-clk { + compatible = "fixed-clock"; + clock-frequency = <400000000>; + #clock-cells = <0>; + }; + + gpu_dma_clk: gpu-dma-clk { + compatible = "fixed-clock"; + clock-frequency = <400000000>; + #clock-cells = <0>; + }; + + gpu_cfg_clk: gpu-cfg-clk { + compatible = "fixed-clock"; + clock-frequency = <200000000>; + #clock-cells = <0>; + }; + gmac: ethernet@8000 { #interrupt-cells = <1>; compatible = "snps,dwmac"; @@ -237,6 +255,17 @@ reg = <0>; }; }; + + gpu_3d: gpu@90000 { + compatible = "vivante,gc"; + reg = <0x90000 0x4000>; + clocks = <&gpu_dma_clk>, + <&gpu_cfg_clk>, + <&gpu_core_clk>, + <&gpu_core_clk>; + clock-names = "bus", "reg", "core", "shader"; + interrupts = <28>; + }; }; memory@80000000 { diff --git a/arch/arc/configs/hsdk_defconfig b/arch/arc/configs/hsdk_defconfig index 87b23b7fb781..915e1cca31f8 100644 --- a/arch/arc/configs/hsdk_defconfig +++ b/arch/arc/configs/hsdk_defconfig @@ -52,6 +52,7 @@ CONFIG_GPIO_DWAPB=y CONFIG_DRM=y # CONFIG_DRM_FBDEV_EMULATION is not set CONFIG_DRM_UDL=y +CONFIG_DRM_ETNAVIV=y CONFIG_FB=y CONFIG_FRAMEBUFFER_CONSOLE=y CONFIG_USB_EHCI_HCD=y @@ -63,7 +64,6 @@ CONFIG_MMC=y CONFIG_MMC_SDHCI=y CONFIG_MMC_SDHCI_PLTFM=y CONFIG_MMC_DW=y -# CONFIG_IOMMU_SUPPORT is not set CONFIG_EXT3_FS=y CONFIG_VFAT_FS=y CONFIG_TMPFS=y -- 2.14.5