Skip to contentSkip to conversation

imx8m*_venice: move venice to OF_UPSTREAM

PATCH In review Tim Harvey 3 participants 8 messages Mar 12, 2024 – Mar 17, 2024

Subsystems (3)
lore
Share & tools
lore

Tim Harvey

author
#0 lore raw

PATCH 1/1 imx8m*_venice: move venice to OF_UPSTREAM

Move to imx8m{m,n,p}-venice to OF_UPSTREAM:
- replace the non-upstream generic imx8m{m,n,p}-venice dt with one of the dt's from the OF_LIST
- handle the fact that dtbs now have a 'freescale/' prefix
- imply OF_UPSTREAM
- remove rudundant files from arch/arm/dts leaving only the *-u-boot.dtsi files

---
 arch/arm/dts/Makefile                    |   17 -
 arch/arm/dts/imx8mm-venice-gw700x.dtsi   |  525 ----------
 arch/arm/dts/imx8mm-venice-gw71xx-0x.dts |   19 -
 arch/arm/dts/imx8mm-venice-gw71xx.dtsi   |  239 -----
 arch/arm/dts/imx8mm-venice-gw72xx-0x.dts |   19 -
 arch/arm/dts/imx8mm-venice-gw72xx.dtsi   |  400 --------
 arch/arm/dts/imx8mm-venice-gw73xx-0x.dts |   19 -
 arch/arm/dts/imx8mm-venice-gw73xx.dtsi   |  452 ---------
 arch/arm/dts/imx8mm-venice-gw7901.dts    | 1137 ----------------------
 arch/arm/dts/imx8mm-venice-gw7902.dts    | 1052 --------------------
 arch/arm/dts/imx8mm-venice-gw7903.dts    |  869 -----------------
 arch/arm/dts/imx8mm-venice-gw7904.dts    |  928 ------------------
 arch/arm/dts/imx8mm-venice-gw7905-0x.dts |   28 -
 arch/arm/dts/imx8mm-venice-gw7905.dtsi   |  303 ------
 arch/arm/dts/imx8mm-venice.dts           |  169 ----
 arch/arm/dts/imx8mn-venice-gw7902.dts    |  980 -------------------
 arch/arm/dts/imx8mn-venice.dts           |  169 ----
 arch/arm/dts/imx8mp-venice-gw702x.dtsi   |  587 -----------
 arch/arm/dts/imx8mp-venice-gw71xx-2x.dts |   19 -
 arch/arm/dts/imx8mp-venice-gw71xx.dtsi   |  236 -----
 arch/arm/dts/imx8mp-venice-gw72xx-2x.dts |   19 -
 arch/arm/dts/imx8mp-venice-gw72xx.dtsi   |  378 -------
 arch/arm/dts/imx8mp-venice-gw73xx-2x.dts |   19 -
 arch/arm/dts/imx8mp-venice-gw73xx.dtsi   |  421 --------
 arch/arm/dts/imx8mp-venice-gw74xx.dts    | 1125 ---------------------
 arch/arm/dts/imx8mp-venice-gw7905-2x.dts |   28 -
 arch/arm/dts/imx8mp-venice-gw7905.dtsi   |  309 ------
 arch/arm/dts/imx8mp-venice.dts           |  183 ----
 arch/arm/mach-imx/imx8m/Kconfig          |    3 +
 board/gateworks/venice/venice.c          |    7 +-
 configs/imx8mm_venice_defconfig          |    4 +-
 configs/imx8mn_venice_defconfig          |    4 +-
 configs/imx8mp_venice_defconfig          |    4 +-
 33 files changed, 13 insertions(+), 10658 deletions(-)
 delete mode 100644 arch/arm/dts/imx8mm-venice-gw700x.dtsi
 delete mode 100644 arch/arm/dts/imx8mm-venice-gw71xx-0x.dts
 delete mode 100644 arch/arm/dts/imx8mm-venice-gw71xx.dtsi
 delete mode 100644 arch/arm/dts/imx8mm-venice-gw72xx-0x.dts
 delete mode 100644 arch/arm/dts/imx8mm-venice-gw72xx.dtsi
 delete mode 100644 arch/arm/dts/imx8mm-venice-gw73xx-0x.dts
 delete mode 100644 arch/arm/dts/imx8mm-venice-gw73xx.dtsi
 delete mode 100644 arch/arm/dts/imx8mm-venice-gw7901.dts
 delete mode 100644 arch/arm/dts/imx8mm-venice-gw7902.dts
 delete mode 100644 arch/arm/dts/imx8mm-venice-gw7903.dts
 delete mode 100644 arch/arm/dts/imx8mm-venice-gw7904.dts
 delete mode 100644 arch/arm/dts/imx8mm-venice-gw7905-0x.dts
 delete mode 100644 arch/arm/dts/imx8mm-venice-gw7905.dtsi
 delete mode 100644 arch/arm/dts/imx8mm-venice.dts
 delete mode 100644 arch/arm/dts/imx8mn-venice-gw7902.dts
 delete mode 100644 arch/arm/dts/imx8mn-venice.dts
 delete mode 100644 arch/arm/dts/imx8mp-venice-gw702x.dtsi
 delete mode 100644 arch/arm/dts/imx8mp-venice-gw71xx-2x.dts
 delete mode 100644 arch/arm/dts/imx8mp-venice-gw71xx.dtsi
 delete mode 100644 arch/arm/dts/imx8mp-venice-gw72xx-2x.dts
 delete mode 100644 arch/arm/dts/imx8mp-venice-gw72xx.dtsi
 delete mode 100644 arch/arm/dts/imx8mp-venice-gw73xx-2x.dts
 delete mode 100644 arch/arm/dts/imx8mp-venice-gw73xx.dtsi
 delete mode 100644 arch/arm/dts/imx8mp-venice-gw74xx.dts
 delete mode 100644 arch/arm/dts/imx8mp-venice-gw7905-2x.dts
 delete mode 100644 arch/arm/dts/imx8mp-venice-gw7905.dtsi
 delete mode 100644 arch/arm/dts/imx8mp-venice.dts
