xref: /freebsd/sys/contrib/device-tree/Bindings/bus/fsl,spba-bus.yaml (revision e67e85659c0de33e617e5fbf1028c6e8b49eee53)
1*e67e8565SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*e67e8565SEmmanuel Vadot%YAML 1.2
3*e67e8565SEmmanuel Vadot---
4*e67e8565SEmmanuel Vadot$id: http://devicetree.org/schemas/bus/fsl,spba-bus.yaml#
5*e67e8565SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*e67e8565SEmmanuel Vadot
7*e67e8565SEmmanuel Vadottitle: Shared Peripherals Bus Interface
8*e67e8565SEmmanuel Vadot
9*e67e8565SEmmanuel Vadotmaintainers:
10*e67e8565SEmmanuel Vadot  - Shawn Guo <shawnguo@kernel.org>
11*e67e8565SEmmanuel Vadot
12*e67e8565SEmmanuel Vadotdescription: |
13*e67e8565SEmmanuel Vadot  A simple bus enabling access to shared peripherals.
14*e67e8565SEmmanuel Vadot
15*e67e8565SEmmanuel Vadot  The "spba-bus" follows the "simple-bus" set of properties, as
16*e67e8565SEmmanuel Vadot  specified in the Devicetree Specification.  It is an extension of
17*e67e8565SEmmanuel Vadot  "simple-bus" because the SDMA controller uses this compatible flag to
18*e67e8565SEmmanuel Vadot  determine which peripherals are available to it and the range over which
19*e67e8565SEmmanuel Vadot  the SDMA can access.  There are no special clocks for the bus, because
20*e67e8565SEmmanuel Vadot  the SDMA controller itself has its interrupt and clock assignments.
21*e67e8565SEmmanuel Vadot
22*e67e8565SEmmanuel Vadotselect:
23*e67e8565SEmmanuel Vadot  properties:
24*e67e8565SEmmanuel Vadot    compatible:
25*e67e8565SEmmanuel Vadot      contains:
26*e67e8565SEmmanuel Vadot        const: fsl,spba-bus
27*e67e8565SEmmanuel Vadot  required:
28*e67e8565SEmmanuel Vadot    - compatible
29*e67e8565SEmmanuel Vadot
30*e67e8565SEmmanuel Vadotproperties:
31*e67e8565SEmmanuel Vadot  $nodename:
32*e67e8565SEmmanuel Vadot    pattern: "^spba-bus(@[0-9a-f]+)?$"
33*e67e8565SEmmanuel Vadot
34*e67e8565SEmmanuel Vadot  compatible:
35*e67e8565SEmmanuel Vadot    items:
36*e67e8565SEmmanuel Vadot      - const: fsl,spba-bus
37*e67e8565SEmmanuel Vadot      - const: simple-bus
38*e67e8565SEmmanuel Vadot
39*e67e8565SEmmanuel Vadot  '#address-cells':
40*e67e8565SEmmanuel Vadot    enum: [ 1, 2 ]
41*e67e8565SEmmanuel Vadot
42*e67e8565SEmmanuel Vadot  '#size-cells':
43*e67e8565SEmmanuel Vadot    enum: [ 1, 2 ]
44*e67e8565SEmmanuel Vadot
45*e67e8565SEmmanuel Vadot  reg:
46*e67e8565SEmmanuel Vadot    maxItems: 1
47*e67e8565SEmmanuel Vadot
48*e67e8565SEmmanuel Vadot  ranges: true
49*e67e8565SEmmanuel Vadot
50*e67e8565SEmmanuel Vadotrequired:
51*e67e8565SEmmanuel Vadot  - compatible
52*e67e8565SEmmanuel Vadot  - '#address-cells'
53*e67e8565SEmmanuel Vadot  - '#size-cells'
54*e67e8565SEmmanuel Vadot  - reg
55*e67e8565SEmmanuel Vadot  - ranges
56*e67e8565SEmmanuel Vadot
57*e67e8565SEmmanuel VadotadditionalProperties:
58*e67e8565SEmmanuel Vadot  type: object
59*e67e8565SEmmanuel Vadot
60*e67e8565SEmmanuel Vadotexamples:
61*e67e8565SEmmanuel Vadot  - |
62*e67e8565SEmmanuel Vadot    spba-bus@30000000 {
63*e67e8565SEmmanuel Vadot        compatible = "fsl,spba-bus", "simple-bus";
64*e67e8565SEmmanuel Vadot        #address-cells = <1>;
65*e67e8565SEmmanuel Vadot        #size-cells = <1>;
66*e67e8565SEmmanuel Vadot        reg = <0x30000000 0x100000>;
67*e67e8565SEmmanuel Vadot        ranges;
68*e67e8565SEmmanuel Vadot    };
69