Skip to content

Commit 44809f6

Browse files
m0veaxorangecms
authored andcommitted
chapter2: fix example for open_pic
- rename open-pic to open_pic to be syntactically valid - add name@addr to nodes - add reg properties Co-authored-by: Daniel Maslowski <info@orangecms.org> Signed-off-by: m0veax <patrick.kilter@gmail.com> Signed-off-by: Daniel Maslowski <info@orangecms.org>
1 parent 2697c66 commit 44809f6

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

source/chapter2-devicetree-basics.rst

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1251,29 +1251,31 @@ interrupt controller.
12511251
#address-cells = <1>;
12521252
#size-cells = <1>;
12531253

1254-
open-pic {
1254+
open_pic: interrupt-controller@13370000 {
1255+
reg = <0x13370000 0x100>;
12551256
clock-frequency = <0>;
12561257
interrupt-controller;
12571258
#address-cells = <0>;
12581259
#interrupt-cells = <2>;
12591260
};
12601261

1261-
pci {
1262+
pci: pci@47110000 {
1263+
reg = <0x47110000 0x100>;
12621264
#interrupt-cells = <1>;
12631265
#size-cells = <2>;
12641266
#address-cells = <3>;
12651267
interrupt-map-mask = <0xf800 0 0 7>;
12661268
interrupt-map = <
12671269
/* IDSEL 0x11 - PCI slot 1 */
1268-
0x8800 0 0 1 &open-pic 2 1 /* INTA */
1269-
0x8800 0 0 2 &open-pic 3 1 /* INTB */
1270-
0x8800 0 0 3 &open-pic 4 1 /* INTC */
1271-
0x8800 0 0 4 &open-pic 1 1 /* INTD */
1270+
0x8800 0 0 1 &open_pic 2 1 /* INTA */
1271+
0x8800 0 0 2 &open_pic 3 1 /* INTB */
1272+
0x8800 0 0 3 &open_pic 4 1 /* INTC */
1273+
0x8800 0 0 4 &open_pic 1 1 /* INTD */
12721274
/* IDSEL 0x12 - PCI slot 2 */
1273-
0x9000 0 0 1 &open-pic 3 1 /* INTA */
1274-
0x9000 0 0 2 &open-pic 4 1 /* INTB */
1275-
0x9000 0 0 3 &open-pic 1 1 /* INTC */
1276-
0x9000 0 0 4 &open-pic 2 1 /* INTD */
1275+
0x9000 0 0 1 &open_pic 3 1 /* INTA */
1276+
0x9000 0 0 2 &open_pic 4 1 /* INTB */
1277+
0x9000 0 0 3 &open_pic 1 1 /* INTC */
1278+
0x9000 0 0 4 &open_pic 2 1 /* INTD */
12771279
>;
12781280
};
12791281
};

0 commit comments

Comments
 (0)