summaryrefslogtreecommitdiff
path: root/recipes-core/udev/files/colibri-imx7-emmc/99-toradex.rules
AgeCommit message (Collapse)Author
2023-09-05udev-toradex-rules: colibri-imx7: Fix watchdog symlinks creationEmanuele Ghidoli
Fix these unwanted behaviors: - With kernel >= v6.3 /dev/colibri-watchdog-som and /dev/colibri-watchdog are missing. Driver init sequence changes, the KERNEL label changes from watchdog to watchdog1 and relevant rule that create the symlinks stops matching. - With kernel < v6.3 /dev/colibri-watchdog-som and /dev/colibri-watchdog-soc are pointing to the same device, respectively /dev/watchdog0 (miscdev) and /dev/watchdog (cdev) using the same watchdog device (the SoM rn5t618 watchdog). Instead, it is expected that /dev/colibri-watchdog-soc links to the SoC imx2-wdt watchdog device. These are the current two configurations: < v6.3: /dev/colibri-watchdog -> watchdog0 (rn5t618) /dev/colibri-watchdog-soc -> watchdog1 (imx2-wdt) /dev/colibri-watchdog-som -> watchdog0 (rn5t618) >= v6.3: /dev/colibri-watchdog -> watchdog1 (rn5t618) /dev/colibri-watchdog-soc -> watchdog0 (imx2-wdt) /dev/colibri-watchdog-som -> watchdog1 (rn5t618) Related-to: ELB-5315 Fixes: 9f9fa5d6c8ed ("udev-toradex-rules: Add additional watchdog symlink") Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com> (cherry picked from commit 73e42815204f68ac520037afe7046f6022d7bb55)
2023-02-27udev-toradex-rules: Add additional watchdog symlinkFrancesco Dolcini
${family}-watchdog-som -> SoM watchdog, e.g. pmic ${family}-watchdog-soc -> SoC watchdog Related-to: ELB-5039 Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com> (cherry picked from commit 9f9fa5d6c8ed679f75566476099ac76baac54602)
2022-08-10udev-toradex-rules: Fix symlink creationsFrancesco Dolcini
Depending on the kernel driver probe time in some circumstances the udev event is not add, but change, add both to the rules. Without this change the uart symlinks are not created if the imx-sdma driver is loaded after udev is started. Related-to: ELB-4655 Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
2022-06-15udev-toradex-rules: update udev rules for kernels after 5.4Ming Liu
``` commit a6d094403cd6 ("ARM: dts: imx: Change usdhc node name on i.MX6/i.MX7 SoCs") commit bffe02ccca5b ("ARM: dts: imx: make wdog node name generic") ``` in kernel source has changed the `usdhc`, `watchdog` node names, adapt the udev rules to match both the old and new naming scheme. Related-to: ELB-4373 Signed-off-by: Ming Liu <ming.liu@toradex.com>
2021-08-14udev: 99-toradex.rules: improve sd-card rulesPhilippe Schenker
ENV{DEVTYPE} has been found to not be present on apalis-imx6 sometimes. Since we see also some troubles on our lava setup this property is being removed from this rule as anyway disk and partition is already catched with the "p" in the KERNEL rule Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com> (cherry picked from commit d9b673df1b21c14dfb9db76a037698a0065a8ee7)
2021-05-24recipes-core: udev: add hardware stable symlinks for sd-cardPhilippe Schenker
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com> (cherry picked from commit f5af6cd7e39e0eee75cca7f89ac81b5601267794) recipes-core: udev: change sd-card symlinks to style of emmc rules This commit does three things: - Use "-part<number>" instead of "-p" as it is with /dev/emmc symlinks - Use ENV{DEVTYPE} as it is used with /dev/emmc symlinks to for sure be able to distinguish partitions vs. disks - Use %n in stead of $attr{partition} as it is already used for emmc symlink rules Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com> (cherry picked from commit f8d013071a68cb90bbff8e00bdb328e472354ab8)
2020-09-14colibri-imx7: udev: add symlink to adc raw dataOleksandr Suvorov
Create symlinks for each supported by Colibri iMX7/iMX7-eMMC ADC channels, standardizing names as colibri-ainX, according to the Colibri signal names table. Related-to: ELB-2839 Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com> (cherry picked from commit f627f20a298d441b5d94ba4ab80a1121065f1f75)
2020-06-3099-toradex.rules: rename *-ttyX to *-uartXOleksandr Suvorov
According to the internal document "Hardware interfaces standardization", the UART interfaces should be accessed via device nodes named with the module family and matching the signal name used in the module datasheet. Modify udev rules for UART devices accordingly. Related-to: ELB-2787 Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com> (cherry picked from commit 2e2be094e62bb61c9e58a115b5d89d5b960eed50)
2020-06-30colibri-imx7/emmc: fix (ec)spi ruleOleksandr Suvorov
There are 2 different names for spi use by downstream and upstream kernel. Fix the udev rules to match both variants. Related-to: ELB-2784 Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com> (cherry picked from commit bbdee96d17e5a69e832197dedc587e45737892be)
2020-06-01recipes-core: udev: move emmc rules from torizon to bspPhilippe Schenker
This adds udev rules for symlinking eMMC devices consitently. Related-to: ELB-2380, ELB-2696 Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com> (cherry picked from commit ac32e59f1f961070189e1a038644f87ce9e7c152)
2020-06-01recipes-core: udev: add rules for symlinking spi devicesPhilippe Schenker
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> (cherry picked from commit bd072a5fc62dd7f29a94d682de2346257344ea35)
2020-03-19recipes-core: Add udev-toradex-rules recipePhilippe Schenker
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. Related-to: ELB-2380 Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com> (cherry picked from commit 47ef64803548f73a0eda753c5d3d3f7f315af606)