mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-10 10:51:36 +08:00
WIP: device tree MVP
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
# Copyright (c) 2018 Analog Devices Inc.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: ADT7420 16-Bit digital I2C temperature sensor
|
||||
|
||||
compatible: "adi,adt7420"
|
||||
|
||||
include: i2c-device.yaml
|
||||
|
||||
properties:
|
||||
int-gpios:
|
||||
type: phandle-array
|
||||
required: false
|
||||
description: |
|
||||
The INT signal defaults to active low open drain, so requires a
|
||||
pull-up on the board or in the flags cell of this entry.
|
||||
@@ -0,0 +1,8 @@
|
||||
# Copyright (c) 2020 Antmicro <www.antmicro.com>
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: ADXL345 3-axis I2C accelerometer
|
||||
|
||||
compatible: "adi,adxl345"
|
||||
|
||||
include: i2c-device.yaml
|
||||
@@ -0,0 +1,17 @@
|
||||
# Copyright (c) 2018, NXP
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: ADXL362 3-axis SPI accelerometer
|
||||
|
||||
compatible: "adi,adxl362"
|
||||
|
||||
include: spi-device.yaml
|
||||
|
||||
properties:
|
||||
int1-gpios:
|
||||
type: phandle-array
|
||||
required: false
|
||||
description: |
|
||||
The INT1 signal defaults to active high as produced by the
|
||||
sensor. The property value should ensure the flags properly
|
||||
describe the signal that is presented to the driver.
|
||||
@@ -0,0 +1,17 @@
|
||||
# Copyright (c) 2018 Analog Devices Inc.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: ADXL372 3-axis high-g I2C/SPI accelerometer
|
||||
|
||||
compatible: "adi,adxl372"
|
||||
|
||||
include: i2c-device.yaml
|
||||
|
||||
properties:
|
||||
int1-gpios:
|
||||
type: phandle-array
|
||||
required: false
|
||||
description: |
|
||||
The INT1 signal defaults to active high as produced by the
|
||||
sensor. The property value should ensure the flags properly
|
||||
describe the signal that is presented to the driver.
|
||||
@@ -0,0 +1,18 @@
|
||||
# Copyright (c) 2018 Analog Devices Inc.
|
||||
# Copyright (c) 2018 Nordic Semiconductor ASA
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: ADXL372 3-axis high-g accelerometer, accessed through SPI bus
|
||||
|
||||
compatible: "adi,adxl372"
|
||||
|
||||
include: spi-device.yaml
|
||||
|
||||
properties:
|
||||
int1-gpios:
|
||||
type: phandle-array
|
||||
required: false
|
||||
description: |
|
||||
The INT1 signal defaults to active high as produced by the
|
||||
sensor. The property value should ensure the flags properly
|
||||
describe the signal that is presented to the driver.
|
||||
@@ -0,0 +1,31 @@
|
||||
# Copyright (c) 2018, Linaro Limited
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: CCS811 digital air quality sensor
|
||||
|
||||
compatible: "ams,ccs811"
|
||||
|
||||
include: i2c-device.yaml
|
||||
|
||||
properties:
|
||||
wake-gpios:
|
||||
type: phandle-array
|
||||
required: false
|
||||
description: |
|
||||
The WAKEn pin is asserted to communicate with the sensor. The
|
||||
sensor receives this as an active-low signal.
|
||||
|
||||
reset-gpios:
|
||||
type: phandle-array
|
||||
required: false
|
||||
description: |
|
||||
The RESETn pin is asserted to disable the sensor causing a hard
|
||||
reset. The sensor receives this as an active-low signal.
|
||||
|
||||
irq-gpios:
|
||||
type: phandle-array
|
||||
required: false
|
||||
description: |
|
||||
The INTn pin signals that a new reading is available. The
|
||||
sensor generates an active-low level signal which remains
|
||||
asserted until the data is read.
|
||||
@@ -0,0 +1,9 @@
|
||||
# Copyright (c) 2018, Alexander Wachter
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: |
|
||||
AMS (Austria Mikro Systeme) ens210 Relative Humidity and Temperature Sensor
|
||||
|
||||
compatible: "ams,ens210"
|
||||
|
||||
include: i2c-device.yaml
|
||||
@@ -0,0 +1,8 @@
|
||||
# Copyright (c) 2018, Alexander Wachter
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: iAQ-core indoor air quality sensor
|
||||
|
||||
compatible: "ams,iaqcore"
|
||||
|
||||
include: i2c-device.yaml
|
||||
@@ -0,0 +1,32 @@
|
||||
# Copyright (c) 2019 Nordic Semiconductor ASA
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: |
|
||||
Aosong DHT (Digital-output Humidity and Temperature Sensor)
|
||||
|
||||
The Aosong DHT family of sensors provide temperature and humidity
|
||||
measurements through a bidirectional serial digital signal. The
|
||||
DHT11 uses a polymer humidity capacitor with NTC thermistor; the
|
||||
DHT22 replaces the thermistor with a DS18B20 1-wire thermometer.
|
||||
|
||||
The DHT22 is also known as an AM2303.
|
||||
|
||||
compatible: "aosong,dht"
|
||||
|
||||
include: base.yaml
|
||||
|
||||
properties:
|
||||
dio-gpios:
|
||||
type: phandle-array
|
||||
required: true
|
||||
description: |
|
||||
Pin on which sensor communication will be performed.
|
||||
|
||||
Control and data are encoded by the duration of active low
|
||||
signals. A pull up may be appropriate.
|
||||
|
||||
dht22:
|
||||
type: boolean
|
||||
description: |
|
||||
Set to identify sensor as a DHT22/AM2303. Leave unset to identify
|
||||
sensor as a DHT11.
|
||||
@@ -0,0 +1,10 @@
|
||||
# Copyright (c) 2020, Linaro Limited
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: |
|
||||
Asahi Kasei AK8975 Magnetometer. See datasheet at
|
||||
https://www.akm.com/akm/en/file/datasheet/AK8975.pdf
|
||||
|
||||
compatible: "asahi-kasei,ak8975"
|
||||
|
||||
include: i2c-device.yaml
|
||||
@@ -0,0 +1,36 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: Atmel SAM Timer Counter (TC) QDEC node
|
||||
|
||||
compatible: "atmel,sam-tc-qdec"
|
||||
|
||||
include: base.yaml
|
||||
|
||||
properties:
|
||||
reg:
|
||||
required: true
|
||||
|
||||
interrupts:
|
||||
required: true
|
||||
|
||||
label:
|
||||
required: true
|
||||
|
||||
peripheral-id:
|
||||
type: array
|
||||
description: peripheral ID
|
||||
required: true
|
||||
|
||||
pinctrl-0:
|
||||
type: phandles
|
||||
required: false
|
||||
description: |
|
||||
PIO pin configuration for Timer Counter signals. We expect that
|
||||
the phandles will reference pinctrl nodes. These nodes will
|
||||
have a nodelabel that matches the Atmel SoC HAL defines and
|
||||
be of the form p<port><pin><periph>_<inst>_<signal>.
|
||||
|
||||
In Quadrature Decoder mode TIOA0 & TIOB0 signals are expected
|
||||
|
||||
For example the TC0 on SAME7x would be
|
||||
pinctrl-0 = <&pa0b_tc0_tioa0 &pa1b_tc0_tiob0>;
|
||||
@@ -0,0 +1,18 @@
|
||||
# Copyright (c) 2018, Phytec Messtechnik GmbH
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: APDS9960 digital proximity, ambient light, RGB, and gesture sensor
|
||||
|
||||
compatible: "avago,apds9960"
|
||||
|
||||
include: i2c-device.yaml
|
||||
|
||||
properties:
|
||||
int-gpios:
|
||||
type: phandle-array
|
||||
required: true
|
||||
description: Interrupt pin.
|
||||
|
||||
The interrupt pin of APDS9960 is open-drain, active low.
|
||||
If connected directly the MCU pin should be configured
|
||||
as pull-up, active low.
|
||||
@@ -0,0 +1,26 @@
|
||||
# Copyright (c) 2020 Nordic Semiconductor ASA
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: |
|
||||
Bosch BMA280 triaxial acceleration sensor. See more info at:
|
||||
https://www.bosch-sensortec.com/products/motion-sensors/accelerometers/bma280.html
|
||||
|
||||
compatible: "bosch,bma280"
|
||||
|
||||
include: i2c-device.yaml
|
||||
|
||||
properties:
|
||||
int1-gpios:
|
||||
type: phandle-array
|
||||
required: false
|
||||
description: |
|
||||
Identifies pin for the INT1 signal on the sensor. The sensor
|
||||
INT2 signal is not supported by the driver.
|
||||
|
||||
is-bmc150:
|
||||
type: boolean
|
||||
required: false
|
||||
description: |
|
||||
Specifies that the driver should adapt to the accelerometer
|
||||
capability provided by the BMC150 6-axis eCompass. This affects
|
||||
the chip ID and the resolution of the measurements.
|
||||
@@ -0,0 +1,15 @@
|
||||
# Copyright (c) 2019, Linaro Limited
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: |
|
||||
Bosch BMC150 Magnetometer. See more info at:
|
||||
https://www.bosch-sensortec.com/bst/products/all_products/bmc150
|
||||
|
||||
compatible: "bosch,bmc150_magn"
|
||||
|
||||
include: i2c-device.yaml
|
||||
|
||||
properties:
|
||||
drdy-gpios:
|
||||
type: phandle-array
|
||||
required: false
|
||||
@@ -0,0 +1,8 @@
|
||||
# Copyright (c) 2019, Linaro Limited
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: BME280 integrated environmental sensor
|
||||
|
||||
compatible: "bosch,bme280"
|
||||
|
||||
include: i2c-device.yaml
|
||||
@@ -0,0 +1,8 @@
|
||||
# Copyright (c) 2019, Linaro Limited
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: BME280 integrated environmental sensor
|
||||
|
||||
compatible: "bosch,bme280"
|
||||
|
||||
include: spi-device.yaml
|
||||
@@ -0,0 +1,10 @@
|
||||
# Copyright (c) 2018, Bosch Sensortec GmbH
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: |
|
||||
The BME680 is an integrated environmental sensor that measures
|
||||
temperature, pressure, humidity and air quality
|
||||
|
||||
compatible: "bosch,bme680"
|
||||
|
||||
include: i2c-device.yaml
|
||||
@@ -0,0 +1,15 @@
|
||||
# Copyright (c) 2019, Linaro Limited
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: |
|
||||
Bosch BMG160 gyroscope. See more info at:
|
||||
https://www.bosch-sensortec.com/bst/products/all_products/bmg160
|
||||
|
||||
compatible: "bosch,bmg160"
|
||||
|
||||
include: i2c-device.yaml
|
||||
|
||||
properties:
|
||||
int-gpios:
|
||||
type: phandle-array
|
||||
required: false
|
||||
@@ -0,0 +1,17 @@
|
||||
# Copyright (c) 2018, Linaro Limited
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: BMI160 inertial measurement unit
|
||||
|
||||
compatible: "bosch,bmi160"
|
||||
|
||||
include: spi-device.yaml
|
||||
|
||||
properties:
|
||||
int-gpios:
|
||||
type: phandle-array
|
||||
required: false
|
||||
description: |
|
||||
This property specifies the connection for INT1, because the
|
||||
Zephyr driver maps all interrupts to INT1. The signal defaults
|
||||
to output low when produced by the sensor.
|
||||
@@ -0,0 +1,10 @@
|
||||
# Copyright (c) 2021, Bosch Sensortec GmbH
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: |
|
||||
The BMI270 is an inertial measurment unit. See more info at:
|
||||
https://www.bosch-sensortec.com/products/motion-sensors/imus/bmi270.html
|
||||
|
||||
compatible: "bosch,bmi270"
|
||||
|
||||
include: i2c-device.yaml
|
||||
@@ -0,0 +1,10 @@
|
||||
# Copyright (c) 2019, Linaro Limited
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: |
|
||||
Bosch BMM150 Geomagnetic sensor. See more info at:
|
||||
https://www.bosch-sensortec.com/bst/products/all_products/bmm150
|
||||
|
||||
compatible: "bosch,bmm150"
|
||||
|
||||
include: i2c-device.yaml
|
||||
@@ -0,0 +1,9 @@
|
||||
# Copyright (c) 2020 Facebook, Inc. and its affiliates
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: |
|
||||
Bosch BMP388 pressure sensor accessed through I2C bus
|
||||
|
||||
compatible: "bosch,bmp388"
|
||||
|
||||
include: [i2c-device.yaml, "bosch,bmp388.yaml"]
|
||||
@@ -0,0 +1,9 @@
|
||||
# Copyright (c) 2020 Facebook, Inc. and its affiliates
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: |
|
||||
Bosch BMP388 pressure sensor accessed through SPI bus
|
||||
|
||||
compatible: "bosch,bmp388"
|
||||
|
||||
include: [spi-device.yaml, "bosch,bmp388.yaml"]
|
||||
@@ -0,0 +1,109 @@
|
||||
# Copyright (c) 2020 Facebook, Inc. and its affiliates
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# Common fields for BMP388
|
||||
|
||||
properties:
|
||||
int-gpios:
|
||||
type: phandle-array
|
||||
required: false
|
||||
|
||||
odr:
|
||||
type: string
|
||||
required: false
|
||||
description: |
|
||||
Default output data rate in Hz. Only the following values are allowed:
|
||||
200 - 200 - 5ms (default; chip reset value)
|
||||
100 - 100 - 10ms
|
||||
50 - 50 - 20ms
|
||||
25 - 25 - 40ms
|
||||
12.5 - 25/2 - 80ms
|
||||
6.25 - 25/4 - 160ms
|
||||
3.125 - 25/8 - 320ms
|
||||
1.563 - 25/16 - 640ms
|
||||
.781 - 25/32 - 1.28s
|
||||
.391 - 25/64 - 2.56s
|
||||
.195 - 25/128 - 5.12s
|
||||
.098 - 25/256 - 10.24s
|
||||
.049 - 25/512 - 20.48s
|
||||
.024 - 25/1024 - 40.96s
|
||||
.012 - 25/2048 - 81.92s
|
||||
.006 - 25/4096 - 163.84s
|
||||
.003 - 25/8192 - 327.68s
|
||||
default: "200"
|
||||
enum:
|
||||
- "200"
|
||||
- "100"
|
||||
- "50"
|
||||
- "25"
|
||||
- "12.5"
|
||||
- "6.25"
|
||||
- "3.125"
|
||||
- "1.563"
|
||||
- ".781"
|
||||
- ".391"
|
||||
- ".195"
|
||||
- ".098"
|
||||
- ".049"
|
||||
- ".024"
|
||||
- ".012"
|
||||
- ".006"
|
||||
- ".003"
|
||||
|
||||
osr-press:
|
||||
type: int
|
||||
required: false
|
||||
description: |
|
||||
Default pressure oversampling rate. Only the following values are
|
||||
allowed:
|
||||
1 sample, 16-bit, 2.64 Pa
|
||||
2 samples, 17-bit, 1.32 Pa
|
||||
4 samples, 18-bit, 0.66 Pa (default; chip reset value)
|
||||
8 samples, 19-bit, 0.33 Pa
|
||||
16 samples, 20-bit, 0.17 Pa
|
||||
32 Samples, 21-bit, 0.085 Pa
|
||||
default: 4
|
||||
enum:
|
||||
- 1
|
||||
- 2
|
||||
- 4
|
||||
- 8
|
||||
- 16
|
||||
- 32
|
||||
|
||||
osr-temp:
|
||||
type: int
|
||||
required: false
|
||||
description: |
|
||||
Default temperature oversampling rate. Only the following values are
|
||||
allowed:
|
||||
1 sample, 16-bit, .0050 C (default; chip reset value)
|
||||
2 samples, 17-bit, .0025 C
|
||||
4 samples, 18-bit, .0012 C
|
||||
8 samples, 19-bit, .0006 C
|
||||
16 samples, 20-bit, .0003 C
|
||||
32 Samples, 21-bit, .00015 C
|
||||
default: 1
|
||||
enum:
|
||||
- 1
|
||||
- 2
|
||||
- 4
|
||||
- 8
|
||||
- 16
|
||||
- 32
|
||||
|
||||
iir-filter:
|
||||
type: int
|
||||
required: false
|
||||
description: |
|
||||
Default IIR filter coefficient. The default 0 is the chip reset value.
|
||||
default: 0
|
||||
enum:
|
||||
- 0
|
||||
- 1
|
||||
- 3
|
||||
- 7
|
||||
- 15
|
||||
- 31
|
||||
- 63
|
||||
- 127
|
||||
@@ -0,0 +1,18 @@
|
||||
# Copyright (c) 2019 Linaro Limited
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: Honeywell HMC5883L 3-axis magnetometer sensor
|
||||
|
||||
compatible: "honeywell,hmc5883l"
|
||||
|
||||
include: i2c-device.yaml
|
||||
|
||||
properties:
|
||||
int-gpios:
|
||||
type: phandle-array
|
||||
required: false
|
||||
description: DRDY pin
|
||||
|
||||
This pin is active low, with an internal pullup in the sensor.
|
||||
The property value should ensure the flags properly describe
|
||||
the signal that is presented to the driver.
|
||||
@@ -0,0 +1,9 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: |
|
||||
Honeywell Digital Pressure Sensor. For details see here:
|
||||
https://sensing.honeywell.com/micropressure-mpr-series
|
||||
|
||||
compatible: "honeywell,mpr"
|
||||
|
||||
include: i2c-device.yaml
|
||||
@@ -0,0 +1,18 @@
|
||||
# Copyright (c) 2020, Laird Connectivity
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: SM351LT magnetoresistive sensor
|
||||
|
||||
compatible: "honeywell,sm351lt"
|
||||
|
||||
include: base.yaml
|
||||
|
||||
properties:
|
||||
gpios:
|
||||
type: phandle-array
|
||||
required: true
|
||||
description: GPIO connected to the sensor
|
||||
label:
|
||||
required: true
|
||||
type: string
|
||||
description: Driver label
|
||||
@@ -0,0 +1,11 @@
|
||||
# Copyright (c) 2019, Linaro Limited
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: |
|
||||
HopeRF Electronic HP206C precision barometer and altimeter.
|
||||
See more info at:
|
||||
https://www.hoperf.com/sensor/pressure_sensor/HP206C.html
|
||||
|
||||
compatible: "hoperf,hp206c"
|
||||
|
||||
include: i2c-device.yaml
|
||||
@@ -0,0 +1,10 @@
|
||||
# Copyright (c) 2019, Linaro Limited
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: |
|
||||
TH02 Temperature and Humidity sensor. See datasheet at
|
||||
http://www.datasheetspdf.com/mobile/748107/TH02.html
|
||||
|
||||
compatible: "hoperf,th02"
|
||||
|
||||
include: i2c-device.yaml
|
||||
@@ -0,0 +1,11 @@
|
||||
#
|
||||
# Copyright (c) 2019 Infineon Technologies AG
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
description: Infineon DPS310 temperature and pressure sensor
|
||||
|
||||
include: i2c-device.yaml
|
||||
|
||||
compatible: "infineon,dps310"
|
||||
@@ -0,0 +1,89 @@
|
||||
# Copyright (c) 2020 TDK Invensense
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: ICM-42605 motion tracking device
|
||||
|
||||
# ICM-42605 is SPI.
|
||||
compatible: "invensense,icm42605"
|
||||
|
||||
include: spi-device.yaml
|
||||
|
||||
properties:
|
||||
int-gpios:
|
||||
type: phandle-array
|
||||
required: true
|
||||
description: |
|
||||
The INT signal default configuration is active-high. The
|
||||
property value should ensure the flags properly describe the
|
||||
signal that is presented to the driver.
|
||||
|
||||
accel-hz:
|
||||
type: int
|
||||
required: false
|
||||
default: 12
|
||||
description: |
|
||||
Default frequency of accelerometer. (Unit - Hz)
|
||||
Maps to ACCEL_ODR field in ACCEL_CONFIG0 setting
|
||||
enum:
|
||||
- 1
|
||||
- 3
|
||||
- 6
|
||||
- 12
|
||||
- 25
|
||||
- 50
|
||||
- 100
|
||||
- 200
|
||||
- 500
|
||||
- 1000
|
||||
- 2000
|
||||
- 4000
|
||||
- 8000
|
||||
|
||||
gyro-hz:
|
||||
type: int
|
||||
required: false
|
||||
default: 12
|
||||
description: |
|
||||
Default frequency of gyroscope. (Unit - Hz)
|
||||
Maps to GYRO_ODR field in GYRO_CONFIG0 setting
|
||||
enum:
|
||||
- 12
|
||||
- 25
|
||||
- 50
|
||||
- 100
|
||||
- 200
|
||||
- 500
|
||||
- 1000
|
||||
- 2000
|
||||
- 4000
|
||||
- 8000
|
||||
|
||||
accel-fs:
|
||||
type: int
|
||||
required: false
|
||||
default: 16
|
||||
description: |
|
||||
Default full scale of accelerometer. (Unit - g)
|
||||
Maps to ACCEL_FS_SEL field in ACCEL_CONFIG0 setting
|
||||
enum:
|
||||
- 16
|
||||
- 8
|
||||
- 4
|
||||
- 2
|
||||
|
||||
gyro-fs:
|
||||
type: int
|
||||
required: false
|
||||
default: 2000
|
||||
description: |
|
||||
Default full scale of gyroscope. (Unit - DPS)
|
||||
Maps to GYRO_FS_SEL field in GYRO_CONFIG0 setting
|
||||
enum:
|
||||
- 2000
|
||||
- 1000
|
||||
- 500
|
||||
- 250
|
||||
- 125
|
||||
- 62.5
|
||||
- 31.25
|
||||
- 15.625
|
||||
@@ -0,0 +1,19 @@
|
||||
# Copyright (c) 2019 Nordic Semiconductor ASA
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: MPU-6000 motion tracking device
|
||||
|
||||
# MPU-6000 is SPI or I2C. MPU-6050 is I2C-only. Driver does not
|
||||
# support SPI so stick with I2C variant.
|
||||
compatible: "invensense,mpu6050"
|
||||
|
||||
include: i2c-device.yaml
|
||||
|
||||
properties:
|
||||
int-gpios:
|
||||
type: phandle-array
|
||||
required: false
|
||||
description: |
|
||||
The INT signal default configuration is active-high. The
|
||||
property value should ensure the flags properly describe the
|
||||
signal that is presented to the driver.
|
||||
@@ -0,0 +1,23 @@
|
||||
# Copyright (c) 2020, Linaro Limited
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: |
|
||||
InvenSense MPU-9150 Nine-Axis (Gyro + Accelerometer + Compass). See more
|
||||
info at https://www.invensense.com/products/motion-tracking/9-axis/mpu-9150/
|
||||
|
||||
compatible: "invensense,mpu9150"
|
||||
|
||||
include: i2c-device.yaml
|
||||
|
||||
child-binding:
|
||||
description: Embedded AK8975 Magnetometer
|
||||
compatible: "asahi-kasei,ak8975"
|
||||
properties:
|
||||
"#address-cells":
|
||||
type: int
|
||||
required: true
|
||||
const: 1
|
||||
"#size-cells":
|
||||
type: int
|
||||
required: true
|
||||
const: 0
|
||||
@@ -0,0 +1,19 @@
|
||||
# Copyright (c) 2019, Linaro Limited
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: |
|
||||
Intersil ISL29035 Light Sensor. See datasheet at
|
||||
https://www.renesas.com/us/en/www/doc/datasheet/isl29035.pdf
|
||||
|
||||
compatible: "isil,isl29035"
|
||||
|
||||
include: i2c-device.yaml
|
||||
|
||||
properties:
|
||||
int-gpios:
|
||||
type: phandle-array
|
||||
required: false
|
||||
description: |
|
||||
The INT pin defaults to active low when produced by the sensor.
|
||||
The property value should ensure the flags properly describe the
|
||||
signal that is presented to the driver.
|
||||
@@ -0,0 +1,8 @@
|
||||
# Copyright (c) 2021 Leica Geosystems AG
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: LM75 Digital Temperature Sensor with 2-Wire Interface.
|
||||
|
||||
compatible: "lm75"
|
||||
|
||||
include: i2c-device.yaml
|
||||
@@ -0,0 +1,35 @@
|
||||
# Copyright (c) 2021 Vestas Wind Systems A/S
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: |
|
||||
LM77 digital temperature sensor
|
||||
|
||||
compatible: "lm77"
|
||||
|
||||
include: i2c-device.yaml
|
||||
|
||||
properties:
|
||||
int-gpios:
|
||||
type: phandle-array
|
||||
required: false
|
||||
description: |
|
||||
Identifies the INT signal, which is active-low open drain by default
|
||||
when produced by the sensor.
|
||||
|
||||
int-inverted:
|
||||
type: boolean
|
||||
description: |
|
||||
When present, the polarity on the INT signal is inverted (active-high).
|
||||
|
||||
tcrita-inverted:
|
||||
type: boolean
|
||||
description: |
|
||||
When present, the polarity on the T_CRIT_A signal is inverted
|
||||
(active-high).
|
||||
|
||||
enable-fault-queue:
|
||||
type: boolean
|
||||
description: |
|
||||
When present, the fault queue is enabled. The fault queue allows up to 4
|
||||
faults to prevent false INT/T_CRIT_A tripping when the LM77 is used in
|
||||
noisy environments.
|
||||
@@ -0,0 +1,48 @@
|
||||
#
|
||||
# Copyright 2020 Google LLC
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
description: Maxim MAX17055 Fuel Gauge
|
||||
|
||||
compatible: "maxim,max17055"
|
||||
|
||||
include: i2c-device.yaml
|
||||
|
||||
properties:
|
||||
design-capacity:
|
||||
type: int
|
||||
required: true
|
||||
description: The design capacity (aka label capacity) of the cell in mAh
|
||||
|
||||
design-voltage:
|
||||
type: int
|
||||
required: true
|
||||
description: Battery Design Voltage in mV (3300 to 4400)
|
||||
|
||||
desired-voltage:
|
||||
type: int
|
||||
required: true
|
||||
description: Battery Desired Voltage in mV (3300 to 4400)
|
||||
|
||||
desired-charging-current:
|
||||
type: int
|
||||
required: true
|
||||
description: Battery Design Charging Current in mA (e.g. 2000)
|
||||
|
||||
i-chg-term:
|
||||
type: int
|
||||
required: true
|
||||
description: The charge termination current in mA
|
||||
|
||||
rsense-mohms:
|
||||
type: int
|
||||
required: true
|
||||
description: |
|
||||
Value of Rsense resistor in milliohms (e.g. 5). It cannot be 0.
|
||||
|
||||
v-empty:
|
||||
type: int
|
||||
required: true
|
||||
description: The empty voltage of the cell in mV
|
||||
@@ -0,0 +1,47 @@
|
||||
#
|
||||
# Copyright 2020 Matija Tudan
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
description: Maxim MAX17262 Fuel Gauge
|
||||
|
||||
compatible: "maxim,max17262"
|
||||
|
||||
include: i2c-device.yaml
|
||||
|
||||
properties:
|
||||
design-voltage:
|
||||
type: int
|
||||
required: true
|
||||
description: Battery Design Voltage in mV (3300 to 4400)
|
||||
|
||||
desired-voltage:
|
||||
type: int
|
||||
required: true
|
||||
description: Battery Desired Voltage in mV (3300 to 4400)
|
||||
|
||||
desired-charging-current:
|
||||
type: int
|
||||
required: true
|
||||
description: Battery Design Charging Current in mA (e.g. 2000)
|
||||
|
||||
design-cap:
|
||||
type: int
|
||||
required: true
|
||||
description: Battery Capacity in mAh (default 3000)
|
||||
|
||||
empty-voltage:
|
||||
type: int
|
||||
required: true
|
||||
description: Empty voltage target during load in mV (default 3300)
|
||||
|
||||
recovery-voltage:
|
||||
type: int
|
||||
required: true
|
||||
description: The voltage level for clearing empty detection in mV (default 3880)
|
||||
|
||||
charge-voltage:
|
||||
type: int
|
||||
required: true
|
||||
description: Charge voltage in mV
|
||||
@@ -0,0 +1,8 @@
|
||||
# Copyright (c) 2018, NXP
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: MAX30101 heart rate sensor
|
||||
|
||||
compatible: "maxim,max30101"
|
||||
|
||||
include: i2c-device.yaml
|
||||
@@ -0,0 +1,15 @@
|
||||
# Copyright (c) 2019, Linaro Limited
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: |
|
||||
Maxim MAX44009 Ambient Light Sensor. See datasheet at
|
||||
https://datasheets.maximintegrated.com/en/ds/MAX44009.pdf
|
||||
|
||||
compatible: "maxim,max44009"
|
||||
|
||||
include: i2c-device.yaml
|
||||
|
||||
properties:
|
||||
int-gpios:
|
||||
type: phandle-array
|
||||
required: false
|
||||
@@ -0,0 +1,8 @@
|
||||
# Copyright (c) 2021, Teslabs Engineering S.L.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: MAX6675 K-thermocouple to digital converter
|
||||
|
||||
compatible: "maxim,max6675"
|
||||
|
||||
include: spi-device.yaml
|
||||
@@ -0,0 +1,10 @@
|
||||
# Copyright (c) 2021, Aurelien Jarno <aurel32@aurel32.net>
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: |
|
||||
TE Connectivity MS5607 digital pressure and temperature sensor.
|
||||
The Datasheet is at https://www.te.com/usa-en/product-CAT-BLPS0035.html
|
||||
|
||||
compatible: "meas,ms5607"
|
||||
|
||||
include: i2c-device.yaml
|
||||
@@ -0,0 +1,10 @@
|
||||
# Copyright (c) 2019, Thomas Schmid <tom@lfence.de>
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: |
|
||||
TE Connectivity MS5607 digital pressure and temperature sensor.
|
||||
The Datasheet is at https://www.te.com/usa-en/product-CAT-BLPS0035.html
|
||||
|
||||
compatible: "meas,ms5607"
|
||||
|
||||
include: spi-device.yaml
|
||||
@@ -0,0 +1,8 @@
|
||||
# Copyright (c) 2018, Jan Van Winkel <jan.van_winkel@dxplore.eu>
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: TE Connectivity MS5837 digital pressure sensor
|
||||
|
||||
compatible: "meas,ms5837"
|
||||
|
||||
include: i2c-device.yaml
|
||||
@@ -0,0 +1,33 @@
|
||||
# Copyright (c) 2019, Linaro Limited
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: |
|
||||
Microchip MCP9808 Digital Temperature Sensor. See
|
||||
http://ww1.microchip.com/downloads/en/DeviceDoc/25095A.pdf.
|
||||
|
||||
compatible: "microchip,mcp9808"
|
||||
|
||||
include: i2c-device.yaml
|
||||
|
||||
properties:
|
||||
int-gpios:
|
||||
type: phandle-array
|
||||
required: false
|
||||
description: |
|
||||
The alert pin defaults to active low when produced by the
|
||||
sensor, and is open-drain. A pull-up may be appropriate. The
|
||||
property value should ensure the flags properly describe the
|
||||
signal that is presented to the driver.
|
||||
|
||||
resolution:
|
||||
type: int
|
||||
required: false
|
||||
default: 3
|
||||
description: |
|
||||
Sensor resolution. Default is 0.0625C (0b11),
|
||||
which is the power-up default.
|
||||
enum:
|
||||
- 0 # 0.5C
|
||||
- 1 # 0.25C
|
||||
- 2 # 0.125C
|
||||
- 3 # 0.0625C
|
||||
@@ -0,0 +1,65 @@
|
||||
# Copyright (c) 2018, Nordic Semiconductor ASA
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: Nordic nRF quadrature decoder (QDEC) node
|
||||
|
||||
compatible: "nordic,nrf-qdec"
|
||||
|
||||
include: base.yaml
|
||||
|
||||
properties:
|
||||
reg:
|
||||
required: true
|
||||
|
||||
interrupts:
|
||||
required: true
|
||||
|
||||
a-pin:
|
||||
type: int
|
||||
required: true
|
||||
description: |
|
||||
The A pin to use.
|
||||
|
||||
For pins P0.0 through P0.31, use the pin number. For example,
|
||||
to use P0.16 for the A pin, set:
|
||||
|
||||
a-pin = <16>;
|
||||
|
||||
For pins P1.0 through P1.31, add 32 to the pin number. For
|
||||
example, to use P1.2 for the A pin, set:
|
||||
|
||||
a-pin = <34>; /* 32 + 2 */
|
||||
|
||||
b-pin:
|
||||
type: int
|
||||
required: true
|
||||
description: |
|
||||
The B pin to use. The pin numbering scheme is the same as
|
||||
the a-pin property's.
|
||||
|
||||
led-pin:
|
||||
type: int
|
||||
required: false
|
||||
description: |
|
||||
The LED pin to use for a light based QDEC device. The pin
|
||||
numbering scheme is the same as the a-pin property's.
|
||||
|
||||
enable-pin:
|
||||
type: int
|
||||
required: false
|
||||
description: |
|
||||
The enable pin to use, to enable a connected QDEC device. The
|
||||
pin numbering scheme is the same as the a-pin property's.
|
||||
|
||||
led-pre:
|
||||
type: int
|
||||
description: Time LED is enabled prior to sampling event (in us)
|
||||
required: true
|
||||
|
||||
steps:
|
||||
type: int
|
||||
description: Number of steps on the rotating wheel
|
||||
required: true
|
||||
|
||||
label:
|
||||
required: true
|
||||
@@ -0,0 +1,18 @@
|
||||
# Copyright (c) 2018, Nordic Semiconductor ASA
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: Nordic nRF family TEMP node
|
||||
|
||||
compatible: "nordic,nrf-temp"
|
||||
|
||||
include: base.yaml
|
||||
|
||||
properties:
|
||||
reg:
|
||||
required: true
|
||||
|
||||
interrupts:
|
||||
required: true
|
||||
|
||||
label:
|
||||
required: true
|
||||
@@ -0,0 +1,27 @@
|
||||
# Copyright (c) 2018, NXP
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: FXAS21002 3-axis gyroscope sensor
|
||||
|
||||
compatible: "nxp,fxas21002"
|
||||
|
||||
include: i2c-device.yaml
|
||||
|
||||
properties:
|
||||
int1-gpios:
|
||||
type: phandle-array
|
||||
required: false
|
||||
description: |
|
||||
INT1 pin
|
||||
This pin defaults to active low when produced by the sensor.
|
||||
The property value should ensure the flags properly describe
|
||||
the signal that is presented to the driver.
|
||||
|
||||
int2-gpios:
|
||||
type: phandle-array
|
||||
required: false
|
||||
description: |
|
||||
INT2 pin
|
||||
This pin defaults to active low when produced by the sensor.
|
||||
The property value should ensure the flags properly describe
|
||||
the signal that is presented to the driver.
|
||||
@@ -0,0 +1,159 @@
|
||||
# Copyright (c) 2018, NXP
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: FXOS8700 6-axis accelerometer/magnetometer sensor
|
||||
|
||||
compatible: "nxp,fxos8700"
|
||||
|
||||
include: i2c-device.yaml
|
||||
|
||||
properties:
|
||||
reset-gpios:
|
||||
type: phandle-array
|
||||
required: false
|
||||
description: |
|
||||
RST pin
|
||||
This pin defaults to active high when consumed by the sensor.
|
||||
The property value should ensure the flags properly describe
|
||||
the signal that is presented to the driver.
|
||||
|
||||
int1-gpios:
|
||||
type: phandle-array
|
||||
required: false
|
||||
description: |
|
||||
INT1 pin
|
||||
This pin defaults to active low when produced by the sensor.
|
||||
The property value should ensure the flags properly describe
|
||||
the signal that is presented to the driver.
|
||||
|
||||
int2-gpios:
|
||||
type: phandle-array
|
||||
required: false
|
||||
description: |
|
||||
INT2 pin
|
||||
This pin defaults to active low when produced by the sensor.
|
||||
The property value should ensure the flags properly describe
|
||||
the signal that is presented to the driver.
|
||||
|
||||
range:
|
||||
type: int
|
||||
required: false
|
||||
default: 8
|
||||
description: Range in g
|
||||
enum:
|
||||
- 8 # 8g (0.976 mg/LSB)
|
||||
- 4 # 4g (0.488 mg/LSB)
|
||||
- 2 # 2g (0.244 mg/LSB)
|
||||
|
||||
power-mode:
|
||||
type: int
|
||||
required: false
|
||||
default: 0
|
||||
description: Power mode
|
||||
enum:
|
||||
- 0 # Normal
|
||||
- 1 # Low noise, low power
|
||||
- 2 # High resolution
|
||||
- 3 # Low power
|
||||
|
||||
pulse-cfg:
|
||||
type: int
|
||||
required: false
|
||||
default: 0x3f
|
||||
description: Pulse configuration register
|
||||
|
||||
pulse-thsx:
|
||||
type: int
|
||||
required: false
|
||||
default: 0x20
|
||||
description: |
|
||||
Pulse X-axis threshold
|
||||
Threshold to start the pulse-event detection procedure on the X-axis.
|
||||
Threshold values for each axis are unsigned 7-bit numbers with a fixed
|
||||
resolution of 0.063 g/LSB, corresponding to an 8g acceleration
|
||||
full-scale range.
|
||||
|
||||
pulse-thsy:
|
||||
type: int
|
||||
required: false
|
||||
default: 0x20
|
||||
description: |
|
||||
Pulse Y-axis threshold
|
||||
Threshold to start the pulse-event detection procedure on the Y-axis.
|
||||
Threshold values for each axis are unsigned 7-bit numbers with a fixed
|
||||
resolution of 0.063 g/LSB, corresponding to an 8g acceleration
|
||||
full-scale range.
|
||||
|
||||
pulse-thsz:
|
||||
type: int
|
||||
required: false
|
||||
default: 0x40
|
||||
description: |
|
||||
Pulse Z-axis threshold
|
||||
Threshold to start the pulse-event detection procedure on the Z-axis.
|
||||
Threshold values for each axis are unsigned 7-bit numbers with a fixed
|
||||
resolution of 0.063 g/LSB, corresponding to an 8g acceleration
|
||||
full-scale range.
|
||||
|
||||
pulse-tmlt:
|
||||
type: int
|
||||
required: false
|
||||
default: 0x18
|
||||
description: |
|
||||
Pulse time limit
|
||||
The maximum time interval that can elapse between the start of the
|
||||
acceleration on the selected channel exceeding the specified threshold
|
||||
and the end when the channel acceleration goes back below the specified
|
||||
threshold. The resolution depends upon the sample rate (ODR) and the
|
||||
high-pass filter configuration (HP_FILTER_CUTOFF[pls_hpf_en]). For
|
||||
ODR=800 Hz and pls_hpf_en=0, the resolution is 0.625 ms/LSB.
|
||||
|
||||
pulse-ltcy:
|
||||
type: int
|
||||
required: false
|
||||
default: 0x28
|
||||
description: |
|
||||
Pulse latency
|
||||
The time interval that starts after the first pulse detection where the
|
||||
pulse-detection function ignores the start of a new pulse. The
|
||||
resolution depends upon the sample rate (ODR) and the high-pass filter
|
||||
configuration (HP_FILTER_CUTOFF[pls_hpf_en]). For ODR=800 Hz and
|
||||
pls_hpf_en=0, the resolution is 1.25 ms/LSB.
|
||||
|
||||
pulse-wind:
|
||||
type: int
|
||||
required: false
|
||||
default: 0x3c
|
||||
description: |
|
||||
Pulse window
|
||||
The maximum interval of time that can elapse after the end of the
|
||||
latency interval in which the start of the second pulse event must be
|
||||
detected provided the device has been configured for double pulse
|
||||
detection. The detected second pulse width must be shorter than the
|
||||
time limit constraint specified by the PULSE_TMLT register, but the end
|
||||
of the double pulse need not finish within the time specified by the
|
||||
PULSE_WIND register. The resolution depends upon the sample rate (ODR)
|
||||
and the high-pass filter configuration (HP_FILTER_CUTOFF[pls_hpf_en]).
|
||||
For ODR=800 Hz and pls_hpf_en=0, the resolution is 1.25 ms/LSB.
|
||||
|
||||
mag-vecm-cfg:
|
||||
type: int
|
||||
required: false
|
||||
default: 0x4e
|
||||
description: Magnetic vector-magnitude configuration register
|
||||
|
||||
mag-vecm-ths-msb:
|
||||
type: int
|
||||
required: false
|
||||
default: 0x00
|
||||
description: |
|
||||
Magnetic vector-magnitude threshold most significant byte.
|
||||
Resolution is 0.1 uT/LSB.
|
||||
|
||||
mag-vecm-ths-lsb:
|
||||
type: int
|
||||
required: false
|
||||
default: 0x5a
|
||||
description: |
|
||||
Magnetic vector-magnitude threshold least significant byte.
|
||||
Resolution is 0.1 uT/LSB.
|
||||
@@ -0,0 +1,68 @@
|
||||
# Copyright (c) 2020 Vestas Wind Systems A/S
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: NXP Kinetis Analog Comparator (ACMP)
|
||||
|
||||
compatible: "nxp,kinetis-acmp"
|
||||
|
||||
include: base.yaml
|
||||
|
||||
properties:
|
||||
interrupts:
|
||||
required: true
|
||||
|
||||
label:
|
||||
required: true
|
||||
|
||||
reg:
|
||||
required: true
|
||||
|
||||
nxp,enable-output-pin:
|
||||
type: boolean
|
||||
required: false
|
||||
description: |
|
||||
Make the comparator output (CMP0) available on a packaged pin.
|
||||
|
||||
nxp,use-unfiltered-output:
|
||||
type: boolean
|
||||
required: false
|
||||
description: |
|
||||
Use the unfiltered comparator output for CMP0.
|
||||
|
||||
nxp,high-speed-mode:
|
||||
type: boolean
|
||||
required: false
|
||||
description: |
|
||||
Enable high speed comparison mode.
|
||||
|
||||
nxp,enable-sample:
|
||||
type: boolean
|
||||
required: false
|
||||
description: |
|
||||
Enable external sample signal as clock input.
|
||||
|
||||
nxp,filter-count:
|
||||
type: int
|
||||
required: false
|
||||
description: |
|
||||
Filter sample count (0 to 7).
|
||||
|
||||
nxp,filter-period:
|
||||
type: int
|
||||
required: false
|
||||
description: |
|
||||
Filter sample period in bus clock cycles (0 to 255).
|
||||
|
||||
nxp,window-mode:
|
||||
type: boolean
|
||||
required: false
|
||||
description: |
|
||||
Enable windowing mode.
|
||||
|
||||
"#io-channel-cells":
|
||||
type: int
|
||||
const: 2
|
||||
|
||||
io-channel-cells:
|
||||
- positive
|
||||
- negative
|
||||
@@ -0,0 +1,45 @@
|
||||
# Copyright (c) 2020 Vestas Wind Systems A/S
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: NXP Kinetis temperature sensor
|
||||
|
||||
compatible: "nxp,kinetis-temperature"
|
||||
|
||||
include: base.yaml
|
||||
|
||||
properties:
|
||||
label:
|
||||
required: true
|
||||
|
||||
io-channels:
|
||||
required: true
|
||||
description: ADC channels for temperature sensor and bandgap voltage
|
||||
|
||||
io-channel-names:
|
||||
required: true
|
||||
description: name of each ADC channel (SENSOR or BANDGAP)
|
||||
|
||||
bandgap-voltage:
|
||||
type: int
|
||||
required: true
|
||||
description: Bandgap voltage in microvolts
|
||||
|
||||
vtemp25:
|
||||
type: int
|
||||
required: true
|
||||
description: |
|
||||
Temperature sensor voltage at 25 degrees Celcius in microvolts
|
||||
|
||||
sensor-slope-cold:
|
||||
type: int
|
||||
required: true
|
||||
description: |
|
||||
Temperature sensor slope in microvolts per degree Celsius for
|
||||
temperatures below 25 degrees Celsius
|
||||
|
||||
sensor-slope-hot:
|
||||
type: int
|
||||
required: true
|
||||
description: |
|
||||
Temperature sensor slope in microvolts per degree Celsius for
|
||||
temperatures above or equal to 25 degrees Celsius
|
||||
@@ -0,0 +1,18 @@
|
||||
# Copyright (c) 2019, Phytec Messtechnik GmbH
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: Panasonic AMG88XX 8x8 (64) pixel infrared array sensor
|
||||
|
||||
compatible: "panasonic,amg88xx"
|
||||
|
||||
include: i2c-device.yaml
|
||||
|
||||
properties:
|
||||
int-gpios:
|
||||
type: phandle-array
|
||||
required: true
|
||||
description: Interrupt pin.
|
||||
|
||||
The interrupt pin of AMG88XX is open-drain, active low.
|
||||
If connected directly the MCU pin should be configured
|
||||
as pull-up, active low.
|
||||
@@ -0,0 +1,12 @@
|
||||
# Copyright (c) 2020, Linaro Limited
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: |
|
||||
Plantower PMS7003 air pollution sensor.
|
||||
Air pollution sensor capable of measuring mass concentration of dust. See
|
||||
more info at:
|
||||
https://www.espruino.com/datasheets/PMS7003.pdf
|
||||
|
||||
compatible: "plantower,pms7003"
|
||||
|
||||
include: uart-device.yaml
|
||||
@@ -0,0 +1,5 @@
|
||||
description: SBS 1.1 compliant fuel gauge (http://www.sbs-forum.org/specs)
|
||||
|
||||
compatible: "sbs,sbs-gauge"
|
||||
|
||||
include: i2c-device.yaml
|
||||
@@ -0,0 +1,14 @@
|
||||
# Copyright (c) 2019 Nordic Semiconductor ASA
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: Grove Photo-Resistor Light Sensor
|
||||
|
||||
compatible: "seeed,grove-light"
|
||||
|
||||
include: base.yaml
|
||||
|
||||
properties:
|
||||
io-channels:
|
||||
required: true
|
||||
description: |
|
||||
IO channel associated with the resistor voltage divider.
|
||||
@@ -0,0 +1,19 @@
|
||||
# Copyright (c) 2019 Nordic Semiconductor ASA
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: Grove NTC Temperature Sensor
|
||||
|
||||
compatible: "seeed,grove-temperature"
|
||||
|
||||
include: base.yaml
|
||||
|
||||
properties:
|
||||
io-channels:
|
||||
required: true
|
||||
description: |
|
||||
IO channel associated with the NTC voltage
|
||||
|
||||
v1p0:
|
||||
type: boolean
|
||||
description: |
|
||||
Set to indicate a v1.0 sensor. Leave unset for v1.1 or v1.2.
|
||||
@@ -0,0 +1,18 @@
|
||||
# Copyright (c) 2019, Linaro Limited
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: |
|
||||
Semtech SX9500 capacitive proximity/button. See more info at
|
||||
https://www.semtech.com/products/smart-sensing/touch-proximity-devices/sx9500
|
||||
|
||||
compatible: "semtech,sx9500"
|
||||
|
||||
include: i2c-device.yaml
|
||||
|
||||
properties:
|
||||
int-gpios:
|
||||
type: phandle-array
|
||||
required: false
|
||||
description: |
|
||||
Connection for the NIRQ signal. This signal is active-low when
|
||||
produced by the sensor.
|
||||
@@ -0,0 +1,17 @@
|
||||
#
|
||||
# Copyright (c) 2021, Leonard Pollak
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: Sensirion SGP40 Multipixel Gas Sensor
|
||||
|
||||
compatible: "sensirion,sgp40"
|
||||
|
||||
include: i2c-device.yaml
|
||||
|
||||
properties:
|
||||
enable-selftest:
|
||||
type: boolean
|
||||
description: |
|
||||
Enabling this will run a selftest when the driver initializes.
|
||||
The selftest takes ~250ms.
|
||||
@@ -0,0 +1,19 @@
|
||||
# Copyright (c) 2018, Peter Bigot Consulting, LLC
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: Sensirion Humidity SHT3x-DIS humidity and temperature sensor
|
||||
|
||||
compatible: "sensirion,sht3xd"
|
||||
|
||||
include: i2c-device.yaml
|
||||
|
||||
properties:
|
||||
alert-gpios:
|
||||
type: phandle-array
|
||||
required: false
|
||||
description: |
|
||||
ALERT pin.
|
||||
|
||||
This pin signals active high when produced by the sensor. The
|
||||
property value should ensure the flags properly describe the
|
||||
signal that is presented to the driver.
|
||||
@@ -0,0 +1,24 @@
|
||||
#
|
||||
# Copyright (c) 2021, Leonard Pollak
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: Sensirion SHT4x humidity and temperature sensor
|
||||
|
||||
compatible: "sensirion,sht4x"
|
||||
|
||||
include: i2c-device.yaml
|
||||
|
||||
properties:
|
||||
repeatability:
|
||||
type: int
|
||||
required: true
|
||||
description: |
|
||||
Repeatability of the T/RH Measurement
|
||||
0 = low -> 1.7 ms
|
||||
1 = med -> 4.5 ms
|
||||
2 = high -> 8.2 ms
|
||||
enum:
|
||||
- 0
|
||||
- 1
|
||||
- 2
|
||||
@@ -0,0 +1,37 @@
|
||||
# Copyright (c) 2021, Thomas Stranger
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: Sensirion SHTCx humidity and temperature sensor
|
||||
|
||||
compatible: "sensirion,shtcx"
|
||||
|
||||
include: i2c-device.yaml
|
||||
|
||||
properties:
|
||||
chip:
|
||||
type: string
|
||||
required: true
|
||||
description: |
|
||||
Specifies which chip exactly is used. This is necessary to get exact
|
||||
timing information and supported command set.
|
||||
SHTC3 has an additional sleep mode that is entered between measurements.
|
||||
enum:
|
||||
- "shtc1"
|
||||
- "shtc3"
|
||||
|
||||
measure-mode:
|
||||
type: string
|
||||
required: true
|
||||
description: |
|
||||
Specifies which measurement mode is used.
|
||||
SHTC1 sensor only supports the normal measuremnt mode.
|
||||
enum:
|
||||
- "normal"
|
||||
- "low-power"
|
||||
|
||||
clock-stretching:
|
||||
type: boolean
|
||||
required: false
|
||||
description: |
|
||||
Specifies that the driver should clock stretching i2c communication to
|
||||
read the sensor values.
|
||||
@@ -0,0 +1,8 @@
|
||||
# Copyright (c) 2019, Electronut Labs
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: Si7006 temperature and humidity sensor
|
||||
|
||||
compatible: "silabs,si7006"
|
||||
|
||||
include: i2c-device.yaml
|
||||
@@ -0,0 +1,8 @@
|
||||
# Copyright (c) 2021, Linaro ltd
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: Si7055 temperature sensor
|
||||
|
||||
compatible: "silabs,si7055"
|
||||
|
||||
include: i2c-device.yaml
|
||||
@@ -0,0 +1,8 @@
|
||||
# Copyright (c) 2019, Actinius
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: Si7060 temperature sensor
|
||||
|
||||
compatible: "silabs,si7060"
|
||||
|
||||
include: i2c-device.yaml
|
||||
@@ -0,0 +1,8 @@
|
||||
# Copyright (c) 2021, Aurelien Jarno
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: Si7210 hall effect magnetic position and temperature sensor
|
||||
|
||||
compatible: "silabs,si7210"
|
||||
|
||||
include: i2c-device.yaml
|
||||
@@ -0,0 +1,12 @@
|
||||
# Copyright (c) 2017, Linaro Limited
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
properties:
|
||||
drdy-gpios:
|
||||
type: phandle-array
|
||||
required: false
|
||||
description: DRDY pin
|
||||
|
||||
This pin defaults to active high when produced by the sensor.
|
||||
The property value should ensure the flags properly describe
|
||||
the signal that is presented to the driver.
|
||||
@@ -0,0 +1,9 @@
|
||||
# Copyright (c) 2021 Intel Corporation
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: |
|
||||
STMicroelectronics HTS221 humidity and temperature sensor on I2C bus
|
||||
|
||||
compatible: "st,hts221"
|
||||
|
||||
include: ["i2c-device.yaml", "st,hts221-common.yaml"]
|
||||
@@ -0,0 +1,9 @@
|
||||
# Copyright (c) 2021 Intel Corporation
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: |
|
||||
STMicroelectronics HTS221 humidity and temperature sensor on SPI bus
|
||||
|
||||
compatible: "st,hts221"
|
||||
|
||||
include: ["spi-device.yaml", "st,hts221-common.yaml"]
|
||||
@@ -0,0 +1,9 @@
|
||||
# Copyright (c) 2021 Jonathan Hahn
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: |
|
||||
STMicroelectronics I3G4250D 3-axis gyrometer accessed through SPI bus
|
||||
|
||||
compatible: "st,i3g4250d"
|
||||
|
||||
include: spi-device.yaml
|
||||
@@ -0,0 +1,19 @@
|
||||
# Copyright (c) 2020 STMicroelectronics
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: |
|
||||
STMicroelectronics IIS2DH accelerometer accessed through I2C bus
|
||||
|
||||
compatible: "st,iis2dh"
|
||||
|
||||
include: i2c-device.yaml
|
||||
|
||||
properties:
|
||||
drdy-gpios:
|
||||
type: phandle-array
|
||||
required: false
|
||||
description: DRDY pin
|
||||
|
||||
This pin defaults to active high when produced by the sensor.
|
||||
The property value should ensure the flags properly describe
|
||||
the signal that is presented to the driver.
|
||||
@@ -0,0 +1,19 @@
|
||||
# Copyright (c) 2020 STMicroelectronics
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: |
|
||||
STMicroelectronics IIS2DH accelerometer accessed through SPI bus
|
||||
|
||||
compatible: "st,iis2dh"
|
||||
|
||||
include: spi-device.yaml
|
||||
|
||||
properties:
|
||||
drdy-gpios:
|
||||
type: phandle-array
|
||||
required: false
|
||||
description: DRDY pin
|
||||
|
||||
This pin defaults to active high when produced by the sensor.
|
||||
The property value should ensure the flags properly describe
|
||||
the signal that is presented to the driver.
|
||||
@@ -0,0 +1,116 @@
|
||||
# Copyright (c) 2018 STMicroelectronics
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
properties:
|
||||
drdy-gpios:
|
||||
type: phandle-array
|
||||
required: false
|
||||
description: |
|
||||
DRDY pin
|
||||
|
||||
This pin defaults to active high when produced by the sensor.
|
||||
The property value should ensure the flags properly describe
|
||||
the signal that is presented to the driver.
|
||||
|
||||
drdy-int:
|
||||
type: int
|
||||
required: false
|
||||
default: 1
|
||||
enum:
|
||||
- 1 # drdy is generated from INT1
|
||||
- 2 # drdy is generated from INT2
|
||||
description: Select DRDY pin number (1 or 2).
|
||||
|
||||
This number represents which of the two interrupt pins
|
||||
(INT1 or INT2) the drdy line is attached to. This property is not
|
||||
mandatory and if not present it defaults to 1 which is the
|
||||
configuration at power-up.
|
||||
|
||||
range:
|
||||
type: int
|
||||
required: false
|
||||
default: 2
|
||||
description: Range in g. Default is power-up configuration.
|
||||
enum:
|
||||
- 16 # 16g (1.952 mg/LSB)
|
||||
- 8 # 8g (0.976 mg/LSB)
|
||||
- 4 # 4g (0.488 mg/LSB)
|
||||
- 2 # 2g (0.244 mg/LSB)
|
||||
|
||||
power-mode:
|
||||
type: int
|
||||
required: false
|
||||
default: 0
|
||||
description: Specify the sensor power mode. Default is power-up configuration.
|
||||
enum:
|
||||
- 0 # Low Power M1
|
||||
- 1 # Low Power M2
|
||||
- 2 # Low Power M3
|
||||
- 3 # Low Power M4
|
||||
- 4 # High Performance
|
||||
|
||||
# tap and tap-tap configuration section
|
||||
# All default values are selected to match the power-up values.
|
||||
# tap and tap-tap events can be generated on INT1 only.
|
||||
|
||||
tap-mode:
|
||||
type: int
|
||||
required: false
|
||||
default: 0
|
||||
description: Tap mode. Default is power-up configuration.
|
||||
enum:
|
||||
- 0 # Only Single Tap
|
||||
- 1 # Single and Double Tap
|
||||
|
||||
tap-threshold:
|
||||
type: array
|
||||
required: false
|
||||
default: [0, 0, 0]
|
||||
description: |
|
||||
Tap X/Y/Z axes threshold. Default is power-up configuration.
|
||||
(X/Y/Z values range from 0x00 to 0x1F)
|
||||
|
||||
Thresholds to start the tap-event detection procedure on the X/Y/Z axes.
|
||||
Threshold values for each axis are unsigned 5-bit corresponding
|
||||
to a 2g acceleration full-scale range. A threshold value equal to zero
|
||||
corresponds to disable the tap detection on that axis.
|
||||
|
||||
For example, if you want to set the threshold for X to 12, for Z to 14
|
||||
and want to disable tap detection on Y, you should specify in Device Tree
|
||||
|
||||
tap-threshold = <12>, <0>, <14>
|
||||
|
||||
which is equivalent to X = 12 * 2g/32 = 750mg and Z = 14 * 2g/32 = 875mg.
|
||||
|
||||
tap-shock:
|
||||
type: int
|
||||
required: false
|
||||
default: 0x0
|
||||
description: |
|
||||
Tap shock value. Default is power-up configuration.
|
||||
(values range from 0x0 to 0x3)
|
||||
This register represents the maximum time of an over-threshold signal
|
||||
detection to be recognized as a tap event. Where 0 equals 4*1/ODR and
|
||||
1LSB = 8*1/ODR.
|
||||
|
||||
tap-latency:
|
||||
type: int
|
||||
required: false
|
||||
default: 0x0
|
||||
description: |
|
||||
Tap latency. Default is power-up configuration.
|
||||
(values range from 0x0 to 0xF)
|
||||
When double-tap recognition is enabled, this register expresses the
|
||||
maximum time between two successive detected taps to determine a
|
||||
double-tap event. Where 0 equals 16*1/ODR and 1LSB = 32*1/ODR.
|
||||
|
||||
tap-quiet:
|
||||
type: int
|
||||
required: false
|
||||
default: 0x0
|
||||
description: |
|
||||
Expected quiet time after a tap detection. Default is power-up configuration.
|
||||
(values range from 0x0 to 0x3)
|
||||
This register represents the time after the first detected tap in which
|
||||
there must not be any overthreshold event. Where 0 equals 2*1/ODR
|
||||
and 1LSB = 4*1/ODR.
|
||||
@@ -0,0 +1,9 @@
|
||||
# Copyright (c) 2018 STMicroelectronics
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: |
|
||||
STMicroelectronics IIS2DLPC accelerometer accessed through I2C bus
|
||||
|
||||
compatible: "st,iis2dlpc"
|
||||
|
||||
include: ["i2c-device.yaml", "st,iis2dlpc-common.yaml"]
|
||||
@@ -0,0 +1,9 @@
|
||||
# Copyright (c) 2019 STMicroelectronics
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: |
|
||||
STMicroelectronics IIS2DLPC accelerometer accessed through SPI bus
|
||||
|
||||
compatible: "st,iis2dlpc"
|
||||
|
||||
include: ["spi-device.yaml", "st,iis2dlpc-common.yaml"]
|
||||
@@ -0,0 +1,57 @@
|
||||
# Copyright (c) 2020 STMicroelectronics
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
properties:
|
||||
drdy-gpios:
|
||||
type: phandle-array
|
||||
required: false
|
||||
description: DRDY pin
|
||||
|
||||
This pin defaults to active high when produced by the sensor.
|
||||
The property value should ensure the flags properly describe
|
||||
the signal that is presented to the driver.
|
||||
|
||||
int-pin:
|
||||
type: int
|
||||
required: false
|
||||
default: 1
|
||||
enum:
|
||||
- 1 # drdy is generated from INT1
|
||||
- 2 # drdy is generated from INT2
|
||||
description: Select DRDY pin number (1 or 2).
|
||||
|
||||
This number represents which of the two interrupt pins
|
||||
(INT1 or INT2) the drdy line is attached to. This property is not
|
||||
mandatory and if not present it defaults to 1 which is the
|
||||
configuration at power-up.
|
||||
|
||||
range:
|
||||
type: int
|
||||
required: false
|
||||
default: 3
|
||||
description: Range in g. Default is power-up configuration.
|
||||
enum:
|
||||
- 0 # 500mg (0.015 mg/LSB)
|
||||
- 1 # 3g (0.122 mg/LSB)
|
||||
- 2 # 1g (0.031 mg/LSB)
|
||||
- 3 # 2g (0.061 mg/LSB)
|
||||
|
||||
odr:
|
||||
type: int
|
||||
required: false
|
||||
default: 0
|
||||
description:
|
||||
Specify the default accelerometer output data rate expressed in samples per second (Hz).
|
||||
Default is power-up configuration.
|
||||
enum:
|
||||
- 0 # Power-Down
|
||||
- 1 # 12.5Hz
|
||||
- 2 # 26Hz
|
||||
- 3 # 52Hz
|
||||
- 4 # 104Hz
|
||||
- 5 # 208Hz
|
||||
- 6 # 416Hz
|
||||
- 7 # 833Hz
|
||||
- 8 # 1660Hz
|
||||
- 9 # 3330Hz
|
||||
- 10 # 6660Hz
|
||||
@@ -0,0 +1,10 @@
|
||||
# Copyright (c) 2020 STMicroelectronics
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: |
|
||||
STMicroelectronics IIS2ICLX 2-axis accelerometer sensor
|
||||
accessed through I2C bus
|
||||
|
||||
compatible: "st,iis2iclx"
|
||||
|
||||
include: ["i2c-device.yaml", "st,iis2iclx-common.yaml"]
|
||||
@@ -0,0 +1,10 @@
|
||||
# Copyright (c) 2020 STMicroelectronics
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: |
|
||||
STMicroelectronics IIS2ICLX 2-axis accelerometer sensor
|
||||
accessed through SPI bus
|
||||
|
||||
compatible: "st,iis2iclx"
|
||||
|
||||
include: ["spi-device.yaml", "st,iis2iclx-common.yaml"]
|
||||
@@ -0,0 +1,19 @@
|
||||
# Copyright (c) 2018 STMicroelectronics
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: |
|
||||
STMicroelectronics IIS2MDC magnetometer accessed through I2C bus
|
||||
|
||||
compatible: "st,iis2mdc"
|
||||
|
||||
include: i2c-device.yaml
|
||||
|
||||
properties:
|
||||
drdy-gpios:
|
||||
type: phandle-array
|
||||
required: false
|
||||
description: DRDY pin
|
||||
|
||||
This pin defaults to active high when produced by the sensor.
|
||||
The property value should ensure the flags properly describe
|
||||
the signal that is presented to the driver.
|
||||
@@ -0,0 +1,19 @@
|
||||
# Copyright (c) 2019 STMicroelectronics
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: |
|
||||
STMicroelectronics IIS2MDC magnetometer accessed through SPI bus
|
||||
|
||||
compatible: "st,iis2mdc"
|
||||
|
||||
include: spi-device.yaml
|
||||
|
||||
properties:
|
||||
drdy-gpios:
|
||||
type: phandle-array
|
||||
required: false
|
||||
description: DRDY pin
|
||||
|
||||
This pin defaults to active high when produced by the sensor.
|
||||
The property value should ensure the flags properly describe
|
||||
the signal that is presented to the driver.
|
||||
@@ -0,0 +1,19 @@
|
||||
# Copyright (c) 2019 STMicroelectronics
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: |
|
||||
STMicroelectronics IIS3DHHC 3-axis accelerometer accessed through SPI bus
|
||||
|
||||
compatible: "st,iis3dhhc"
|
||||
|
||||
include: spi-device.yaml
|
||||
|
||||
properties:
|
||||
irq-gpios:
|
||||
type: phandle-array
|
||||
required: false
|
||||
description: DRDY pin
|
||||
|
||||
This pin defaults to active high when produced by the sensor.
|
||||
The property value should ensure the flags properly describe
|
||||
the signal that is presented to the driver.
|
||||
@@ -0,0 +1,136 @@
|
||||
# Copyright (c) 2021 STMicroelectronics
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
properties:
|
||||
drdy-gpios:
|
||||
type: phandle-array
|
||||
required: false
|
||||
description: |
|
||||
DRDY gpio pin
|
||||
|
||||
This pin defaults to active high when produced by the sensor.
|
||||
The property value should ensure the flags properly describe
|
||||
the signal that is presented to the driver.
|
||||
|
||||
int-pin:
|
||||
type: int
|
||||
required: false
|
||||
default: 1
|
||||
description: |
|
||||
Select DRDY pin number (1 or 2).
|
||||
|
||||
Selection
|
||||
1 drdy is generated from INT1
|
||||
2 drdy is generated from INT2
|
||||
|
||||
This number represents which of the two interrupt pins
|
||||
(INT1 or INT2) the drdy line is attached to. This property is not
|
||||
mandatory and if not present it defaults to 1 which is the
|
||||
configuration at power-up.
|
||||
enum:
|
||||
- 1
|
||||
- 2
|
||||
|
||||
accel-odr:
|
||||
type: int
|
||||
required: false
|
||||
default: 0
|
||||
description: |
|
||||
Specify the default accelerometer output data rate expressed in samples per second (Hz).
|
||||
Default is power-up configuration.
|
||||
|
||||
Selection
|
||||
0 Power-Down
|
||||
1 12.5Hz
|
||||
2 26Hz
|
||||
3 52Hz
|
||||
4 104Hz
|
||||
5 208Hz
|
||||
6 416Hz
|
||||
7 833Hz
|
||||
8 1660Hz
|
||||
9 3330Hz
|
||||
10 6660Hz
|
||||
enum:
|
||||
- 0
|
||||
- 1
|
||||
- 2
|
||||
- 3
|
||||
- 4
|
||||
- 5
|
||||
- 6
|
||||
- 7
|
||||
- 8
|
||||
- 9
|
||||
- 10
|
||||
|
||||
accel-range:
|
||||
type: int
|
||||
required: false
|
||||
default: 2
|
||||
description: |
|
||||
Range in g. Default is power-up configuration.
|
||||
|
||||
Selection
|
||||
16 16g (0.488 mg/LSB)
|
||||
8 8g (0.244 mg/LSB)
|
||||
4 4g (0.122 mg/LSB)
|
||||
2 2g (0.061 mg/LSB)
|
||||
enum:
|
||||
- 16
|
||||
- 8
|
||||
- 4
|
||||
- 2
|
||||
|
||||
gyro-odr:
|
||||
type: int
|
||||
required: false
|
||||
default: 0
|
||||
description: |
|
||||
Specify the default gyro output data rate expressed in samples per second (Hz).
|
||||
Default is power-up configuration.
|
||||
|
||||
Selection
|
||||
0 Power-Down
|
||||
1 12.5Hz
|
||||
2 26Hz
|
||||
3 52Hz
|
||||
4 104Hz
|
||||
5 208Hz
|
||||
6 416Hz
|
||||
7 833Hz
|
||||
8 1660Hz
|
||||
9 3330Hz
|
||||
10 6660Hz
|
||||
enum:
|
||||
- 0
|
||||
- 1
|
||||
- 2
|
||||
- 3
|
||||
- 4
|
||||
- 5
|
||||
- 6
|
||||
- 7
|
||||
- 8
|
||||
- 9
|
||||
- 10
|
||||
|
||||
gyro-range:
|
||||
type: int
|
||||
required: false
|
||||
default: 125
|
||||
description: |
|
||||
Range in dps. Default is power-up configuration.
|
||||
|
||||
Selection
|
||||
125 +/- 125dps
|
||||
250 +/- 250dps
|
||||
500 +/- 500dps
|
||||
1000 +/- 1000dps
|
||||
2000 +/- 2000dps
|
||||
enum:
|
||||
- 125
|
||||
- 250
|
||||
- 500
|
||||
- 1000
|
||||
- 2000
|
||||
@@ -0,0 +1,10 @@
|
||||
# Copyright (c) 2020 STMicroelectronics
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: |
|
||||
STMicroelectronics ISM330DHCX 6-axis IMU (Inertial Measurement Unit) sensor
|
||||
accessed through I2C bus
|
||||
|
||||
compatible: "st,ism330dhcx"
|
||||
|
||||
include: ["i2c-device.yaml", "st,ism330dhcx-common.yaml"]
|
||||
@@ -0,0 +1,10 @@
|
||||
# Copyright (c) 2020 STMicroelectronics
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: |
|
||||
STMicroelectronics ISM330DHCX 6-axis IMU (Inertial Measurement Unit) sensor
|
||||
accessed through SPI bus
|
||||
|
||||
compatible: "st,ism330dhcx"
|
||||
|
||||
include: ["spi-device.yaml", "st,ism330dhcx-common.yaml"]
|
||||
@@ -0,0 +1,19 @@
|
||||
# Copyright (c) 2018 STMicroelectronics
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
properties:
|
||||
irq-gpios:
|
||||
type: phandle-array
|
||||
required: false
|
||||
description: |
|
||||
The INT1 and (optional) INT2 signal connections. These signals
|
||||
are active-high as produced by the sensor.
|
||||
|
||||
disconnect-sdo-sa0-pull-up:
|
||||
type: boolean
|
||||
required: false
|
||||
description: |
|
||||
Indicates the device driver should disconnect SDO/SA0 pull-up
|
||||
during device initialization (e.g. to save current
|
||||
leakage). Note that only subset of devices supported by this
|
||||
binding have SDO/SA0 pull-up (e.g. LIS2DH12, LIS3DH).
|
||||
@@ -0,0 +1,9 @@
|
||||
# Copyright (c) 2018 STMicroelectronics
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: |
|
||||
STMicroelectronics LIS2DH 3-axis accelerometer accessed through I2C bus
|
||||
|
||||
compatible: "st,lis2dh"
|
||||
|
||||
include: ["i2c-device.yaml", "st,lis2dh-common.yaml"]
|
||||
@@ -0,0 +1,9 @@
|
||||
# Copyright (c) 2018 STMicroelectronics
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: |
|
||||
STMicroelectronics LIS2DH 3-axis accelerometer accessed through SPI bus
|
||||
|
||||
compatible: "st,lis2dh"
|
||||
|
||||
include: ["spi-device.yaml", "st,lis2dh-common.yaml"]
|
||||
@@ -0,0 +1,8 @@
|
||||
# Copyright (c) 2019 Nordic Semiconductor ASA
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: STMicroelectronics LIS2DH12 3-axis accelerometer
|
||||
|
||||
compatible: "st,lis2dh12"
|
||||
|
||||
include: ["i2c-device.yaml", "st,lis2dh-common.yaml"]
|
||||
@@ -0,0 +1,60 @@
|
||||
# Copyright (c) 2021 STMicroelectronics
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
properties:
|
||||
irq-gpios:
|
||||
type: phandle-array
|
||||
required: false
|
||||
description: |
|
||||
DRDY pin
|
||||
|
||||
This pin defaults to active high when produced by the sensor.
|
||||
The property value should ensure the flags properly describe
|
||||
the signal that is presented to the driver.
|
||||
|
||||
range:
|
||||
type: int
|
||||
required: false
|
||||
default: 2
|
||||
description: |
|
||||
Range in g. Default is power-up configuration.
|
||||
|
||||
enum:
|
||||
- 16 # 16g (0.488 mg/LSB)
|
||||
- 8 # 8g (0.244 mg/LSB)
|
||||
- 4 # 4g (0.122 mg/LSB)
|
||||
- 2 # 2g (0.061 mg/LSB)
|
||||
|
||||
power-mode:
|
||||
type: int
|
||||
required: false
|
||||
default: 0
|
||||
description: |
|
||||
Specify the sensor power mode. Default is power-down mode
|
||||
|
||||
enum:
|
||||
- 0 # Power Down (PD)
|
||||
- 1 # Low Power (LP)
|
||||
- 2 # High Resolution (HR)
|
||||
- 3 # High Frequency (HF)
|
||||
|
||||
odr:
|
||||
type: int
|
||||
required: false
|
||||
default: 0
|
||||
description: |
|
||||
Specify the default output data rate expressed in samples per second (Hz).
|
||||
Default is power-down mode
|
||||
enum:
|
||||
- 0 # Power-Down
|
||||
- 1 # 1Hz (available in LP mode only)
|
||||
- 2 # 12.5Hz (available in LP and HR mode)
|
||||
- 3 # 25Hz (available in LP and HR mode)
|
||||
- 4 # 50Hz (available in LP and HR mode)
|
||||
- 5 # 100Hz (available in LP and HR mode)
|
||||
- 6 # 200Hz (available in LP and HR mode)
|
||||
- 7 # 400Hz (available in LP and HR mode)
|
||||
- 8 # 800Hz (available in LP and HR mode)
|
||||
- 9 # 1600Hz (available in HF mode only)
|
||||
- 10 # 3200Hz (available in HF mode only)
|
||||
- 11 # 6400Hz (available in HF mode only)
|
||||
@@ -0,0 +1,8 @@
|
||||
# Copyright (c) 2019 STMicroelectronics
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: STMicroelectronics LIS2DS12 3-axis accelerometer
|
||||
|
||||
compatible: "st,lis2ds12"
|
||||
|
||||
include: ["i2c-device.yaml", "st,lis2ds12-common.yaml"]
|
||||
@@ -0,0 +1,9 @@
|
||||
# Copyright (c) 2019 STMicroelectronics
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: |
|
||||
STMicroelectronics LIS2DS12 3-axis accelerometer accessed through SPI bus
|
||||
|
||||
compatible: "st,lis2ds12"
|
||||
|
||||
include: ["spi-device.yaml", "st,lis2ds12-common.yaml"]
|
||||
@@ -0,0 +1,140 @@
|
||||
# Copyright (c) 2021 STMicroelectronics
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
properties:
|
||||
irq-gpios:
|
||||
type: phandle-array
|
||||
required: false
|
||||
description: |
|
||||
DRDY pin
|
||||
|
||||
This pin defaults to active high when produced by the sensor.
|
||||
The property value should ensure the flags properly describe
|
||||
the signal that is presented to the driver.
|
||||
|
||||
int-pin:
|
||||
type: int
|
||||
required: false
|
||||
default: 1
|
||||
enum:
|
||||
- 1
|
||||
- 2
|
||||
description: |
|
||||
Select DRDY pin number (1 or 2).
|
||||
|
||||
1 # drdy is generated from INT1
|
||||
2 # drdy is generated from INT2
|
||||
|
||||
This number represents which of the two interrupt pins
|
||||
(INT1 or INT2) the drdy line is attached to. This property is not
|
||||
mandatory and if not present it defaults to 1 which is the
|
||||
configuration at power-up.
|
||||
|
||||
range:
|
||||
type: int
|
||||
required: false
|
||||
default: 2
|
||||
description: |
|
||||
Range in g. Default is power-up configuration.
|
||||
|
||||
16 # 16g (1.952 mg/LSB)
|
||||
8 # 8g (0.976 mg/LSB)
|
||||
4 # 4g (0.488 mg/LSB)
|
||||
2 # 2g (0.244 mg/LSB)
|
||||
|
||||
enum:
|
||||
- 16
|
||||
- 8
|
||||
- 4
|
||||
- 2
|
||||
|
||||
power-mode:
|
||||
type: int
|
||||
required: false
|
||||
default: 0
|
||||
description: |
|
||||
Specify the sensor power mode. Default is power-up configuration.
|
||||
|
||||
0 # Low Power M1
|
||||
1 # Low Power M2
|
||||
2 # Low Power M3
|
||||
3 # Low Power M4
|
||||
4 # High Performance
|
||||
|
||||
enum:
|
||||
- 0
|
||||
- 1
|
||||
- 2
|
||||
- 3
|
||||
- 4
|
||||
|
||||
# tap and tap-tap configuration section
|
||||
# All default values are selected to match the power-up values.
|
||||
# tap and tap-tap events can be generated on INT1 only.
|
||||
|
||||
tap-mode:
|
||||
type: int
|
||||
required: false
|
||||
default: 0
|
||||
description: |
|
||||
Tap mode. Default is power-up configuration.
|
||||
|
||||
0 # Only Single Tap
|
||||
1 # Single and Double Tap
|
||||
|
||||
enum:
|
||||
- 0
|
||||
- 1
|
||||
|
||||
tap-threshold:
|
||||
type: array
|
||||
required: false
|
||||
default: [0, 0, 0]
|
||||
description: |
|
||||
Tap X/Y/Z axes threshold. Default is power-up configuration.
|
||||
(X/Y/Z values range from 0x00 to 0x1F)
|
||||
|
||||
Thresholds to start the tap-event detection procedure on the X/Y/Z axes.
|
||||
Threshold values for each axis are unsigned 5-bit corresponding
|
||||
to a 2g acceleration full-scale range. A threshold value equal to zero
|
||||
corresponds to disable the tap detection on that axis.
|
||||
|
||||
For example, if you want to set the threshold for X to 12, for Z to 14
|
||||
and want to disable tap detection on Y, you should specify in Device Tree
|
||||
|
||||
tap-threshold = <12>, <0>, <14>
|
||||
|
||||
which is equivalent to X = 12 * 2g/32 = 750mg and Z = 14 * 2g/32 = 875mg.
|
||||
|
||||
tap-shock:
|
||||
type: int
|
||||
required: false
|
||||
default: 0x0
|
||||
description: |
|
||||
Tap shock value. Default is power-up configuration.
|
||||
(values range from 0x0 to 0x3)
|
||||
This register represents the maximum time of an over-threshold signal
|
||||
detection to be recognized as a tap event. Where 0 equals 4*1/ODR and
|
||||
1LSB = 8*1/ODR.
|
||||
|
||||
tap-latency:
|
||||
type: int
|
||||
required: false
|
||||
default: 0x0
|
||||
description: |
|
||||
Tap latency. Default is power-up configuration.
|
||||
(values range from 0x0 to 0xF)
|
||||
When double-tap recognition is enabled, this register expresses the
|
||||
maximum time between two successive detected taps to determine a
|
||||
double-tap event. Where 0 equals 16*1/ODR and 1LSB = 32*1/ODR.
|
||||
|
||||
tap-quiet:
|
||||
type: int
|
||||
required: false
|
||||
default: 0x0
|
||||
description: |
|
||||
Expected quiet time after a tap detection. Default is power-up configuration.
|
||||
(values range from 0x0 to 0x3)
|
||||
This register represents the time after the first detected tap in which
|
||||
there must not be any overthreshold event. Where 0 equals 2*1/ODR
|
||||
and 1LSB = 4*1/ODR.
|
||||
@@ -0,0 +1,8 @@
|
||||
# Copyright (c) 2019 STMicroelectronics
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: STMicroelectronics LIS2DW12 3-axis accelerometer
|
||||
|
||||
compatible: "st,lis2dw12"
|
||||
|
||||
include: ["i2c-device.yaml", "st,lis2dw12-common.yaml"]
|
||||
@@ -0,0 +1,9 @@
|
||||
# Copyright (c) 2019 STMicroelectronics
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: |
|
||||
STMicroelectronics LIS2DW12 3-axis accelerometer accessed through SPI bus
|
||||
|
||||
compatible: "st,lis2dw12"
|
||||
|
||||
include: ["spi-device.yaml", "st,lis2dw12-common.yaml"]
|
||||
@@ -0,0 +1,32 @@
|
||||
# Copyright (c) 2018 STMicroelectronics
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
properties:
|
||||
irq-gpios:
|
||||
type: phandle-array
|
||||
required: false
|
||||
description: IRQ pin
|
||||
|
||||
This pin defaults to active high when produced by the sensor.
|
||||
The property value should ensure the flags properly describe
|
||||
the signal that is presented to the driver.
|
||||
|
||||
single-mode:
|
||||
type: boolean
|
||||
required: false
|
||||
description: |
|
||||
Set to config the sensor in single measurement mode. Leave
|
||||
unset to configure the sensor in continious measurement mode.
|
||||
|
||||
cancel-offset:
|
||||
type: boolean
|
||||
required: false
|
||||
description: |
|
||||
Set to enable the offset cancellation. Otherwise it would be
|
||||
disabled as default.
|
||||
|
||||
spi-full-duplex:
|
||||
type: boolean
|
||||
required: false
|
||||
description: |
|
||||
Enable SPI 4wires mode with separated MISO and MOSI lines
|
||||
@@ -0,0 +1,9 @@
|
||||
# Copyright (c) 2018 STMicroelectronics
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: |
|
||||
STMicroelectronics LIS2MDL magnetometer accessed through I2C bus
|
||||
|
||||
compatible: "st,lis2mdl"
|
||||
|
||||
include: ["i2c-device.yaml", "st,lis2mdl-common.yaml"]
|
||||
@@ -0,0 +1,9 @@
|
||||
# Copyright (c) 2019 STMicroelectronics
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: |
|
||||
STMicroelectronics LIS2MDL magnetometer accessed through SPI bus
|
||||
|
||||
compatible: "st,lis2mdl"
|
||||
|
||||
include: ["spi-device.yaml", "st,lis2mdl-common.yaml"]
|
||||
@@ -0,0 +1,8 @@
|
||||
# Copyright (c) 2018 STMicroelectronics
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: STMicroelectronics LIS3DH 3-axis accelerometer
|
||||
|
||||
compatible: "st,lis3dh"
|
||||
|
||||
include: ["i2c-device.yaml", "st,lis2dh-common.yaml"]
|
||||
@@ -0,0 +1,18 @@
|
||||
# Copyright (c) 2017, Linaro Limited
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: STMicroelectronics LIS3MDL magnetometer
|
||||
|
||||
compatible: "st,lis3mdl-magn"
|
||||
|
||||
include: i2c-device.yaml
|
||||
|
||||
properties:
|
||||
irq-gpios:
|
||||
required: false
|
||||
type: phandle-array
|
||||
description: DRDY pin
|
||||
|
||||
This pin defaults to active high when produced by the sensor.
|
||||
The property value should ensure the flags properly describe
|
||||
the signal that is presented to the driver.
|
||||
@@ -0,0 +1,8 @@
|
||||
# Copyright (c) 2017, Linaro Limited
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: STMicroelectronics LPS22HB pressure sensor
|
||||
|
||||
compatible: "st,lps22hb-press"
|
||||
|
||||
include: i2c-device.yaml
|
||||
@@ -0,0 +1,30 @@
|
||||
# Copyright (c) 2021 STMicroelectronics
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
properties:
|
||||
drdy-gpios:
|
||||
type: phandle-array
|
||||
required: false
|
||||
description: |
|
||||
DRDY pin
|
||||
|
||||
This pin defaults to active high when produced by the sensor.
|
||||
The property value should ensure the flags properly describe
|
||||
the signal that is presented to the driver.
|
||||
|
||||
odr:
|
||||
type: int
|
||||
required: false
|
||||
default: 0
|
||||
description: |
|
||||
Specify the default output data rate expressed in samples per second (Hz).
|
||||
Default is power-down mode
|
||||
enum:
|
||||
- 0 # Power-Down
|
||||
- 1 # 1Hz
|
||||
- 2 # 10Hz
|
||||
- 3 # 25Hz
|
||||
- 4 # 50Hz
|
||||
- 5 # 75Hz
|
||||
- 6 # 100Hz
|
||||
- 7 # 200Hz
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user