arch/arm/dts/Makefile +0 -17
index 971a4065faff..34c9f44163f3 100644
@@ -1076,15 +1076,6 @@ dtb-$(CONFIG_ARCH_IMX8M) += \
 	imx8mm-phg.dtb \
 	imx8mm-phyboard-polis-rdk.dtb \
 	imx8mm-phygate-tauri-l.dtb \
-	imx8mm-venice.dtb \
-	imx8mm-venice-gw71xx-0x.dtb \
-	imx8mm-venice-gw72xx-0x.dtb \
-	imx8mm-venice-gw73xx-0x.dtb \
-	imx8mm-venice-gw7901.dtb \
-	imx8mm-venice-gw7902.dtb \
-	imx8mm-venice-gw7903.dtb \
-	imx8mm-venice-gw7904.dtb \
-	imx8mm-venice-gw7905-0x.dtb \
 	imx8mm-verdin-wifi-dev.dtb \
 	imx8mn-bsh-smm-s2.dtb \
 	imx8mn-bsh-smm-s2pro.dtb \
@@ -1092,8 +1083,6 @@ dtb-$(CONFIG_ARCH_IMX8M) += \
 	imx8mq-cm.dtb \
 	imx8mn-evk.dtb \
 	imx8mn-var-som-symphony.dtb \
-	imx8mn-venice.dtb \
-	imx8mn-venice-gw7902.dtb \
 	imx8mq-evk.dtb \
 	imx8mm-beacon-kit.dtb \
 	imx8mn-beacon-kit.dtb \
@@ -1113,12 +1102,6 @@ dtb-$(CONFIG_ARCH_IMX8M) += \
 	imx8mp-icore-mx8mp-edimm2.2.dtb \
 	imx8mp-msc-sm2s.dtb \
 	imx8mp-phyboard-pollux-rdk.dtb \
-	imx8mp-venice.dtb \
-	imx8mp-venice-gw71xx-2x.dtb \
-	imx8mp-venice-gw72xx-2x.dtb \
-	imx8mp-venice-gw73xx-2x.dtb \
-	imx8mp-venice-gw74xx.dtb \
-	imx8mp-venice-gw7905-2x.dtb \
 	imx8mp-verdin-wifi-dev.dtb \
 	imx8mq-pico-pi.dtb \
 	imx8mq-kontron-pitx-imx8m.dtb \
arch/arm/dts/imx8mm-venice-gw700x.dtsi deleted +0 -525

