xref: /freebsd/sys/contrib/device-tree/Bindings/bus/fsl,imx8mp-aipstz.yaml (revision 833e5d42ab135b0238e61c5b3c19b8619677cbfa)
1*833e5d42SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*833e5d42SEmmanuel Vadot%YAML 1.2
3*833e5d42SEmmanuel Vadot---
4*833e5d42SEmmanuel Vadot$id: http://devicetree.org/schemas/bus/fsl,imx8mp-aipstz.yaml#
5*833e5d42SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*833e5d42SEmmanuel Vadot
7*833e5d42SEmmanuel Vadottitle: Secure AHB to IP Slave bus (AIPSTZ) bridge
8*833e5d42SEmmanuel Vadot
9*833e5d42SEmmanuel Vadotdescription:
10*833e5d42SEmmanuel Vadot  The secure AIPS bridge (AIPSTZ) acts as a bridge for AHB masters issuing
11*833e5d42SEmmanuel Vadot  transactions to IP Slave peripherals. Additionally, this module offers access
12*833e5d42SEmmanuel Vadot  control configurations meant to restrict which peripherals a master can
13*833e5d42SEmmanuel Vadot  access.
14*833e5d42SEmmanuel Vadot
15*833e5d42SEmmanuel Vadotmaintainers:
16*833e5d42SEmmanuel Vadot  - Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
17*833e5d42SEmmanuel Vadot
18*833e5d42SEmmanuel Vadotproperties:
19*833e5d42SEmmanuel Vadot  compatible:
20*833e5d42SEmmanuel Vadot    const: fsl,imx8mp-aipstz
21*833e5d42SEmmanuel Vadot
22*833e5d42SEmmanuel Vadot  reg:
23*833e5d42SEmmanuel Vadot    maxItems: 1
24*833e5d42SEmmanuel Vadot
25*833e5d42SEmmanuel Vadot  power-domains:
26*833e5d42SEmmanuel Vadot    maxItems: 1
27*833e5d42SEmmanuel Vadot
28*833e5d42SEmmanuel Vadot  "#address-cells":
29*833e5d42SEmmanuel Vadot    const: 1
30*833e5d42SEmmanuel Vadot
31*833e5d42SEmmanuel Vadot  "#size-cells":
32*833e5d42SEmmanuel Vadot    const: 1
33*833e5d42SEmmanuel Vadot
34*833e5d42SEmmanuel Vadot  "#access-controller-cells":
35*833e5d42SEmmanuel Vadot    const: 3
36*833e5d42SEmmanuel Vadot    description:
37*833e5d42SEmmanuel Vadot      First cell - consumer ID
38*833e5d42SEmmanuel Vadot      Second cell - consumer type (master or peripheral)
39*833e5d42SEmmanuel Vadot      Third cell - configuration value
40*833e5d42SEmmanuel Vadot
41*833e5d42SEmmanuel Vadot  ranges: true
42*833e5d42SEmmanuel Vadot
43*833e5d42SEmmanuel Vadot# borrowed from simple-bus.yaml, no additional requirements for children
44*833e5d42SEmmanuel VadotpatternProperties:
45*833e5d42SEmmanuel Vadot  "@(0|[1-9a-f][0-9a-f]*)$":
46*833e5d42SEmmanuel Vadot    type: object
47*833e5d42SEmmanuel Vadot    additionalProperties: true
48*833e5d42SEmmanuel Vadot    properties:
49*833e5d42SEmmanuel Vadot      reg:
50*833e5d42SEmmanuel Vadot        items:
51*833e5d42SEmmanuel Vadot          minItems: 2
52*833e5d42SEmmanuel Vadot          maxItems: 4
53*833e5d42SEmmanuel Vadot        minItems: 1
54*833e5d42SEmmanuel Vadot        maxItems: 1024
55*833e5d42SEmmanuel Vadot      ranges:
56*833e5d42SEmmanuel Vadot        oneOf:
57*833e5d42SEmmanuel Vadot          - items:
58*833e5d42SEmmanuel Vadot              minItems: 3
59*833e5d42SEmmanuel Vadot              maxItems: 7
60*833e5d42SEmmanuel Vadot            minItems: 1
61*833e5d42SEmmanuel Vadot            maxItems: 1024
62*833e5d42SEmmanuel Vadot          - $ref: /schemas/types.yaml#/definitions/flag
63*833e5d42SEmmanuel Vadot    anyOf:
64*833e5d42SEmmanuel Vadot      - required:
65*833e5d42SEmmanuel Vadot          - reg
66*833e5d42SEmmanuel Vadot      - required:
67*833e5d42SEmmanuel Vadot          - ranges
68*833e5d42SEmmanuel Vadot
69*833e5d42SEmmanuel Vadotrequired:
70*833e5d42SEmmanuel Vadot  - compatible
71*833e5d42SEmmanuel Vadot  - reg
72*833e5d42SEmmanuel Vadot  - power-domains
73*833e5d42SEmmanuel Vadot  - "#address-cells"
74*833e5d42SEmmanuel Vadot  - "#size-cells"
75*833e5d42SEmmanuel Vadot  - "#access-controller-cells"
76*833e5d42SEmmanuel Vadot  - ranges
77*833e5d42SEmmanuel Vadot
78*833e5d42SEmmanuel VadotadditionalProperties: false
79*833e5d42SEmmanuel Vadot
80*833e5d42SEmmanuel Vadotexamples:
81*833e5d42SEmmanuel Vadot  - |
82*833e5d42SEmmanuel Vadot    #include <dt-bindings/clock/imx8mp-clock.h>
83*833e5d42SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
84*833e5d42SEmmanuel Vadot
85*833e5d42SEmmanuel Vadot    bus@30df0000 {
86*833e5d42SEmmanuel Vadot        compatible = "fsl,imx8mp-aipstz";
87*833e5d42SEmmanuel Vadot        reg = <0x30df0000 0x10000>;
88*833e5d42SEmmanuel Vadot        ranges = <0x30c00000 0x30c00000 0x400000>;
89*833e5d42SEmmanuel Vadot        power-domains = <&pgc_audio>;
90*833e5d42SEmmanuel Vadot        #address-cells = <1>;
91*833e5d42SEmmanuel Vadot        #size-cells = <1>;
92*833e5d42SEmmanuel Vadot        #access-controller-cells = <3>;
93*833e5d42SEmmanuel Vadot
94*833e5d42SEmmanuel Vadot        dma-controller@30e00000 {
95*833e5d42SEmmanuel Vadot            compatible = "fsl,imx8mp-sdma", "fsl,imx8mq-sdma";
96*833e5d42SEmmanuel Vadot            reg = <0x30e00000 0x10000>;
97*833e5d42SEmmanuel Vadot            #dma-cells = <3>;
98*833e5d42SEmmanuel Vadot            clocks = <&audio_blk_ctrl IMX8MP_CLK_AUDIOMIX_SDMA3_ROOT>,
99*833e5d42SEmmanuel Vadot                     <&clk IMX8MP_CLK_AUDIO_ROOT>;
100*833e5d42SEmmanuel Vadot            clock-names = "ipg", "ahb";
101*833e5d42SEmmanuel Vadot            interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
102*833e5d42SEmmanuel Vadot            fsl,sdma-ram-script-name = "imx/sdma/sdma-imx7d.bin";
103*833e5d42SEmmanuel Vadot        };
104*833e5d42SEmmanuel Vadot    };
105