* [PATCH] ARC: [plat-hsdk]: Add support of Vivante GPU
@ 2019-01-29 12:41 Eugeniy Paltsev
2019-01-29 14:18 ` Lucas Stach
0 siblings, 1 reply; 2+ messages in thread
From: Eugeniy Paltsev @ 2019-01-29 12:41 UTC (permalink / raw)
To: linux-snps-arc, Vineet Gupta
Cc: linux-kernel, Alexey Brodkin, Rob Herring, devicetree,
Lucas Stach, Eugeniy Paltsev
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 <Eugeniy.Paltsev@synopsys.com>
---
NOTE:
* this patch has prerequisite:
https://patchwork.kernel.org/patch/10766265/
arch/arc/boot/dts/hsdk.dts | 6 ++++++
arch/arc/configs/hsdk_defconfig | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/arch/arc/boot/dts/hsdk.dts b/arch/arc/boot/dts/hsdk.dts
index 43f17b51ee89..ef892994f024 100644
--- a/arch/arc/boot/dts/hsdk.dts
+++ b/arch/arc/boot/dts/hsdk.dts
@@ -237,6 +237,12 @@
reg = <0>;
};
};
+
+ gpu_3d: gpu@90000 {
+ compatible = "vivante,gc";
+ reg = <0x90000 0x4000>;
+ 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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ARC: [plat-hsdk]: Add support of Vivante GPU
2019-01-29 12:41 [PATCH] ARC: [plat-hsdk]: Add support of Vivante GPU Eugeniy Paltsev
@ 2019-01-29 14:18 ` Lucas Stach
0 siblings, 0 replies; 2+ messages in thread
From: Lucas Stach @ 2019-01-29 14:18 UTC (permalink / raw)
To: Eugeniy Paltsev, linux-snps-arc, Vineet Gupta
Cc: linux-kernel, Alexey Brodkin, Rob Herring, devicetree
Am Dienstag, den 29.01.2019, 15:41 +0300 schrieb Eugeniy Paltsev:
> 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 <Eugeniy.Paltsev@synopsys.com>
> ---
> NOTE:
> * this patch has prerequisite:
> https://patchwork.kernel.org/patch/10766265/
>
> arch/arc/boot/dts/hsdk.dts | 6 ++++++
> arch/arc/configs/hsdk_defconfig | 2 +-
> 2 files changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arc/boot/dts/hsdk.dts b/arch/arc/boot/dts/hsdk.dts
> index 43f17b51ee89..ef892994f024 100644
> --- a/arch/arc/boot/dts/hsdk.dts
> +++ b/arch/arc/boot/dts/hsdk.dts
> @@ -237,6 +237,12 @@
> > reg = <0>;
> > };
> > };
> +
> > > + gpu_3d: gpu@90000 {
> > + compatible = "vivante,gc";
> > + reg = <0x90000 0x4000>;
> + interrupts = <28>;
Really no clock inputs? While the driver does not enforce this due to
backward compatibility issues, the binding says that some of the clocks
are mandatory. So I would really like to see them hooked up here, even
if it's just fixed always-on clocks.
Regards,
Lucas
> + };
> > };
>
> > 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-01-29 14:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-29 12:41 [PATCH] ARC: [plat-hsdk]: Add support of Vivante GPU Eugeniy Paltsev
2019-01-29 14:18 ` Lucas Stach
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).