Skip to content

Commit ae3385f

Browse files
committed
Reformat interrupt tree diagram to be clearer
Refactor the interrupt tree example diagram so that the natural tree appears above the interrupt tree. The diagram is clearer that way. Also change the colours and line styles to be clearer. Signed-off-by: Grant Likely <[email protected]>
1 parent 5f4df1e commit ae3385f

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

source/devicetree-basics.rst

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -836,6 +836,7 @@ sits in the logical interrupt tree.
836836
subgraph cluster_devices {
837837
label = "Devicetree"
838838
graph [ style = dotted ]
839+
"soc" [ ]
839840
"device1" [ label = "device1 | interrupt-parent=\<&open-pic\>" ]
840841
"device2" [ label = "device2 | interrupt-parent=\<&gpioctrl\>" ]
841842
"pci-host" [ label = "pci-host | interrupt-parent=\<&open-pic\>" ]
@@ -845,6 +846,7 @@ sits in the logical interrupt tree.
845846
"gpioctrl" [ label = "gpioctrl | interrupt-parent=\<&open-pic\>" ]
846847
"device3" [ label = "device3 | interrupt-parent=\<&gpioctrl\>" ]
847848

849+
edge [dir=back color=blue]
848850
"soc":e -> "device1":w
849851
"soc":e -> "device2":w
850852
"soc":e -> "open-pic":w
@@ -869,18 +871,18 @@ sits in the logical interrupt tree.
869871
"i-slot0" [ label = "slot0" ]
870872
"i-slot1" [ label = "slot1" ]
871873

872-
edge [dir=back color=blue]
873-
"i-open-pic" -> "i-device1"
874-
"i-open-pic" -> "i-pci-host"
875-
"i-open-pic" -> "i-gpioctrl"
876-
"i-pci-host" -> "i-slot0"
877-
"i-pci-host" -> "i-slot1"
878-
"i-gpioctrl" -> "i-device2"
879-
"i-gpioctrl" -> "i-device3"
874+
edge [dir=back color=green]
875+
"i-open-pic":e -> "i-device1":w
876+
"i-open-pic":e -> "i-pci-host":w
877+
"i-open-pic":e -> "i-gpioctrl":w
878+
"i-pci-host":e -> "i-slot0":w
879+
"i-pci-host":e -> "i-slot1":w
880+
"i-gpioctrl":e -> "i-device2":w
881+
"i-gpioctrl":e -> "i-device3":w
880882
}
881883

882884
subgraph {
883-
edge [color="red", constraint=false, dir=forward]
885+
edge [color=red, style=dotted, constraint=false]
884886
"open-pic" -> "i-open-pic"
885887
"gpioctrl":w -> "i-gpioctrl"
886888
"pci-host" -> "i-pci-host"

0 commit comments

Comments
 (0)