forked from torvalds/linux
-
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.
of: Add testcases for interrupt parsing
This patch extends the DT selftest code with some test cases for the interrupt parsing functions. Signed-off-by: Grant Likely <[email protected]>
- Loading branch information
Showing
3 changed files
with
127 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
|
||
/ { | ||
testcase-data { | ||
interrupts { | ||
#address-cells = <0>; | ||
test_intc0: intc0 { | ||
interrupt-controller; | ||
#interrupt-cells = <1>; | ||
}; | ||
|
||
test_intc1: intc1 { | ||
interrupt-controller; | ||
#interrupt-cells = <3>; | ||
}; | ||
|
||
test_intc2: intc2 { | ||
interrupt-controller; | ||
#interrupt-cells = <2>; | ||
}; | ||
|
||
test_intmap0: intmap0 { | ||
#interrupt-cells = <1>; | ||
#address-cells = <0>; | ||
interrupt-map = <1 &test_intc0 9>, | ||
<2 &test_intc1 10 11 12>, | ||
<3 &test_intc2 13 14>, | ||
<4 &test_intc2 15 16>; | ||
}; | ||
|
||
interrupts0 { | ||
interrupt-parent = <&test_intc0>; | ||
interrupts = <1>, <2>, <3>, <4>; | ||
}; | ||
|
||
interrupts1 { | ||
interrupt-parent = <&test_intmap0>; | ||
interrupts = <1>, <2>, <3>, <4>; | ||
}; | ||
}; | ||
}; | ||
}; |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
/include/ "tests-phandle.dtsi" | ||
/include/ "tests-interrupts.dtsi" |
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