18046f68f2
- update to kernel 5.15.25 stable - add TUN as module, fixes pma#1435 - drop fully-upstreamed patches (lp55xx) - add iio support for lis302dl (will send upstream) - update N900 dts for lis302dl over iio (will send upstream) - assign higher priority to patches from kernel.org (resolves pmb#2107) [ci:skip-build] already built successfully in CI
81 lines
2.1 KiB
Diff
81 lines
2.1 KiB
Diff
From 238a72c97399dfb6d5b7fcb74acf619351f72bcd Mon Sep 17 00:00:00 2001
|
|
From: "Sicelo A. Mhlongo" <absicsz@gmail.com>
|
|
Date: Fri, 25 Feb 2022 22:46:23 +0200
|
|
Subject: [PATCH] ARM: dts: N900: use iio driver for accelerometer
|
|
|
|
---
|
|
arch/arm/boot/dts/omap3-n900.dts | 53 +++++---------------------------
|
|
1 file changed, 8 insertions(+), 45 deletions(-)
|
|
|
|
diff --git a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts
|
|
index d40c3d2c4914..f53234ed9c0c 100644
|
|
--- a/arch/arm/boot/dts/omap3-n900.dts
|
|
+++ b/arch/arm/boot/dts/omap3-n900.dts
|
|
@@ -767,56 +767,19 @@ &i2c3 {
|
|
|
|
clock-frequency = <400000>;
|
|
|
|
- lis302dl: lis3lv02d@1d {
|
|
- compatible = "st,lis3lv02d";
|
|
+ lis302dl: lis302dl@1d {
|
|
+ compatible = "st,lis302dl";
|
|
reg = <0x1d>;
|
|
|
|
- Vdd-supply = <&vaux1>;
|
|
- Vdd_IO-supply = <&vio>;
|
|
+ vdd-supply = <&vaux1>;
|
|
+ vddio-supply = <&vio>;
|
|
|
|
interrupt-parent = <&gpio6>;
|
|
- interrupts = <21 20>; /* 181 and 180 */
|
|
+ interrupts = <21 IRQ_TYPE_EDGE_RISING>, <20 IRQ_TYPE_EDGE_RISING>; /* 181 and 180 */
|
|
|
|
- /* click flags */
|
|
- st,click-single-x;
|
|
- st,click-single-y;
|
|
- st,click-single-z;
|
|
-
|
|
- /* Limits are 0.5g * value */
|
|
- st,click-threshold-x = <8>;
|
|
- st,click-threshold-y = <8>;
|
|
- st,click-threshold-z = <10>;
|
|
-
|
|
- /* Click must be longer than time limit */
|
|
- st,click-time-limit = <9>;
|
|
-
|
|
- /* Kind of debounce filter */
|
|
- st,click-latency = <50>;
|
|
-
|
|
- /* Interrupt line 2 for click detection */
|
|
- st,irq2-click;
|
|
-
|
|
- st,wakeup-x-hi;
|
|
- st,wakeup-y-hi;
|
|
- st,wakeup-threshold = <(800/18)>; /* millig-value / 18 to get HW values */
|
|
-
|
|
- st,wakeup2-z-hi;
|
|
- st,wakeup2-threshold = <(900/18)>; /* millig-value / 18 to get HW values */
|
|
-
|
|
- st,hipass1-disable;
|
|
- st,hipass2-disable;
|
|
-
|
|
- st,axis-x = <1>; /* LIS3_DEV_X */
|
|
- st,axis-y = <(-2)>; /* LIS3_INV_DEV_Y */
|
|
- st,axis-z = <(-3)>; /* LIS3_INV_DEV_Z */
|
|
-
|
|
- st,min-limit-x = <(-32)>;
|
|
- st,min-limit-y = <3>;
|
|
- st,min-limit-z = <3>;
|
|
-
|
|
- st,max-limit-x = <(-3)>;
|
|
- st,max-limit-y = <32>;
|
|
- st,max-limit-z = <32>;
|
|
+ mount-matrix = "-1", "0", "0",
|
|
+ "0", "1", "0",
|
|
+ "0", "0", "1";
|
|
};
|
|
|
|
cam1: camera@3e {
|
|
--
|
|
2.35.1
|
|
|