summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2021-03-24 10:53:20 +0100
committerMax Krummenacher <max.krummenacher@toradex.com>2021-03-24 10:56:42 +0100
commite38615820b4fd86484effd75d486b326d6f4e6e3 (patch)
tree932ac78ee0ccda71590adc385bf3b9d4ee8059cf
parentb29e20964a72e01193b242aefb6cde655dda7d87 (diff)
verdin-imx8mm: udev: correct symlink to adc raw data
With the V1.1 HW of the module the ADC changed. With this change the mapping of the channels to the module's pins also changed. Follow that. ELB-3866 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
-rwxr-xr-xrecipes-core/udev/files/verdin-imx8mm/toradex-adc.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/recipes-core/udev/files/verdin-imx8mm/toradex-adc.sh b/recipes-core/udev/files/verdin-imx8mm/toradex-adc.sh
index 0f5f878..89c1c92 100755
--- a/recipes-core/udev/files/verdin-imx8mm/toradex-adc.sh
+++ b/recipes-core/udev/files/verdin-imx8mm/toradex-adc.sh
@@ -5,13 +5,13 @@
# Create/remove symlinks to/from the files with raw adc data.
# Map the ADC lines:
-# verdin-adc{1..4} -> MAX11607 ADC{0,1,2,3}
+# verdin-adc{1..4} -> TLA2024 ADC{3,2,1,0}
if [ "$ACTION" = "add" ]; then
- ln -s "/sys$DEVPATH/in_voltage0_raw" /dev/verdin-adc1
- ln -s "/sys$DEVPATH/in_voltage1_raw" /dev/verdin-adc2
- ln -s "/sys$DEVPATH/in_voltage2_raw" /dev/verdin-adc3
- ln -s "/sys$DEVPATH/in_voltage3_raw" /dev/verdin-adc4
+ ln -s "/sys$DEVPATH/in_voltage0_raw" /dev/verdin-adc4
+ ln -s "/sys$DEVPATH/in_voltage1_raw" /dev/verdin-adc3
+ ln -s "/sys$DEVPATH/in_voltage2_raw" /dev/verdin-adc2
+ ln -s "/sys$DEVPATH/in_voltage3_raw" /dev/verdin-adc1
elif [ "$ACTION" = "remove" ]; then
rm -f /dev/verdin-adc1
rm -f /dev/verdin-adc2