boards: disco_l475_iot1: Enable vl53l0x sensor
Add all files related to the board and sensor. Signed-off-by: Vincent Veron <vincent.veron@st.com>
This commit is contained in:
parent
096314872a
commit
73c52d74c3
4 changed files with 42 additions and 0 deletions
|
@ -47,4 +47,14 @@ config PWM_STM32_2
|
|||
|
||||
endif # PWM
|
||||
|
||||
if VL53L0X
|
||||
|
||||
config VL53L0X_XSHUT_GPIO_DEV_NAME
|
||||
default "GPIOC"
|
||||
|
||||
config VL53L0X_XSHUT_GPIO_PIN_NUM
|
||||
default 6
|
||||
|
||||
endif #VL53L0X
|
||||
|
||||
endif # BOARD_DISCO_L475_IOT1
|
||||
|
|
|
@ -64,6 +64,12 @@
|
|||
reg = <0x6a>;
|
||||
label = "LSM6DSL";
|
||||
};
|
||||
|
||||
vl53l0x@29 {
|
||||
compatible = "st,vl53l0x";
|
||||
reg = <0x29>;
|
||||
label = "VL53L0X";
|
||||
};
|
||||
};
|
||||
|
||||
&spi1 {
|
||||
|
|
|
@ -79,3 +79,8 @@
|
|||
|
||||
#define CONFIG_BT_SPI_DEV_NAME ST_STM32_SPI_FIFO_40003C00_ST_SPBTLE_RF_0_BUS_NAME
|
||||
#define CONFIG_BT_SPI_MAX_CLK_FREQ ST_STM32_SPI_FIFO_40003C00_ST_SPBTLE_RF_0_SPI_MAX_FREQUENCY
|
||||
|
||||
#define CONFIG_VL53L0X_NAME ST_STM32_I2C_V2_40005800_ST_VL53L0X_29_LABEL
|
||||
#define CONFIG_VL53L0X_I2C_ADDR ST_STM32_I2C_V2_40005800_ST_VL53L0X_29_BASE_ADDRESS
|
||||
#define CONFIG_VL53L0X_I2C_MASTER_DEV_NAME ST_STM32_I2C_V2_40005800_ST_VL53L0X_29_BUS_NAME
|
||||
|
||||
|
|
21
dts/bindings/sensor/st,vl53l0x.yaml
Normal file
21
dts/bindings/sensor/st,vl53l0x.yaml
Normal file
|
@ -0,0 +1,21 @@
|
|||
#
|
||||
# Copyright (c) 2017, Linaro Limited
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
---
|
||||
title: STMicroelectronics MEMS sensors VL53L0X
|
||||
id: st,vl53l0x
|
||||
version: 0.1
|
||||
|
||||
description: >
|
||||
This binding gives a base representation of VL53L0X Time Of Flight sensor
|
||||
|
||||
inherits:
|
||||
!include i2c-device.yaml
|
||||
|
||||
properties:
|
||||
compatible:
|
||||
constraint: "st,vl53l0x"
|
||||
|
||||
...
|
Loading…
Add table
Add a link
Reference in a new issue