xref: /linux/Documentation/devicetree/bindings/power/reset/ti,keystone-reset.yaml (revision c6cf4441a3a05bb7273ed022f3e56c4fc591da08)
1*87aec8a1SBhargav Joshi# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*87aec8a1SBhargav Joshi%YAML 1.2
3*87aec8a1SBhargav Joshi---
4*87aec8a1SBhargav Joshi$id: http://devicetree.org/schemas/power/reset/ti,keystone-reset.yaml#
5*87aec8a1SBhargav Joshi$schema: http://devicetree.org/meta-schemas/core.yaml#
6*87aec8a1SBhargav Joshi
7*87aec8a1SBhargav Joshititle: TI Keystone SoC Reset Controller
8*87aec8a1SBhargav Joshi
9*87aec8a1SBhargav Joshimaintainers:
10*87aec8a1SBhargav Joshi  - Andrew Davis <afd@ti.com>
11*87aec8a1SBhargav Joshi
12*87aec8a1SBhargav Joshidescription:
13*87aec8a1SBhargav Joshi  This is intended to allow SoC reset in case of software reset of selected
14*87aec8a1SBhargav Joshi  watchdogs. The Keystone SoCs can contain up to 4 watchdog timers to reset
15*87aec8a1SBhargav Joshi  SoC. Each watchdog timer event input is connected to the Reset Mux block. The
16*87aec8a1SBhargav Joshi  Reset Mux block can be configured to cause reset or not. Additionally soft or
17*87aec8a1SBhargav Joshi  hard reset can be configured.
18*87aec8a1SBhargav Joshi
19*87aec8a1SBhargav Joshiproperties:
20*87aec8a1SBhargav Joshi  compatible:
21*87aec8a1SBhargav Joshi    const: ti,keystone-reset
22*87aec8a1SBhargav Joshi
23*87aec8a1SBhargav Joshi  reg:
24*87aec8a1SBhargav Joshi    maxItems: 1
25*87aec8a1SBhargav Joshi
26*87aec8a1SBhargav Joshi  ti,syscon-pll:
27*87aec8a1SBhargav Joshi    $ref: /schemas/types.yaml#/definitions/phandle-array
28*87aec8a1SBhargav Joshi    description:
29*87aec8a1SBhargav Joshi      The phandle to syscon used to access pll controller registers and the
30*87aec8a1SBhargav Joshi      offset to use reset control registers.
31*87aec8a1SBhargav Joshi    items:
32*87aec8a1SBhargav Joshi      - items:
33*87aec8a1SBhargav Joshi          - description: phandle to pll controller syscon
34*87aec8a1SBhargav Joshi          - description: offset within pll controller register space
35*87aec8a1SBhargav Joshi
36*87aec8a1SBhargav Joshi  ti,syscon-dev:
37*87aec8a1SBhargav Joshi    $ref: /schemas/types.yaml#/definitions/phandle-array
38*87aec8a1SBhargav Joshi    description:
39*87aec8a1SBhargav Joshi      The phandle to syscon used to access device state control registers and
40*87aec8a1SBhargav Joshi      the offset in order to use mux block registers for all watchdogs.
41*87aec8a1SBhargav Joshi    items:
42*87aec8a1SBhargav Joshi      - items:
43*87aec8a1SBhargav Joshi          - description: phandle to device state control syscon
44*87aec8a1SBhargav Joshi          - description: offset within device state control register
45*87aec8a1SBhargav Joshi
46*87aec8a1SBhargav Joshi  ti,soft-reset:
47*87aec8a1SBhargav Joshi    type: boolean
48*87aec8a1SBhargav Joshi    description:
49*87aec8a1SBhargav Joshi      Boolean option indicating soft reset. By default hard reset is used.
50*87aec8a1SBhargav Joshi
51*87aec8a1SBhargav Joshi  ti,wdt-list:
52*87aec8a1SBhargav Joshi    $ref: /schemas/types.yaml#/definitions/uint32-array
53*87aec8a1SBhargav Joshi    description:
54*87aec8a1SBhargav Joshi      WDT list that can cause SoC reset. It's not related to WDT driver, it's
55*87aec8a1SBhargav Joshi      just needed to enable a SoC related reset that's triggered by one of
56*87aec8a1SBhargav Joshi      WDTs. The list is in format- <0>, <2>; It can be in random order and
57*87aec8a1SBhargav Joshi      begins from 0 to 3, as keystone can contain up to 4 SoC reset watchdogs
58*87aec8a1SBhargav Joshi      and can be in random order.
59*87aec8a1SBhargav Joshi    minItems: 1
60*87aec8a1SBhargav Joshi    maxItems: 4
61*87aec8a1SBhargav Joshi    items:
62*87aec8a1SBhargav Joshi      minimum: 0
63*87aec8a1SBhargav Joshi      maximum: 3
64*87aec8a1SBhargav Joshi
65*87aec8a1SBhargav Joshirequired:
66*87aec8a1SBhargav Joshi  - compatible
67*87aec8a1SBhargav Joshi  - reg
68*87aec8a1SBhargav Joshi  - ti,syscon-pll
69*87aec8a1SBhargav Joshi  - ti,syscon-dev
70*87aec8a1SBhargav Joshi
71*87aec8a1SBhargav JoshiadditionalProperties: false
72*87aec8a1SBhargav Joshi
73*87aec8a1SBhargav Joshiexamples:
74*87aec8a1SBhargav Joshi  - |
75*87aec8a1SBhargav Joshi    reset-controller@328 {
76*87aec8a1SBhargav Joshi        compatible = "ti,keystone-reset";
77*87aec8a1SBhargav Joshi        reg = <0x328 0x10>;
78*87aec8a1SBhargav Joshi        ti,syscon-pll = <&pllctrl 0xe4>;
79*87aec8a1SBhargav Joshi        ti,syscon-dev = <&devctrl 0x328>;
80*87aec8a1SBhargav Joshi        ti,wdt-list = <0>;
81*87aec8a1SBhargav Joshi    };
82