Re: [PATCH v2] ARM: dts: imx6sl: Add vivante gpu nodes

2018-07-17 Thread Shawn Guo
On Fri, Jul 13, 2018 at 12:39:35PM +0300, Leonard Crestez wrote:
> The imx6sl soc has gpu_2d and gpu_vg, no 3d support:
> 
> etnaviv-gpu 220.gpu: model: GC320, revision: 5007
> etnaviv-gpu 2204000.gpu: model: GC355, revision: 1215
> 
> The IP blocks seem to be already supported.
> 
> Signed-off-by: Leonard Crestez 
> Reviewed-by: Lucas Stach 

Applied, thanks.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


Re: [PATCH v2] ARM: dts: imx6sl: Add vivante gpu nodes

2018-07-15 Thread Fabio Estevam
On Fri, Jul 13, 2018 at 6:39 AM, Leonard Crestez
 wrote:
> The imx6sl soc has gpu_2d and gpu_vg, no 3d support:
>
> etnaviv-gpu 220.gpu: model: GC320, revision: 5007
> etnaviv-gpu 2204000.gpu: model: GC355, revision: 1215
>
> The IP blocks seem to be already supported.
>
> Signed-off-by: Leonard Crestez 
> Reviewed-by: Lucas Stach 

Reviewed-by: Fabio Estevam 
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[PATCH v2] ARM: dts: imx6sl: Add vivante gpu nodes

2018-07-15 Thread Leonard Crestez
The imx6sl soc has gpu_2d and gpu_vg, no 3d support:

etnaviv-gpu 220.gpu: model: GC320, revision: 5007
etnaviv-gpu 2204000.gpu: model: GC355, revision: 1215

The IP blocks seem to be already supported.

Signed-off-by: Leonard Crestez 
Reviewed-by: Lucas Stach 

---
 arch/arm/boot/dts/imx6sl.dtsi | 20 
 1 file changed, 20 insertions(+)

Changes since v1:
 * Move nodes to the end of the file, sorting by address.

Link to v1: 
https://lists.freedesktop.org/archives/dri-devel/2018-July/183273.html

Tested by using yocto fsl community bsp built in "mainline" mode. This
patch makes x11 start up and turning on drm.debug shows that the etnaviv
driver is being used.

Patch is against shawguo/imx/dt, it depends on newly accepted
commit 13211eec7b0e ("ARM: dts: imx6sl: Convert gpc to new bindings")

diff --git a/arch/arm/boot/dts/imx6sl.dtsi b/arch/arm/boot/dts/imx6sl.dtsi
index a6bc21433839..84413725b722 100644
--- a/arch/arm/boot/dts/imx6sl.dtsi
+++ b/arch/arm/boot/dts/imx6sl.dtsi
@@ -946,7 +946,27 @@
compatible = "fsl,imx6sl-audmux", 
"fsl,imx31-audmux";
reg = <0x021d8000 0x4000>;
status = "disabled";
};
};
+
+   gpu_2d: gpu@220 {
+   compatible = "vivante,gc";
+   reg = <0x0220 0x4000>;
+   interrupts = <0 10 IRQ_TYPE_LEVEL_HIGH>;
+   clocks = < IMX6SL_CLK_MMDC_ROOT>,
+< IMX6SL_CLK_GPU2D_OVG>;
+   clock-names = "bus", "core";
+   power-domains = <_pu>;
+   };
+
+   gpu_vg: gpu@2204000 {
+   compatible = "vivante,gc";
+   reg = <0x02204000 0x4000>;
+   interrupts = <0 11 IRQ_TYPE_LEVEL_HIGH>;
+   clocks = < IMX6SL_CLK_MMDC_ROOT>,
+< IMX6SL_CLK_GPU2D_OVG>;
+   clock-names = "bus", "core";
+   power-domains = <_pu>;
+   };
};
 };
-- 
2.17.1

___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel