Skip to content

Commit

Permalink
chapter2: fix example for open_pic
Browse files Browse the repository at this point in the history
- rename open-pic to open_pic to be syntactically valid
- add name@addr to nodes
- add reg properties

Co-authored-by: Daniel Maslowski <[email protected]>
Signed-off-by: m0veax <[email protected]>
Signed-off-by: Daniel Maslowski <[email protected]>
  • Loading branch information
2 people authored and robherring committed Sep 9, 2024
1 parent 2697c66 commit 44809f6
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions source/chapter2-devicetree-basics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1251,29 +1251,31 @@ interrupt controller.
#address-cells = <1>;
#size-cells = <1>;

open-pic {
open_pic: interrupt-controller@13370000 {
reg = <0x13370000 0x100>;
clock-frequency = <0>;
interrupt-controller;
#address-cells = <0>;
#interrupt-cells = <2>;
};

pci {
pci: pci@47110000 {
reg = <0x47110000 0x100>;
#interrupt-cells = <1>;
#size-cells = <2>;
#address-cells = <3>;
interrupt-map-mask = <0xf800 0 0 7>;
interrupt-map = <
/* IDSEL 0x11 - PCI slot 1 */
0x8800 0 0 1 &open-pic 2 1 /* INTA */
0x8800 0 0 2 &open-pic 3 1 /* INTB */
0x8800 0 0 3 &open-pic 4 1 /* INTC */
0x8800 0 0 4 &open-pic 1 1 /* INTD */
0x8800 0 0 1 &open_pic 2 1 /* INTA */
0x8800 0 0 2 &open_pic 3 1 /* INTB */
0x8800 0 0 3 &open_pic 4 1 /* INTC */
0x8800 0 0 4 &open_pic 1 1 /* INTD */
/* IDSEL 0x12 - PCI slot 2 */
0x9000 0 0 1 &open-pic 3 1 /* INTA */
0x9000 0 0 2 &open-pic 4 1 /* INTB */
0x9000 0 0 3 &open-pic 1 1 /* INTC */
0x9000 0 0 4 &open-pic 2 1 /* INTD */
0x9000 0 0 1 &open_pic 3 1 /* INTA */
0x9000 0 0 2 &open_pic 4 1 /* INTB */
0x9000 0 0 3 &open_pic 1 1 /* INTC */
0x9000 0 0 4 &open_pic 2 1 /* INTD */
>;
};
};
Expand Down

0 comments on commit 44809f6

Please sign in to comment.