From f3ffdd3ac06567500fbe6937755b61b501242ac6 Mon Sep 17 00:00:00 2001 From: Ming Liu Date: Tue, 10 May 2022 16:40:16 +0200 Subject: udev-toradex-rules: update udev rules for kernels after 5.4 ``` commit a6d094403cd6 ("ARM: dts: imx: Change usdhc node name on i.MX6/i.MX7 SoCs") commit bffe02ccca5b ("ARM: dts: imx: make wdog node name generic") ``` in kernel source has changed the `usdhc`, `watchdog` node names, adapt the udev rules to match both the old and new naming scheme. Related-to: ELB-4373 Signed-off-by: Ming Liu --- recipes-core/udev/files/colibri-imx7/99-toradex.rules | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'recipes-core/udev/files/colibri-imx7/99-toradex.rules') diff --git a/recipes-core/udev/files/colibri-imx7/99-toradex.rules b/recipes-core/udev/files/colibri-imx7/99-toradex.rules index cdb2feb..5284db0 100644 --- a/recipes-core/udev/files/colibri-imx7/99-toradex.rules +++ b/recipes-core/udev/files/colibri-imx7/99-toradex.rules @@ -6,8 +6,13 @@ ACTION=="add", ATTRS{iomem_base}=="0x30880000", SYMLINK+="colibri-uartc" ACTION=="add", KERNEL=="watchdog", DRIVERS=="rn5t618-wdt", SYMLINK+="colibri-watchdog" ACTION=="add", SUBSYSTEM=="spidev", KERNELS=="30840000.*spi", SYMLINK+="colibri-spi-cs%n" KERNEL=="mmcblk[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="30b60000.usdhc", SYMLINK+="emmc" +KERNEL=="mmcblk[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="30b60000.mmc", SYMLINK+="emmc" KERNEL=="mmcblk[0-9]boot[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="30b60000.usdhc", SYMLINK+="emmc-boot%n" +KERNEL=="mmcblk[0-9]boot[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="30b60000.mmc", SYMLINK+="emmc-boot%n" KERNEL=="mmcblk[0-9]p[0-9]", ENV{DEVTYPE}=="partition", KERNELS=="30b60000.usdhc", SYMLINK+="emmc-part%n" +KERNEL=="mmcblk[0-9]p[0-9]", ENV{DEVTYPE}=="partition", KERNELS=="30b60000.mmc", SYMLINK+="emmc-part%n" SUBSYSTEM=="iio", KERNELS=="iio:device0", RUN+="/etc/udev/scripts/toradex-adc.sh" ACTION=="add|change", KERNEL=="mmcblk[0-9]", KERNELS=="30b40000.usdhc", SYMLINK+="colibri-sd" +ACTION=="add|change", KERNEL=="mmcblk[0-9]", KERNELS=="30b40000.mmc", SYMLINK+="colibri-sd" ACTION=="add|change", KERNEL=="mmcblk[0-9]p[0-9]*", KERNELS=="30b40000.usdhc", SYMLINK+="colibri-sd-part%n" +ACTION=="add|change", KERNEL=="mmcblk[0-9]p[0-9]*", KERNELS=="30b40000.mmc", SYMLINK+="colibri-sd-part%n" -- cgit v1.2.3