summaryrefslogtreecommitdiff
path: root/recipes-core/udev/files/colibri-imx7-emmc/99-toradex.rules
diff options
context:
space:
mode:
authorMing Liu <ming.liu@toradex.com>2022-05-10 16:40:16 +0200
committerMing Liu <ming.liu@toradex.com>2022-06-15 13:37:25 +0200
commitf3ffdd3ac06567500fbe6937755b61b501242ac6 (patch)
tree69c873cffc3936e91735d4a6a5c19d139a764340 /recipes-core/udev/files/colibri-imx7-emmc/99-toradex.rules
parent25e4cd16014587b9268f1af43e383a96d414ed26 (diff)
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 <ming.liu@toradex.com>
Diffstat (limited to 'recipes-core/udev/files/colibri-imx7-emmc/99-toradex.rules')
-rw-r--r--recipes-core/udev/files/colibri-imx7-emmc/99-toradex.rules5
1 files changed, 5 insertions, 0 deletions
diff --git a/recipes-core/udev/files/colibri-imx7-emmc/99-toradex.rules b/recipes-core/udev/files/colibri-imx7-emmc/99-toradex.rules
index cdb2feb..5284db0 100644
--- a/recipes-core/udev/files/colibri-imx7-emmc/99-toradex.rules
+++ b/recipes-core/udev/files/colibri-imx7-emmc/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"