xref: /freebsd/sys/contrib/device-tree/Bindings/reset/allwinner,sun6i-a31-clock-reset.yaml (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0
2*c66ec88fSEmmanuel Vadot%YAML 1.2
3*c66ec88fSEmmanuel Vadot---
4*c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/reset/allwinner,sun6i-a31-clock-reset.yaml#
5*c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*c66ec88fSEmmanuel Vadot
7*c66ec88fSEmmanuel Vadottitle: Allwinner A31 Peripheral Reset Controller Device Tree Bindings
8*c66ec88fSEmmanuel Vadot
9*c66ec88fSEmmanuel Vadotmaintainers:
10*c66ec88fSEmmanuel Vadot  - Chen-Yu Tsai <wens@csie.org>
11*c66ec88fSEmmanuel Vadot  - Maxime Ripard <mripard@kernel.org>
12*c66ec88fSEmmanuel Vadot
13*c66ec88fSEmmanuel Vadotdeprecated: true
14*c66ec88fSEmmanuel Vadot
15*c66ec88fSEmmanuel Vadotselect:
16*c66ec88fSEmmanuel Vadot  properties:
17*c66ec88fSEmmanuel Vadot    compatible:
18*c66ec88fSEmmanuel Vadot      contains:
19*c66ec88fSEmmanuel Vadot        enum:
20*c66ec88fSEmmanuel Vadot          - allwinner,sun6i-a31-ahb1-reset
21*c66ec88fSEmmanuel Vadot          - allwinner,sun6i-a31-clock-reset
22*c66ec88fSEmmanuel Vadot
23*c66ec88fSEmmanuel Vadot  # The PRCM on the A31 and A23 will have the reg property missing,
24*c66ec88fSEmmanuel Vadot  # since it's set at the upper level node, and will be validated by
25*c66ec88fSEmmanuel Vadot  # PRCM's schema. Make sure we only validate standalone nodes.
26*c66ec88fSEmmanuel Vadot  required:
27*c66ec88fSEmmanuel Vadot    - compatible
28*c66ec88fSEmmanuel Vadot    - reg
29*c66ec88fSEmmanuel Vadot
30*c66ec88fSEmmanuel Vadotproperties:
31*c66ec88fSEmmanuel Vadot  "#reset-cells":
32*c66ec88fSEmmanuel Vadot    const: 1
33*c66ec88fSEmmanuel Vadot    description: >
34*c66ec88fSEmmanuel Vadot      This additional argument passed to that reset controller is the
35*c66ec88fSEmmanuel Vadot      offset of the bit controlling this particular reset line in the
36*c66ec88fSEmmanuel Vadot      register.
37*c66ec88fSEmmanuel Vadot
38*c66ec88fSEmmanuel Vadot  compatible:
39*c66ec88fSEmmanuel Vadot    enum:
40*c66ec88fSEmmanuel Vadot      - allwinner,sun6i-a31-ahb1-reset
41*c66ec88fSEmmanuel Vadot      - allwinner,sun6i-a31-clock-reset
42*c66ec88fSEmmanuel Vadot
43*c66ec88fSEmmanuel Vadot  reg:
44*c66ec88fSEmmanuel Vadot    maxItems: 1
45*c66ec88fSEmmanuel Vadot
46*c66ec88fSEmmanuel Vadotrequired:
47*c66ec88fSEmmanuel Vadot  - "#reset-cells"
48*c66ec88fSEmmanuel Vadot  - compatible
49*c66ec88fSEmmanuel Vadot  - reg
50*c66ec88fSEmmanuel Vadot
51*c66ec88fSEmmanuel VadotadditionalProperties: false
52*c66ec88fSEmmanuel Vadot
53*c66ec88fSEmmanuel Vadotexamples:
54*c66ec88fSEmmanuel Vadot  - |
55*c66ec88fSEmmanuel Vadot    ahb1_rst: reset@1c202c0 {
56*c66ec88fSEmmanuel Vadot        #reset-cells = <1>;
57*c66ec88fSEmmanuel Vadot        compatible = "allwinner,sun6i-a31-ahb1-reset";
58*c66ec88fSEmmanuel Vadot        reg = <0x01c202c0 0xc>;
59*c66ec88fSEmmanuel Vadot    };
60*c66ec88fSEmmanuel Vadot
61*c66ec88fSEmmanuel Vadot  - |
62*c66ec88fSEmmanuel Vadot    apbs_rst: reset@80014b0 {
63*c66ec88fSEmmanuel Vadot        #reset-cells = <1>;
64*c66ec88fSEmmanuel Vadot        compatible = "allwinner,sun6i-a31-clock-reset";
65*c66ec88fSEmmanuel Vadot        reg = <0x080014b0 0x4>;
66*c66ec88fSEmmanuel Vadot    };
67*c66ec88fSEmmanuel Vadot
68*c66ec88fSEmmanuel Vadot...
69