From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933216AbcFPCOJ (ORCPT ); Wed, 15 Jun 2016 22:14:09 -0400 Received: from mail.kernel.org ([198.145.29.136]:57310 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753285AbcFPCOE (ORCPT ); Wed, 15 Jun 2016 22:14:04 -0400 MIME-Version: 1.0 In-Reply-To: <1466009144.3539.77.camel@pengutronix.de> References: <20160601184125.20241-1-afd@ti.com> <576178C7.4040204@ti.com> <1466009144.3539.77.camel@pengutronix.de> From: Rob Herring Date: Wed, 15 Jun 2016 21:13:40 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 0/2] Add support for SYSCON reset To: Philipp Zabel Cc: "Andrew F. Davis" , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Suman Anna , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 15, 2016 at 11:45 AM, Philipp Zabel wrote: > Hi Andrew, > > Am Mittwoch, den 15.06.2016, 10:48 -0500 schrieb Andrew F. Davis: >> On 06/01/2016 01:41 PM, Andrew F. Davis wrote: >> > Some SoCs contain reset controls for modules that are memory-mapped to >> > areas shared with other module configuration settings. This requires >> > synchronization across all drivers accessing this memory area. This >> > series adds a generic SYSCON reset driver to allow resets toggled >> > by bits in memory-mapped registers through SYSCON. >> > >> > Changes from v2: >> > - Rebased on v4.7-rc1 >> > - Removed the need to give reset specifier nodes an index address >> > >> > Changes from v1: >> > - Reset control information is now described in the reset node, this >> > keeps the reset information centralized for easy verification >> > - Other small fixups >> > >> > Andrew F. Davis (2): >> > Documentation: dt: reset: Add syscon reset binding >> > reset: add a SYSCON based reset driver >> > >> > .../devicetree/bindings/reset/syscon-reset.txt | 105 ++++++++ >> > drivers/reset/Kconfig | 10 + >> > drivers/reset/Makefile | 1 + >> > drivers/reset/reset-syscon.c | 289 +++++++++++++++++++++ >> > include/dt-bindings/reset/syscon.h | 23 ++ >> > 5 files changed, 428 insertions(+) >> > create mode 100644 Documentation/devicetree/bindings/reset/syscon-reset.txt >> > create mode 100644 drivers/reset/reset-syscon.c >> > create mode 100644 include/dt-bindings/reset/syscon.h >> > >> >> Is there any additional feedback for this driver? I normally try to >> refrain from pings, but this may begin to block further upstreaming of >> IPs that uses this reset if it can not be taken this cycle. > > There's still Rob's concern that this binding needs a device tree node > per single register bit in the worst case, which seems a bit overkill. Yes, that's still my concern with this. > I'd still prefer to have this information hidden in the drivers, but if > you absolutely have to put it in the device tree, maybe an approach more > similar to pinctrl-simple, where you could list all resets, one per > line, in a single property, would be more acceptable: > > pscrst: reset-controller { > compatible = "ti,-pscrst", "syscon-reset"; > > /* syscon-reset,bits = ; */ ti,reset-bits > syscon-reset,bits = <0xa3c 8 0x83c 8 RESET_ASSERT_CLEAR /* 0: pcrst-dsp */ > 0xa40 5 0 0 RESET_TRIGGER_SET>; /* 1: pcrst-example */ > }; > > dsp0: dsp { > resets = <&pscrst 0>; > }; Otherwise, this seems okay. It is more concise. > >> If there is still an objection to calling this a generic reset solution >> we would not strongly object to relabeling this to something implying >> more TI exclusivity. > > Good. Right now there don't seem to be that many reset controllers in > the wild for which this binding would be a good fit. If this turns out > to be useful for others, we can add more compatibles to the driver. Certainly other users would make a generic solution more compelling. Rob