1# Copyright (c) 2024 Chris Ruehl
2# Code based on the bosch,bmp388.yaml
3# SPDX-License-Identifier: Apache-2.0
4
5# Common fields for BMP390
6
7include: sensor-device.yaml
8
9properties:
10  int-gpios:
11    type: phandle-array
12
13  odr:
14    type: string
15    description: |
16      Default output data rate in Hz. Only the following values are allowed:
17        200   - 200     - 5ms  (default; chip reset value)
18        100   - 100     - 10ms
19        50    - 50      - 20ms
20        25    - 25      - 40ms
21        12.5  - 25/2    - 80ms
22        6.25  - 25/4    - 160ms
23        3.125 - 25/8    - 320ms
24        1.563 - 25/16   - 640ms
25        .781  - 25/32   - 1.28s
26        .391  - 25/64   - 2.56s
27        .195  - 25/128  - 5.12s
28        .098  - 25/256  - 10.24s
29        .049  - 25/512  - 20.48s
30        .024  - 25/1024 - 40.96s
31        .012  - 25/2048 - 81.92s
32        .006  - 25/4096 - 163.84s
33        .003  - 25/8192 - 327.68s
34    default: "200"
35    enum:
36      - "200"
37      - "100"
38      - "50"
39      - "25"
40      - "12.5"
41      - "6.25"
42      - "3.125"
43      - "1.563"
44      - ".781"
45      - ".391"
46      - ".195"
47      - ".098"
48      - ".049"
49      - ".024"
50      - ".012"
51      - ".006"
52      - ".003"
53
54  osr-press:
55    type: int
56    description: |
57      Default pressure oversampling rate. Only the following values are
58      allowed:
59        1 sample, 16-bit, 2.64 Pa
60        2 samples, 17-bit, 1.32 Pa
61        4 samples, 18-bit, 0.66 Pa (default; chip reset value)
62        8 samples, 19-bit, 0.33 Pa
63        16 samples, 20-bit, 0.17 Pa
64        32 Samples, 21-bit, 0.085 Pa
65    default: 4
66    enum:
67      - 1
68      - 2
69      - 4
70      - 8
71      - 16
72      - 32
73
74  osr-temp:
75    type: int
76    description: |
77      Default temperature oversampling rate. Only the following values are
78      allowed:
79        1 sample, 16-bit, .0050 C (default; chip reset value)
80        2 samples, 17-bit, .0025 C
81        4 samples, 18-bit, .0012 C
82        8 samples, 19-bit, .0006 C
83        16 samples, 20-bit, .0003 C
84        32 Samples, 21-bit, .00015 C
85    default: 1
86    enum:
87      - 1
88      - 2
89      - 4
90      - 8
91      - 16
92      - 32
93
94  iir-filter:
95    type: int
96    description: |
97      Default IIR filter coefficient. The default 0 is the chip reset value.
98    default: 0
99    enum:
100      - 0
101      - 1
102      - 3
103      - 7
104      - 15
105      - 31
106      - 63
107      - 127
108