* [PATCH v4] arm64: dts: imx8mp: Add Hantro G1, G2 DT nodes
@ 2022-12-20 14:56 Marek Vasut
2022-12-24 23:40 ` Adam Ford
2023-01-01 4:54 ` Shawn Guo
0 siblings, 2 replies; 3+ messages in thread
From: Marek Vasut @ 2022-12-20 14:56 UTC (permalink / raw)
To: linux-arm-kernel
Cc: Marek Vasut, Laurent Pinchart, Abel Vesa, Adam Ford,
Alexander Stein, Ezequiel Garcia, Fabio Estevam, Jacky Bai,
Krzysztof Kozlowski, Lucas Stach, Markus Niebel, NXP Linux Team,
Peng Fan, Pengutronix Kernel Team, Richard Cochran, Richard Zhu,
Rob Herring, Sascha Hauer, Shawn Guo
Add DT nodes for the Hantro VPU found in i.MX8MP SoC.
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Marek Vasut <marex@denx.de>
---
Cc: Abel Vesa <abel.vesa@nxp.com>
Cc: Adam Ford <aford173@gmail.com>
Cc: Alexander Stein <alexander.stein@ew.tq-group.com>
Cc: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: Jacky Bai <ping.bai@nxp.com>
Cc: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Lucas Stach <l.stach@pengutronix.de>
Cc: Marek Vasut <marex@denx.de>
Cc: Markus Niebel <Markus.Niebel@ew.tq-group.com>
Cc: NXP Linux Team <linux-imx@nxp.com>
Cc: Peng Fan <peng.fan@nxp.com>
Cc: Pengutronix Kernel Team <kernel@pengutronix.de>
Cc: Richard Cochran <richardcochran@gmail.com>
Cc: Richard Zhu <hongxing.zhu@nxp.com>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Shawn Guo <shawnguo@kernel.org>
To: linux-arm-kernel@lists.infradead.org
---
V2: Drop the VC8000E
V3: - Drop assigned-clock-rates from G1 and G2 subnodes
- Add RB from Laurent
V4: - Switch to nominal clock rates, G1 and BUS are sourced from
VPU PLL at 600 MHz, G2 is sourced from SYS_PLL1 at 500 MHz
---
arch/arm64/boot/dts/freescale/imx8mp.dtsi | 25 +++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi
index 0173e394ad4d8..2349752f5ab04 100644
--- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi
@@ -1679,6 +1679,28 @@ gpu2d: gpu@38008000 {
power-domains = <&pgc_gpu2d>;
};
+ vpu_g1: video-codec@38300000 {
+ compatible = "nxp,imx8mm-vpu-g1";
+ reg = <0x38300000 0x10000>;
+ interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&clk IMX8MP_CLK_VPU_G1_ROOT>;
+ assigned-clocks = <&clk IMX8MP_CLK_VPU_G1>;
+ assigned-clock-parents = <&clk IMX8MP_VPU_PLL_OUT>;
+ assigned-clock-rates = <600000000>;
+ power-domains = <&vpumix_blk_ctrl IMX8MP_VPUBLK_PD_G1>;
+ };
+
+ vpu_g2: video-codec@38310000 {
+ compatible = "nxp,imx8mq-vpu-g2";
+ reg = <0x38310000 0x10000>;
+ interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&clk IMX8MP_CLK_VPU_G2_ROOT>;
+ assigned-clocks = <&clk IMX8MP_CLK_VPU_G2>;
+ assigned-clock-parents = <&clk IMX8MP_SYS_PLL2_1000M>;
+ assigned-clock-rates = <500000000>;
+ power-domains = <&vpumix_blk_ctrl IMX8MP_VPUBLK_PD_G2>;
+ };
+
vpumix_blk_ctrl: blk-ctrl@38330000 {
compatible = "fsl,imx8mp-vpu-blk-ctrl", "syscon";
reg = <0x38330000 0x100>;
@@ -1690,6 +1712,9 @@ vpumix_blk_ctrl: blk-ctrl@38330000 {
<&clk IMX8MP_CLK_VPU_G2_ROOT>,
<&clk IMX8MP_CLK_VPU_VC8KE_ROOT>;
clock-names = "g1", "g2", "vc8000e";
+ assigned-clocks = <&clk IMX8MP_CLK_VPU_BUS>, <&clk IMX8MP_VPU_PLL>;
+ assigned-clock-parents = <&clk IMX8MP_VPU_PLL_OUT>;
+ assigned-clock-rates = <600000000>, <600000000>;
interconnects = <&noc IMX8MP_ICM_VPU_G1 &noc IMX8MP_ICN_VIDEO>,
<&noc IMX8MP_ICM_VPU_G2 &noc IMX8MP_ICN_VIDEO>,
<&noc IMX8MP_ICM_VPU_H1 &noc IMX8MP_ICN_VIDEO>;
--
2.35.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v4] arm64: dts: imx8mp: Add Hantro G1, G2 DT nodes
2022-12-20 14:56 [PATCH v4] arm64: dts: imx8mp: Add Hantro G1, G2 DT nodes Marek Vasut
@ 2022-12-24 23:40 ` Adam Ford
2023-01-01 4:54 ` Shawn Guo
1 sibling, 0 replies; 3+ messages in thread
From: Adam Ford @ 2022-12-24 23:40 UTC (permalink / raw)
To: Marek Vasut
Cc: linux-arm-kernel, Laurent Pinchart, Abel Vesa, Alexander Stein,
Ezequiel Garcia, Fabio Estevam, Jacky Bai, Krzysztof Kozlowski,
Lucas Stach, Markus Niebel, NXP Linux Team, Peng Fan,
Pengutronix Kernel Team, Richard Cochran, Richard Zhu,
Rob Herring, Sascha Hauer, Shawn Guo
On Tue, Dec 20, 2022 at 8:56 AM Marek Vasut <marex@denx.de> wrote:
>
> Add DT nodes for the Hantro VPU found in i.MX8MP SoC.
>
I finally got some time to run fluster. With gstreamer-1.21.3, The
following V4L2SL codecs are available.
./fluster.py list -c |grep -i V4L2SL
GStreamer-H.264-V4L2SL-Gst1.0: GStreamer H.264 V4L2SL decoder for
GStreamer 1.0... ✔️
GStreamer-H.265-V4L2SL-Gst1.0: GStreamer H.265 V4L2SL decoder for
GStreamer 1.0... ✔️
GStreamer-VP8-V4L2SL-Gst1.0: GStreamer VP8 V4L2SL decoder for
GStreamer 1.0... ✔️
GStreamer-VP9-V4L2SL-Gst1.0: GStreamer VP9 V4L2SL decoder for
GStreamer 1.0... ✔️
./fluster.py run -dGStreamer-H.264-V4L2SL-Gst1.0
Ran 129/135 tests successfully in 39.306 secs
./fluster.py run -dGStreamer-H.265-V4L2SL-Gst1.0
Ran 126/147 tests successfully in 154.973 secs
./fluster.py run -dGStreamer-VP9-V4L2SL-Gst1.0
Ran 130/305 tests successfully in 170.154 secs
./fluster.py run -dGStreamer-VP8-V4L2SL-Gst1.0
Ran 55/61 tests successfully in 5.662 secs
Each test was run using 4 threads at the stock speeds listed in this patch.
I didn't compare this to imx8MQ or imX8MM, but it does appear that the
VPU is working.
Tested-by: Adam Ford <aford173@gmail.com>
Thanks for doing that.
adam
> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> Signed-off-by: Marek Vasut <marex@denx.de>
> ---
> Cc: Abel Vesa <abel.vesa@nxp.com>
> Cc: Adam Ford <aford173@gmail.com>
> Cc: Alexander Stein <alexander.stein@ew.tq-group.com>
> Cc: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
> Cc: Fabio Estevam <festevam@gmail.com>
> Cc: Jacky Bai <ping.bai@nxp.com>
> Cc: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
> Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> Cc: Lucas Stach <l.stach@pengutronix.de>
> Cc: Marek Vasut <marex@denx.de>
> Cc: Markus Niebel <Markus.Niebel@ew.tq-group.com>
> Cc: NXP Linux Team <linux-imx@nxp.com>
> Cc: Peng Fan <peng.fan@nxp.com>
> Cc: Pengutronix Kernel Team <kernel@pengutronix.de>
> Cc: Richard Cochran <richardcochran@gmail.com>
> Cc: Richard Zhu <hongxing.zhu@nxp.com>
> Cc: Rob Herring <robh+dt@kernel.org>
> Cc: Sascha Hauer <s.hauer@pengutronix.de>
> Cc: Shawn Guo <shawnguo@kernel.org>
> To: linux-arm-kernel@lists.infradead.org
> ---
> V2: Drop the VC8000E
> V3: - Drop assigned-clock-rates from G1 and G2 subnodes
> - Add RB from Laurent
> V4: - Switch to nominal clock rates, G1 and BUS are sourced from
> VPU PLL at 600 MHz, G2 is sourced from SYS_PLL1 at 500 MHz
> ---
> arch/arm64/boot/dts/freescale/imx8mp.dtsi | 25 +++++++++++++++++++++++
> 1 file changed, 25 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi
> index 0173e394ad4d8..2349752f5ab04 100644
> --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi
> +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi
> @@ -1679,6 +1679,28 @@ gpu2d: gpu@38008000 {
> power-domains = <&pgc_gpu2d>;
> };
>
> + vpu_g1: video-codec@38300000 {
> + compatible = "nxp,imx8mm-vpu-g1";
> + reg = <0x38300000 0x10000>;
> + interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&clk IMX8MP_CLK_VPU_G1_ROOT>;
> + assigned-clocks = <&clk IMX8MP_CLK_VPU_G1>;
> + assigned-clock-parents = <&clk IMX8MP_VPU_PLL_OUT>;
> + assigned-clock-rates = <600000000>;
> + power-domains = <&vpumix_blk_ctrl IMX8MP_VPUBLK_PD_G1>;
> + };
> +
> + vpu_g2: video-codec@38310000 {
> + compatible = "nxp,imx8mq-vpu-g2";
> + reg = <0x38310000 0x10000>;
> + interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&clk IMX8MP_CLK_VPU_G2_ROOT>;
> + assigned-clocks = <&clk IMX8MP_CLK_VPU_G2>;
> + assigned-clock-parents = <&clk IMX8MP_SYS_PLL2_1000M>;
> + assigned-clock-rates = <500000000>;
> + power-domains = <&vpumix_blk_ctrl IMX8MP_VPUBLK_PD_G2>;
> + };
> +
> vpumix_blk_ctrl: blk-ctrl@38330000 {
> compatible = "fsl,imx8mp-vpu-blk-ctrl", "syscon";
> reg = <0x38330000 0x100>;
> @@ -1690,6 +1712,9 @@ vpumix_blk_ctrl: blk-ctrl@38330000 {
> <&clk IMX8MP_CLK_VPU_G2_ROOT>,
> <&clk IMX8MP_CLK_VPU_VC8KE_ROOT>;
> clock-names = "g1", "g2", "vc8000e";
> + assigned-clocks = <&clk IMX8MP_CLK_VPU_BUS>, <&clk IMX8MP_VPU_PLL>;
> + assigned-clock-parents = <&clk IMX8MP_VPU_PLL_OUT>;
> + assigned-clock-rates = <600000000>, <600000000>;
> interconnects = <&noc IMX8MP_ICM_VPU_G1 &noc IMX8MP_ICN_VIDEO>,
> <&noc IMX8MP_ICM_VPU_G2 &noc IMX8MP_ICN_VIDEO>,
> <&noc IMX8MP_ICM_VPU_H1 &noc IMX8MP_ICN_VIDEO>;
> --
> 2.35.1
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v4] arm64: dts: imx8mp: Add Hantro G1, G2 DT nodes
2022-12-20 14:56 [PATCH v4] arm64: dts: imx8mp: Add Hantro G1, G2 DT nodes Marek Vasut
2022-12-24 23:40 ` Adam Ford
@ 2023-01-01 4:54 ` Shawn Guo
1 sibling, 0 replies; 3+ messages in thread
From: Shawn Guo @ 2023-01-01 4:54 UTC (permalink / raw)
To: Marek Vasut
Cc: linux-arm-kernel, Laurent Pinchart, Abel Vesa, Adam Ford,
Alexander Stein, Ezequiel Garcia, Fabio Estevam, Jacky Bai,
Krzysztof Kozlowski, Lucas Stach, Markus Niebel, NXP Linux Team,
Peng Fan, Pengutronix Kernel Team, Richard Cochran, Richard Zhu,
Rob Herring, Sascha Hauer
On Tue, Dec 20, 2022 at 03:56:38PM +0100, Marek Vasut wrote:
> Add DT nodes for the Hantro VPU found in i.MX8MP SoC.
>
> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> Signed-off-by: Marek Vasut <marex@denx.de>
Applied, thanks!
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-01-01 4:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-20 14:56 [PATCH v4] arm64: dts: imx8mp: Add Hantro G1, G2 DT nodes Marek Vasut
2022-12-24 23:40 ` Adam Ford
2023-01-01 4:54 ` Shawn Guo
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).