Skip to content

Commit 92b9b64

Browse files
afontaine-invnkartben
authored andcommitted
dts: bindings: sensor: add icm42370-p support
Add icm42x70 device tree file, it includes the common properties for icm42370-p, icm42670-p, and icm42670-s. Add icm42370-p device tree files for SPI and I2C interface. Signed-off-by: Aurelie Fontaine <[email protected]>
1 parent 5213c2c commit 92b9b64

File tree

4 files changed

+132
-108
lines changed

4 files changed

+132
-108
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
description: ICM-42370-P motion tracking device
5+
6+
compatible: "invensense,icm42370p"
7+
8+
include: [i2c-device.yaml, "invensense,icm42x70.yaml"]
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Copyright (c) 2022 Esco Medical ApS
2+
# Copyright (c) 2020 TDK Invensense
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
description: ICM-42370-P motion tracking device
6+
7+
compatible: "invensense,icm42370p"
8+
9+
include: [spi-device.yaml, "invensense,icm42x70.yaml"]

dts/bindings/sensor/invensense,icm42670.yaml

Lines changed: 1 addition & 108 deletions
Original file line numberDiff line numberDiff line change
@@ -5,37 +5,9 @@
55

66
description: ICM-42670 motion tracking device
77

8-
include: [sensor-device.yaml]
8+
include: invensense,icm42x70.yaml
99

1010
properties:
11-
int-gpios:
12-
type: phandle-array
13-
description: |
14-
The INT signal default configuration is active-high. The
15-
property value should ensure the flags properly describe the
16-
signal that is presented to the driver.
17-
18-
accel-hz:
19-
type: int
20-
required: true
21-
description: |
22-
Default frequency of accelerometer. (Unit - Hz)
23-
Maps to ACCEL_ODR field in ACCEL_CONFIG0 setting
24-
Power-on reset value is 800.
25-
enum:
26-
- 0
27-
- 1600
28-
- 800
29-
- 400
30-
- 200
31-
- 100
32-
- 50
33-
- 25
34-
- 12
35-
- 6
36-
- 3
37-
- 1
38-
3911
gyro-hz:
4012
type: int
4113
required: true
@@ -54,67 +26,6 @@ properties:
5426
- 25
5527
- 12
5628

