All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] board: ti: am65x: Update fdt fixup logic for interconnect nodes
@ 2020-07-29 18:41 Suman Anna
  2020-08-11 10:36 ` Lokesh Vutla
  0 siblings, 1 reply; 2+ messages in thread
From: Suman Anna @ 2020-07-29 18:41 UTC (permalink / raw)
  To: u-boot

The DT nodes on AM65x SoCs currently use a node name "interconnect" for
the various interconnects. This name is not following the DT schema, and
should simply be "bus". Update the fdt fixup logic to use both the
current and the expected corrected path names so that this logic won't
be broken with newer kernels.

The logic also corrects the crypto node name as the DT node
unit-addresses are all expected to be lower case.

Signed-off-by: Suman Anna <s-anna@ti.com>
---
v2: dropped the local variable due to its usage only in the conditional
    CONFIG_TI_SECURE_DEVICE compilation path
v1: https://patchwork.ozlabs.org/project/uboot/patch/20200723225609.29404-1-s-anna at ti.com/

 board/ti/am65x/evm.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/board/ti/am65x/evm.c b/board/ti/am65x/evm.c
index 2eb8235c6988..36063b11383d 100644
--- a/board/ti/am65x/evm.c
+++ b/board/ti/am65x/evm.c
@@ -101,7 +101,10 @@ int ft_board_setup(void *blob, struct bd_info *bd)
 {
 	int ret;
 
-	ret = fdt_fixup_msmc_ram(blob, "/interconnect at 100000", "sram at 70000000");
+	ret = fdt_fixup_msmc_ram(blob, "/bus at 100000", "sram at 70000000");
+	if (ret < 0)
+		ret = fdt_fixup_msmc_ram(blob, "/interconnect at 100000",
+					 "sram at 70000000");
 	if (ret) {
 		printf("%s: fixing up msmc ram failed %d\n", __func__, ret);
 		return ret;
@@ -109,7 +112,10 @@ int ft_board_setup(void *blob, struct bd_info *bd)
 
 #if defined(CONFIG_TI_SECURE_DEVICE)
 	/* Make Crypto HW reserved for secure world use */
-	ret = fdt_disable_node(blob, "/interconnect at 100000/crypto at 4E00000");
+	ret = fdt_disable_node(blob, "/bus at 100000/crypto at 4e00000");
+	if (ret < 0)
+		ret = fdt_disable_node(blob,
+				       "/interconnect at 100000/crypto@4E00000");
 	if (ret)
 		printf("%s: disabling SA2UL failed %d\n", __func__, ret);
 #endif
-- 
2.26.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH v2] board: ti: am65x: Update fdt fixup logic for interconnect nodes
  2020-07-29 18:41 [PATCH v2] board: ti: am65x: Update fdt fixup logic for interconnect nodes Suman Anna
@ 2020-08-11 10:36 ` Lokesh Vutla
  0 siblings, 0 replies; 2+ messages in thread
From: Lokesh Vutla @ 2020-08-11 10:36 UTC (permalink / raw)
  To: u-boot



On 30/07/20 12:11 am, Suman Anna wrote:
> The DT nodes on AM65x SoCs currently use a node name "interconnect" for
> the various interconnects. This name is not following the DT schema, and
> should simply be "bus". Update the fdt fixup logic to use both the
> current and the expected corrected path names so that this logic won't
> be broken with newer kernels.
> 
> The logic also corrects the crypto node name as the DT node
> unit-addresses are all expected to be lower case.
> 
> Signed-off-by: Suman Anna <s-anna@ti.com>
> ---
> v2: dropped the local variable due to its usage only in the conditional
>     CONFIG_TI_SECURE_DEVICE compilation path
> v1: https://patchwork.ozlabs.org/project/uboot/patch/20200723225609.29404-1-s-anna at ti.com/

Applied to u-boot-ti

Thanks and regards,
Lokesh

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-08-11 10:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-29 18:41 [PATCH v2] board: ti: am65x: Update fdt fixup logic for interconnect nodes Suman Anna
2020-08-11 10:36 ` Lokesh Vutla

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.