Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 | %YAML 1.2 |
| 3 | --- |
| 4 | $id: http://devicetree.org/schemas/reset/hisilicon,hi3660-reset.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: Hisilicon System Reset Controller |
| 8 | |
| 9 | maintainers: |
| 10 | - Wei Xu <xuwei5@hisilicon.com> |
| 11 | |
| 12 | description: | |
| 13 | Please also refer to reset.txt in this directory for common reset |
| 14 | controller binding usage. |
| 15 | The reset controller registers are part of the system-ctl block on |
| 16 | hi3660 and hi3670 SoCs. |
| 17 | |
| 18 | properties: |
| 19 | compatible: |
| 20 | oneOf: |
| 21 | - items: |
| 22 | - const: hisilicon,hi3660-reset |
| 23 | - items: |
| 24 | - const: hisilicon,hi3670-reset |
| 25 | - const: hisilicon,hi3660-reset |
| 26 | |
| 27 | hisi,rst-syscon: |
| 28 | deprecated: true |
| 29 | description: phandle of the reset's syscon, use hisilicon,rst-syscon instead |
| 30 | $ref: /schemas/types.yaml#/definitions/phandle |
| 31 | |
| 32 | hisilicon,rst-syscon: |
| 33 | description: phandle of the reset's syscon. |
| 34 | $ref: /schemas/types.yaml#/definitions/phandle |
| 35 | |
| 36 | '#reset-cells': |
| 37 | description: | |
| 38 | Specifies the number of cells needed to encode a reset source. |
| 39 | Cell #1 : offset of the reset assert control register from the syscon |
| 40 | register base |
| 41 | offset + 4: deassert control register |
| 42 | offset + 8: status control register |
| 43 | Cell #2 : bit position of the reset in the reset control register |
| 44 | const: 2 |
| 45 | |
| 46 | required: |
| 47 | - compatible |
| 48 | |
| 49 | additionalProperties: false |
| 50 | |
| 51 | examples: |
| 52 | - | |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 53 | iomcu_rst_controller { |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 54 | compatible = "hisilicon,hi3660-reset"; |
| 55 | hisilicon,rst-syscon = <&iomcu>; |
| 56 | #reset-cells = <2>; |
| 57 | }; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 58 | ... |