xref: /freebsd/sys/contrib/device-tree/Bindings/reset/hisilicon,hi3660-reset.yaml (revision 8d13bc63c0e1d50bc9e47ac1f26329c999bfecf0)
15def4c47SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
25def4c47SEmmanuel Vadot%YAML 1.2
35def4c47SEmmanuel Vadot---
45def4c47SEmmanuel Vadot$id: http://devicetree.org/schemas/reset/hisilicon,hi3660-reset.yaml#
55def4c47SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
65def4c47SEmmanuel Vadot
75def4c47SEmmanuel Vadottitle: Hisilicon System Reset Controller
85def4c47SEmmanuel Vadot
95def4c47SEmmanuel Vadotmaintainers:
105def4c47SEmmanuel Vadot  - Wei Xu <xuwei5@hisilicon.com>
115def4c47SEmmanuel Vadot
125def4c47SEmmanuel Vadotdescription: |
135def4c47SEmmanuel Vadot  Please also refer to reset.txt in this directory for common reset
145def4c47SEmmanuel Vadot  controller binding usage.
155def4c47SEmmanuel Vadot  The reset controller registers are part of the system-ctl block on
165def4c47SEmmanuel Vadot  hi3660 and hi3670 SoCs.
175def4c47SEmmanuel Vadot
185def4c47SEmmanuel Vadotproperties:
195def4c47SEmmanuel Vadot  compatible:
205def4c47SEmmanuel Vadot    oneOf:
215def4c47SEmmanuel Vadot      - items:
225def4c47SEmmanuel Vadot          - const: hisilicon,hi3660-reset
235def4c47SEmmanuel Vadot      - items:
245def4c47SEmmanuel Vadot          - const: hisilicon,hi3670-reset
255def4c47SEmmanuel Vadot          - const: hisilicon,hi3660-reset
265def4c47SEmmanuel Vadot
27c9ccf3a3SEmmanuel Vadot  hisi,rst-syscon:
28c9ccf3a3SEmmanuel Vadot    deprecated: true
29c9ccf3a3SEmmanuel Vadot    description: phandle of the reset's syscon, use hisilicon,rst-syscon instead
30c9ccf3a3SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/phandle
31c9ccf3a3SEmmanuel Vadot
325def4c47SEmmanuel Vadot  hisilicon,rst-syscon:
335def4c47SEmmanuel Vadot    description: phandle of the reset's syscon.
345def4c47SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/phandle
355def4c47SEmmanuel Vadot
365def4c47SEmmanuel Vadot  '#reset-cells':
375def4c47SEmmanuel Vadot    description: |
385def4c47SEmmanuel Vadot      Specifies the number of cells needed to encode a reset source.
395def4c47SEmmanuel Vadot      Cell #1 : offset of the reset assert control register from the syscon
405def4c47SEmmanuel Vadot                register base
415def4c47SEmmanuel Vadot                offset + 4: deassert control register
425def4c47SEmmanuel Vadot                offset + 8: status control register
435def4c47SEmmanuel Vadot      Cell #2 : bit position of the reset in the reset control register
445def4c47SEmmanuel Vadot    const: 2
455def4c47SEmmanuel Vadot
465def4c47SEmmanuel Vadotrequired:
475def4c47SEmmanuel Vadot  - compatible
485def4c47SEmmanuel Vadot
495def4c47SEmmanuel VadotadditionalProperties: false
505def4c47SEmmanuel Vadot
515def4c47SEmmanuel Vadotexamples:
525def4c47SEmmanuel Vadot  - |
53*8d13bc63SEmmanuel Vadot    iomcu_rst_controller {
545def4c47SEmmanuel Vadot        compatible = "hisilicon,hi3660-reset";
555def4c47SEmmanuel Vadot        hisilicon,rst-syscon = <&iomcu>;
565def4c47SEmmanuel Vadot        #reset-cells = <2>;
575def4c47SEmmanuel Vadot    };
585def4c47SEmmanuel Vadot...
59