Skip to content

Commit 6d04828

Browse files
committed
dm: Remove pre-schema tag support
Support for using "u-boot,dm-..." rather than "bootph-..." has been deprecated since February 2023. Any platforms using this have had a console message saying to migrate by 2023.07. Go and remove all support here now, for the v2026.01 release. The results of this change that aren't clear from the above are that we still have a checkpatch.pl error message, and document in doc/develop/spl.rst that they have been migrated since 2023. We also change the key2dtsi.py tool to use the correct bootph phase rather than the legacy phase. Signed-off-by: Tom Rini <trini@konsulko.com>
1 parent d3b691c commit 6d04828

19 files changed

Lines changed: 4 additions & 183 deletions

.azure-pipelines.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -190,18 +190,6 @@ stages:
190190
export PYTHONPATH=${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc/pylibfdt
191191
make pylint_err
192192
193-
- job: check_for_pre_schema_tags
194-
displayName: 'Check for pre-schema driver model tags'
195-
pool:
196-
vmImage: $(ubuntu_vm)
197-
container:
198-
image: $(ci_runner_image)
199-
options: $(container_option)
200-
steps:
201-
# If grep succeeds and finds a match the test fails as we should
202-
# have no matches.
203-
- script: git grep u-boot,dm- -- '*.dts*' && exit 1 || exit 0
204-
205193
- job: check_packing_of_python_tools
206194
displayName: 'Check we can package the Python tools'
207195
pool:

.gitlab-ci.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -249,15 +249,6 @@ Run pylint:
249249
- export PYTHONPATH="${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc/pylibfdt"
250250
- make pylint_err
251251

252-
# Check for pre-schema driver model tags
253-
Check for pre-schema tags:
254-
extends: .testsuites
255-
script:
256-
- git config --global --add safe.directory "${CI_PROJECT_DIR}";
257-
# If grep succeeds and finds a match the test fails as we should
258-
# have no matches.
259-
- git grep u-boot,dm- -- '*.dts*' && exit 1 || exit 0
260-
261252
# Check we can package the Python tools
262253
Check packing of Python tools:
263254
extends: .testsuites

common/board_r.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -572,13 +572,6 @@ static int dm_announce(void)
572572
printf("Warning: Unexpected devicetree source (not from a prior stage)");
573573
printf("Warning: U-Boot may not function properly\n");
574574
}
575-
if (IS_ENABLED(CONFIG_OF_TAG_MIGRATE) &&
576-
(gd->flags & GD_FLG_OF_TAG_MIGRATE))
577-
/*
578-
* U-Boot will silently fail to work after 2023.07 if
579-
* there are old tags present
580-
*/
581-
printf("Warning: Device tree includes old 'u-boot,dm-' tags: please fix by 2023.07!\n");
582575
}
583576

584577
return 0;

configs/ibex-ast2700_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ CONFIG_CMD_SYSBOOT=y
6565
CONFIG_CMD_EXT4=y
6666
CONFIG_CMD_FS_GENERIC=y
6767
CONFIG_DEVICE_TREE_INCLUDES="ast2700-u-boot.dtsi"
68-
# CONFIG_OF_TAG_MIGRATE is not set
6968
CONFIG_ENV_RELOC_GD_ENV_ADDR=y
7069
CONFIG_SYS_RX_ETH_BUFFER=2
7170
# CONFIG_DM_DEVICE_REMOVE is not set

configs/jaguar-rk3588_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ CONFIG_CMD_SQUASHFS=y
5757
# CONFIG_SPL_DOS_PARTITION is not set
5858
CONFIG_SPL_OF_CONTROL=y
5959
CONFIG_OF_LIVE=y
60-
# CONFIG_OF_TAG_MIGRATE is not set
6160
CONFIG_OF_SPL_REMOVE_PROPS="interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents"
6261
CONFIG_ENV_OVERWRITE=y
6362
CONFIG_ENV_IS_IN_MMC=y

