* [PATCH v1] arm: imx: imx8m: soc: Fix NPU/VPU fdt disable fixup
@ 2024-03-15 14:44 Vitor Soares
2024-03-15 15:36 ` Francesco Dolcini
2024-03-17 23:56 ` Fabio Estevam
0 siblings, 2 replies; 3+ messages in thread
From: Vitor Soares @ 2024-03-15 14:44 UTC (permalink / raw)
To: Stefano Babic, Fabio Estevam, NXP i.MX U-Boot Team, Tom Rini
Cc: Vitor Soares, u-boot
From: Vitor Soares <vitor.soares@toradex.com>
On imx8m[m|p|q].dtsi, upstream Linux uses different names for NPU/VPU
IP block nodes. It leads variants without such HW block having it
enabled by default.
This patch adds the upstream Linux node's paths to the disable list while
keep the compatibility with downstream Linux.
Signed-off-by: Vitor Soares <vitor.soares@toradex.com>
---
arch/arm/mach-imx/imx8m/soc.c | 18 ++++++++++++++----
1 file changed, 14 insertions(+), 4 deletions(-)
diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c
index 39802d6a79..0c49fb9cd4 100644
--- a/arch/arm/mach-imx/imx8m/soc.c
+++ b/arch/arm/mach-imx/imx8m/soc.c
@@ -933,19 +933,28 @@ int disable_vpu_nodes(void *blob)
{
static const char * const nodes_path_8mq[] = {
"/vpu@38300000",
- "/soc@0/vpu@38300000"
+ "/soc@0/vpu@38300000",
+ "/soc@0/video-codec@38300000",
+ "/soc@0/video-codec@38310000",
+ "/soc@0/blk-ctrl@38320000",
};
static const char * const nodes_path_8mm[] = {
"/vpu_g1@38300000",
"/vpu_g2@38310000",
- "/vpu_h1@38320000"
+ "/vpu_h1@38320000",
+ "/soc@0/video-codec@38300000",
+ "/soc@0/video-codec@38310000",
+ "/soc@0/blk-ctrl@38330000",
};
static const char * const nodes_path_8mp[] = {
"/vpu_g1@38300000",
"/vpu_g2@38310000",
- "/vpu_vc8000e@38320000"
+ "/vpu_vc8000e@38320000",
+ "/soc@0/video-codec@38300000",
+ "/soc@0/video-codec@38310000",
+ "/soc@0/blk-ctrl@38330000",
};
if (is_imx8mq())
@@ -1100,7 +1109,8 @@ int disable_gpu_nodes(void *blob)
int disable_npu_nodes(void *blob)
{
static const char * const nodes_path_8mp[] = {
- "/vipsi@38500000"
+ "/vipsi@38500000",
+ "/soc@0/npu@38500000",
};
return disable_fdt_nodes(blob, nodes_path_8mp, ARRAY_SIZE(nodes_path_8mp));
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v1] arm: imx: imx8m: soc: Fix NPU/VPU fdt disable fixup
2024-03-15 14:44 [PATCH v1] arm: imx: imx8m: soc: Fix NPU/VPU fdt disable fixup Vitor Soares
@ 2024-03-15 15:36 ` Francesco Dolcini
2024-03-17 23:56 ` Fabio Estevam
1 sibling, 0 replies; 3+ messages in thread
From: Francesco Dolcini @ 2024-03-15 15:36 UTC (permalink / raw)
To: Vitor Soares
Cc: Stefano Babic, Fabio Estevam, NXP i.MX U-Boot Team, Tom Rini,
Vitor Soares, u-boot
On Fri, Mar 15, 2024 at 02:44:25PM +0000, Vitor Soares wrote:
> From: Vitor Soares <vitor.soares@toradex.com>
>
> On imx8m[m|p|q].dtsi, upstream Linux uses different names for NPU/VPU
> IP block nodes. It leads variants without such HW block having it
> enabled by default.
>
> This patch adds the upstream Linux node's paths to the disable list while
> keep the compatibility with downstream Linux.
>
> Signed-off-by: Vitor Soares <vitor.soares@toradex.com>
Reviewed-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Francesco
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v1] arm: imx: imx8m: soc: Fix NPU/VPU fdt disable fixup
2024-03-15 14:44 [PATCH v1] arm: imx: imx8m: soc: Fix NPU/VPU fdt disable fixup Vitor Soares
2024-03-15 15:36 ` Francesco Dolcini
@ 2024-03-17 23:56 ` Fabio Estevam
1 sibling, 0 replies; 3+ messages in thread
From: Fabio Estevam @ 2024-03-17 23:56 UTC (permalink / raw)
To: Vitor Soares
Cc: Stefano Babic, NXP i.MX U-Boot Team, Tom Rini, Vitor Soares,
u-boot
On Fri, Mar 15, 2024 at 11:45 AM Vitor Soares <ivitro@gmail.com> wrote:
>
> From: Vitor Soares <vitor.soares@toradex.com>
>
> On imx8m[m|p|q].dtsi, upstream Linux uses different names for NPU/VPU
> IP block nodes. It leads variants without such HW block having it
> enabled by default.
>
> This patch adds the upstream Linux node's paths to the disable list while
> keep the compatibility with downstream Linux.
>
> Signed-off-by: Vitor Soares <vitor.soares@toradex.com>
Applied for u-boot-imx/master, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-03-17 23:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-15 14:44 [PATCH v1] arm: imx: imx8m: soc: Fix NPU/VPU fdt disable fixup Vitor Soares
2024-03-15 15:36 ` Francesco Dolcini
2024-03-17 23:56 ` Fabio Estevam
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox