Skip to content

Commit

Permalink
driver: i2c: TCA9546A: Rename to TCA954x
Browse files Browse the repository at this point in the history
Prepare the driver to upcoming support of more mux references.
Rename all TCA9546A related files to TCA954x.
Keep ti,tca9546a and ti,tca9546a-channel compatible
for backward compatibility reasons.
New tca954x-base binding embedding common properties,
tca9546a binding inherits from it and define its own compatibles fields.

Signed-off-by: Aymeric Aillet <aymeric.aillet@iot.bzh>
  • Loading branch information
aaillet authored and carlescufi committed Dec 13, 2021
1 parent 13bf2e5 commit 50540ed
Show file tree
Hide file tree
Showing 14 changed files with 261 additions and 237 deletions.
2 changes: 1 addition & 1 deletion CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@
/drivers/i2c/i2c_rv32m1_lpi2c* @henrikbrixandersen
/drivers/i2c/*sam0* @Sizurka
/drivers/i2c/i2c_dw* @dcpleung
/drivers/i2c/*tca9546a* @kurddt
/drivers/i2c/*tca954x* @kurddt
/drivers/*/*xec* @franciscomunoz @albertofloyd @scottwcpg
/drivers/watchdog/*gecko* @oanerer
/drivers/watchdog/*sifive* @katsuster
Expand Down
2 changes: 1 addition & 1 deletion drivers/i2c/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ zephyr_library_sources_ifdef(CONFIG_I2C_NPCX i2c_npcx_controller.c)
zephyr_library_sources_ifdef(CONFIG_I2C_NPCX i2c_npcx_port.c)
zephyr_library_sources_ifdef(CONFIG_I2C_DW i2c_dw.c)
zephyr_library_sources_ifdef(CONFIG_I2C_RCAR i2c_rcar.c)
zephyr_library_sources_ifdef(CONFIG_I2C_TCA9546A i2c_tca9546a.c)
zephyr_library_sources_ifdef(CONFIG_I2C_TCA954X i2c_tca954x.c)
zephyr_library_sources_ifdef(CONFIG_I2C_XEC_V2 i2c_mchp_xec_v2.c)

zephyr_library_sources_ifdef(CONFIG_I2C_STM32_V1
Expand Down
2 changes: 1 addition & 1 deletion drivers/i2c/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ source "drivers/i2c/Kconfig.lpc11u6x"
source "drivers/i2c/Kconfig.npcx"
source "drivers/i2c/Kconfig.test"
source "drivers/i2c/Kconfig.rcar"
source "drivers/i2c/Kconfig.tca9546a"
source "drivers/i2c/Kconfig.tca954x"

config I2C_INIT_PRIORITY
int "Init priority"
Expand Down
19 changes: 0 additions & 19 deletions drivers/i2c/Kconfig.tca9546a

This file was deleted.

19 changes: 19 additions & 0 deletions drivers/i2c/Kconfig.tca954x
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright (c) 2020 Innoseis BV
# SPDX-License-Identifier: Apache-2.0

menuconfig I2C_TCA954X
bool "I2C addressable switch"
help
Enable TCA954x series I2C bus switch

if I2C_TCA954X

config I2C_TCA954X_ROOT_INIT_PRIO
int "TCA954x root driver init priority"
default I2C_INIT_PRIORITY

config I2C_TCA954X_CHANNEL_INIT_PRIO
int "TCA954x channel driver init priority"
default I2C_INIT_PRIORITY

endif
168 changes: 0 additions & 168 deletions drivers/i2c/i2c_tca9546a.c

This file was deleted.

Loading

0 comments on commit 50540ed

Please sign in to comment.