summaryrefslogtreecommitdiff
path: root/recipes-core/udev/files/verdin-am62/99-toradex.rules
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-core/udev/files/verdin-am62/99-toradex.rules')
-rw-r--r--recipes-core/udev/files/verdin-am62/99-toradex.rules15
1 files changed, 15 insertions, 0 deletions
diff --git a/recipes-core/udev/files/verdin-am62/99-toradex.rules b/recipes-core/udev/files/verdin-am62/99-toradex.rules
new file mode 100644
index 0000000..d74e9bd
--- /dev/null
+++ b/recipes-core/udev/files/verdin-am62/99-toradex.rules
@@ -0,0 +1,15 @@
+#ACTION=="add|change", KERNEL=="i2c-[0-9]*", ATTRS{name}=="30a50000.i2c", SYMLINK+="verdin-i2c1"
+#ACTION=="add|change", KERNEL=="i2c-[0-9]*", ATTRS{name}=="30a30000.i2c", SYMLINK+="verdin-i2c2"
+#ACTION=="add|change", KERNEL=="i2c-[0-9]*", ATTRS{name}=="30a40000.i2c", SYMLINK+="verdin-i2c4"
+#ACTION=="add|change", KERNEL=="i2c-[0-9]*", ATTRS{name}=="30a20000.i2c", SYMLINK+="verdin-i2c-on-module"
+#ACTION=="add|change", ATTRS{iomem_base}=="0x30890000", SYMLINK+="verdin-uart1"
+#ACTION=="add|change", ATTRS{iomem_base}=="0x30880000", SYMLINK+="verdin-uart2"
+#ACTION=="add|change", ATTRS{iomem_base}=="0x30860000", SYMLINK+="verdin-uart3"
+#ACTION=="add|change", KERNELS=="watchdog", SYMLINK+="verdin-watchdog"
+#ACTION=="add|change", SUBSYSTEM=="spidev", KERNELS=="30830000.*spi", SYMLINK+="verdin-spi-cs%n"
+KERNEL=="mmcblk[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="fa10000.mmc", SYMLINK+="emmc"
+KERNEL=="mmcblk[0-9]boot[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="fa10000.mmc", SYMLINK+="emmc-boot%n"
+KERNEL=="mmcblk[0-9]p[0-9]", ENV{DEVTYPE}=="partition", KERNELS=="fa10000.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=="fa00000.mmc", SYMLINK+="verdin-sd"
+ACTION=="add|change", KERNEL=="mmcblk[0-9]p[0-9]*", KERNELS=="fa00000.mmc", SYMLINK+="verdin-sd-part%n"