525 lines not on this page · raw message

arch/arm/dts/imx8mm-venice-gw71xx-0x.dts deleted +0 -19
deleted file mode 100644
index 3f88c4ad5716..000000000000
@@ -1,19 +0,0 @@
-// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
-/*
- * Copyright 2020 Gateworks Corporation
- */
-
-/dts-v1/;
-
-#include "imx8mm.dtsi"
-#include "imx8mm-venice-gw700x.dtsi"
-#include "imx8mm-venice-gw71xx.dtsi"
-
-/ {
-	model = "Gateworks Venice GW71xx-0x i.MX8MM Development Kit";
-	compatible = "gw,imx8mm-gw71xx-0x", "fsl,imx8mm";
-
-	chosen {
-		stdout-path = &uart2;
-	};
-};
arch/arm/dts/imx8mm-venice-gw71xx.dtsi deleted +0 -239

239 lines not on this page · raw message

arch/arm/dts/imx8mm-venice-gw72xx-0x.dts deleted +0 -19
deleted file mode 100644
index 641be3af989d..000000000000
@@ -1,19 +0,0 @@
-// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
-/*
- * Copyright 2020 Gateworks Corporation
- */
-
-/dts-v1/;
-
-#include "imx8mm.dtsi"
-#include "imx8mm-venice-gw700x.dtsi"
-#include "imx8mm-venice-gw72xx.dtsi"
-
-/ {
-	model = "Gateworks Venice GW72xx-0x i.MX8MM Development Kit";
-	compatible = "gw,imx8mm-gw72xx-0x", "fsl,imx8mm";
-
-	chosen {
-		stdout-path = &uart2;
-	};
-};
arch/arm/dts/imx8mm-venice-gw72xx.dtsi deleted +0 -400

400 lines not on this page · raw message

arch/arm/dts/imx8mm-venice-gw73xx-0x.dts deleted +0 -19
deleted file mode 100644
index 6905437ff281..000000000000
@@ -1,19 +0,0 @@
-// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
-/*
- * Copyright 2020 Gateworks Corporation
- */
-
-/dts-v1/;
-
-#include "imx8mm.dtsi"
-#include "imx8mm-venice-gw700x.dtsi"
-#include "imx8mm-venice-gw73xx.dtsi"
-
-/ {
-	model = "Gateworks Venice GW73xx-0x i.MX8MM Development Kit";
-	compatible = "gw,imx8mm-gw73xx-0x", "fsl,imx8mm";
-
-	chosen {
-		stdout-path = &uart2;
-	};
-};
arch/arm/dts/imx8mm-venice-gw73xx.dtsi deleted +0 -452

452 lines not on this page · raw message

arch/arm/dts/imx8mm-venice-gw7901.dts deleted +0 -1137

1,137 lines not on this page · raw message

arch/arm/dts/imx8mm-venice-gw7902.dts deleted +0 -1052

155 lines not on this page · raw message

arch/arm/dts/imx8mm-venice-gw7903.dts deleted +0 -869

869 lines not on this page · raw message

arch/arm/dts/imx8mm-venice-gw7904.dts deleted +0 -928

928 lines not on this page · raw message

arch/arm/dts/imx8mm-venice-gw7905-0x.dts deleted +0 -28
deleted file mode 100644
index 914753f062cd..000000000000

Lines of this file are not shown. View the raw message.

arch/arm/dts/imx8mm-venice-gw7905.dtsi deleted +0 -303

303 lines not on this page · raw message

arch/arm/dts/imx8mm-venice.dts deleted +0 -169

169 lines not on this page · raw message

arch/arm/dts/imx8mn-venice-gw7902.dts deleted +0 -980

980 lines not on this page · raw message

arch/arm/dts/imx8mn-venice.dts deleted +0 -169

169 lines not on this page · raw message

arch/arm/dts/imx8mp-venice-gw702x.dtsi deleted +0 -587

587 lines not on this page · raw message

arch/arm/dts/imx8mp-venice-gw71xx-2x.dts deleted +0 -19
deleted file mode 100644
index 53120fc9cd7f..000000000000

Lines of this file are not shown. View the raw message.

arch/arm/dts/imx8mp-venice-gw71xx.dtsi deleted +0 -236

236 lines not on this page · raw message

arch/arm/dts/imx8mp-venice-gw72xx-2x.dts deleted +0 -19
deleted file mode 100644
index 255e36f66b00..000000000000

Lines of this file are not shown. View the raw message.

arch/arm/dts/imx8mp-venice-gw72xx.dtsi deleted +0 -378

378 lines not on this page · raw message

arch/arm/dts/imx8mp-venice-gw73xx-2x.dts deleted +0 -19
deleted file mode 100644
index 000fd15e0c07..000000000000

Lines of this file are not shown. View the raw message.

arch/arm/dts/imx8mp-venice-gw73xx.dtsi deleted +0 -421

421 lines not on this page · raw message

arch/arm/dts/imx8mp-venice-gw74xx.dts deleted +0 -1125

1,125 lines not on this page · raw message

arch/arm/dts/imx8mp-venice-gw7905-2x.dts deleted +0 -28
deleted file mode 100644
index 4a1bbbbe19e6..000000000000

Lines of this file are not shown. View the raw message.

arch/arm/dts/imx8mp-venice-gw7905.dtsi deleted +0 -309

309 lines not on this page · raw message

arch/arm/dts/imx8mp-venice.dts deleted +0 -183

183 lines not on this page · raw message

arch/arm/mach-imx/imx8m/Kconfig +3 -0
index 328c3e388051..5db643c1958c 100644

Lines of this file are not shown. View the raw message.

board/gateworks/venice/venice.c +4 -3
index 0902a1da3e26..f54f1186b686 100644

Lines of this file are not shown. View the raw message.

configs/imx8mm_venice_defconfig +2 -2
index 4482abc8d76d..2e637793d82f 100644

Lines of this file are not shown. View the raw message.

configs/imx8mn_venice_defconfig +2 -2
index aea79afaac08..14f6054d85b0 100644

Lines of this file are not shown. View the raw message.

configs/imx8mp_venice_defconfig +2 -2
index 11b356b77856..622f842d8929 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.25.1

Part of the diff is not shown here. View the raw message.

reviewer Reviewed-by on v1 1/1
#1 lore raw

Hi Tim,

Quoted 10 lines · Tim Harvey

Move to imx8m{m,n,p}-venice to OF_UPSTREAM:
- replace the non-upstream generic imx8m{m,n,p}-venice dt with one of the dt's from the OF_LIST
- handle the fact that dtbs now have a 'freescale/' prefix
- imply OF_UPSTREAM
- remove rudundant files from arch/arm/dts leaving only the *-u-boot.dtsi files

...

Quoted 1 line
 33 files changed, 13 insertions(+), 10658 deletions(-)

This diff looks great :-)

I will queue it to u-boot-imx/next soon.

Reviewed-by
#2 lore raw
Quoted 13 lines · Fabio Estevam

Hi Tim,

Quoted 9 lines · Tim Harvey

Move to imx8m{m,n,p}-venice to OF_UPSTREAM:
- replace the non-upstream generic imx8m{m,n,p}-venice dt with one of the dt's from the OF_LIST
- handle the fact that dtbs now have a 'freescale/' prefix
- imply OF_UPSTREAM
- remove rudundant files from arch/arm/dts leaving only the *-u-boot.dtsi files

Quoted 5 lines
Quoted 1 line

...

Quoted 1 line
 33 files changed, 13 insertions(+), 10658 deletions(-)

This diff looks great :-)

+1

-Sumit

Quoted 4 lines

I will queue it to u-boot-imx/next soon.

author
#3 lore raw
Quoted 16 lines · Sumit Garg
Quoted 14 lines · Fabio Estevam

Hi Tim,

Quoted 10 lines · Tim Harvey

Move to imx8m{m,n,p}-venice to OF_UPSTREAM:
- replace the non-upstream generic imx8m{m,n,p}-venice dt with one of the dt's from the OF_LIST
- handle the fact that dtbs now have a 'freescale/' prefix
- imply OF_UPSTREAM
- remove rudundant files from arch/arm/dts leaving only the *-u-boot.dtsi files

Quoted 9 lines
Quoted 4 lines

...

Quoted 1 line
 33 files changed, 13 insertions(+), 10658 deletions(-)

This diff looks great :-)

+1

Hi Sumit,

