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