tests: drivers: Added overlays to tests for 063_ble
Fixed pinout in adc overlays to align with board Allowed adc driver sample Added overlay for gpio_basic_api test support Added overlay for i2c_api test support Signed-off-by: Pavlo Havrylyuk <pavlo.havrylyuk@infineon.com>
This commit is contained in:
parent
215b248cc6
commit
166d89c69e
5 changed files with 57 additions and 6 deletions
|
@ -24,7 +24,7 @@
|
|||
zephyr,gain = "ADC_GAIN_1";
|
||||
zephyr,reference = "ADC_REF_INTERNAL";
|
||||
zephyr,resolution = <12>;
|
||||
zephyr,input-positive = <0>; /* P10.0 */
|
||||
zephyr,input-positive = <2>; /* P10.2 */
|
||||
};
|
||||
|
||||
channel@1 {
|
||||
|
@ -33,7 +33,7 @@
|
|||
zephyr,gain = "ADC_GAIN_1";
|
||||
zephyr,reference = "ADC_REF_INTERNAL";
|
||||
zephyr,resolution = <12>;
|
||||
zephyr,input-positive = <1>; /* P10.1 */
|
||||
zephyr,input-positive = <3>; /* P10.3 */
|
||||
};
|
||||
|
||||
channel@2 {
|
||||
|
@ -42,7 +42,7 @@
|
|||
zephyr,gain = "ADC_GAIN_1";
|
||||
zephyr,reference = "ADC_REF_INTERNAL";
|
||||
zephyr,resolution = <12>;
|
||||
zephyr,input-positive = <2>; /* P10.2 */
|
||||
zephyr,input-positive = <4>; /* P10.4 */
|
||||
};
|
||||
|
||||
channel@3 {
|
||||
|
@ -51,6 +51,6 @@
|
|||
zephyr,gain = "ADC_GAIN_1";
|
||||
zephyr,reference = "ADC_REF_INTERNAL";
|
||||
zephyr,resolution = <12>;
|
||||
zephyr,input-positive = <3>; /* P10.3 */
|
||||
zephyr,input-positive = <5>; /* P10.5 */
|
||||
};
|
||||
};
|
||||
|
|
|
@ -9,6 +9,7 @@ tests:
|
|||
- disco_l475_iot1
|
||||
- cc3220sf_launchxl
|
||||
- cc3235sf_launchxl
|
||||
- cy8cproto_063_ble
|
||||
- stm32l496g_disco
|
||||
- stm32h735g_disco
|
||||
- nrf51dk_nrf51422
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
zephyr,gain = "ADC_GAIN_1";
|
||||
zephyr,reference = "ADC_REF_INTERNAL";
|
||||
zephyr,resolution = <12>;
|
||||
zephyr,input-positive = <0>; /* P10.0 */
|
||||
zephyr,input-positive = <2>; /* P10.2 */
|
||||
};
|
||||
|
||||
channel@1 {
|
||||
|
@ -33,6 +33,6 @@
|
|||
zephyr,gain = "ADC_GAIN_1";
|
||||
zephyr,reference = "ADC_REF_INTERNAL";
|
||||
zephyr,resolution = <12>;
|
||||
zephyr,input-positive = <1>; /* P10.1 */
|
||||
zephyr,input-positive = <3>; /* P10.3 */
|
||||
};
|
||||
};
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Copyright (c) 2023 Cypress Semiconductor Corporation (an Infineon company) or
|
||||
* an affiliate of Cypress Semiconductor Corporation
|
||||
*/
|
||||
|
||||
/ {
|
||||
resources {
|
||||
compatible = "test-gpio-basic-api";
|
||||
out-gpios = <&gpio_prt9 4 0>;
|
||||
in-gpios = <&gpio_prt9 2 0>;
|
||||
};
|
||||
};
|
||||
|
||||
&gpio_prt9 {
|
||||
status = "okay";
|
||||
};
|
32
tests/drivers/i2c/i2c_api/boards/cy8cproto_063_ble.overlay
Normal file
32
tests/drivers/i2c/i2c_api/boards/cy8cproto_063_ble.overlay
Normal file
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Copyright (c) 2023 Cypress Semiconductor Corporation (an Infineon company) or
|
||||
* an affiliate of Cypress Semiconductor Corporation
|
||||
*/
|
||||
|
||||
/ {
|
||||
aliases {
|
||||
gy271 = &i2c1;
|
||||
i2c-0 =&i2c1;
|
||||
};
|
||||
};
|
||||
|
||||
i2c1: &scb1 {
|
||||
compatible = "infineon,cat1-i2c";
|
||||
|
||||
status = "okay";
|
||||
pinctrl-0 = <&p10_0_scb1_i2c_scl &p10_1_scb1_i2c_sda>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
|
||||
/* Configure pin control bias mode for i2c pins */
|
||||
&p10_0_scb1_i2c_scl {
|
||||
drive-open-drain;
|
||||
input-enable;
|
||||
};
|
||||
|
||||
&p10_1_scb1_i2c_sda {
|
||||
drive-open-drain;
|
||||
input-enable;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue