Debian Codegraph @

dtschema/schemas/reset/reset.yaml

raw
1 # SPDX-License-Identifier: BSD-2-Clause
2 # Copyright 2012 NVIDIA CORPORATION
3 # Copyright 2019 Linaro Ltd.
4 %YAML 1.2
5 ---
6 $id: http://devicetree.org/schemas/reset/reset.yaml#
7 $schema: http://devicetree.org/meta-schemas/base.yaml#
8
9 title: Reset Common Properties
10
11 description: >
12 This binding is intended to represent the hardware reset signals present
13 internally in most IC (SoC, FPGA, ...) designs. Reset signals for whole
14 standalone chips are most likely better represented as GPIOs, although there
15 are likely to be exceptions to this rule.
16
17 Hardware blocks typically receive a reset signal. This signal is generated by
18 a reset provider (e.g. power management or clock module) and received by a
19 reset consumer (the module being reset, or a module managing when a sub-
20 ordinate module is reset). This binding exists to represent the provider and
21 consumer, and provide a way to couple the two together.
22
23 A reset signal is represented by the phandle of the provider, plus a reset
24 specifier - a list of DT cells that represents the reset signal within the
25 provider. The length (number of cells) and semantics of the reset specifier
26 are dictated by the binding of the reset provider, although common schemes
27 are described below.
28
29 A word on where to place reset signal consumers in device tree: It is possible
30 in hardware for a reset signal to affect multiple logically separate HW blocks
31 at once. In this case, it would be unwise to represent this reset signal in
32 the DT node of each affected HW block, since if activated, an unrelated block
33 may be reset. Instead, reset signals should be represented in the DT node
34 where it makes most sense to control it; this may be a bus node if all
35 children of the bus are affected by the reset signal, or an individual HW
36 block node for dedicated reset signals. The intent of this binding is to give
37 appropriate software access to the reset signals in order to manage the HW,
38 rather than to slavishly enumerate the reset signal that affects each HW
39 block.
40
41 maintainers:
42 - Rob Herring <[email protected]>
43
44 # always select the core schema
45 select: true
46
47 properties:
48 '#reset-cells':
49 maximum: 2
50 description:
51 Number of cells in a reset specifier; Typically 0 for nodes with a single
52 reset output and 1 for nodes with multiple reset outputs.
53
54 resets:
55 $ref: /schemas/types.yaml#/definitions/phandle-array
56
57 reset-names:
58 $ref: /schemas/types.yaml#/definitions/string-array
59
60 dependencies:
61 reset-names: [ resets ]
62
63 additionalProperties: true