summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/arm/freescale/fsl,seco_mu.yaml
blob: 64e11933e9dceccda2ed65a76ac5c1ac586059f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/arm/freescale/fsl,seco_mu.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: NXP i.MX8 SECO MU driver

maintainers:
  - Aisheng Dong <aisheng.dong@nxp.com>

description: |
  Create char devices in /dev as channels of the form /dev/seco_muXchY with X
  the id of the driver and Y for each users. It allows to send and receive
  messages to the SECO.

properties:
  compatible:
    enum:
      - fsl,imx-seco-mu

  mboxes:
    description:
      List of <&phandle type channel> - 4 channels for TX, 4 channels for RX,
      1 channel for TXDB (see mailbox/fsl,mu.txt)
    maxItems: 9

  mbox-names:
    items:
      - const: txdb
      - const: rxdb

  fsl,seco_mu_id:
    description:
      Identify the driver instance, used to create the channels, default to 1
    allOf:
      - $ref: /schemas/types.yaml#/definitions/uint32
      - enum: [0,1,2,3]

  fsl,seco_max_users:
    description:
      Number of channels to create, default to 4
    allOf:
      - $ref: /schemas/types.yaml#/definitions/uint32
      - enum: [0,1,2,3,4,5,6,7,8,9]

required:
  - compatible
  - mboxes
  - mbox-names

examples:
  - |
    seco_mu: seco_mu {
      compatible = "fsl,imx-seco-mu";
      mbox-names = "txdb", "rxdb";
      mboxes = <&mu 2 0
          &mu 3 0>;

      fsl,seco_mu_id = <1>;
      fsl,seco_max_users = <4>;
    };