diff --git a/tests/drivers/gpio/gpio_api_1pin/boards/particle_xenon.conf b/tests/drivers/gpio/gpio_api_1pin/boards/particle_xenon.conf new file mode 100644 index 00000000000..96a375066db --- /dev/null +++ b/tests/drivers/gpio/gpio_api_1pin/boards/particle_xenon.conf @@ -0,0 +1,3 @@ +CONFIG_I2C=y +CONFIG_GPIO_SX1509B=y +CONFIG_GPIO_SX1509B_INTERRUPT=y diff --git a/tests/drivers/gpio/gpio_api_1pin/boards/particle_xenon.overlay b/tests/drivers/gpio/gpio_api_1pin/boards/particle_xenon.overlay new file mode 100644 index 00000000000..e5dd196fa0a --- /dev/null +++ b/tests/drivers/gpio/gpio_api_1pin/boards/particle_xenon.overlay @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2019 Nordic Semiconductor ASA + * + * SPDX-License-Identifier: Apache-2.0 + */ + +/ { + resources { + compatible = "test,gpio_basic_api"; + out-gpios = <&sx1509b 0 0>; /* EXT0 */ + in-gpios = <&sx1509b 1 0>; /* EXT1 */ + }; + + gpio_keys { + compatible = "gpio-keys"; + iox_button: button_2 { + gpios = <&sx1509b 2 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + label = "IOX Button"; + }; + }; +}; + +&i2c0 { + sx1509b: sx1509b@3e { + compatible = "semtech,sx1509b"; + reg = <0x3e>; + label = "IOX"; + gpio-controller; + #gpio-cells = <2>; + ngpios = <16>; + nint-gpios =<&gpio1 1 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + }; +}; diff --git a/tests/drivers/gpio/gpio_basic_api/boards/particle_xenon.conf b/tests/drivers/gpio/gpio_basic_api/boards/particle_xenon.conf new file mode 100644 index 00000000000..96a375066db --- /dev/null +++ b/tests/drivers/gpio/gpio_basic_api/boards/particle_xenon.conf @@ -0,0 +1,3 @@ +CONFIG_I2C=y +CONFIG_GPIO_SX1509B=y +CONFIG_GPIO_SX1509B_INTERRUPT=y diff --git a/tests/drivers/gpio/gpio_basic_api/boards/particle_xenon.overlay b/tests/drivers/gpio/gpio_basic_api/boards/particle_xenon.overlay new file mode 100644 index 00000000000..e5dd196fa0a --- /dev/null +++ b/tests/drivers/gpio/gpio_basic_api/boards/particle_xenon.overlay @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2019 Nordic Semiconductor ASA + * + * SPDX-License-Identifier: Apache-2.0 + */ + +/ { + resources { + compatible = "test,gpio_basic_api"; + out-gpios = <&sx1509b 0 0>; /* EXT0 */ + in-gpios = <&sx1509b 1 0>; /* EXT1 */ + }; + + gpio_keys { + compatible = "gpio-keys"; + iox_button: button_2 { + gpios = <&sx1509b 2 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + label = "IOX Button"; + }; + }; +}; + +&i2c0 { + sx1509b: sx1509b@3e { + compatible = "semtech,sx1509b"; + reg = <0x3e>; + label = "IOX"; + gpio-controller; + #gpio-cells = <2>; + ngpios = <16>; + nint-gpios =<&gpio1 1 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + }; +};