diff options
author | Philippe Schenker <philippe.schenker@toradex.com> | 2020-04-27 11:15:29 +0200 |
---|---|---|
committer | Philippe Schenker <philippe.schenker@toradex.com> | 2020-04-27 11:27:30 +0200 |
commit | bd072a5fc62dd7f29a94d682de2346257344ea35 (patch) | |
tree | b70c44e2ae9422f025be72c7116ea39d2dec7960 | |
parent | 02b8668e7f49d163f48e879c51a0d2be34196ab3 (diff) |
recipes-core: udev: add rules for symlinking spi devices
This commit adds rules to udev so apalis/colibri or verdin spi
devices are symlinked consistently.
Related-to: ELB-2380, ELB-2598
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
9 files changed, 12 insertions, 0 deletions
diff --git a/recipes-core/udev/files/apalis-imx6/99-toradex.rules b/recipes-core/udev/files/apalis-imx6/99-toradex.rules index 016a110..fa258ba 100644 --- a/recipes-core/udev/files/apalis-imx6/99-toradex.rules +++ b/recipes-core/udev/files/apalis-imx6/99-toradex.rules @@ -7,3 +7,5 @@ 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" diff --git a/recipes-core/udev/files/apalis-imx8/99-toradex.rules b/recipes-core/udev/files/apalis-imx8/99-toradex.rules index 0599594..5cc0c45 100644 --- a/recipes-core/udev/files/apalis-imx8/99-toradex.rules +++ b/recipes-core/udev/files/apalis-imx8/99-toradex.rules @@ -6,3 +6,5 @@ ACTION=="add", ATTRS{iomem_base}=="0x5A090010", SYMLINK+="apalis-tty2" ACTION=="add", ATTRS{iomem_base}=="0x5A060010", SYMLINK+="apalis-tty3" ACTION=="add", ATTRS{iomem_base}=="0x5A080010", SYMLINK+="apalis-tty4" ACTION=="add", KERNELS=="watchdog", SYMLINK+="apalis-watchdog" +ACTION=="add", SUBSYSTEM=="spidev", KERNELS=="5a000000.lpspi", SYMLINK+="apalis-spi1-cs%n" +ACTION=="add", SUBSYSTEM=="spidev", KERNELS=="5a020000.lpspi", SYMLINK+="apalis-spi2-cs%n" diff --git a/recipes-core/udev/files/apalis-imx8x/99-toradex.rules b/recipes-core/udev/files/apalis-imx8x/99-toradex.rules index 960ede0..63b3542 100644 --- a/recipes-core/udev/files/apalis-imx8x/99-toradex.rules +++ b/recipes-core/udev/files/apalis-imx8x/99-toradex.rules @@ -7,3 +7,5 @@ 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" +ACTION=="add", SUBSYSTEM=="spidev", KERNELS=="5a000000.lpspi", SYMLINK+="apalis-spi1-cs%n" +ACTION=="add", SUBSYSTEM=="spidev", KERNELS=="5a020000.lpspi", SYMLINK+="apalis-spi2-cs%n" diff --git a/recipes-core/udev/files/colibri-imx6/99-toradex.rules b/recipes-core/udev/files/colibri-imx6/99-toradex.rules index b1624bb..9283577 100644 --- a/recipes-core/udev/files/colibri-imx6/99-toradex.rules +++ b/recipes-core/udev/files/colibri-imx6/99-toradex.rules @@ -5,3 +5,4 @@ ACTION=="add", ATTRS{iomem_base}=="0x2020000", SYMLINK+="colibri-ttya" ACTION=="add", ATTRS{iomem_base}=="0x21E8000", SYMLINK+="colibri-ttyb" ACTION=="add", ATTRS{iomem_base}=="0x21EC000", SYMLINK+="colibri-ttyc" ACTION=="add", KERNELS=="20bc000.wdog", SYMLINK+="colibri-watchdog" +ACTION=="add", SUBSYSTEM=="spidev", KERNELS=="2014000.ecspi", SYMLINK+="colibri-spi-cs%n" diff --git a/recipes-core/udev/files/colibri-imx6ull/99-toradex.rules b/recipes-core/udev/files/colibri-imx6ull/99-toradex.rules index 7fbfb6d..a5f1619 100644 --- a/recipes-core/udev/files/colibri-imx6ull/99-toradex.rules +++ b/recipes-core/udev/files/colibri-imx6ull/99-toradex.rules @@ -4,3 +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" diff --git a/recipes-core/udev/files/colibri-imx7-emmc/99-toradex.rules b/recipes-core/udev/files/colibri-imx7-emmc/99-toradex.rules index b82f24a..ba70bdd 100644 --- a/recipes-core/udev/files/colibri-imx7-emmc/99-toradex.rules +++ b/recipes-core/udev/files/colibri-imx7-emmc/99-toradex.rules @@ -4,3 +4,4 @@ ACTION=="add", ATTRS{iomem_base}=="0x30860000", SYMLINK+="colibri-ttya" ACTION=="add", ATTRS{iomem_base}=="0x30890000", SYMLINK+="colibri-ttyb" ACTION=="add", ATTRS{iomem_base}=="0x30880000", SYMLINK+="colibri-ttyc" ACTION=="add", KERNEL=="watchdog", DRIVERS=="rn5t618-wdt", SYMLINK+="colibri-watchdog" +ACTION=="add", SUBSYSTEM=="spidev", KERNELS=="30840000.ecspi", SYMLINK+="colibri-spi-cs%n" diff --git a/recipes-core/udev/files/colibri-imx7/99-toradex.rules b/recipes-core/udev/files/colibri-imx7/99-toradex.rules index b82f24a..ba70bdd 100644 --- a/recipes-core/udev/files/colibri-imx7/99-toradex.rules +++ b/recipes-core/udev/files/colibri-imx7/99-toradex.rules @@ -4,3 +4,4 @@ ACTION=="add", ATTRS{iomem_base}=="0x30860000", SYMLINK+="colibri-ttya" ACTION=="add", ATTRS{iomem_base}=="0x30890000", SYMLINK+="colibri-ttyb" ACTION=="add", ATTRS{iomem_base}=="0x30880000", SYMLINK+="colibri-ttyc" ACTION=="add", KERNEL=="watchdog", DRIVERS=="rn5t618-wdt", SYMLINK+="colibri-watchdog" +ACTION=="add", SUBSYSTEM=="spidev", KERNELS=="30840000.ecspi", SYMLINK+="colibri-spi-cs%n" diff --git a/recipes-core/udev/files/colibri-imx8x/99-toradex.rules b/recipes-core/udev/files/colibri-imx8x/99-toradex.rules index 00390f1..e68645f 100644 --- a/recipes-core/udev/files/colibri-imx8x/99-toradex.rules +++ b/recipes-core/udev/files/colibri-imx8x/99-toradex.rules @@ -4,3 +4,4 @@ ACTION=="add", ATTRS{iomem_base}=="0x5A090010", SYMLINK+="colibri-ttya" ACTION=="add", ATTRS{iomem_base}=="0x5A060010", SYMLINK+="colibri-ttyb" ACTION=="add", ATTRS{iomem_base}=="0x5A080010", SYMLINK+="colibri-ttyc" ACTION=="add", KERNELS=="watchdog", SYMLINK+="colibri-watchdog" +ACTION=="add", SUBSYSTEM=="spidev", KERNELS=="5a020000.lpspi", SYMLINK+="colibri-spi-cs%n" diff --git a/recipes-core/udev/files/verdin-imx8mm/99-toradex.rules b/recipes-core/udev/files/verdin-imx8mm/99-toradex.rules index b0ee1f2..cb046a8 100644 --- a/recipes-core/udev/files/verdin-imx8mm/99-toradex.rules +++ b/recipes-core/udev/files/verdin-imx8mm/99-toradex.rules @@ -6,3 +6,4 @@ ACTION=="add", ATTRS{iomem_base}=="0x30890000", SYMLINK+="verdin-tty1" ACTION=="add", ATTRS{iomem_base}=="0x30880000", SYMLINK+="verdin-tty2" ACTION=="add", ATTRS{iomem_base}=="0x30860000", SYMLINK+="verdin-tty3" ACTION=="add", KERNELS=="watchdog", SYMLINK+="verdin-watchdog" +ACTION=="add", SUBSYSTEM=="spidev", KERNELS=="30830000.ecspi", SYMLINK+="verdin-spi-cs%n" |