-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: lib: devicetree: api: Add tests for IRQ_INTC_* macros
Extend api test suite to cover the new devicetree macros. This includes extending the devicetree overlay with two new bindings: - GPIO device which is also an interrupt controller - interrupt holder using interrupts-extended to point to both existing interrupt controller test_intc, and the newly added GPIO device Signed-off-by: Bjarki Arge Andreasen <[email protected]>
- Loading branch information
1 parent
cb118ab
commit 2fdb4b7
Showing
4 changed files
with
93 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Copyright (c) 2023 Bjarki Arge Andreasen | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
description: Test GPIO with INTC node | ||
|
||
compatible: "vnd,gpio-intc-device" | ||
|
||
include: | ||
- gpio-controller.yaml | ||
- interrupt-controller.yaml | ||
- base.yaml | ||
|
||
properties: | ||
reg: | ||
required: true | ||
|
||
"#gpio-cells": | ||
const: 2 | ||
|
||
"#interrupt-cells": | ||
const: 2 | ||
|
||
gpio-cells: | ||
- pin | ||
- flags | ||
|
||
interrupt-cells: | ||
- pin | ||
- flags |
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,15 @@ | ||
# Copyright (c) 2023 Bjarki Arge Andreasen | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
description: Test Interrupt Controller with extended interrupts | ||
|
||
compatible: "vnd,interrupt-holder-extended" | ||
|
||
include: [base.yaml] | ||
|
||
properties: | ||
interrupts-extended: | ||
required: true | ||
|
||
interrupt-names: | ||
required: true |
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