]> git.dujemihanovic.xyz Git - u-boot.git/commit
ARM: dts: stm32: Auto-detect second MAC on STM32MP15xx DH electronics DHCOM
authorMarek Vasut <marex@denx.de>
Thu, 6 Jun 2024 13:01:48 +0000 (15:01 +0200)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Tue, 18 Jun 2024 06:55:52 +0000 (08:55 +0200)
commitf4a565104425032be537aef14cd2617c274e7bdf
tree35dfe0435b9e7ab2e7da44b37cb96bd252a54a4a
parentff51ef85d66467a6b89d28f7ec3f9b418d2cf5d7
ARM: dts: stm32: Auto-detect second MAC on STM32MP15xx DH electronics DHCOM

Test whether this system is compatible with STM32MP15xx DHCOM SoM,
if so, test whether R292 pull up is populated on pin PC3, which is
an indication that the second MAC chip, KS8851-16MLL, is populated.
Use this information to patch 'status' DT property into the second
ethernet MAC DT node and enable/disable the MAC on systems where
the chip is/isn't populated respectively.

Use spl_perform_fixups() to patch the U-Boot proper DT from SPL and
ft_board_setup() to patch Linux DT from U-Boot proper. This way both
software components are configured the same way.

Signed-off-by: Marek Vasut <marex@denx.de>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
arch/arm/dts/stm32mp15xx-dhcom-u-boot.dtsi
board/dhelectronics/dh_stm32mp1/board.c