Skip to content

Commit

Permalink
DNM tests/drivers/gpio: sx1509B test infrastructure
Browse files Browse the repository at this point in the history
  • Loading branch information
pabigot committed Sep 18, 2019
1 parent 2db9c66 commit 33a28b4
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tests/drivers/gpio/gpio_basic_api/particle_xenon.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
* Copyright (c) 2019 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/

&i2c0 {
sx1509b: sx1509b@3e {
compatible = "semtech,sx1509b";
reg = <0x3e>;
label = "IOX0";
#gpio-cells = <2>;
gpio-controller;
};
};

/ {
scope-pins {
compatible = "test,scope-pins";
gpios =
<&sx1509b 0 0>, <&sx1509b 1 0>;
};
};
2 changes: 2 additions & 0 deletions tests/drivers/gpio/gpio_basic_api/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ CONFIG_ZTEST=y
CONFIG_ENTROPY_GENERATOR=y
CONFIG_TEST_RANDOM_GENERATOR=y
#CONFIG_TEST_USERSPACE=y
#CONFIG_I2C=y
#CONFIG_GPIO_SX1509B=y

0 comments on commit 33a28b4

Please sign in to comment.