boards: nrf52_pca20020: add missing accelerometer support
The Thingy:52 has a LIS2DH12 low-power accelerometer on the external I2C bus. Add the necessary description to devicetree. Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
parent
f875c3fc48
commit
e0aad0c94d
|
@ -118,6 +118,13 @@
|
|||
clock-frequency = <I2C_BITRATE_FAST>;
|
||||
sda-pin = <14>;
|
||||
scl-pin = <15>;
|
||||
|
||||
lis2dh12: lis2dh12@19 {
|
||||
compatible = "st,lis2dh12", "st,lis2dh";
|
||||
reg = <0x19>;
|
||||
irq-gpios = <&gpio0 12 GPIO_INT_ACTIVE_HIGH>;
|
||||
label = "LIS2DH12-ACCEL";
|
||||
};
|
||||
};
|
||||
|
||||
&flash0 {
|
||||
|
|
16
dts/bindings/sensor/st,lis2dh12-i2c.yaml
Normal file
16
dts/bindings/sensor/st,lis2dh12-i2c.yaml
Normal file
|
@ -0,0 +1,16 @@
|
|||
# Copyright (c) 2019 Nordic Semiconductor ASA
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
title: STMicroelectronics MEMS sensors LIS2DH12
|
||||
|
||||
description: >
|
||||
This binding gives a base representation of LIS2DH12 3-axis accelerometer
|
||||
|
||||
compatible: "st,lis2dh12"
|
||||
|
||||
include: i2c-device.yaml
|
||||
|
||||
properties:
|
||||
irq-gpios:
|
||||
required: false
|
||||
type: phandle-array
|
Loading…
Reference in a new issue