zephyr/tests/drivers/build_all/dts_fixup.h

282 lines
8.4 KiB
C

/* SPDX-License-Identifier: Apache-2.0 */
#if defined(CONFIG_HAS_DTS_I2C)
#ifndef DT_ADI_ADT7420_0_LABEL
#define DT_ADI_ADT7420_0_LABEL ""
#define DT_ADI_ADT7420_0_BASE_ADDRESS 0
#define DT_ADI_ADT7420_0_BUS_NAME ""
#define DT_ADI_ADT7420_0_INT_GPIOS_CONTROLLER ""
#define DT_ADI_ADT7420_0_INT_GPIOS_PIN 0
#endif
#ifndef DT_ADI_ADXL362_0_LABEL
#define DT_ADI_ADXL362_0_LABEL ""
#define DT_ADI_ADXL362_0_BUS_NAME ""
#define DT_ADI_ADXL362_0_BASE_ADDRESS 0
#define DT_ADI_ADXL362_0_INT1_GPIOS_CONTROLLER ""
#define DT_ADI_ADXL362_0_INT1_GPIOS_PIN 0
#define DT_ADI_ADXL362_0_CS_GPIO_CONTROLLER 0
#define DT_ADI_ADXL362_0_CS_GPIO_PIN 0
#define DT_ADI_ADXL362_0_SPI_MAX_FREQUENCY 0
#endif
#ifndef DT_ADI_ADXL372_0_LABEL
#define DT_ADI_ADXL372_0_LABEL ""
#define DT_ADI_ADXL372_0_BUS_NAME ""
#define DT_ADI_ADXL372_0_BASE_ADDRESS 0
#define DT_ADI_ADXL372_0_INT1_GPIOS_CONTROLLER ""
#define DT_ADI_ADXL372_0_INT1_GPIOS_PIN 0
#endif
#ifndef DT_AVAGO_APDS9960_0_LABEL
#define DT_AVAGO_APDS9960_0_LABEL ""
#define DT_AVAGO_APDS9960_0_BUS_NAME ""
#define DT_AVAGO_APDS9960_0_BASE_ADDRESS 0
#define DT_AVAGO_APDS9960_0_INT_GPIOS_CONTROLLER ""
#define DT_AVAGO_APDS9960_0_INT_GPIOS_PIN 0
#endif
#ifndef DT_BOSCH_BME280_0_LABEL
#define DT_BOSCH_BME280_0_LABEL ""
#define DT_BOSCH_BME280_0_BASE_ADDRESS 0
#define DT_BOSCH_BME280_0_BUS_NAME ""
#define DT_BOSCH_BME280_BUS_I2C 1
#endif
#ifndef DT_AMS_CCS811_0_LABEL
#define DT_AMS_CCS811_0_LABEL ""
#define DT_AMS_CCS811_0_BUS_NAME ""
#define DT_AMS_CCS811_0_BASE_ADDRESS 0
#endif
#ifndef DT_NXP_FXAS21002_0_LABEL
#define DT_NXP_FXAS21002_0_LABEL ""
#define DT_NXP_FXAS21002_0_BASE_ADDRESS 0
#define DT_NXP_FXAS21002_0_BUS_NAME ""
#define DT_NXP_FXAS21002_0_INT2_GPIOS_CONTROLLER ""
#define DT_NXP_FXAS21002_0_INT2_GPIOS_PIN 0
#endif
#ifndef DT_NXP_FXOS8700_0_LABEL
#define DT_NXP_FXOS8700_0_LABEL ""
#define DT_NXP_FXOS8700_0_BASE_ADDRESS 0
#define DT_NXP_FXOS8700_0_BUS_NAME ""
#define DT_NXP_FXOS8700_0_INT1_GPIOS_CONTROLLER ""
#define DT_NXP_FXOS8700_0_INT1_GPIOS_PIN 0
#define DT_NXP_FXOS8700_0_INT2_GPIOS_CONTROLLER ""
#define DT_NXP_FXOS8700_0_INT2_GPIOS_PIN 0
#endif
#ifndef DT_ST_HTS221_0_LABEL
#define DT_ST_HTS221_0_LABEL ""
#define DT_ST_HTS221_0_BUS_NAME ""
#define DT_ST_HTS221_0_BASE_ADDRESS 0
#define DT_ST_HTS221_0_DRDY_GPIOS_PIN 0
#define DT_ST_HTS221_0_DRDY_GPIOS_CONTROLLER ""
#endif
#ifndef DT_ST_LIS3MDL_MAGN_0_LABEL
#define DT_ST_LIS3MDL_MAGN_0_LABEL ""
#define DT_ST_LIS3MDL_MAGN_0_BUS_NAME ""
#define DT_ST_LIS3MDL_MAGN_0_BASE_ADDRESS 0x19
#endif
#ifndef DT_ST_LPS25HB_PRESS_0_LABEL
#define DT_ST_LPS25HB_PRESS_0_LABEL ""
#define DT_ST_LPS25HB_PRESS_0_BUS_NAME ""
#define DT_ST_LPS25HB_PRESS_0_BASE_ADDRESS 0x19
#endif
#ifndef DT_ST_LSM6DS0_0_LABEL
#define DT_ST_LSM6DS0_0_LABEL ""
#define DT_ST_LSM6DS0_0_BUS_NAME ""
#define DT_ST_LSM6DS0_0_BASE_ADDRESS 0x19
#endif
#ifndef DT_MAX_MAX30101_0_LABEL
#define DT_MAX_MAX30101_0_BUS_NAME ""
#define DT_MAX_MAX30101_0_LABEL ""
#endif
#ifndef DT_SEMTECH_SX1509B_0_LABEL
#define DT_SEMTECH_SX1509B_0_LABEL ""
#define DT_SEMTECH_SX1509B_0_BASE_ADDRESS 0
#define DT_SEMTECH_SX1509B_0_BUS_NAME ""
#endif
#ifndef DT_ST_LSM6DSL_0_LABEL
#define DT_ST_LSM6DSL_0_LABEL ""
#define DT_ST_LSM6DSL_0_BASE_ADDRESS 0x6a
#define DT_ST_LSM6DSL_0_BUS_NAME ""
#define DT_ST_LSM6DSL_0_IRQ_GPIOS_CONTROLLER ""
#define DT_ST_LSM6DSL_0_IRQ_GPIOS_PIN 0
#define DT_ST_LSM6DSL_BUS_I2C 1
#endif
#ifndef DT_ST_LPS22HB_PRESS_0_LABEL
#define DT_ST_LPS22HB_PRESS_0_LABEL ""
#define DT_ST_LPS22HB_PRESS_0_BASE_ADDRESS 0
#define DT_ST_LPS22HB_PRESS_0_BUS_NAME ""
#endif
#ifndef DT_ST_VL53L0X_0_LABEL
#define DT_ST_VL53L0X_0_LABEL ""
#define DT_ST_VL53L0X_0_BASE_ADDRESS 0
#define DT_ST_VL53L0X_0_BUS_NAME ""
#endif
#ifndef DT_ST_LSM303DLHC_MAGN_0_LABEL
#define DT_ST_LSM303DLHC_MAGN_0_LABEL ""
#define DT_ST_LSM303DLHC_MAGN_0_BUS_NAME ""
#define DT_ST_LSM303DLHC_MAGN_0_BASE_ADDRESS 0x1e
#endif
#ifndef DT_ST_LIS2DH_0_LABEL
#define DT_ST_LIS2DH_0_LABEL ""
#define DT_ST_LIS2DH_0_BASE_ADDRESS 0x19
#define DT_ST_LIS2DH_0_BUS_NAME ""
#define DT_ST_LIS2DH_0_IRQ_GPIOS_CONTROLLER ""
#define DT_ST_LIS2DH_0_IRQ_GPIOS_PIN 0
#define DT_ST_LIS2DH_0_BUS_I2C 1
#endif
#ifndef DT_SENSIRION_SHT3XD_0_LABEL
#define DT_SENSIRION_SHT3XD_0_LABEL ""
#define DT_SENSIRION_SHT3XD_0_ALERT_GPIOS_CONTROLLER ""
#define DT_SENSIRION_SHT3XD_0_ALERT_GPIOS_FLAGS 0
#define DT_SENSIRION_SHT3XD_0_ALERT_GPIOS_PIN 0
#define DT_SENSIRION_SHT3XD_0_BASE_ADDRESS 0x44
#define DT_SENSIRION_SHT3XD_0_BUS_NAME ""
#endif
#ifndef DT_ST_LIS2DS12_0_LABEL
#define DT_ST_LIS2DS12_0_LABEL ""
#define DT_ST_LIS2DS12_0_BUS_NAME ""
#define DT_ST_LIS2DS12_0_BASE_ADDRESS 0x19
#define DT_ST_LIS2DS12_0_IRQ_GPIOS_CONTROLLER ""
#define DT_ST_LIS2DS12_0_IRQ_GPIOS_PIN 0
#define DT_ST_LIS2DS12_BUS_I2C 1
#endif
#ifndef DT_ST_LIS2MDL_MAGN_0_LABEL
#define DT_ST_LIS2MDL_MAGN_0_LABEL ""
#define DT_ST_LIS2MDL_MAGN_0_BUS_NAME ""
#define DT_ST_LIS2MDL_MAGN_0_BASE_ADDRESS 0x19
#define DT_ST_LIS2MDL_MAGN_0_IRQ_GPIOS_CONTROLLER ""
#define DT_ST_LIS2MDL_MAGN_0_IRQ_GPIOS_PIN 0
#endif
#ifndef DT_ST_LIS2DW12_0_LABEL
#define DT_ST_LIS2DW12_0_LABEL ""
#define DT_ST_LIS2DW12_0_BUS_NAME ""
#define DT_ST_LIS2DW12_0_BASE_ADDRESS 0x19
#define DT_ST_LIS2DW12_0_IRQ_GPIOS_CONTROLLER ""
#define DT_ST_LIS2DW12_0_IRQ_GPIOS_PIN 0
#define DT_ST_LIS2DW12_BUS_I2C 1
#endif
#ifndef DT_LSM9DS0_MFD_DEV_NAME
#define DT_LSM9DS0_MFD_DEV_NAME ""
#define DT_LSM9DS0_MFD_I2C_ADDRESS 0x1d
#define DT_LSM9DS0_MFD_I2C_MASTER_DEV_NAME ""
#endif
#ifndef DT_LSM9DS0_GYRO_DEV_NAME
#define DT_LSM9DS0_GYRO_DEV_NAME ""
#define DT_LSM9DS0_GYRO_I2C_ADDRESS 0x1d
#define DT_LSM9DS0_GYRO_I2C_MASTER_DEV_NAME ""
#define DT_LSM9DS0_GYRO_INT_GPIO_DEV_NAME ""
#define DT_LSM9DS0_GYRO_INT_GPIO_PIN 1
#endif
#ifndef DT_AMS_IAQCORE_0_LABEL
#define DT_AMS_IAQCORE_0_LABEL ""
#define DT_AMS_IAQCORE_0_BUS_NAME ""
#define DT_AMS_IAQCORE_0_BASE_ADDRESS 0x00
#endif
#ifndef DT_AMS_ENS210_0_LABEL
#define DT_AMS_ENS210_0_LABEL ""
#define DT_AMS_ENS210_0_BUS_NAME ""
#define DT_AMS_ENS210_0_BASE_ADDRESS 0x00
#endif
#endif /* CONFIG_HAS_DTS_I2C */
#if defined(CONFIG_HAS_DTS_SPI)
#ifndef DT_ADXL372_DEV_NAME
#define DT_ADXL372_DEV_NAME ""
#define DT_ADXL372_SPI_DEV_NAME ""
#define DT_ADXL372_SPI_DEV_SLAVE 0
#define DT_ADXL372_SPI_BUS_FREQ 8000000
#endif
#ifndef DT_BOSCH_BMI160_0_LABEL
#define DT_BOSCH_BMI160_0_LABEL ""
#define DT_BOSCH_BMI160_0_BASE_ADDRESS 0
#define DT_BOSCH_BMI160_0_BUS_NAME ""
#define DT_BOSCH_BMI160_0_INT_GPIOS_CONTROLLER ""
#define DT_BOSCH_BMI160_0_INT_GPIOS_PIN 0
#define DT_BOSCH_BMI160_0_SPI_MAX_FREQUENCY 6400000
#endif
#ifndef DT_ST_LIS2DH_0_LABEL
#define DT_ST_LIS2DH_0_LABEL ""
#define DT_ST_LIS2DH_0_BASE_ADDRESS 0
#define DT_ST_LIS2DH_0_BUS_NAME ""
#define DT_ST_LIS2DH_0_IRQ_GPIOS_CONTROLLER ""
#define DT_ST_LIS2DH_0_IRQ_GPIOS_PIN 0
#define DT_ST_LIS2DH_0_SPI_MAX_FREQUENCY 6400000
#define DT_ST_LIS2DH_0_BUS_SPI 1
#endif
#ifndef DT_ST_LSM6DSL_0_LABEL
#define DT_ST_LSM6DSL_0_LABEL ""
#define DT_ST_LSM6DSL_0_BASE_ADDRESS 0
#define DT_ST_LSM6DSL_0_BUS_NAME ""
#define DT_ST_LSM6DSL_0_IRQ_GPIOS_CONTROLLER ""
#define DT_ST_LSM6DSL_0_IRQ_GPIOS_PIN 0
#define DT_ST_LSM6DSL_0_SPI_MAX_FREQUENCY 6400000
#define DT_ST_LSM6DSL_BUS_SPI 1
#endif
#ifndef DT_ST_LIS2DS12_0_LABEL
#define DT_ST_LIS2DS12_0_LABEL ""
#define DT_ST_LIS2DS12_0_BUS_NAME ""
#define DT_ST_LIS2DS12_0_SPI_MAX_FREQUENCY 100000
#define DT_ST_LIS2DS12_0_BASE_ADDRESS 1
#define DT_ST_LIS2DS12_0_IRQ_GPIOS_CONTROLLER ""
#define DT_ST_LIS2DS12_0_IRQ_GPIOS_PIN 0
#define DT_ST_LIS2DS12_BUS_SPI 1
#endif
#ifndef DT_ST_LIS2DW12_0_LABEL
#define DT_ST_LIS2DW12_0_LABEL ""
#define DT_ST_LIS2DW12_0_BUS_NAME ""
#define DT_ST_LIS2DW12_0_SPI_MAX_FREQUENCY 100000
#define DT_ST_LIS2DW12_0_BASE_ADDRESS 1
#define DT_ST_LIS2DW12_0_IRQ_GPIOS_CONTROLLER ""
#define DT_ST_LIS2DW12_0_IRQ_GPIOS_PIN 0
#define DT_ST_LIS2DW12_BUS_SPI 1
#endif
#ifndef DT_MICROCHIP_ENC28J60_0_LABEL
#define DT_MICROCHIP_ENC28J60_0_BASE_ADDRESS 0
#define DT_MICROCHIP_ENC28J60_0_BUS_NAME ""
#define DT_MICROCHIP_ENC28J60_0_INT_GPIOS_CONTROLLER ""
#define DT_MICROCHIP_ENC28J60_0_INT_GPIOS_FLAGS 0
#define DT_MICROCHIP_ENC28J60_0_INT_GPIOS_PIN 0
#define DT_MICROCHIP_ENC28J60_0_LABEL ""
#define DT_MICROCHIP_ENC28J60_0_LOCAL_MAC_ADDRESS_0 0
#define DT_MICROCHIP_ENC28J60_0_LOCAL_MAC_ADDRESS_1 0
#define DT_MICROCHIP_ENC28J60_0_LOCAL_MAC_ADDRESS_2 0
#define DT_MICROCHIP_ENC28J60_0_LOCAL_MAC_ADDRESS_3 0
#define DT_MICROCHIP_ENC28J60_0_LOCAL_MAC_ADDRESS_4 0
#define DT_MICROCHIP_ENC28J60_0_LOCAL_MAC_ADDRESS_5 0
#define DT_MICROCHIP_ENC28J60_0_SPI_MAX_FREQUENCY 0
#endif
#endif /* CONFIG_HAS_DTS_SPI */