Thanks for your work on this - I imagine over time this will de-duplicate a lot of work!

I have a couple of questions about OF_UPSTREAM I haven't found the answer to yet:
1. how do you determine what the last sync point was in dts/upstream? (ie what kernel version is it currently sync'd with)
2. how often will dts/upstream get re-synced (not the devicetree-rebasing.git but u-boot dts/upstream), who do you suspect will do be doing it?
3. how would one go about adding a new feature via dt to uboot when the same feature has not yet landed in dts upstream? perhaps the answer is it must land upstream first or do you suspect it would be ok to put something in a u-boot.dtsi that can later get removed as redundant? I ask mainly for being able to add things quickly to a downstream U-Boot repo that lags behind upstream U-Boot

Best Regards,

Tim

#4 lore raw

+ Tom

Hi Tim,

Quoted 30 lines · Tim Harvey
Quoted 16 lines · Sumit Garg
Quoted 14 lines · Fabio Estevam

Hi Tim,

Quoted 10 lines · Tim Harvey

Move to imx8m{m,n,p}-venice to OF_UPSTREAM:
- replace the non-upstream generic imx8m{m,n,p}-venice dt with one of the dt's from the OF_LIST
- handle the fact that dtbs now have a 'freescale/' prefix
- imply OF_UPSTREAM
- remove rudundant files from arch/arm/dts leaving only the *-u-boot.dtsi files

Quoted 9 lines
Quoted 4 lines

...

Quoted 1 line
 33 files changed, 13 insertions(+), 10658 deletions(-)

This diff looks great :-)

+1

Hi Sumit,

Quoted 7 lines

Thanks for your work on this - I imagine over time this will de-duplicate a lot of work!