57-
power-mode:
58-
type: string
59-
default: "low-noise"
60-
description: |
61-
Power mode.
62-
Low power mode is allowed for accelerometer sensor only from
63-
1.5625Hz to 400Hz.
64-
The default is chosen to support both accelerometer and
65-
gyroscope sensors.
66-
enum:
67-
- "low-noise"
68-
- "low-power"
69-
70-
71-
accel-fs:
72-
type: int
73-
required: true
74-
description: |
75-
Default full scale of accelerometer. (Unit - g)
76-
Maps to ACCEL_FS_SEL field in ACCEL_CONFIG0 setting
77-
Power-on reset value is 16
78-
enum:
79-
- 16
80-
- 8
81-
- 4
82-
- 2
83-
84-
accel-avg:
85-
type: int
86-
default: 32
87-
description: |
88-
Averaging filter setting to create accelerometer output
89-
in accelerometer low power mode.
90-
Maps to ACCEL_UI_AVG field in ACCEL_CONFIG1 setting.
91-
The default corresponds to the reset value of the register field.
92-
enum:
93-
- 2
94-
- 4
95-
- 8
96-
- 16
97-
- 32
98-
- 64
99-
100-
accel-filt-bw-hz:
101-
type: int
102-
default: 180
103-
description: |
104-
Accelerometer low pass filter bandwidth frequency (Unit - Hz).
105-
Maps to ACCEL_UI_FILT_BW field in ACCEL_CONFIG1 setting.
106-
The default corresponds to the reset value of the register field.
107-
enum:
108-
- 0
109-
- 180
110-
- 121
111-
- 73
112-
- 53
113-
- 34
114-
- 25
115-
- 16
116-
117-
11829
gyro-fs:
11930
type: int
12031
required: true
@@ -144,21 +55,3 @@ properties:
14455
- 34
14556
- 25
14657
- 16
147-
148-
apex:
149-
type: string
150-
default: "none"
151-
description: |
152-
APEX (Advanced Pedometer and Event Detection) features. It consists of:
153-
* Pedometer: Tracks step count, and provide details such as the cadence and
154-
the estimated activity type (Walk, Run, Unknown).
155-
* Tilt Detection: Detects the Tilt when tilting the board with an angle of
156-
30 degrees or more held for 4 seconds.
157-
* Wake on Motion (WoM): Detects motion per axis exceeding 195 mg threshold.
158-
* Significant Motion Detector (SMD): Detects when the user has moved significantly.
159-
enum:
160-
- "none"
161-
- "pedometer"
162-
- "tilt"
163-
- "smd"
164-
- "wom"
Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
# Copyright (c) 2024 TDK Invensense
2+
# Copyright (c) 2022 Esco Medical ApS
3+
# Copyright (c) 2020 TDK Invensense
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
description: ICM-42670 motion tracking device
7+
8+
include: sensor-device.yaml
9+
10+
properties:
11+
int-gpios:
12+
type: phandle-array
13+
description: |
14+
The INT signal default configuration is active-high. The
15+
property value should ensure the flags properly describe the
16+
signal that is presented to the driver.
17+
18+
accel-hz:
19+
type: int
20+
required: true
21+
description: |
22+
Default frequency of accelerometer. (Unit - Hz)
23+
Maps to ACCEL_ODR field in ACCEL_CONFIG0 setting
24+
Power-on reset value is 800.
25+
enum:
26+
- 0
27+
- 1600
28+
- 800
29+
- 400
30+
- 200
31+
- 100
32+
- 50
33+
- 25
34+
- 12
35+
- 6
36+
- 3
37+
- 1
38+
39+
power-mode:
40+
type: string
41+
default: "low-noise"
42+
description: |
43+
Power mode.
44+
Low power mode is allowed for accelerometer sensor only from
45+
1.5625Hz to 400Hz.
46+
The default is chosen to support both accelerometer and
47+
gyroscope sensors.
48+
enum:
49+
- "low-noise"
50+
- "low-power"
51+
52+
accel-fs:
53+
type: int
54+
required: true
55+
description: |
56+
Default full scale of accelerometer. (Unit - g)
57+
Maps to ACCEL_FS_SEL field in ACCEL_CONFIG0 setting
58+
Power-on reset value is 16
59+
enum:
60+
- 16
61+
- 8
62+
- 4
63+
- 2
64+
65+
accel-avg:
66+
type: int
67+
default: 32
68+
description: |
69+
Averaging filter setting to create accelerometer output
70+
in accelerometer low power mode.
71+
Maps to ACCEL_UI_AVG field in ACCEL_CONFIG1 setting.
72+
The default corresponds to the reset value of the register field.
73+
enum:
74+
- 2
75+
- 4
76+
- 8
77+
- 16
78+
- 32
79+
- 64
80+
81+
accel-filt-bw-hz:
82+
type: int
83+
default: 180
84+
description: |
85+
Accelerometer low pass filter bandwidth frequency (Unit - Hz).
86+
Maps to ACCEL_UI_FILT_BW field in ACCEL_CONFIG1 setting.
87+
The default corresponds to the reset value of the register field.
88+
enum:
89+
- 0
90+
- 180
91+
- 121
92+
- 73
93+
- 53
94+
- 34
95+
- 25
96+
- 16
97+
98+
apex:
99+
type: string
100+
default: "none"
101+
description: |
102+
APEX (Advanced Pedometer and Event Detection) features. It consists of:
103+
* Pedometer: Tracks step count, and provide details such as the cadence and
104+
the estimated activity type (Walk, Run, Unknown).
105+
* Tilt Detection: Detects the Tilt when tilting the board with an angle of
106+
30 degrees or more held for 4 seconds.
107+
* Wake on Motion (WoM): Detects motion per axis exceeding 195 mg threshold.
108+
* Significant Motion Detector (SMD): Detects when the user has moved significantly.
109+
enum:
110+
- "none"
111+
- "pedometer"
112+
- "tilt"
113+
- "smd"
114+
- "wom"

0 commit comments

Comments
 (0)