configs/sama5d29_curiosity_mmc1_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ CONFIG_CMD_MTDPARTS_SHOW_NET_SIZES=y
6565
CONFIG_MTDIDS_DEFAULT="nor0=nor0"
6666
CONFIG_MTDPARTS_DEFAULT="mtdparts=nor0:256k(bootstrap)ro,1M(u-boot)ro,256k(env)ro,512k(dtb)ro,6M(kernel)ro"
6767
CONFIG_OF_CONTROL=y
68-
# CONFIG_OF_TAG_MIGRATE is not set
6968
CONFIG_ENV_IS_IN_FAT=y
7069
CONFIG_ENV_FAT_DEVICE_AND_PART="1:1"
7170
CONFIG_ENV_RELOC_GD_ENV_ADDR=y

configs/sama5d29_curiosity_mmc_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ CONFIG_CMD_MTDPARTS_SHOW_NET_SIZES=y
6565
CONFIG_MTDIDS_DEFAULT="nor0=nor0"
6666
CONFIG_MTDPARTS_DEFAULT="mtdparts=nor0:256k(bootstrap)ro,1M(u-boot)ro,256k(env)ro,512k(dtb)ro,6M(kernel)ro"
6767
CONFIG_OF_CONTROL=y
68-
# CONFIG_OF_TAG_MIGRATE is not set
6968
CONFIG_ENV_IS_IN_FAT=y
7069
CONFIG_ENV_RELOC_GD_ENV_ADDR=y
7170
CONFIG_USE_HOSTNAME=y

configs/sama5d29_curiosity_qspiflash_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ CONFIG_CMD_MTDPARTS_SHOW_NET_SIZES=y
6565
CONFIG_MTDIDS_DEFAULT="nor0=nor0"
6666
CONFIG_MTDPARTS_DEFAULT="mtdparts=nor0:256k(bootstrap)ro,1M(u-boot)ro,256k(env)ro,512k(dtb)ro,6M(kernel)ro"
6767
CONFIG_OF_CONTROL=y
68-
# CONFIG_OF_TAG_MIGRATE is not set
6968
CONFIG_ENV_IS_IN_SPI_FLASH=y
7069
CONFIG_ENV_RELOC_GD_ENV_ADDR=y
7170
CONFIG_USE_HOSTNAME=y

configs/sama7g54_curiosity_mmc_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ CONFIG_CMD_MTDPARTS_SHOW_NET_SIZES=y
6868
CONFIG_MTDIDS_DEFAULT="nand0=nand0,nor0=nor0"
6969
CONFIG_MTDPARTS_DEFAULT="mtdparts=nand0:256k(bootstrap-nand)ro,1M(u-boot-nand)ro,256k(env-nand)ro,512k(dtb-nand)ro,6M(kernel-nand)ro,-(rootfs-nand)ro;nor0:256k(bootstrap-nor)ro,1M(u-boot-nor)ro,256k(env-nor)ro,512k(dtb-nor)ro,6M(kernel-nor)ro"
7070
CONFIG_OF_CONTROL=y
71-
# CONFIG_OF_TAG_MIGRATE is not set
7271
CONFIG_ENV_IS_IN_FAT=y
7372
CONFIG_ENV_FAT_DEVICE_AND_PART="1:1"
7473
CONFIG_ENV_RELOC_GD_ENV_ADDR=y

configs/sama7g54_curiosity_nandflash_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ CONFIG_CMD_MTDPARTS_SHOW_NET_SIZES=y
6767
CONFIG_MTDIDS_DEFAULT="nand0=nand0,nor0=nor0"
6868
CONFIG_MTDPARTS_DEFAULT="mtdparts=nand0:256k(bootstrap-nand)ro,1M(u-boot-nand)ro,256k(env-nand)ro,512k(dtb-nand)ro,6M(kernel-nand)ro,-(rootfs-nand)ro;nor0:256k(bootstrap-nor)ro,1M(u-boot-nor)ro,256k(env-nor)ro,512k(dtb-nor)ro,6M(kernel-nor)ro"
6969
CONFIG_OF_CONTROL=y
70-
# CONFIG_OF_TAG_MIGRATE is not set
7170
CONFIG_ENV_IS_IN_NAND=y
7271
CONFIG_ENV_RELOC_GD_ENV_ADDR=y
7372
CONFIG_USE_HOSTNAME=y

0 commit comments

Comments
 (0)