I have a couple of questions about OF_UPSTREAM I haven't found the answer to yet:
1. how do you determine what the last sync point was in dts/upstream? (ie what kernel version is it currently sync'd with)

You can get that information from merge commits that happen over dts/upstream sub-directory. It was somewhat raw information for the first time we added dts/upstream as (commit aaba2d45dc2a pointing to v6.7-dts [1]):

commit 53633a893a06bd5a0c807287d9cc29337806eaf7

Author: Tom Rini <[email protected]>
Date:   Thu Feb 29 12:33:36 2024 -0500

Squashed 'dts/upstream/' content from commit aaba2d45dc2a

git-subtree-dir: dts/upstream
git-subtree-split: aaba2d45dc2a1b3bbb710f2a3808ee1c9f340abe

[1] https://git.kernel.org/pub/scm/linux/kernel/git/devicetree/devicetree-rebasing.git/tag/?h=v6.7-dts

However, further syncs would be more clear from merge commit description, try following:

$ ./dts/update-dts-subtree.sh pull v6.8-dts

You will see merge commit saying:

commit 57508745cd2b07e55b5c414c6d646de4865418d2 (HEAD -> dt_uprev)
Merge: 3987e15e88a 14c9e8c0856
Author: Sumit Garg <[email protected]>
Date: Thu Mar 14 12:20:27 2024 +0530

Subtree merge tag 'v6.8-dts' of devicetree-rebasing repo [1] into
dts/upstream

[1] https://git.kernel.org/pub/scm/linux/kernel/git/devicetree/devicetree-rebasing.git/

Quoted 2 lines

2. how often will dts/upstream get re-synced (not the devicetree-rebasing.git but u-boot dts/upstream),

You can see the re-syncing details here (section: "Resyncing with devicetree-rebasing",
https://source.denx.de/u-boot/u-boot/-/blob/next/doc/develop/devicetree/control.rst?ref_type=heads).

Quoted 2 lines

who do you suspect
will do be doing it?

Tom will be doing that. I suppose we are just in time for a resync since the Linux kernel v6.8 was released.

Tom,

Do you think we can make v6.8-dts sync for the U-Boot next?

Quoted 5 lines

3. how would one go about adding a new feature via dt to uboot when the same feature has not yet landed in dts upstream? perhaps the answer is it must land upstream first or do you suspect it would be ok to put something in a u-boot.dtsi that can later get removed as redundant?

From an upstream perspective, we should aim for minimal contents in *-u-boot.dtsi, ideally it would be better to get rid of them. For eg. all bootph_* properties should all be pushed upstream.

However, from the new features perspective we can consider using *-u-boot.dtsi if the changes are minimal like enabling some DT nodes. But if the changes are significant then that board can just opt out of OF_USTREAM but still reusing all the DT includes. The reasoning behind this is to minimize any chances of breakage if DT features in *-u-boot.dtsi diverge from DT upstream.

Quoted 3 lines

I ask mainly for being able to add things quickly to a downstream U-Boot repo that lags behind upstream U-Boot

Working downstream can always be fun, allowing additional options (can be useful for advance testing too):

1. You can play around with $ ./dts/update-dts-subtree.sh pull <tag>
2. You can manually sync the vendor directories (dts/upstream/src/<arch>/<vendor>/).
3. You can manually sync/update the individual DTS files too.

-Sumit

Quoted 3 lines

Best Regards,

Tim

author
#5 lore raw
Quoted 75 lines · Sumit Garg

+ Tom

Hi Tim,

Quoted 30 lines · Tim Harvey
Quoted 16 lines · Sumit Garg
Quoted 14 lines · Fabio Estevam

Hi Tim,

Quoted 10 lines · Tim Harvey

Move to imx8m{m,n,p}-venice to OF_UPSTREAM:
- replace the non-upstream generic imx8m{m,n,p}-venice dt with one of the dt's from the OF_LIST
- handle the fact that dtbs now have a 'freescale/' prefix
- imply OF_UPSTREAM
- remove rudundant files from arch/arm/dts leaving only the *-u-boot.dtsi files

Quoted 9 lines
Quoted 4 lines

...

Quoted 1 line
 33 files changed, 13 insertions(+), 10658 deletions(-)

This diff looks great :-)

+1

Hi Sumit,

Quoted 7 lines

Thanks for your work on this - I imagine over time this will de-duplicate a lot of work!

I have a couple of questions about OF_UPSTREAM I haven't found the answer to yet:
1. how do you determine what the last sync point was in dts/upstream? (ie what kernel version is it currently sync'd with)

You can get that information from merge commits that happen over dts/upstream sub-directory. It was somewhat raw information for the first time we added dts/upstream as (commit aaba2d45dc2a pointing to v6.7-dts [1]):

commit 53633a893a06bd5a0c807287d9cc29337806eaf7

Author: Tom Rini <[email protected]>
Date:   Thu Feb 29 12:33:36 2024 -0500

Squashed 'dts/upstream/' content from commit aaba2d45dc2a

git-subtree-dir: dts/upstream
git-subtree-split: aaba2d45dc2a1b3bbb710f2a3808ee1c9f340abe

[1] https://git.kernel.org/pub/scm/linux/kernel/git/devicetree/devicetree-rebasing.git/tag/?h=v6.7-dts

However, further syncs would be more clear from merge commit description, try following:

$ ./dts/update-dts-subtree.sh pull v6.8-dts

You will see merge commit saying:

commit 57508745cd2b07e55b5c414c6d646de4865418d2 (HEAD -> dt_uprev)
Merge: 3987e15e88a 14c9e8c0856
Author: Sumit Garg <[email protected]>
Date: Thu Mar 14 12:20:27 2024 +0530

Subtree merge tag 'v6.8-dts' of devicetree-rebasing repo [1] into
dts/upstream

Quoted 9 lines

[1] https://git.kernel.org/pub/scm/linux/kernel/git/devicetree/devicetree-rebasing.git/

Quoted 2 lines

2. how often will dts/upstream get re-synced (not the devicetree-rebasing.git but u-boot dts/upstream),

You can see the re-syncing details here (section: "Resyncing with devicetree-rebasing",
https://source.denx.de/u-boot/u-boot/-/blob/next/doc/develop/devicetree/control.rst?ref_type=heads).

Thanks - I was confused about this as I originally figured it was done via a git submodule. When I looked at the commit history of dts/upstream it wasn't clear at all because of the first mergebeing done differently as you explain above. As long as update-dts-subtree.sh is run with a clear named tag that has the kernel version in it then it's easy to follow via the short commit description.

Quoted 6 lines
Quoted 2 lines

who do you suspect
will do be doing it?

Tom will be doing that. I suppose we are just in time for a resync since the Linux kernel v6.8 was released.

Ok, that makes sense. I assume Tom will be updating it on major kernel releases and possibly rc's leading up to as well.

Quoted 14 lines

Tom,

Do you think we can make v6.8-dts sync for the U-Boot next?

Quoted 5 lines

3. how would one go about adding a new feature via dt to uboot when the same feature has not yet landed in dts upstream? perhaps the answer is it must land upstream first or do you suspect it would be ok to put something in a u-boot.dtsi that can later get removed as redundant?

From an upstream perspective, we should aim for minimal contents in *-u-boot.dtsi, ideally it would be better to get rid of them. For eg. all bootph_* properties should all be pushed upstream.

Quoted 10 lines

However, from the new features perspective we can consider using *-u-boot.dtsi if the changes are minimal like enabling some DT nodes. But if the changes are significant then that board can just opt out of OF_USTREAM but still reusing all the DT includes. The reasoning behind this is to minimize any chances of breakage if DT features in *-u-boot.dtsi diverge from DT upstream.

Quoted 3 lines

I ask mainly for being able to add things quickly to a downstream U-Boot repo that lags behind upstream U-Boot

The specific case I imagine is for example I have a couple of boards that have TPM's that I have submitted dts updates to enable which did not make the 6.8 cutoff so will be in 6.9. Meanwhile I will want to pull them manually to our downstream vendor fork of an earlier U-Boot (which in the future will have OF_UPSTEAM for our boards). Now that I see this doesn't use git submodules I can just alter the files as needed if I'm in a downstream fork while upstream can patiently wait for the sync.

Quoted 9 lines

Working downstream can always be fun, allowing additional options (can be useful for advance testing too):

1. You can play around with $ ./dts/update-dts-subtree.sh pull <tag>
2. You can manually sync the vendor directories (dts/upstream/src/<arch>/<vendor>/).
3. You can manually sync/update the individual DTS files too.

Yes... very cool. Thank you for taking the time to do this. It is a significant improvement to U-Boot!

Tim

#6 lore raw
Quoted 98 lines · Tim Harvey
Quoted 75 lines · Sumit Garg

+ Tom

Hi Tim,

Quoted 30 lines · Tim Harvey
Quoted 16 lines · Sumit Garg
Quoted 14 lines · Fabio Estevam

Hi Tim,

Quoted 10 lines · Tim Harvey

Move to imx8m{m,n,p}-venice to OF_UPSTREAM:
- replace the non-upstream generic imx8m{m,n,p}-venice dt with one of the dt's from the OF_LIST
- handle the fact that dtbs now have a 'freescale/' prefix
- imply OF_UPSTREAM
- remove rudundant files from arch/arm/dts leaving only the *-u-boot.dtsi files

Quoted 9 lines
Quoted 4 lines

...

Quoted 1 line
 33 files changed, 13 insertions(+), 10658 deletions(-)

This diff looks great :-)

+1

Hi Sumit,

Quoted 7 lines

Thanks for your work on this - I imagine over time this will de-duplicate a lot of work!

I have a couple of questions about OF_UPSTREAM I haven't found the answer to yet:
1. how do you determine what the last sync point was in dts/upstream? (ie what kernel version is it currently sync'd with)

You can get that information from merge commits that happen over dts/upstream sub-directory. It was somewhat raw information for the first time we added dts/upstream as (commit aaba2d45dc2a pointing to v6.7-dts [1]):

commit 53633a893a06bd5a0c807287d9cc29337806eaf7

Author: Tom Rini <[email protected]>
Date:   Thu Feb 29 12:33:36 2024 -0500

Squashed 'dts/upstream/' content from commit aaba2d45dc2a

git-subtree-dir: dts/upstream
git-subtree-split: aaba2d45dc2a1b3bbb710f2a3808ee1c9f340abe

[1] https://git.kernel.org/pub/scm/linux/kernel/git/devicetree/devicetree-rebasing.git/tag/?h=v6.7-dts

However, further syncs would be more clear from merge commit description, try following:

$ ./dts/update-dts-subtree.sh pull v6.8-dts

You will see merge commit saying:

commit 57508745cd2b07e55b5c414c6d646de4865418d2 (HEAD -> dt_uprev)
Merge: 3987e15e88a 14c9e8c0856
Author: Sumit Garg <[email protected]>
Date: Thu Mar 14 12:20:27 2024 +0530

Subtree merge tag 'v6.8-dts' of devicetree-rebasing repo [1] into
dts/upstream

Quoted 9 lines

[1] https://git.kernel.org/pub/scm/linux/kernel/git/devicetree/devicetree-rebasing.git/

Quoted 2 lines

2. how often will dts/upstream get re-synced (not the devicetree-rebasing.git but u-boot dts/upstream),

You can see the re-syncing details here (section: "Resyncing with devicetree-rebasing",
https://source.denx.de/u-boot/u-boot/-/blob/next/doc/develop/devicetree/control.rst?ref_type=heads).

Thanks - I was confused about this as I originally figured it was done via a git submodule. When I looked at the commit history of dts/upstream it wasn't clear at all because of the first mergebeing done differently as you explain above. As long as update-dts-subtree.sh is run with a clear named tag that has the kernel version in it then it's easy to follow via the short commit description.

Quoted 3 lines
Quoted 2 lines

who do you suspect
will do be doing it?

Quoted 6 lines
Quoted 3 lines

Tom will be doing that. I suppose we are just in time for a resync since the Linux kernel v6.8 was released.

Ok, that makes sense. I assume Tom will be updating it on major kernel releases and possibly rc's leading up to as well.

The current policy is to sync on major kernel releases only after the U-Boot next branch opens. Since we would like to avoid any DT ABI breakages for U-Boot and at the same time provide sufficient time to fix problems if any. However if DT ABI turns out to be much more stable for U-Boot then we can revisit this policy.

Quoted 39 lines
Quoted 15 lines

Tom,

Do you think we can make v6.8-dts sync for the U-Boot next?

Quoted 5 lines

3. how would one go about adding a new feature via dt to uboot when the same feature has not yet landed in dts upstream? perhaps the answer is it must land upstream first or do you suspect it would be ok to put something in a u-boot.dtsi that can later get removed as redundant?

From an upstream perspective, we should aim for minimal contents in *-u-boot.dtsi, ideally it would be better to get rid of them. For eg. all bootph_* properties should all be pushed upstream.

Quoted 10 lines

However, from the new features perspective we can consider using *-u-boot.dtsi if the changes are minimal like enabling some DT nodes. But if the changes are significant then that board can just opt out of OF_USTREAM but still reusing all the DT includes. The reasoning behind this is to minimize any chances of breakage if DT features in *-u-boot.dtsi diverge from DT upstream.

Quoted 3 lines

I ask mainly for being able to add things quickly to a downstream U-Boot repo that lags behind upstream U-Boot

The specific case I imagine is for example I have a couple of boards that have TPM's that I have submitted dts updates to enable which did not make the 6.8 cutoff so will be in 6.9. Meanwhile I will want to pull them manually to our downstream vendor fork of an earlier U-Boot (which in the future will have OF_UPSTEAM for our boards). Now that I see this doesn't use git submodules I can just alter the files as needed if I'm in a downstream fork while upstream can patiently wait for the sync.

Quoted 4 lines

Working downstream can always be fun, allowing additional options (can be useful for advance testing too):

Quoted 8 lines
Quoted 5 lines

1. You can play around with $ ./dts/update-dts-subtree.sh pull <tag>
2. You can manually sync the vendor directories (dts/upstream/src/<arch>/<vendor>/).
3. You can manually sync/update the individual DTS files too.

Yes... very cool. Thank you for taking the time to do this. It is a significant improvement to U-Boot!

Thanks for your adoption too.

-Sumit

Quoted 2 lines

Tim

reviewer
#7 lore raw
In reply to Fabio Estevam
Quoted 13 lines · Fabio Estevam

Hi Tim,

Quoted 9 lines · Tim Harvey

Move to imx8m{m,n,p}-venice to OF_UPSTREAM:
- replace the non-upstream generic imx8m{m,n,p}-venice dt with one of the dt's from the OF_LIST
- handle the fact that dtbs now have a 'freescale/' prefix
- imply OF_UPSTREAM
- remove rudundant files from arch/arm/dts leaving only the *-u-boot.dtsi files

Quoted 7 lines
Quoted 1 line

...

Quoted 1 line
 33 files changed, 13 insertions(+), 10658 deletions(-)

This diff looks great :-)

Applied for u-boot-imx/next, thanks.