Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp3898917pxb; Mon, 4 Oct 2021 12:07:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8bCwxN2E3KRGJ+7M6S4BMnY0paOA3Xz9QKo79ICJjsiWyD5bNAYrXE3evA5vDNbGQMeQc X-Received: by 2002:a17:906:c249:: with SMTP id bl9mr18718777ejb.225.1633374468069; Mon, 04 Oct 2021 12:07:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633374468; cv=none; d=google.com; s=arc-20160816; b=R15IiZMmhKCdF/w/7x6YHrHACTvml0ya/i7qDDTI5I3pKK7bpVYgOmaby/xSc9yPVb 4noAEHJEb/6+IPoXJbc/sGWKaE9LHBeultuCDXrhJ62kpt3QjrdR0D5qOPq+Zt9KCxM/ c7xF+narGkknVy9actkVOkUErhCwIi+xxjFFHoL134zbQ9ioImR5SQhhJUmfq1DblRfE 0CmsbBXliG1ulKgWV+3BMa+a7dI+YJhYSSUnhxvACvo08Qsat7AqbwEAS9/gz+Lkg4J2 XlVLbkKdWMD6/2J5H1q9KgVoAD51toDSGLlGwU9k4Nuo0MWaSarpK51D6nIq+hslUVKP n1fA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=hK4OhSiTNsNfjE6KJ9kkf4rjTqcI5urGy7xo3IPDC3A=; b=JeW6G4UHSd/N474PTZKQjPHHFtSSNFtS1cofT8XSgs+tiTLQV/CQ8DhLH1LHvwCIN8 XhEe5Un/jYhRwwbg2WFJt6yPZ7Ws4wa1pjykd2T75VWh7tAdQR2ysTWIGBf54MvPOxpS LO7vlMfyQCJ5oJVJPsOZyiY9kSaVLLgPYuw3cDNpT2bE5st5zK0bLJh7Bm0vrmfzHiYR s/N24jzIRVC/HrWGHLOCtNJHbvnO5m4l1WrXQZ/5vFMPo4dwk3RjUWQDtWMx1cBs3cNN s5VtN0kd7dtMIUkDuqQ2WU3c67uWxIpqk+cuD6uw5cHe4HjQ0dHHWeiJ4UcVqJJPy3wd r4Gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Q69CYp0o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h14si21948258eje.454.2021.10.04.12.07.23; Mon, 04 Oct 2021 12:07:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Q69CYp0o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238303AbhJDSZK (ORCPT + 99 others); Mon, 4 Oct 2021 14:25:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238063AbhJDSZK (ORCPT ); Mon, 4 Oct 2021 14:25:10 -0400 Received: from mail-ua1-x92d.google.com (mail-ua1-x92d.google.com [IPv6:2607:f8b0:4864:20::92d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBE37C061745; Mon, 4 Oct 2021 11:23:20 -0700 (PDT) Received: by mail-ua1-x92d.google.com with SMTP id h4so4903767uaw.1; Mon, 04 Oct 2021 11:23:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hK4OhSiTNsNfjE6KJ9kkf4rjTqcI5urGy7xo3IPDC3A=; b=Q69CYp0o33+bNhPhgJw6tfQEU2jevmksNOnLa45BJW4J860ZLdd5As8XnBiijsgNxl 9fPQdXYUniDiNOBhPJuO7PUM16sHw4NDcviTLntp3swnZ8DAJywhF/lmbmrUSWqIZJNF XMvzN8O0geUzG58BQFhfCMZPNXjRXZRTnOV/NM9zVAApRYCNrGV131CpOlTlfvfeMS9J 8S7/QdGD9jwNWl1W00hdv/q3B/EkrS3gIYF/3V7iUf6zDtjARM979ySKNfJT12HngGKU Lf0IGu5hOQ6HwLNVwR+MLbt5KKe/IRnx2UJIAxZgrmmy4U/Mjkvep7lhg00ICW5yijUa NZuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hK4OhSiTNsNfjE6KJ9kkf4rjTqcI5urGy7xo3IPDC3A=; b=uTLaTA4t1W6xCNeimQhFW8PyM3W4jh4OP4vxmsRhDHzDPRyhBBpeVya3/3tbuJQf8+ pxqaNkDUweVeTb8KV0Wj2SrVzsZC4zoqlVl2LxaUIDHKiAc2sF2cSMN10A6E3ahQxZ4c e0bKWiunJ4IgeSZR+a6GJvDfgBHbgJK7rhvnFinjs+8dnViTGaJmqxqPtblh/HDq9sfM yCST1ovI5ZO3wXAxiekTggR+uFLHOsDqMxf4JgMgSx9Dkp5LeImq8IyhET8wl/jFAmg9 YmUgFS4gV/HsveRPrqNLY/oIJNGbksXzpB3ZYPfiYyskDQsAn7sCwQEW2GZmJ5gvAOIm 3Niw== X-Gm-Message-State: AOAM532TS1rvdR2BG/GgNU8pA/cO8PHmplnHfFLdNo+UHX9rBDA+9DQz KFMrQCz5MtR5CikEgsLid2azUyw0IsA8031Hf5I= X-Received: by 2002:ab0:5548:: with SMTP id u8mr8021640uaa.0.1633371799913; Mon, 04 Oct 2021 11:23:19 -0700 (PDT) MIME-Version: 1.0 References: <20210926145931.14603-1-sergio.paracuellos@gmail.com> <20210926145931.14603-3-sergio.paracuellos@gmail.com> In-Reply-To: From: Sergio Paracuellos Date: Mon, 4 Oct 2021 20:23:08 +0200 Message-ID: Subject: Re: [PATCH 2/3] dt: bindings: add ralink RT2880 resets device tree binding documentation To: Rob Herring Cc: linux-staging@lists.linux.dev, John Crispin , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Greg KH , NeilBrown , linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, On Mon, Oct 4, 2021 at 8:06 PM Rob Herring wrote: > > On Sun, Sep 26, 2021 at 04:59:30PM +0200, Sergio Paracuellos wrote: > > Adds device tree binding documentation for resets in the ralink RT2880 SoCs. > > > > Signed-off-by: Sergio Paracuellos > > --- > > .../bindings/reset/ralink,rt2880-reset.yaml | 39 +++++++++++++++++++ > > 1 file changed, 39 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/reset/ralink,rt2880-reset.yaml > > > > diff --git a/Documentation/devicetree/bindings/reset/ralink,rt2880-reset.yaml b/Documentation/devicetree/bindings/reset/ralink,rt2880-reset.yaml > > new file mode 100644 > > index 000000000000..88eddeb4ee45 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/reset/ralink,rt2880-reset.yaml > > @@ -0,0 +1,39 @@ > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/reset/ralink,rt2880-reset.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: Ralink RT2880 Reset Controller Device Tree Bindings > > + > > +maintainers: > > + - Sergio Paracuellos > > + > > +description: | > > + Ralink RT2880 reset controller driver which supports the SoC > > + system controller supplied reset registers for the various peripherals > > + of the SoC. > > + > > + See also: > > + - dt-bindings/reset/ralink-rt2880.h > > + > > +properties: > > + compatible: > > + const: ralink,rt2880-reset > > + > > + '#reset-cells': > > + const: 1 > > + > > +required: > > + - '#reset-cells' > > + - compatible > > + > > +additionalProperties: false > > + > > +examples: > > + - | > > + #include > > + rstctrl: reset-controller { > > + compatible = "ralink,rt2880-reset"; > > + #reset-cells = <1>; > > How is this h/w controlled? If this is part of a system controller, then > it needs to be documented as such. IOW, you need to document the binding > for the whole block. > > Do you really need a child node here? All you need to make a system > controller a reset provider is add '#reset-cells' to it. I am just documenting what is already mainlined (see [0]) in order to get mt7621-dts out of staging at some point of my life. What am I supposed to do? Should I rewrite all already mainlined code? Because if that is the case we need to rewrite tons of things from the ralink platform... I'd also like to know what we should do with those nodes already added to the dtsi file that have not got associated compatible driver mainlined. Can we just get rid of them? Thanks in advance for clarification. Best regards, Sergio Paracuellos [0]: https://elixir.bootlin.com/linux/latest/source/arch/mips/ralink/reset.c > > Rob