c3c46acd5b
Binding examples should generally only cover what the binding covers. A provider binding doesn't need to show consumers and vice-versa. The hisilicon,hi3660-reset binding example has both, so let's drop them. This also fixes an undocumented (by schema) compatible warning for "hisilicon,hi3660-iomcu". Signed-off-by: Rob Herring <robh@kernel.org> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20231128214759.3975428-1-robh@kernel.org Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
59 lines
1.6 KiB
YAML
59 lines
1.6 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/reset/hisilicon,hi3660-reset.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Hisilicon System Reset Controller
|
|
|
|
maintainers:
|
|
- Wei Xu <xuwei5@hisilicon.com>
|
|
|
|
description: |
|
|
Please also refer to reset.txt in this directory for common reset
|
|
controller binding usage.
|
|
The reset controller registers are part of the system-ctl block on
|
|
hi3660 and hi3670 SoCs.
|
|
|
|
properties:
|
|
compatible:
|
|
oneOf:
|
|
- items:
|
|
- const: hisilicon,hi3660-reset
|
|
- items:
|
|
- const: hisilicon,hi3670-reset
|
|
- const: hisilicon,hi3660-reset
|
|
|
|
hisi,rst-syscon:
|
|
deprecated: true
|
|
description: phandle of the reset's syscon, use hisilicon,rst-syscon instead
|
|
$ref: /schemas/types.yaml#/definitions/phandle
|
|
|
|
hisilicon,rst-syscon:
|
|
description: phandle of the reset's syscon.
|
|
$ref: /schemas/types.yaml#/definitions/phandle
|
|
|
|
'#reset-cells':
|
|
description: |
|
|
Specifies the number of cells needed to encode a reset source.
|
|
Cell #1 : offset of the reset assert control register from the syscon
|
|
register base
|
|
offset + 4: deassert control register
|
|
offset + 8: status control register
|
|
Cell #2 : bit position of the reset in the reset control register
|
|
const: 2
|
|
|
|
required:
|
|
- compatible
|
|
|
|
additionalProperties: false
|
|
|
|
examples:
|
|
- |
|
|
iomcu_rst_controller {
|
|
compatible = "hisilicon,hi3660-reset";
|
|
hisilicon,rst-syscon = <&iomcu>;
|
|
#reset-cells = <2>;
|
|
};
|
|
...
|