diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2021-03-24 10:53:20 +0100 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2021-05-24 18:21:52 +0200 |
commit | fc63c5e8394573e0b830f85a0109a2a0e04a32cb (patch) | |
tree | fb904b8c76376e68e3848a04565adb8e220311cc /recipes-core/udev | |
parent | f5fcc646164522bf9afa73cf1c30fbc0ee1b3d47 (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>
(cherry picked from commit e38615820b4fd86484effd75d486b326d6f4e6e3)
Diffstat (limited to 'recipes-core/udev')
-rwxr-xr-x | recipes-core/udev/files/verdin-imx8mm/toradex-adc.sh | 10 |
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 |