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:
Vincent Veron 2017-07-19 17:07:17 +02:00 committed by Kumar Gala
commit 73c52d74c3
4 changed files with 42 additions and 0 deletions

View file

@ -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

View file

@ -64,6 +64,12 @@
reg = <0x6a>;
label = "LSM6DSL";
};
vl53l0x@29 {
compatible = "st,vl53l0x";
reg = <0x29>;
label = "VL53L0X";
};
};
&spi1 {

View file

@ -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

View 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"
...