X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/35a7d633d3f16c1e0539af6ca5d8e7482926cd93..9daf4fcdae88f72af60aeb0c7722841af02233d4:/lunaix-os/tests/units/device-tree/samples/interrupts.dts diff --git a/lunaix-os/tests/units/device-tree/samples/interrupts.dts b/lunaix-os/tests/units/device-tree/samples/interrupts.dts new file mode 100644 index 0000000..7be57b5 --- /dev/null +++ b/lunaix-os/tests/units/device-tree/samples/interrupts.dts @@ -0,0 +1,39 @@ +/dts-v1/; + +/ { + #address-cells = <0>; + #size-cells = <0>; + + pic: pic@11 { + interrupt-controller; + + #interrupt-cells = <2>; + }; + + pic2: pic@22 { + interrupt-controller; + + #interrupt-cells = <1>; + }; + + pic3: pic@33 { + interrupt-controller; + + #interrupt-cells = <4>; + }; + + dev@1 { + interrupt-parent = <&pic>; + interrupts = <1 2>; + }; + + dev@2 { + interrupt-parent = <&pic>; + interrupts = <1 1>, <1 2>, <2 2>; + }; + + dev@3 { + interrupt-parent = <&pic>; + interrupts-extended = <&pic 3 3>, <&pic2 1>, <&pic3 1 2 3 4>; + }; +}; \ No newline at end of file