Skip to content

Commit

Permalink
snippets: tests: all drivers: i2c: add SC18IS604
Browse files Browse the repository at this point in the history
Support the SC18IS604 chip on build all I2C driver test.

Signed-off-by: Stephan Linz <[email protected]>
  • Loading branch information
rexut committed Jul 27, 2024
1 parent f97cda5 commit 3596523
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
7 changes: 7 additions & 0 deletions snippets/tstdrv-bldall-i2c-adj/tstdrv-bldall-i2c-adj.conf
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
# Copyright (c) 2024 TiaC Systems
# SPDX-License-Identifier: Apache-2.0

CONFIG_MFD=y
CONFIG_I2C=y
CONFIG_SPI=y
CONFIG_GPIO=y

CONFIG_DYNAMIC_THREAD_POOL_SIZE=2
19 changes: 18 additions & 1 deletion snippets/tstdrv-bldall-i2c-adj/tstdrv-bldall-i2c-adj.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,24 @@
clock-frequency = <2000000>;

/* one entry for every devices */
/* cs-gpios = <&test_gpio_adj 0 0>; */
cs-gpios = <&test_gpio_adj 0 0>;

test_spi_sc18is604: sc18is604-spi@0 {
compatible = "nxp,sc18is604";
status = "okay";
reg = <0x0>;
spi-max-frequency = <650000>;
reset-gpios = <&test_gpio_adj 0 0>;
interrupt-gpios = <&test_gpio_adj 0 0>;

test_spi_sc18is604_i2c: sc18is604-spi-i2c {
compatible = "nxp,sc18is604-i2c";
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
clock-frequency = <100000>;
};
};
};

test_uart_adj: uart@ddddeeee {
Expand Down

0 comments on commit 3596523

Please sign in to comment.