Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1679680
| Path | csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Joel Stanley <joel@jms.id.au> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2 1/2] dt-bindings: reset: Add bindings for basic reset controller |
| Date | Mon, 03 Jul 2017 09:00:01 +0200 |
| Message-ID | <tZ3uV-5SC-5@gated-at.bofh.it> (permalink) |
| References | <tMIvT-3nY-3@gated-at.bofh.it> <tMIvU-3nY-7@gated-at.bofh.it> <tPQ3U-34T-33@gated-at.bofh.it> |
| X-Original-To | Rob Herring <robh@kernel.org> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=YRlFOqVxZOoXhRo0TsTj9zVSgZmvtJI421q5C5YWY3k=; b=rp4C2jwWlhayv/NNb9OPuLgWh43P67PswuSIMwkfQFIFrFBiNxAIpbEa3C6zB7kdQS Q5o5kXYRBvajOzidyJ4JTWCBnaOpZvBIsjdpx4/o8nm1ReQL8/FrIplWUXqgbxluYyOW zaPPnYo41Aa/wfK21Onqnd10AJ/B2Z5fmO9xpHi0fIQxPTHZ0j4bx8/tBKpXxLPUjuiG wnm988IhHCTnAQY19D9oFybjcd40nRlTMyEHGeNEXTNX8C91iKp0IqddHmPQ14aZjQtN FsN33IgvXTmodP/jy2ZAWyzFTmg1LRnw8Ehdh10OYEjAv/jiyeLqBeqmLWLybWssHMhP FNOg== |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=YRlFOqVxZOoXhRo0TsTj9zVSgZmvtJI421q5C5YWY3k=; b=Haeps1q7pLsdfabNibqUiS/vpwfAGj100glvDoLxGQQf4sQZUnuZ6fJXNUeehryx4P kuPV7hfa+oV1I16Dk6QvYYazynl/ShJljgtUC/8c4LzV60FDV5twOV/7IliAcqNZxVdW qNZ1o9/3duo5SRa5ZVT2p/wyDXx6dTOBLzRD1XauHam2J0rJymfCRjbi/w9sahciEkUa EaT5iWdYMt3lqrd3FWW5UKkSSzsZ1aS79HQDUFh+YOOD6vwzHe1hnmzTa3j3GYnCNORZ dyLQWoZEYHkPgHchT07Kxn/enxekUCJId8+nOGYxIpROt7JHeDo2If8XXT7Jh4UAo56q fzZA== |
| X-Gm-Message-State | AIVw113LGJdMZfYx1Phf2BMBLVDt1zsLP5AGde1lq/vEAn01SJvFjyJH WZUICvwoO4pg0UEGLaQ00Diq5aoG1g== |
| X-Received | by 10.129.85.12 with SMTP id j12mr9538631ywb.308.1499064709591; Sun, 02 Jul 2017 23:51:49 -0700 (PDT) |
| MIME-Version | 1.0 |
| X-Google-Sender-Auth | Q3nTQQQvxMGvLMM_vl0Sqq0QJG0 |
| Content-Type | text/plain; charset="UTF-8" |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 35 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Philipp Zabel <p.zabel@pengutronix.de>, Mark Rutland <mark.rutland@arm.com>, devicetree <devicetree@vger.kernel.org>, Linux Kernel Mailing List <linux-kernel@vger.kernel.org>, Benjamin Herrenschmidt <benh@kernel.crashing.org>, Andrew Jeffery <andrew@aj.id.au> |
| X-Original-Date | Mon, 3 Jul 2017 16:21:29 +0930 |
| X-Original-Message-ID | <CACPK8Xd86gAtR5sLb1LAy49Rc-dw4mAnZtk9_vwYvBe+Qefa1Q@mail.gmail.com> |
| X-Original-References | <20170530060851.29923-1-joel@jms.id.au> <20170530060851.29923-2-joel@jms.id.au> <20170607204916.n3wh3fkwbfctdv6s@rob-hp-laptop> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1679680 |
Show key headers only | View raw
On Thu, Jun 8, 2017 at 6:19 AM, Rob Herring <robh@kernel.org> wrote: > On Tue, May 30, 2017 at 03:38:50PM +0930, Joel Stanley wrote: >> This adds the bindings documentation for a basic single-register reset >> controller. >> >> The bindings describe a single 32-bit register that contains up to 32 >> reset lines, each deasserted by clearing the appropriate bit in the >> register. Optionally a property can be provided that changes this >> behaviour to assert on clear. >> > > I think this is a good idea for kernel code, but not for bindings. We > don't really want per register bindings. > > The problem with any generic/simple/basic binding is they always start > that way. Then we add one property at a time not in any well planned > way. I can easily come up with additions. For example, what about > self-clearing reset bits. Or 2 bits per reset. Or multiple resets that > have to be controlled together. 8 or 16-bit registers. Thanks for the explanation. I will send a v3 with aspeed specific bindings. How should I handle the driver? Were you suggesting I keep it generic, but with my aspeed compatible? Cheers, Joel > > IRQs and GPIOs could also be described in some cases with just groups of > 32-bit registers for set,clear,status,mask,etc., but we don't do that in > bindings for the same reasons. > > Rob
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
Re: [PATCH v2 1/2] dt-bindings: reset: Add bindings for basic reset controller Joel Stanley <joel@jms.id.au> - 2017-07-03 09:00 +0200
csiph-web