summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/mfd/ti,keystone-devctrl.yaml
blob: 564dfc8a731f2708639afa947c9faddbca9e60c2 (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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/mfd/ti,keystone-devctrl.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Texas Instruments Keystone Device State Control

maintainers:
  - Ivan Khoronzhuk <ivan.khoronzhuk@ti.com>

description:
  The Keystone II devices have a set of registers that are used to control the
  status of its peripherals. This node is intended to allow access to this
  functionality.

properties:
  compatible:
    items:
      - const: ti,keystone-devctrl
      - const: syscon
      - const: simple-mfd

  reg:
    maxItems: 1

  "#address-cells":
    const: 1

  "#size-cells":
    const: 1

  ranges: true

patternProperties:
  "^gpio@[0-9a-f]+$":
    type: object
    description: Keystone DSP GPIO controller
    required:
      - compatible

  "^interrupt-controller@[0-9a-f]+$":
    type: object
    description: Keystone DSP to ARM interrupt controller
    required:
      - compatible

  "^reset-controller@[0-9a-f]+$":
    type: object
    description: Keystone reset controller
    required:
      - compatible

required:
  - compatible
  - reg
  - "#address-cells"
  - "#size-cells"
  - ranges

additionalProperties: false

examples:
  - |
    #include <dt-bindings/interrupt-controller/arm-gic.h>

    device-state-control@2620000 {
        compatible = "ti,keystone-devctrl", "syscon", "simple-mfd";
        reg = <0x02620000 0x1000>;
        #address-cells = <1>;
        #size-cells = <1>;
        ranges = <0x0 0x02620000 0x1000>;

        interrupt-controller@2a0 {
            compatible = "ti,keystone-irq";
            reg = <0x2a0 0x4>;
            interrupts = <GIC_SPI 4 IRQ_TYPE_EDGE_RISING>;
            interrupt-controller;
            #interrupt-cells = <1>;
            ti,syscon-dev = <&devctrl 0x2a0>;
        };

        reset-controller@328 {
            compatible = "ti,keystone-reset";
            reg = <0x328 0x10>;
            ti,syscon-pll = <&pllctrl 0xe4>;
            ti,syscon-dev = <&devctrl 0x328>;
            ti,wdt-list = <0>;
        };
    };