dts: sensor: Add dts yaml bindings for the fxas21002 sensor
Adds dts yaml bindings for the fxas21002 sensor to allow the sensor driver name, i2c driver name, and i2c address to be extracted from dts instead of kconfig. Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
This commit is contained in:
parent
88d5949b94
commit
fd8a9ae89c
2 changed files with 25 additions and 1 deletions
21
dts/bindings/sensor/nxp,fxas21002.yaml
Normal file
21
dts/bindings/sensor/nxp,fxas21002.yaml
Normal file
|
@ -0,0 +1,21 @@
|
|||
#
|
||||
# Copyright (c) 2018, NXP
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
---
|
||||
title: FXAS21002 3-axis gyroscope
|
||||
id: nxp,fxas21002
|
||||
version: 0.1
|
||||
|
||||
description: >
|
||||
This is a representation of the FXAS21002 3-axis gyroscope sensor
|
||||
|
||||
inherits:
|
||||
!include i2c-device.yaml
|
||||
|
||||
properties:
|
||||
compatible:
|
||||
constraint: "nxp,fxas21002"
|
||||
|
||||
...
|
Loading…
Add table
Add a link
Reference in a new issue