forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information
1 parent
215b248
commit 166d89c
Showing
5 changed files
with
57 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
tests/drivers/gpio/gpio_basic_api/boards/cy8cproto_063_ble.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 changes: 32 additions & 0 deletions
32
tests/drivers/i2c/i2c_api/boards/cy8cproto_063_ble.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
}; |