summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleksandr Suvorov <oleksandr.suvorov@toradex.com>2020-06-22 17:52:11 +0300
committerOleksandr Suvorov <oleksandr.suvorov@toradex.com>2020-06-22 18:25:38 +0300
commit9109e68f1b0a8cb9228e7ff39bc41b5d0f209cbf (patch)
tree0c804906ceda2c64b1d257e460e8df63bf758cfa
parente0beff9f048259b24b147b21f49c1463ebd70511 (diff)
99-toradex.rules: fix (ec)spi rule
There are 2 different names for spi use by downstream and upstream kernel. Fix the udev rules to match both variants. Related-to: ELB-2784 Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
-rw-r--r--recipes-core/udev/files/apalis-imx6/99-toradex.rules4
-rw-r--r--recipes-core/udev/files/colibri-imx6ull/99-toradex.rules2
2 files changed, 3 insertions, 3 deletions
diff --git a/recipes-core/udev/files/apalis-imx6/99-toradex.rules b/recipes-core/udev/files/apalis-imx6/99-toradex.rules
index ee467a4..992f9e4 100644
--- a/recipes-core/udev/files/apalis-imx6/99-toradex.rules
+++ b/recipes-core/udev/files/apalis-imx6/99-toradex.rules
@@ -7,8 +7,8 @@ ACTION=="add", ATTRS{iomem_base}=="0x21E8000", SYMLINK+="apalis-tty2"
ACTION=="add", ATTRS{iomem_base}=="0x21F0000", SYMLINK+="apalis-tty3"
ACTION=="add", ATTRS{iomem_base}=="0x21F4000", SYMLINK+="apalis-tty4"
ACTION=="add", KERNELS=="20bc000.wdog", SYMLINK+="apalis-watchdog"
-ACTION=="add", SUBSYSTEM=="spidev", KERNELS=="2008000.ecspi", SYMLINK+="apalis-spi1-cs%n"
-ACTION=="add", SUBSYSTEM=="spidev", KERNELS=="200c000.ecspi", SYMLINK+="apalis-spi2-cs%n"
+ACTION=="add", SUBSYSTEM=="spidev", KERNELS=="2008000.*spi", SYMLINK+="apalis-spi1-cs%n"
+ACTION=="add", SUBSYSTEM=="spidev", KERNELS=="200c000.*spi", SYMLINK+="apalis-spi2-cs%n"
KERNEL=="mmcblk[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="2198000.usdhc", SYMLINK+="emmc"
KERNEL=="mmcblk[0-9]boot[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="2198000.usdhc", SYMLINK+="emmc-boot%n"
KERNEL=="mmcblk[0-9]p[0-9]", ENV{DEVTYPE}=="partition", KERNELS=="2198000.usdhc", SYMLINK+="emmc-part%n"
diff --git a/recipes-core/udev/files/colibri-imx6ull/99-toradex.rules b/recipes-core/udev/files/colibri-imx6ull/99-toradex.rules
index a5f1619..e0c84f9 100644
--- a/recipes-core/udev/files/colibri-imx6ull/99-toradex.rules
+++ b/recipes-core/udev/files/colibri-imx6ull/99-toradex.rules
@@ -4,4 +4,4 @@ ACTION=="add", ATTRS{iomem_base}=="0x2020000", SYMLINK+="colibri-ttya"
ACTION=="add", ATTRS{iomem_base}=="0x21E8000", SYMLINK+="colibri-ttyb"
ACTION=="add", ATTRS{iomem_base}=="0x21F4000", SYMLINK+="colibri-ttyc"
ACTION=="add", KERNELS=="20bc000.wdog", SYMLINK+="colibri-watchdog"
-ACTION=="add", SUBSYSTEM=="spidev", KERNELS=="2008000.ecspi", SYMLINK+="colibri-spi-cs%n"
+ACTION=="add", SUBSYSTEM=="spidev", KERNELS=="2008000.*spi", SYMLINK+="colibri-spi-cs%n"