[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250514133034.GA1791146-robh@kernel.org>
Date: Wed, 14 May 2025 08:30:34 -0500
From: Rob Herring <robh@...nel.org>
To: dongxuyang@...incomputing.com
Cc: p.zabel@...gutronix.de, krzk+dt@...nel.org, conor+dt@...nel.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
ningyu@...incomputing.com, linmin@...incomputing.com,
huangyifeng@...incomputing.com
Subject: Re: [PATCH 1/2] dt-bindings: reset: eswin: Documentation for eic7700
SoC
On Wed, May 14, 2025 at 08:31:21AM +0800, dongxuyang@...incomputing.com wrote:
> From: Xuyang Dong <dongxuyang@...incomputing.com>
>
> Add device tree binding documentation and header file for the ESWIN
> eic7700 reset controller module.
>
> Signed-off-by: Yifeng Huang <huangyifeng@...incomputing.com>
> Signed-off-by: Xuyang Dong <dongxuyang@...incomputing.com>
> ---
> .../bindings/reset/eswin,eic7700-reset.yaml | 47 +++
> .../dt-bindings/reset/eswin,eic7700-reset.h | 460 ++++++++++++++++++
> 2 files changed, 517 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/reset/eswin,eic7700-reset.yaml
> create mode 100644 include/dt-bindings/reset/eswin,eic7700-reset.h
>
> diff --git a/Documentation/devicetree/bindings/reset/eswin,eic7700-reset.yaml b/Documentation/devicetree/bindings/reset/eswin,eic7700-reset.yaml
> new file mode 100644
> index 000000000000..1a3c6d230efe
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/reset/eswin,eic7700-reset.yaml
> @@ -0,0 +1,47 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/reset/eswin,eic7700-reset.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: ESWIN EIC7700 SoC reset controller
> +
> +maintainers:
> + - Yifeng Huang <huangyifeng@...incomputing.com>
> + - Xuyang Dong <dongxuyang@...incomputing.com>
> +
> +description: |
> + The reset controller registers are part of the syscrg block on
> + the EIC7700 SoC.
> +
> +properties:
> + compatible:
> + oneOf:
> + - items:
> + - const: eswin,eic7700-reset
> +
> + '#reset-cells':
> + description: |
> + Specifies the number of cells needed to encode a reset source.
> + Cell #1 : module id of the reset consumer
> + Cell #2 : bit position of the reset in each reset consumer module
> + const: 2
> +
> +required:
> + - compatible
> + - '#reset-cells'
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/reset/eswin,eic7700-reset.h>
> +
> + sys_crg: sys-crg@...28000 {
> + compatible = "syscon", "simple-mfd";
> + reg = <0x000000 0x51828000 0x000000 0x80000>;
> + reset: reset-controller {
> + compatible = "eswin,eic7700-reset";
> + #reset-cells = <2>;
Same comment here as #clock-cells.
This is one h/w block, so there should be 1 binding for it. Make the
binding for the sys-crg as complete as possible rather than adding 1
feature at a time.
Rob
Powered by blists - more mailing lists