Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: n900: use iio driver for accelerometer

The accelerometer in the N900 is supported by the iio-framework since commit
8a7449d68670a8f9 ("iio: accel: add support for LIS302DL variant). This commit
switches to it and updates node properties to match the bindings of the new
compatible.

Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Sicelo A. Mhlongo <absicsz@gmail.com>
Message-Id: <20221229171348.3543327-3-absicsz@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>

authored by

Sicelo A. Mhlongo and committed by
Tony Lindgren
14a213dc ecbeccdc

+8 -44
+8 -44
arch/arm/boot/dts/omap3-n900.dts
··· 769 769 clock-frequency = <400000>; 770 770 771 771 accelerometer@1d { 772 - compatible = "st,lis3lv02d"; 772 + compatible = "st,lis302dl"; 773 773 reg = <0x1d>; 774 774 775 - Vdd-supply = <&vaux1>; 776 - Vdd_IO-supply = <&vio>; 775 + vdd-supply = <&vaux1>; 776 + vddio-supply = <&vio>; 777 777 778 778 interrupt-parent = <&gpio6>; 779 - interrupts = <21 20>; /* 181 and 180 */ 779 + interrupts = <21 IRQ_TYPE_EDGE_RISING>, 780 + <20 IRQ_TYPE_EDGE_RISING>; /* 181 and 180 */ 780 781 781 - /* click flags */ 782 - st,click-single-x; 783 - st,click-single-y; 784 - st,click-single-z; 785 - 786 - /* Limits are 0.5g * value */ 787 - st,click-threshold-x = <8>; 788 - st,click-threshold-y = <8>; 789 - st,click-threshold-z = <10>; 790 - 791 - /* Click must be longer than time limit */ 792 - st,click-time-limit = <9>; 793 - 794 - /* Kind of debounce filter */ 795 - st,click-latency = <50>; 796 - 797 - /* Interrupt line 2 for click detection */ 798 - st,irq2-click; 799 - 800 - st,wakeup-x-hi; 801 - st,wakeup-y-hi; 802 - st,wakeup-threshold = <(800/18)>; /* millig-value / 18 to get HW values */ 803 - 804 - st,wakeup2-z-hi; 805 - st,wakeup2-threshold = <(900/18)>; /* millig-value / 18 to get HW values */ 806 - 807 - st,hipass1-disable; 808 - st,hipass2-disable; 809 - 810 - st,axis-x = <1>; /* LIS3_DEV_X */ 811 - st,axis-y = <(-2)>; /* LIS3_INV_DEV_Y */ 812 - st,axis-z = <(-3)>; /* LIS3_INV_DEV_Z */ 813 - 814 - st,min-limit-x = <(-32)>; 815 - st,min-limit-y = <3>; 816 - st,min-limit-z = <3>; 817 - 818 - st,max-limit-x = <(-3)>; 819 - st,max-limit-y = <32>; 820 - st,max-limit-z = <32>; 782 + mount-matrix = "-1", "0", "0", 783 + "0", "1", "0", 784 + "0", "0", "1"; 821 785 }; 822 786 823 787 cam1: camera@3e {