Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2638010rwb; Thu, 29 Sep 2022 12:54:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4+EPHRZurtaNvoB8plTbSmcak8nPW73sOlIrJHrQ9ps3vdjbRLtDT8aN01H7bacAf5VnpR X-Received: by 2002:a17:907:d91:b0:784:107a:6aca with SMTP id go17-20020a1709070d9100b00784107a6acamr3909738ejc.761.1664481291450; Thu, 29 Sep 2022 12:54:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664481291; cv=none; d=google.com; s=arc-20160816; b=ZIJC/Wk0i0ggSufEQL/as4/AUEGza3pslu4IaZ4MoglPvkArtvzxPQ2r/fxm9Syc2L uK+AWtOy/IimSr6t6OwNXSXxRszqMJZom13Fzeb6nQHYYPZ2xSkP8+UFQwI83+wjCgsd ks/pRoZVe1iaji1I1r+RQbx1248oVxnmMEi2lyKvxYRcktovZ0+WaKzN1fyyp60y4h6f /84Y6ezNWoBpPbmTrplUo0zhXJ1cYbCZ90IHZSrrkdV2/kC5G6pwHikbvGHpzfWxPJSa c6KD6QT6nHGsLb7ovlSuQ29fe4NBNLPoF6oxs6vTcp6hK9MOQAzdaWFqq7qZbIxntW+T 2wzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=Q4kEonMB6d7v5hHIJWkTHsGtsa94Xy9dbaqRdwzR/jk=; b=o+bUfKZhEtR9F+WYkg42V+18r1RADLjhSfoYBHfJRK1hSDLv5WawTQH2aedb2a6WzV n4WKadGEpPlJZsukjNWsuLwchI3qGG/8bTnzSszPP7UhkdXwrw2OpzSXLwCfb5jeWmbj K3LWnrM7cZgjDU74d01nvQHuW749eKUUL3w+LCeAR+P0OLgCBnF3rcOwKawNoHjU20kS aBPyuOHEi0MuhtWqHKCDXr6k8wkpT5/QYhDyCBBzVUDyCiu/EYk5mJBp9IgpknoBXuf/ Lf04a0oTkzjM0FoErF404rPLxrsSuOcrgIwygs3pBl60uIS7EWGfWOYIVHQ1/3gViJ7f 0D2Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jg4-20020a170907970400b0078303058cd2si163566ejc.23.2022.09.29.12.54.24; Thu, 29 Sep 2022 12:54:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235915AbiI2Sor (ORCPT + 99 others); Thu, 29 Sep 2022 14:44:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235912AbiI2SoS (ORCPT ); Thu, 29 Sep 2022 14:44:18 -0400 Received: from mail-oa1-f46.google.com (mail-oa1-f46.google.com [209.85.160.46]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A9C11E05CB; Thu, 29 Sep 2022 11:43:51 -0700 (PDT) Received: by mail-oa1-f46.google.com with SMTP id 586e51a60fabf-12803ac8113so2851224fac.8; Thu, 29 Sep 2022 11:43:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=Q4kEonMB6d7v5hHIJWkTHsGtsa94Xy9dbaqRdwzR/jk=; b=Yqx8cFhwaktXXI7UXVnilucgH0yF3+nzesFdvoeZI7Ohe6PAIyjVDXx/OcD8dBUTrd M/86HWaZ071o1DKPzFJhOPb5dP03yIgQ+9JEtKgAYpXayJLJSHT/Wu6OUZfpLLo9+7KG 6wx/DmoX5FGd0lHnC59+KPc4KPvHRk8ZRCRS53NEsj7PKKmFVSDCouOT5T9VhAzgACUB 2Fq3mEno/m5xWq2R1vL08z50QkGGIINHn2ftMAGRUUnoTAjX6rpwCRwVa1G5up41qF0B i9Ui3HDz5S0at3hT6LYgBB8mOIdtEKBzwIx4OQL6cz8TOWpVYkr2DBuMqDbTae/cD/dK 85zA== X-Gm-Message-State: ACrzQf2TQ1BVakWOaTGdKcteAa753G5Qdhpm7mjn8zeO6ivex12ytIrr 5Q9gJhaeKfr7JJyMGkue+Q== X-Received: by 2002:a05:6870:3389:b0:131:94ab:fb63 with SMTP id w9-20020a056870338900b0013194abfb63mr2623611oae.41.1664477030662; Thu, 29 Sep 2022 11:43:50 -0700 (PDT) Received: from macbook.herring.priv (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id t16-20020a0568301e3000b00655bc7c4522sm95402otr.81.2022.09.29.11.43.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Sep 2022 11:43:50 -0700 (PDT) Received: (nullmailer pid 2554700 invoked by uid 1000); Thu, 29 Sep 2022 18:43:49 -0000 Date: Thu, 29 Sep 2022 13:43:49 -0500 From: Rob Herring To: Hal Feng Cc: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Daniel Lezcano , Thomas Gleixner , Marc Zyngier , Philipp Zabel , Stephen Boyd , Michael Turquette , Linus Walleij , Emil Renner Berthing , linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 12/30] dt-bindings: reset: Add starfive,jh7110-reset bindings Message-ID: <20220929184349.GA2551443-robh@kernel.org> References: <20220929143225.17907-1-hal.feng@linux.starfivetech.com> <20220929175147.19749-1-hal.feng@linux.starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220929175147.19749-1-hal.feng@linux.starfivetech.com> X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 30, 2022 at 01:51:47AM +0800, Hal Feng wrote: > Add bindings for the reset controller on the JH7110 RISC-V > SoC by StarFive Technology Ltd. > > Signed-off-by: Hal Feng > --- > .../bindings/reset/starfive,jh7110-reset.yaml | 54 +++++++++++++++++++ > 1 file changed, 54 insertions(+) > create mode 100644 Documentation/devicetree/bindings/reset/starfive,jh7110-reset.yaml > > diff --git a/Documentation/devicetree/bindings/reset/starfive,jh7110-reset.yaml b/Documentation/devicetree/bindings/reset/starfive,jh7110-reset.yaml > new file mode 100644 > index 000000000000..bb0010c200f9 > --- /dev/null > +++ b/Documentation/devicetree/bindings/reset/starfive,jh7110-reset.yaml > @@ -0,0 +1,54 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/reset/starfive,jh7110-reset.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: StarFive JH7110 SoC Reset Controller Device Tree Bindings > + > +maintainers: > + - Emil Renner Berthing > + - Hal Feng > + > +properties: > + compatible: > + enum: > + - starfive,jh7110-reset 'reg' needed? Is this a sub-block of something else? > + > + "#reset-cells": > + const: 1 > + > + starfive,assert-offset: > + description: Offset of the first ASSERT register > + $ref: /schemas/types.yaml#/definitions/uint32 > + > + starfive,status-offset: > + description: Offset of the first STATUS register > + $ref: /schemas/types.yaml#/definitions/uint32 These can't be implied from the compatible string? > + > + starfive,nr-resets: > + description: Number of reset signals > + $ref: /schemas/types.yaml#/definitions/uint32 Why do you need this? Most bindings don't. If just to validate 'resets' args, then don't. > + > +required: > + - compatible > + - "#reset-cells" > + - starfive,assert-offset > + - starfive,status-offset > + - starfive,nr-resets > + > +additionalProperties: false > + > +examples: > + - | > + #include > + > + syscrg_rst: reset-controller@13020000 { > + compatible = "starfive,jh7110-reset"; > + #reset-cells = <1>; > + starfive,assert-offset = <0x2F8>; > + starfive,status-offset= <0x308>; > + starfive,nr-resets = ; > + }; > + > +... > -- > 2.17.1 > >