diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2020-11-26 17:43:06 +0100 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2020-12-08 15:01:18 +0100 |
commit | 250a6308016fb984e32b0e64e5be449d8b5d17a9 (patch) | |
tree | 6fe7e9838e993db81eb5a3ec705a0af0abf28baa /recipes-core/udev/files/verdin-imx8mp/99-toradex.rules | |
parent | 21aae47faea28cff88cb4f33825495a5356a1f72 (diff) |
verdin-imx8mp: udev: add symlink rules
Create stable symlinks mapping Verdin family function names to the kernel
device files.
Related-to: ELB-3293
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit deabb60123ce2454694d643bdfb2ee7501888f7f)
Diffstat (limited to 'recipes-core/udev/files/verdin-imx8mp/99-toradex.rules')
-rw-r--r-- | recipes-core/udev/files/verdin-imx8mp/99-toradex.rules | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/recipes-core/udev/files/verdin-imx8mp/99-toradex.rules b/recipes-core/udev/files/verdin-imx8mp/99-toradex.rules new file mode 100644 index 0000000..f1554e2 --- /dev/null +++ b/recipes-core/udev/files/verdin-imx8mp/99-toradex.rules @@ -0,0 +1,13 @@ +ACTION=="add", KERNEL=="i2c-[0-9]*", ATTRS{name}=="30a50000.i2c", SYMLINK+="verdin-i2c1" +ACTION=="add", KERNEL=="i2c-[0-9]*", ATTRS{name}=="30a30000.i2c", SYMLINK+="verdin-i2c2" +ACTION=="add", KERNEL=="i2c-[0-9]*", ATTRS{name}=="30a40000.i2c", SYMLINK+="verdin-i2c4" +ACTION=="add", KERNEL=="i2c-[0-9]*", ATTRS{name}=="30a20000.i2c", SYMLINK+="verdin-i2c-on-module" +ACTION=="add", ATTRS{iomem_base}=="0x30860000", SYMLINK+="verdin-uart1" +ACTION=="add", ATTRS{iomem_base}=="0x30890000", SYMLINK+="verdin-uart2" +ACTION=="add", ATTRS{iomem_base}=="0x30880000", SYMLINK+="verdin-uart3" +ACTION=="add", KERNELS=="watchdog", SYMLINK+="verdin-watchdog" +ACTION=="add", SUBSYSTEM=="spidev", KERNELS=="30820000.ecspi", SYMLINK+="verdin-spi-cs%n" +KERNEL=="mmcblk[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="30b60000.mmc", SYMLINK+="emmc" +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.mmc", SYMLINK+="emmc-part%n" +SUBSYSTEM=="iio", KERNELS=="iio:device0", RUN+="/etc/udev/scripts/toradex-adc.sh" |