xref: /freebsd/sys/contrib/device-tree/Bindings/soc/fsl/fsl,qman-portal.yaml (revision 0e8011faf58b743cc652e3b2ad0f7671227610df)
1*0e8011faSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*0e8011faSEmmanuel Vadot%YAML 1.2
3*0e8011faSEmmanuel Vadot---
4*0e8011faSEmmanuel Vadot$id: http://devicetree.org/schemas/soc/fsl/fsl,qman-portal.yaml#
5*0e8011faSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*0e8011faSEmmanuel Vadot
7*0e8011faSEmmanuel Vadottitle: QorIQ DPAA Queue Manager Portals
8*0e8011faSEmmanuel Vadot
9*0e8011faSEmmanuel Vadotmaintainers:
10*0e8011faSEmmanuel Vadot  - Frank Li <Frank.Li@nxp.com>
11*0e8011faSEmmanuel Vadot
12*0e8011faSEmmanuel Vadotdescription:
13*0e8011faSEmmanuel Vadot  Portals are memory mapped interfaces to QMan that allow low-latency, lock-less
14*0e8011faSEmmanuel Vadot  interaction by software running on processor cores, accelerators and network
15*0e8011faSEmmanuel Vadot  interfaces with the QMan
16*0e8011faSEmmanuel Vadot
17*0e8011faSEmmanuel Vadotproperties:
18*0e8011faSEmmanuel Vadot  compatible:
19*0e8011faSEmmanuel Vadot    oneOf:
20*0e8011faSEmmanuel Vadot      - const: fsl,qman-portal
21*0e8011faSEmmanuel Vadot      - items:
22*0e8011faSEmmanuel Vadot          - enum:
23*0e8011faSEmmanuel Vadot              - fsl,ls1043-qman-portal
24*0e8011faSEmmanuel Vadot              - fsl,ls1046-qman-portal
25*0e8011faSEmmanuel Vadot              - fsl,qman-portal-1.2.0
26*0e8011faSEmmanuel Vadot          - const: fsl,qman-portal
27*0e8011faSEmmanuel Vadot
28*0e8011faSEmmanuel Vadot  reg:
29*0e8011faSEmmanuel Vadot    items:
30*0e8011faSEmmanuel Vadot      - description: the cache-enabled region of the portal
31*0e8011faSEmmanuel Vadot      - description: the cache-inhibited region of the portal
32*0e8011faSEmmanuel Vadot
33*0e8011faSEmmanuel Vadot  interrupts:
34*0e8011faSEmmanuel Vadot    maxItems: 1
35*0e8011faSEmmanuel Vadot
36*0e8011faSEmmanuel Vadot  fsl,liodn:
37*0e8011faSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32-array
38*0e8011faSEmmanuel Vadot    description: See pamu.txt. Two LIODN(s). DQRR LIODN (DLIODN) and Frame LIODN
39*0e8011faSEmmanuel Vadot      (FLIODN)
40*0e8011faSEmmanuel Vadot
41*0e8011faSEmmanuel Vadot  fsl,iommu-parent:
42*0e8011faSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/phandle
43*0e8011faSEmmanuel Vadot    description: See pamu.txt.
44*0e8011faSEmmanuel Vadot
45*0e8011faSEmmanuel Vadot  fsl,qman-channel-id:
46*0e8011faSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
47*0e8011faSEmmanuel Vadot    description: qman channel id.
48*0e8011faSEmmanuel Vadot
49*0e8011faSEmmanuel Vadot  cell-index:
50*0e8011faSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
51*0e8011faSEmmanuel Vadot    description:
52*0e8011faSEmmanuel Vadot      The hardware index of the channel. This can also be
53*0e8011faSEmmanuel Vadot      determined by dividing any of the channel's 8 work queue
54*0e8011faSEmmanuel Vadot      IDs by 8
55*0e8011faSEmmanuel Vadot
56*0e8011faSEmmanuel Vadot      In addition to these properties the qman-portals should have sub-nodes to
57*0e8011faSEmmanuel Vadot      represent the HW devices/portals that are connected to the software portal
58*0e8011faSEmmanuel Vadot      described here
59*0e8011faSEmmanuel Vadot
60*0e8011faSEmmanuel Vadotrequired:
61*0e8011faSEmmanuel Vadot  - compatible
62*0e8011faSEmmanuel Vadot  - reg
63*0e8011faSEmmanuel Vadot  - interrupts
64*0e8011faSEmmanuel Vadot
65*0e8011faSEmmanuel VadotadditionalProperties: false
66*0e8011faSEmmanuel Vadot
67*0e8011faSEmmanuel VadotpatternProperties:
68*0e8011faSEmmanuel Vadot  '^(fman0|fman1|pme|crypto)+$':
69*0e8011faSEmmanuel Vadot    type: object
70*0e8011faSEmmanuel Vadot    properties:
71*0e8011faSEmmanuel Vadot      fsl,liodn:
72*0e8011faSEmmanuel Vadot        description: See pamu.txt, PAMU property used for static LIODN assignment
73*0e8011faSEmmanuel Vadot
74*0e8011faSEmmanuel Vadot      fsl,iommu-parent:
75*0e8011faSEmmanuel Vadot        description: See pamu.txt, PAMU property used for dynamic LIODN assignment
76*0e8011faSEmmanuel Vadot
77*0e8011faSEmmanuel Vadot      dev-handle:
78*0e8011faSEmmanuel Vadot        $ref: /schemas/types.yaml#/definitions/phandle
79*0e8011faSEmmanuel Vadot        description:
80*0e8011faSEmmanuel Vadot          The phandle to the particular hardware device that this
81*0e8011faSEmmanuel Vadot          portal is connected to.
82*0e8011faSEmmanuel Vadot
83*0e8011faSEmmanuel Vadot    additionalProperties: false
84*0e8011faSEmmanuel Vadot
85*0e8011faSEmmanuel Vadotexamples:
86*0e8011faSEmmanuel Vadot  - |
87*0e8011faSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
88*0e8011faSEmmanuel Vadot
89*0e8011faSEmmanuel Vadot    qman-portal@0 {
90*0e8011faSEmmanuel Vadot        compatible = "fsl,qman-portal-1.2.0", "fsl,qman-portal";
91*0e8011faSEmmanuel Vadot        reg = <0 0x4000>, <0x100000 0x1000>;
92*0e8011faSEmmanuel Vadot        interrupts = <104 IRQ_TYPE_EDGE_FALLING 0 0>;
93*0e8011faSEmmanuel Vadot        fsl,liodn = <1 2>;
94*0e8011faSEmmanuel Vadot        fsl,qman-channel-id = <0>;
95*0e8011faSEmmanuel Vadot
96*0e8011faSEmmanuel Vadot        fman0 {
97*0e8011faSEmmanuel Vadot            fsl,liodn = <0x21>;
98*0e8011faSEmmanuel Vadot            dev-handle = <&fman0>;
99*0e8011faSEmmanuel Vadot        };
100*0e8011faSEmmanuel Vadot
101*0e8011faSEmmanuel Vadot        fman1 {
102*0e8011faSEmmanuel Vadot            fsl,liodn = <0xa1>;
103*0e8011faSEmmanuel Vadot            dev-handle = <&fman1>;
104*0e8011faSEmmanuel Vadot        };
105*0e8011faSEmmanuel Vadot
106*0e8011faSEmmanuel Vadot        crypto {
107*0e8011faSEmmanuel Vadot            fsl,liodn = <0x41 0x66>;
108*0e8011faSEmmanuel Vadot            dev-handle = <&crypto>;
109*0e8011faSEmmanuel Vadot        };
110*0e8011faSEmmanuel Vadot    };
111