Skip to content

Commit

Permalink
driver: i2c: TCA954X: Add support for TCA9548A
Browse files Browse the repository at this point in the history
Add support for the 8 channels TCA9548A I2C mux.
Added a new binding ti,tca9548a binding inheriting
properties from ti,tca954x-base and defining its own compatibles fields.

Signed-off-by: Aymeric Aillet <[email protected]>
  • Loading branch information
aaillet authored and carlescufi committed Dec 13, 2021
1 parent ee1d849 commit 903c78c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
8 changes: 8 additions & 0 deletions drivers/i2c/i2c_tca954x.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,3 +196,11 @@ const struct i2c_driver_api tca954x_api_funcs = {
#undef DT_DRV_COMPAT
#define DT_DRV_COMPAT ti_tca9546a
DT_INST_FOREACH_STATUS_OKAY(TCA9546A_INIT)

/*
* TCA9548A: 8 channels
*/
#define TCA9548A_INIT(n) TCA954x_ROOT_DEFINE(9548, n, 8)
#undef DT_DRV_COMPAT
#define DT_DRV_COMPAT ti_tca9548a
DT_INST_FOREACH_STATUS_OKAY(TCA9548A_INIT)
10 changes: 10 additions & 0 deletions dts/bindings/i2c/ti,tca9548a.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#Binding for TI TCA9548A, compatible with NXP PCA9548A

description: Texas Instruments TCA9548A binding

compatible: "ti,tca9548a"

include: ti,tca954x-base.yaml

child-binding:
compatible: "ti,tca9548a-channel"

0 comments on commit 903c78c

Please sign in to comment.