summaryrefslogtreecommitdiff
path: root/recipes-core/udev/files/verdin-imx8mm/99-toradex.rules
diff options
context:
space:
mode:
authorOleksandr Suvorov <oleksandr.suvorov@toradex.com>2020-08-06 16:41:31 +0300
committerMax Krummenacher <max.krummenacher@toradex.com>2020-09-14 09:46:56 +0200
commit588e17d17a72c1cc9457da2848fba2d805c4b2ea (patch)
treedab5dd9a9bd6707bda65486f2a81f23517783820 /recipes-core/udev/files/verdin-imx8mm/99-toradex.rules
parent356ea51461d3e0477b7c2feb23d90845078387a6 (diff)
verdin-imx8m: udev: add symlink to adc raw data
Create symlinks for each supported by Verdin iMX8M Mini ADC channels, standardizing names as verdin-adcX, according to the Verdin signal names table. Related-to: ELB-2839 Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com> (cherry picked from commit 29191ec028148f41eab3f2ccb143bcede9e8224e)
Diffstat (limited to 'recipes-core/udev/files/verdin-imx8mm/99-toradex.rules')
-rw-r--r--recipes-core/udev/files/verdin-imx8mm/99-toradex.rules1
1 files changed, 1 insertions, 0 deletions
diff --git a/recipes-core/udev/files/verdin-imx8mm/99-toradex.rules b/recipes-core/udev/files/verdin-imx8mm/99-toradex.rules
index 736d9d8..2885e16 100644
--- a/recipes-core/udev/files/verdin-imx8mm/99-toradex.rules
+++ b/recipes-core/udev/files/verdin-imx8mm/99-toradex.rules
@@ -10,3 +10,4 @@ ACTION=="add", SUBSYSTEM=="spidev", KERNELS=="30830000.ecspi", SYMLINK+="verdin-
KERNEL=="mmcblk[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="30b40000.mmc", SYMLINK+="emmc"
KERNEL=="mmcblk[0-9]boot[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="30b40000.mmc", SYMLINK+="emmc-boot%n"
KERNEL=="mmcblk[0-9]p[0-9]", ENV{DEVTYPE}=="partition", KERNELS=="30b40000.mmc", SYMLINK+="emmc-part%n"
+SUBSYSTEM=="iio", KERNELS=="iio:device0", RUN+="/etc/udev/scripts/toradex-adc.sh"