sensor: lsm6dsl: Update DTS support
Now that we can support the same compatible but different bus types, update the LSM6DSL support to utilize the same compatible for either I2C or SPI. We rename the i2c binding file to st,lsm6dsl-i2c.yaml just to be a bit more clear. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
471d2f3a0a
commit
a24770bd12
4 changed files with 8 additions and 8 deletions
|
@ -61,7 +61,7 @@
|
|||
|
||||
/* ST Microelectronics LSM6DSL accel/gyro sensor */
|
||||
lsm6dsl@1 {
|
||||
compatible = "st,lsm6dsl-spi";
|
||||
compatible = "st,lsm6dsl";
|
||||
reg = <1>;
|
||||
spi-max-frequency = <1000000>;
|
||||
irq-gpios = <&gpiob 1 0>;
|
||||
|
|
|
@ -20,12 +20,12 @@
|
|||
#define DT_VL53L0X_I2C_ADDR DT_ST_STM32_I2C_V1_40005800_ST_VL53L0X_29_BASE_ADDRESS
|
||||
#define DT_VL53L0X_I2C_MASTER_DEV_NAME DT_ST_STM32_I2C_V1_40005800_ST_VL53L0X_29_BUS_NAME
|
||||
|
||||
#define DT_LSM6DSL_DEV_NAME DT_ST_STM32_SPI_40003800_ST_LSM6DSL_SPI_1_LABEL
|
||||
#define DT_LSM6DSL_SPI_SELECT_SLAVE DT_ST_STM32_SPI_40003800_ST_LSM6DSL_SPI_1_BASE_ADDRESS
|
||||
#define DT_LSM6DSL_SPI_MASTER_DEV_NAME DT_ST_STM32_SPI_40003800_ST_LSM6DSL_SPI_1_BUS_NAME
|
||||
#define DT_LSM6DSL_SPI_BUS_FREQ DT_ST_STM32_SPI_40003800_ST_LSM6DSL_SPI_1_SPI_MAX_FREQUENCY
|
||||
#define DT_LSM6DSL_GPIO_DEV_NAME DT_ST_STM32_SPI_40003800_ST_LSM6DSL_SPI_1_IRQ_GPIOS_CONTROLLER
|
||||
#define DT_LSM6DSL_GPIO_PIN_NUM DT_ST_STM32_SPI_40003800_ST_LSM6DSL_SPI_1_IRQ_GPIOS_PIN
|
||||
#define DT_LSM6DSL_DEV_NAME DT_ST_STM32_SPI_40003800_ST_LSM6DSL_1_LABEL
|
||||
#define DT_LSM6DSL_SPI_SELECT_SLAVE DT_ST_STM32_SPI_40003800_ST_LSM6DSL_1_BASE_ADDRESS
|
||||
#define DT_LSM6DSL_SPI_MASTER_DEV_NAME DT_ST_STM32_SPI_40003800_ST_LSM6DSL_1_BUS_NAME
|
||||
#define DT_LSM6DSL_SPI_BUS_FREQ DT_ST_STM32_SPI_40003800_ST_LSM6DSL_1_SPI_MAX_FREQUENCY
|
||||
#define DT_LSM6DSL_GPIO_DEV_NAME DT_ST_STM32_SPI_40003800_ST_LSM6DSL_1_IRQ_GPIOS_CONTROLLER
|
||||
#define DT_LSM6DSL_GPIO_PIN_NUM DT_ST_STM32_SPI_40003800_ST_LSM6DSL_1_IRQ_GPIOS_PIN
|
||||
|
||||
#define CONFIG_LP3943_DEV_NAME DT_ST_STM32_I2C_V1_40005C00_TI_LP3943_60_LABEL
|
||||
#define CONFIG_LP3943_I2C_ADDRESS DT_ST_STM32_I2C_V1_40005C00_TI_LP3943_60_BASE_ADDRESS
|
||||
|
|
|
@ -16,7 +16,7 @@ inherits:
|
|||
|
||||
properties:
|
||||
compatible:
|
||||
constraint: "st,lsm6dsl-spi"
|
||||
constraint: "st,lsm6dsl"
|
||||
|
||||
irq-gpios:
|
||||
type: compound
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue