Skip to content

Commit

Permalink
drivers: sensor: ti: Move to vendor subdirectory
Browse files Browse the repository at this point in the history
Organizes sensor drivers by vendor to distribute maintainership
responsibilities.

Signed-off-by: Maureen Helm <[email protected]>
  • Loading branch information
MaureenHelm authored and nashif committed Apr 8, 2024
1 parent a2ef60e commit b2b2d70
Show file tree
Hide file tree
Showing 73 changed files with 42 additions and 30 deletions.
15 changes: 1 addition & 14 deletions drivers/sensor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ add_subdirectory(microchip)
add_subdirectory(nxp)
add_subdirectory(silabs)
add_subdirectory(st)
add_subdirectory(ti)
# zephyr-keep-sorted-stop

add_subdirectory_ifdef(CONFIG_A01NYUB a01nyub)
Expand All @@ -22,7 +23,6 @@ add_subdirectory_ifdef(CONFIG_AMS_IAQ_CORE ams_iAQcore)
add_subdirectory_ifdef(CONFIG_APDS9960 apds9960)
add_subdirectory_ifdef(CONFIG_BD8LB600FS_DIAGNOSTICS bd8lb600fs)
add_subdirectory_ifdef(CONFIG_BH1750 bh1750)
add_subdirectory_ifdef(CONFIG_BQ274XX bq274xx)
add_subdirectory_ifdef(CONFIG_CCS811 ccs811)
add_subdirectory_ifdef(CONFIG_CURRENT_AMP current_amp)
add_subdirectory_ifdef(CONFIG_DHT dht)
Expand All @@ -34,7 +34,6 @@ add_subdirectory_ifdef(CONFIG_ESP32_TEMP esp32_temp)
add_subdirectory_ifdef(CONFIG_EXPLORIR_M explorir_m)
add_subdirectory_ifdef(CONFIG_F75303 f75303)
add_subdirectory_ifdef(CONFIG_FCX_MLDX5 fcx_mldx5)
add_subdirectory_ifdef(CONFIG_FDC2X1X fdc2x1x)
add_subdirectory_ifdef(CONFIG_GROVE_SENSORS grove)
add_subdirectory_ifdef(CONFIG_GROW_R502A grow_r502a)
add_subdirectory_ifdef(CONFIG_HM330X hm330x)
Expand All @@ -45,9 +44,6 @@ add_subdirectory_ifdef(CONFIG_ICM42605 tdk/icm42605)
add_subdirectory_ifdef(CONFIG_ICM42670 tdk/icm42670)
add_subdirectory_ifdef(CONFIG_ICM42688 tdk/icm42688)
add_subdirectory_ifdef(CONFIG_ICP10125 tdk/icp10125)
add_subdirectory_ifdef(CONFIG_INA219 ina219)
add_subdirectory_ifdef(CONFIG_INA23X ina23x)
add_subdirectory_ifdef(CONFIG_INA3221 ina3221)
add_subdirectory_ifdef(CONFIG_IST8310 ist8310)
add_subdirectory_ifdef(CONFIG_ISL29035 isl29035)
add_subdirectory_ifdef(CONFIG_ITDS wsen_itds)
Expand All @@ -64,7 +60,6 @@ add_subdirectory_ifdef(CONFIG_MS5607 ms5607)
add_subdirectory_ifdef(CONFIG_MS5837 ms5837)
add_subdirectory_ifdef(CONFIG_NPM1300_CHARGER npm1300_charger)
add_subdirectory_ifdef(CONFIG_NTC_THERMISTOR ntc_thermistor)
add_subdirectory_ifdef(CONFIG_OPT3001 opt3001)
add_subdirectory_ifdef(CONFIG_PCNT_ESP32 pcnt_esp32)
add_subdirectory_ifdef(CONFIG_PMS7003 pms7003)
add_subdirectory_ifdef(CONFIG_QDEC_NRFX qdec_nrfx)
Expand All @@ -83,15 +78,7 @@ add_subdirectory_ifdef(CONFIG_TACH_NPCX nuvoton_tach_npcx)
add_subdirectory_ifdef(CONFIG_TCS3400 tcs3400)
add_subdirectory_ifdef(CONFIG_TEMP_NRF5 nrf5)
add_subdirectory_ifdef(CONFIG_TH02 th02)
add_subdirectory_ifdef(CONFIG_TI_HDC ti_hdc)
add_subdirectory_ifdef(CONFIG_TI_HDC20XX ti_hdc20xx)
add_subdirectory_ifdef(CONFIG_TMAG5170 tmag5170)
add_subdirectory_ifdef(CONFIG_TMAG5273 tmag5273)
add_subdirectory_ifdef(CONFIG_TMD2620 tmd2620)
add_subdirectory_ifdef(CONFIG_TMP007 tmp007)
add_subdirectory_ifdef(CONFIG_TMP108 tmp108)
add_subdirectory_ifdef(CONFIG_TMP112 tmp112)
add_subdirectory_ifdef(CONFIG_TMP116 tmp116)
add_subdirectory_ifdef(CONFIG_TSL2540 tsl2540)
add_subdirectory_ifdef(CONFIG_TSL2561 tsl2561)
add_subdirectory_ifdef(CONFIG_TSL2591 tsl2591)
Expand Down
15 changes: 1 addition & 14 deletions drivers/sensor/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ source "drivers/sensor/microchip/Kconfig"
source "drivers/sensor/nxp/Kconfig"
source "drivers/sensor/silabs/Kconfig"
source "drivers/sensor/st/Kconfig"
source "drivers/sensor/ti/Kconfig"
# zephyr-keep-sorted-stop

source "drivers/sensor/a01nyub/Kconfig"
Expand All @@ -102,7 +103,6 @@ source "drivers/sensor/ams_iAQcore/Kconfig"
source "drivers/sensor/apds9960/Kconfig"
source "drivers/sensor/bd8lb600fs/Kconfig"
source "drivers/sensor/bh1750/Kconfig"
source "drivers/sensor/bq274xx/Kconfig"
source "drivers/sensor/ccs811/Kconfig"
source "drivers/sensor/current_amp/Kconfig"
source "drivers/sensor/dht/Kconfig"
Expand All @@ -114,7 +114,6 @@ source "drivers/sensor/esp32_temp/Kconfig"
source "drivers/sensor/explorir_m/Kconfig"
source "drivers/sensor/f75303/Kconfig"
source "drivers/sensor/fcx_mldx5/Kconfig"
source "drivers/sensor/fdc2x1x/Kconfig"
source "drivers/sensor/grove/Kconfig"
source "drivers/sensor/grow_r502a/Kconfig"
source "drivers/sensor/hm330x/Kconfig"
Expand All @@ -125,9 +124,6 @@ source "drivers/sensor/tdk/icm42605/Kconfig"
source "drivers/sensor/tdk/icm42670/Kconfig"
source "drivers/sensor/tdk/icm42688/Kconfig"
source "drivers/sensor/tdk/icp10125/Kconfig"
source "drivers/sensor/ina219/Kconfig"
source "drivers/sensor/ina23x/Kconfig"
source "drivers/sensor/ina3221/Kconfig"
source "drivers/sensor/isl29035/Kconfig"
source "drivers/sensor/ist8310/Kconfig"
source "drivers/sensor/ite_tach_it8xxx2/Kconfig"
Expand All @@ -148,7 +144,6 @@ source "drivers/sensor/nrf5/Kconfig"
source "drivers/sensor/ntc_thermistor/Kconfig"
source "drivers/sensor/nuvoton_adc_cmp_npcx/Kconfig"
source "drivers/sensor/nuvoton_tach_npcx/Kconfig"
source "drivers/sensor/opt3001/Kconfig"
source "drivers/sensor/pcnt_esp32/Kconfig"
source "drivers/sensor/pms7003/Kconfig"
source "drivers/sensor/qdec_nrfx/Kconfig"
Expand All @@ -164,15 +159,7 @@ source "drivers/sensor/sm351lt/Kconfig"
source "drivers/sensor/sx9500/Kconfig"
source "drivers/sensor/tcs3400/Kconfig"
source "drivers/sensor/th02/Kconfig"
source "drivers/sensor/ti_hdc/Kconfig"
source "drivers/sensor/ti_hdc20xx/Kconfig"
source "drivers/sensor/tmag5170/Kconfig"
source "drivers/sensor/tmag5273/Kconfig"
source "drivers/sensor/tmd2620/Kconfig"
source "drivers/sensor/tmp007/Kconfig"
source "drivers/sensor/tmp108/Kconfig"
source "drivers/sensor/tmp112/Kconfig"
source "drivers/sensor/tmp116/Kconfig"
source "drivers/sensor/tsl2540/Kconfig"
source "drivers/sensor/tsl2561/Kconfig"
source "drivers/sensor/tsl2591/Kconfig"
Expand Down
19 changes: 19 additions & 0 deletions drivers/sensor/ti/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright (c) 2024 Analog Devices, Inc.
# SPDX-License-Identifier: Apache-2.0

# zephyr-keep-sorted-start
add_subdirectory_ifdef(CONFIG_BQ274XX bq274xx)
add_subdirectory_ifdef(CONFIG_FDC2X1X fdc2x1x)
add_subdirectory_ifdef(CONFIG_INA219 ina219)
add_subdirectory_ifdef(CONFIG_INA23X ina23x)
add_subdirectory_ifdef(CONFIG_INA3221 ina3221)
add_subdirectory_ifdef(CONFIG_OPT3001 opt3001)
add_subdirectory_ifdef(CONFIG_TI_HDC ti_hdc)
add_subdirectory_ifdef(CONFIG_TI_HDC20XX ti_hdc20xx)
add_subdirectory_ifdef(CONFIG_TMAG5170 tmag5170)
add_subdirectory_ifdef(CONFIG_TMAG5273 tmag5273)
add_subdirectory_ifdef(CONFIG_TMP007 tmp007)
add_subdirectory_ifdef(CONFIG_TMP108 tmp108)
add_subdirectory_ifdef(CONFIG_TMP112 tmp112)
add_subdirectory_ifdef(CONFIG_TMP116 tmp116)
# zephyr-keep-sorted-stop
19 changes: 19 additions & 0 deletions drivers/sensor/ti/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright (c) 2024 Analog Devices, Inc.
# SPDX-License-Identifier: Apache-2.0

# zephyr-keep-sorted-start
source "drivers/sensor/ti/bq274xx/Kconfig"
source "drivers/sensor/ti/fdc2x1x/Kconfig"
source "drivers/sensor/ti/ina219/Kconfig"
source "drivers/sensor/ti/ina23x/Kconfig"
source "drivers/sensor/ti/ina3221/Kconfig"
source "drivers/sensor/ti/opt3001/Kconfig"
source "drivers/sensor/ti/ti_hdc/Kconfig"
source "drivers/sensor/ti/ti_hdc20xx/Kconfig"
source "drivers/sensor/ti/tmag5170/Kconfig"
source "drivers/sensor/ti/tmag5273/Kconfig"
source "drivers/sensor/ti/tmp007/Kconfig"
source "drivers/sensor/ti/tmp108/Kconfig"
source "drivers/sensor/ti/tmp112/Kconfig"
source "drivers/sensor/ti/tmp116/Kconfig"
# zephyr-keep-sorted-stop
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/drivers/sensor/ina230/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ target_sources(app PRIVATE ${app_sources})

# Include the INA23x driver path and unit-test path for private header inclusion
zephyr_include_directories(./src)
zephyr_include_directories($ENV{ZEPHYR_BASE}/drivers/sensor/ina23x)
zephyr_include_directories($ENV{ZEPHYR_BASE}/drivers/sensor/ti/ina23x)
2 changes: 1 addition & 1 deletion tests/drivers/sensor/ina237/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ target_sources(app PRIVATE ${app_sources})

# Include the INA23x driver path and unit-test path for private header inclusion
zephyr_include_directories(./src)
zephyr_include_directories($ENV{ZEPHYR_BASE}/drivers/sensor/ina23x)
zephyr_include_directories($ENV{ZEPHYR_BASE}/drivers/sensor/ti/ina23x)

0 comments on commit b2b2d70

Please sign in to comment.