From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754594AbcAOQsf (ORCPT ); Fri, 15 Jan 2016 11:48:35 -0500 Received: from metis.ext.4.pengutronix.de ([92.198.50.35]:47541 "EHLO metis.ext.4.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752600AbcAOQse (ORCPT ); Fri, 15 Jan 2016 11:48:34 -0500 Message-ID: <1452876511.6067.92.camel@pengutronix.de> Subject: Re: [PATCH 1/2] reset: img: Add pistachio reset controller binding document From: Philipp Zabel To: James Hartley Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Damien Horsley , Govindraj Raja Date: Fri, 15 Jan 2016 17:48:31 +0100 In-Reply-To: <56991F23.8010500@imgtec.com> References: <1452869073-27608-1-git-send-email-james.hartley@imgtec.com> <1452869073-27608-2-git-send-email-james.hartley@imgtec.com> <1452873439.6067.86.camel@pengutronix.de> <56991F23.8010500@imgtec.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.9-1+b1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2001:67c:670:100:96de:80ff:fec2:9969 X-SA-Exim-Mail-From: p.zabel@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Freitag, den 15.01.2016, 16:32 +0000 schrieb James Hartley: > Hi Philipp, > > Thanks for the quick review, > > On 01/15/16 15:57, Philipp Zabel wrote: > > Am Freitag, den 15.01.2016, 14:44 +0000 schrieb James Hartley: > [..] > >> +Example: > >> + > >> + pistachio_reset: reset-controller { > >> + compatible = "img,pistachio-reset"; > >> + img,cr-periph = <&cr_periph>; > >> + #reset-cells = <1>; > >> + }; > > If this is just a register in the cr_periph syscon, why not put the > > reset-controller node inside the cr_periph node: > > > > cr_periph: syscon@xyz { > > compatible = "syscon", "simple-mfd"; > > pistachio_reset: reset-controller { > > compatible = "img,pistachio-reset"; > > #reset-cells = <1>; > > }; > > }; > > > > And in the driver use > > syscon_node_to_regmap(np->parent); > > instead of > > syscon_regmap_lookup_by_phandle(np, "img,cr-periph"); > > ? > > Yes that makes sense, I'll look at changing that for a V2 patchset. > > > Do you need a reg property, or is will the register offset be 0 in all > > pistachio variants? > > The offset will always be 0 for all pistachio variants. Ok. > [..] > > +Example: > > + > > + spdif_out: spdif-out@18100d00 { > > + ... > > + resets = <&pistachio_reset PISTACHIO_RESET_SPDIF_OUT>; > > + reset-names = "rst"; > > reset-names is not needed for devices that only have one reset. > > Agreed, but there are already audio drivers that pistachio uses that > have been merged upstream > using this name in their dt-entries - is there any harm in leaving it in? That was just a remark. As long as this requirement is there from the beginning and it is used consistently, I don't mind. best regards Philipp