xref: /linux/Documentation/devicetree/bindings/reset/allwinner,sun6i-a31-clock-reset.yaml (revision dd3cb467ebb5659d6552999d6f16a616653f9933)
193adc6aeSMaxime Ripard# SPDX-License-Identifier: GPL-2.0
293adc6aeSMaxime Ripard%YAML 1.2
393adc6aeSMaxime Ripard---
493adc6aeSMaxime Ripard$id: http://devicetree.org/schemas/reset/allwinner,sun6i-a31-clock-reset.yaml#
593adc6aeSMaxime Ripard$schema: http://devicetree.org/meta-schemas/core.yaml#
693adc6aeSMaxime Ripard
7*dd3cb467SAndrew Lunntitle: Allwinner A31 Peripheral Reset Controller
893adc6aeSMaxime Ripard
993adc6aeSMaxime Ripardmaintainers:
1093adc6aeSMaxime Ripard  - Chen-Yu Tsai <wens@csie.org>
1193adc6aeSMaxime Ripard  - Maxime Ripard <mripard@kernel.org>
1293adc6aeSMaxime Ripard
1393adc6aeSMaxime Riparddeprecated: true
1493adc6aeSMaxime Ripard
1593adc6aeSMaxime Ripardselect:
1693adc6aeSMaxime Ripard  properties:
1793adc6aeSMaxime Ripard    compatible:
1893adc6aeSMaxime Ripard      contains:
1993adc6aeSMaxime Ripard        enum:
2093adc6aeSMaxime Ripard          - allwinner,sun6i-a31-ahb1-reset
2193adc6aeSMaxime Ripard          - allwinner,sun6i-a31-clock-reset
2293adc6aeSMaxime Ripard
2393adc6aeSMaxime Ripard  # The PRCM on the A31 and A23 will have the reg property missing,
2493adc6aeSMaxime Ripard  # since it's set at the upper level node, and will be validated by
2593adc6aeSMaxime Ripard  # PRCM's schema. Make sure we only validate standalone nodes.
2693adc6aeSMaxime Ripard  required:
2793adc6aeSMaxime Ripard    - compatible
2893adc6aeSMaxime Ripard    - reg
2993adc6aeSMaxime Ripard
3093adc6aeSMaxime Ripardproperties:
3193adc6aeSMaxime Ripard  "#reset-cells":
3293adc6aeSMaxime Ripard    const: 1
3393adc6aeSMaxime Ripard    description: >
3493adc6aeSMaxime Ripard      This additional argument passed to that reset controller is the
3593adc6aeSMaxime Ripard      offset of the bit controlling this particular reset line in the
3693adc6aeSMaxime Ripard      register.
3793adc6aeSMaxime Ripard
3893adc6aeSMaxime Ripard  compatible:
3993adc6aeSMaxime Ripard    enum:
4093adc6aeSMaxime Ripard      - allwinner,sun6i-a31-ahb1-reset
4193adc6aeSMaxime Ripard      - allwinner,sun6i-a31-clock-reset
4293adc6aeSMaxime Ripard
4393adc6aeSMaxime Ripard  reg:
4493adc6aeSMaxime Ripard    maxItems: 1
4593adc6aeSMaxime Ripard
4693adc6aeSMaxime Ripardrequired:
4793adc6aeSMaxime Ripard  - "#reset-cells"
4893adc6aeSMaxime Ripard  - compatible
4993adc6aeSMaxime Ripard  - reg
5093adc6aeSMaxime Ripard
5193adc6aeSMaxime RipardadditionalProperties: false
5293adc6aeSMaxime Ripard
5393adc6aeSMaxime Ripardexamples:
5493adc6aeSMaxime Ripard  - |
5593adc6aeSMaxime Ripard    ahb1_rst: reset@1c202c0 {
5693adc6aeSMaxime Ripard        #reset-cells = <1>;
5793adc6aeSMaxime Ripard        compatible = "allwinner,sun6i-a31-ahb1-reset";
5893adc6aeSMaxime Ripard        reg = <0x01c202c0 0xc>;
5993adc6aeSMaxime Ripard    };
6093adc6aeSMaxime Ripard
6193adc6aeSMaxime Ripard  - |
6293adc6aeSMaxime Ripard    apbs_rst: reset@80014b0 {
6393adc6aeSMaxime Ripard        #reset-cells = <1>;
6493adc6aeSMaxime Ripard        compatible = "allwinner,sun6i-a31-clock-reset";
6593adc6aeSMaxime Ripard        reg = <0x080014b0 0x4>;
6693adc6aeSMaxime Ripard    };
6793adc6aeSMaxime Ripard
6893adc6aeSMaxime Ripard...
69