Skip to content

Commit a117daa

Browse files
rajanv-xilinxMichal Simek
authored andcommitted
dt-bindings: power: reset: xilinx: Add bindings for ipi mailbox
Add IPI mailbox property and its example in xilinx zynqmp-power documentation. Signed-off-by: Rajan Vaja <[email protected]> Reviewed-by: Rob Herring <[email protected]> Signed-off-by: Michal Simek <[email protected]>
1 parent 461011b commit a117daa

File tree

1 file changed

+39
-3
lines changed

1 file changed

+39
-3
lines changed

Documentation/devicetree/bindings/power/reset/xlnx,zynqmp-power.txt

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,41 @@ Required properties:
88
- compatible: Must contain: "xlnx,zynqmp-power"
99
- interrupts: Interrupt specifier
1010

11-
-------
12-
Example
13-
-------
11+
Optional properties:
12+
- mbox-names : Name given to channels seen in the 'mboxes' property.
13+
"tx" - Mailbox corresponding to transmit path
14+
"rx" - Mailbox corresponding to receive path
15+
- mboxes : Standard property to specify a Mailbox. Each value of
16+
the mboxes property should contain a phandle to the
17+
mailbox controller device node and an args specifier
18+
that will be the phandle to the intended sub-mailbox
19+
child node to be used for communication. See
20+
Documentation/devicetree/bindings/mailbox/mailbox.txt
21+
for more details about the generic mailbox controller
22+
and client driver bindings. Also see
23+
Documentation/devicetree/bindings/mailbox/ \
24+
xlnx,zynqmp-ipi-mailbox.txt for typical controller that
25+
is used to communicate with this System controllers.
26+
27+
--------
28+
Examples
29+
--------
30+
31+
Example with interrupt method:
32+
33+
firmware {
34+
zynqmp_firmware: zynqmp-firmware {
35+
compatible = "xlnx,zynqmp-firmware";
36+
method = "smc";
37+
38+
zynqmp_power: zynqmp-power {
39+
compatible = "xlnx,zynqmp-power";
40+
interrupts = <0 35 4>;
41+
};
42+
};
43+
};
44+
45+
Example with IPI mailbox method:
1446

1547
firmware {
1648
zynqmp_firmware: zynqmp-firmware {
@@ -19,7 +51,11 @@ firmware {
1951

2052
zynqmp_power: zynqmp-power {
2153
compatible = "xlnx,zynqmp-power";
54+
interrupt-parent = <&gic>;
2255
interrupts = <0 35 4>;
56+
mboxes = <&ipi_mailbox_pmu0 0>,
57+
<&ipi_mailbox_pmu0 1>;
58+
mbox-names = "tx", "rx";
2359
};
2460
};
2561
};

0 commit comments

Comments
 (0)