]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ARM: dts: stm32: omit unused pinctrl groups from stm32mp13 dtb files
authorAlexandre Torgue <alexandre.torgue@foss.st.com>
Fri, 5 Jul 2024 09:36:35 +0000 (11:36 +0200)
committerAlexandre Torgue <alexandre.torgue@foss.st.com>
Fri, 5 Jul 2024 12:45:25 +0000 (14:45 +0200)
commit81e7b432f144155d791ae4ed8cb0ef78ddb532cf
tree876997476e6fb94c43e15dcf414a1dc1b28bdc6d
parente0fc47d897fbf89bd556a898624490e7171f3adb
ARM: dts: stm32: omit unused pinctrl groups from stm32mp13 dtb files

stm32mp13-pinctrl.dtsi contains nearly all pinctrl groups collected from
all boards. Most of them end up unused by a board and only waste binary
space. Add /omit-if-no-ref/ to the groups to scrub the unused groups
from the dtbs.

Use the following regex to update the file and drop two useless newlines too:
s@^\t[^:]\+: [^ ]\+ {$@\t/omit-if-no-ref/\r&@

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi