xref: /openbmc/linux/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml (revision bad70abdfac1e27d9aa7cc07b02caad5c06667ba)
19e4c3179SPeng Fan# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
29e4c3179SPeng Fan%YAML 1.2
39e4c3179SPeng Fan---
49e4c3179SPeng Fan$id: "http://devicetree.org/schemas/remoteproc/fsl,imx-rproc.yaml#"
59e4c3179SPeng Fan$schema: "http://devicetree.org/meta-schemas/core.yaml#"
69e4c3179SPeng Fan
7bc403b4dSPeng Fantitle: NXP i.MX Co-Processor Bindings
89e4c3179SPeng Fan
99e4c3179SPeng Fandescription:
109e4c3179SPeng Fan  This binding provides support for ARM Cortex M4 Co-processor found on some NXP iMX SoCs.
119e4c3179SPeng Fan
129e4c3179SPeng Fanmaintainers:
139e4c3179SPeng Fan  - Peng Fan <peng.fan@nxp.com>
149e4c3179SPeng Fan
159e4c3179SPeng Fanproperties:
169e4c3179SPeng Fan  compatible:
179e4c3179SPeng Fan    enum:
18bc403b4dSPeng Fan      - fsl,imx8mq-cm4
19bc403b4dSPeng Fan      - fsl,imx8mm-cm4
209e4c3179SPeng Fan      - fsl,imx7d-cm4
219e4c3179SPeng Fan      - fsl,imx6sx-cm4
229e4c3179SPeng Fan
239e4c3179SPeng Fan  clocks:
249e4c3179SPeng Fan    maxItems: 1
259e4c3179SPeng Fan
269e4c3179SPeng Fan  syscon:
279e4c3179SPeng Fan    $ref: /schemas/types.yaml#/definitions/phandle
289e4c3179SPeng Fan    description:
299e4c3179SPeng Fan      Phandle to syscon block which provide access to System Reset Controller
309e4c3179SPeng Fan
31bc403b4dSPeng Fan  mbox-names:
32bc403b4dSPeng Fan    items:
33bc403b4dSPeng Fan      - const: tx
34bc403b4dSPeng Fan      - const: rx
35bc403b4dSPeng Fan      - const: rxdb
36bc403b4dSPeng Fan
37bc403b4dSPeng Fan  mboxes:
38bc403b4dSPeng Fan    description:
39bc403b4dSPeng Fan      This property is required only if the rpmsg/virtio functionality is used.
40bc403b4dSPeng Fan      List of <&phandle type channel> - 1 channel for TX, 1 channel for RX, 1 channel for RXDB.
41bc403b4dSPeng Fan      (see mailbox/fsl,mu.yaml)
42bc403b4dSPeng Fan    minItems: 1
43bc403b4dSPeng Fan    maxItems: 3
44bc403b4dSPeng Fan
459e4c3179SPeng Fan  memory-region:
469e4c3179SPeng Fan    description:
479e4c3179SPeng Fan      If present, a phandle for a reserved memory area that used for vdev buffer,
489e4c3179SPeng Fan      resource table, vring region and others used by remote processor.
499e4c3179SPeng Fan    minItems: 1
509e4c3179SPeng Fan    maxItems: 32
519e4c3179SPeng Fan
52*bad70abdSPeng Fan  fsl,auto-boot:
53*bad70abdSPeng Fan    $ref: /schemas/types.yaml#/definitions/flag
54*bad70abdSPeng Fan    description:
55*bad70abdSPeng Fan      Indicate whether need to load the default firmware and start the remote
56*bad70abdSPeng Fan      processor automatically.
57*bad70abdSPeng Fan
589e4c3179SPeng Fanrequired:
599e4c3179SPeng Fan  - compatible
609e4c3179SPeng Fan  - clocks
619e4c3179SPeng Fan  - syscon
629e4c3179SPeng Fan
639e4c3179SPeng FanadditionalProperties: false
649e4c3179SPeng Fan
659e4c3179SPeng Fanexamples:
669e4c3179SPeng Fan  - |
679e4c3179SPeng Fan    #include <dt-bindings/clock/imx7d-clock.h>
689e4c3179SPeng Fan    m4_reserved_sysmem1: cm4@80000000 {
699e4c3179SPeng Fan      reg = <0x80000000 0x80000>;
709e4c3179SPeng Fan    };
719e4c3179SPeng Fan
729e4c3179SPeng Fan    m4_reserved_sysmem2: cm4@81000000 {
739e4c3179SPeng Fan      reg = <0x81000000 0x80000>;
749e4c3179SPeng Fan    };
759e4c3179SPeng Fan
769e4c3179SPeng Fan    imx7d-cm4 {
779e4c3179SPeng Fan      compatible	= "fsl,imx7d-cm4";
789e4c3179SPeng Fan      memory-region	= <&m4_reserved_sysmem1>, <&m4_reserved_sysmem2>;
799e4c3179SPeng Fan      syscon		= <&src>;
809e4c3179SPeng Fan      clocks		= <&clks IMX7D_ARM_M4_ROOT_CLK>;
819e4c3179SPeng Fan    };
829e4c3179SPeng Fan
83bc403b4dSPeng Fan  - |
84bc403b4dSPeng Fan    #include <dt-bindings/clock/imx8mm-clock.h>
85bc403b4dSPeng Fan
86bc403b4dSPeng Fan    imx8mm-cm4 {
87bc403b4dSPeng Fan      compatible = "fsl,imx8mm-cm4";
88bc403b4dSPeng Fan      clocks = <&clk IMX8MM_CLK_M4_DIV>;
89bc403b4dSPeng Fan      mbox-names = "tx", "rx", "rxdb";
90bc403b4dSPeng Fan      mboxes = <&mu 0 1
91bc403b4dSPeng Fan                &mu 1 1
92bc403b4dSPeng Fan                &mu 3 1>;
93bc403b4dSPeng Fan      memory-region = <&vdev0buffer>, <&vdev0vring0>, <&vdev0vring1>, <&rsc_table>;
94bc403b4dSPeng Fan      syscon = <&src>;
95bc403b4dSPeng Fan    };
969e4c3179SPeng Fan...
97