Commit e0aad0c9 authored by Peter Bigot's avatar Peter Bigot Committed by Kumar Gala
Browse files

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: default avatarPeter Bigot <peter.bigot@nordicsemi.no>
parent f875c3fc
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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 −0
Original line number Diff line number Diff line
# 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