diff options
author | Philippe Schenker <philippe.schenker@toradex.com> | 2020-03-13 20:20:14 +0100 |
---|---|---|
committer | Philippe Schenker <philippe.schenker@toradex.com> | 2020-03-17 16:43:08 +0100 |
commit | 47ef64803548f73a0eda753c5d3d3f7f315af606 (patch) | |
tree | 4531a10951c555381be61116758ac3c9711e7a65 /recipes-core/udev/files/apalis-imx8x/99-toradex.rules | |
parent | d66a4e9bbfc84f9288c0da93643b40094516fa45 (diff) |
recipes-core: Add udev-toradex-rules recipe
These rules make sure that a symlink is created for all i2c and tty
devices. This symlinks are named like on the Toradex carrier boards.
This makes it easy to identify which device in software is matching
the hardware pins.
Additional non-standard devices that are not named clearly on the
carrier board are left out to prevent confusion.
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
Diffstat (limited to 'recipes-core/udev/files/apalis-imx8x/99-toradex.rules')
-rw-r--r-- | recipes-core/udev/files/apalis-imx8x/99-toradex.rules | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/recipes-core/udev/files/apalis-imx8x/99-toradex.rules b/recipes-core/udev/files/apalis-imx8x/99-toradex.rules new file mode 100644 index 0000000..960ede0 --- /dev/null +++ b/recipes-core/udev/files/apalis-imx8x/99-toradex.rules @@ -0,0 +1,9 @@ +ACTION=="add", KERNEL=="i2c-[0-9]*", ATTRS{name}=="5a810000.i2c", SYMLINK+="apalis-i2c1" +ACTION=="add", KERNEL=="i2c-[0-9]*", ATTRS{name}=="56246000.i2c", SYMLINK+="apalis-i2c2" +ACTION=="add", KERNEL=="i2c-[0-9]*", ATTRS{name}=="5a830000.i2c", SYMLINK+="apalis-i2c3" +ACTION=="add", KERNEL=="i2c-[0-9]*", ATTRS{name}=="5a800000.i2c", SYMLINK+="apalis-i2c-on-module" +ACTION=="add", ATTRS{iomem_base}=="0x5A070010", SYMLINK+="apalis-tty1" +ACTION=="add", ATTRS{iomem_base}=="0x5A060010", SYMLINK+="apalis-tty2" +ACTION=="add", ATTRS{iomem_base}=="0x5A080010", SYMLINK+="apalis-tty3" +ACTION=="add", ATTRS{iomem_base}=="0x5A090010", SYMLINK+="apalis-tty4" +ACTION=="add", KERNELS=="watchdog", SYMLINK+="apalis-watchdog" |