Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp139478imu; Thu, 3 Jan 2019 15:57:49 -0800 (PST) X-Google-Smtp-Source: ALg8bN6zK7ahC3w/JAuuiLivdbZS5NTt/oKBjBGRjWYVBDlIyyXBSIckEh1dnJs+TeA5G+OwzlJo X-Received: by 2002:a63:6486:: with SMTP id y128mr18792507pgb.18.1546559869378; Thu, 03 Jan 2019 15:57:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546559869; cv=none; d=google.com; s=arc-20160816; b=bpKTKQzkZCu+yYAJj8Dn5CAL/ac/z0mr7OHCPoPVY6SSlwF1fk0cVXENws8asr88N0 y6CkwVRAi4ZYgGiPpnJp7FeT41R09qwAyov4Yk1IWIjpKgIwopLBHw0lDyOWONswAzbn tSyS6EYwVmZiHHIQo75aeHi00J5X40d81IGNKdlsJeO3R9b2DDTry2rbHX9vzFKFGcek ES+FH0us1AePn/X3xxyauFE257N9dk/xzUCTsGGigxFBmaxf5V4e9K7mmdbJnMPGCOxK uj/w31X1pjSUPFiPk22s1n3JJjHnDP4G/5MPkqOPWFm1KNN/xAsr8Muxog15v4VArQvf Zm4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=TTnlFRMC/tE2y0XboP30PxCpwrUWxCmg8uvckIQqldo=; b=Gh9W1mZVwja2heWNLFxaBlSutCA/W69YLGvT3om+LXDQ7U+y39HuWrhELuSaETNSuB OnphvfWk9nhS+0pbOuAh784L2nMOVQWFPlRttWH2IOXItaPRlXwmlrmFaNPPzc1Md5HH U3itsOjdKP2HCG2AmzaaB9SmS9y7B39VfjZZOMivfOw4kME9b3miGwX9B5nNbc75EWZB jOy1AokHcizhEAzX28NWbMrc3Vi6FRF6uHXiBqTQWlqhPOc84wjoLxHL2plNb78+Wbt3 VUowHfC1XOIkcPJmsF8JciLubPUAZypDjH6STaLdMOqTewDId8Ywl1mYO6xokcYHTxqh pyGg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p32si49994300pgm.413.2019.01.03.15.57.34; Thu, 03 Jan 2019 15:57:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727003AbfACTTV (ORCPT + 99 others); Thu, 3 Jan 2019 14:19:21 -0500 Received: from mail-it1-f193.google.com ([209.85.166.193]:50267 "EHLO mail-it1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726989AbfACTTV (ORCPT ); Thu, 3 Jan 2019 14:19:21 -0500 Received: by mail-it1-f193.google.com with SMTP id z7so46761335iti.0; Thu, 03 Jan 2019 11:19:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=TTnlFRMC/tE2y0XboP30PxCpwrUWxCmg8uvckIQqldo=; b=L/QPy2/Z/V3AIghSO28GSCBSLG1BbfHxuX2bRRr5KFMCWrZvgwl/TBdvSvYj3ulses 0TrGs9O/SX/QNISVI9mdseOeSA0D47jqv2wJKYihWyv5FhzBKHuKpmoIaQrFLxaxwOjs a65pOpiLPokZoQxiQnWr4e2UOsKMb61yg35morf+LQA1fna3Hu4xApsVsxP+kkxlxKzc WgznNrDH2+hxQoopO2bKZE+nnDlsQ7Hu8cmB4d1GHdOny4bY/UOh4pipmR1mBLKxsH1b 4Dp0cBZTN5Ay21ZbgUHqA+ijWyq/L3RqMJ9xVEJDW5cdtDkvJ63B0JbGW2LxhOj89A4d zxSA== X-Gm-Message-State: AA+aEWZlBuWU+RdYKR3k6UEDvtd+fWkyHro70xTHr58eUYrKAen6Xz/M 90ynyqgalWqv71U9DDe+Ug== X-Received: by 2002:a02:b093:: with SMTP id v19mr34616129jah.64.1546543159424; Thu, 03 Jan 2019 11:19:19 -0800 (PST) Received: from localhost ([24.51.61.172]) by smtp.gmail.com with ESMTPSA id t11sm6652270iop.88.2019.01.03.11.19.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 03 Jan 2019 11:19:18 -0800 (PST) Date: Thu, 3 Jan 2019 13:19:15 -0600 From: Rob Herring To: Florian Fainelli Cc: p.zabel@pengutronix.de, linux-kernel@vger.kernel.org, Mark Rutland , Brian Norris , Gregory Fong , "maintainer:BROADCOM BCM7XXX ARM ARCHITECTURE" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:BROADCOM BCM7XXX ARM ARCHITECTURE" Subject: Re: [PATCH 1/2] dt-bindings: reset: Add document for Broadcom STB reset controller Message-ID: <20190103191915.GB6613@bogus> References: <20181221013409.14324-1-f.fainelli@gmail.com> <20181221013409.14324-2-f.fainelli@gmail.com> <20190103174117.GA6613@bogus> <2a54c2cf-5595-ade5-fb29-40e8b6d3133e@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2a54c2cf-5595-ade5-fb29-40e8b6d3133e@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 03, 2019 at 10:53:25AM -0800, Florian Fainelli wrote: > On 1/3/19 9:41 AM, Rob Herring wrote: > > On Thu, Dec 20, 2018 at 05:34:08PM -0800, Florian Fainelli wrote: > >> Add a binding document for the Broadcom STB reset controller, also known > >> as SW_INIT-style reset controller. > >> > >> Signed-off-by: Florian Fainelli > >> --- > >> .../devicetree/bindings/reset/brcm,reset.txt | 27 +++++++++++++++++++ > >> 1 file changed, 27 insertions(+) > >> create mode 100644 Documentation/devicetree/bindings/reset/brcm,reset.txt > >> > >> diff --git a/Documentation/devicetree/bindings/reset/brcm,reset.txt b/Documentation/devicetree/bindings/reset/brcm,reset.txt > >> new file mode 100644 > >> index 000000000000..6e5341b4f891 > >> --- /dev/null > >> +++ b/Documentation/devicetree/bindings/reset/brcm,reset.txt > >> @@ -0,0 +1,27 @@ > >> +Broadcom STB SW_INIT-style reset controller > >> +=========================================== > >> + > >> +Broadcom STB SoCs have a SW_INIT-style reset controller with separate > >> +SET/CLEAR/STATUS registers and possibly multiple banks, each of 32 bit > >> +reset lines. > >> + > >> +Please also refer to reset.txt in this directory for common reset > >> +controller binding usage. > >> + > >> +Required properties: > >> +- compatible: should be brcm,brcmstb-reset > >> +- reg: register base and length > >> +- #reset-cells: must be set to 1 > >> + > >> +Example: > >> + > >> + reset: reset-controller@8404318 { > >> + compatible = "brcm,brcmstb-reset"; > >> + reg = <0x8404318 0x30>; > > > > Based on this address, should this be a sub-node of something else? Or > > not even a sub-node and just make the parent be a reset provider? > > The reset controller is part of a larger "sundry" node which has a > collection of functionality, from pinmux/pinctrl, reset controller, > spare bits, chicken bits, anything the designers forgot to put somewhere > else and decided to put there. > > If there is one thing consistent though is that given a set of 32-bit > register groups, they have a self contained functionality such that you > can break up the larger "sundry" space into smaller sub-blocks which > have one an only one functionality. Do you think this warrants a > different representation in Device Tree? With pinctrl in the mix, you're going to need sub-nodes anyways. So just define what this is a sub-node of. Also, I'd prefer to have complete example for the "sundry" node and child nodes than partial examples spread across the tree. Rob