Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752646Ab3HOVuP (ORCPT ); Thu, 15 Aug 2013 17:50:15 -0400 Received: from smtp.codeaurora.org ([198.145.11.231]:52425 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751782Ab3HOVuN (ORCPT ); Thu, 15 Aug 2013 17:50:13 -0400 Date: Thu, 15 Aug 2013 16:50:05 -0500 From: Josh Cartwright To: Hanumant Singh Cc: Linus Walleij , Bjorn Andersson , "linux-kernel@vger.kernel.org" , linux-arm-msm@vger.kernel.org Subject: Re: [PATCH] pinctrl: msm: Add support for MSM TLMM pinmux Message-ID: <20130815215004.GC4035@joshc.qualcomm.com> References: <1374702089-2832-1-git-send-email-hanumant@codeaurora.org> <520D1363.3090708@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <520D1363.3090708@codeaurora.org> User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1807 Lines: 38 On Thu, Aug 15, 2013 at 10:44:03AM -0700, Hanumant Singh wrote: > On 8/14/2013 12:29 PM, Linus Walleij wrote: > >On Tue, Jul 30, 2013 at 1:39 AM, Bjorn Andersson wrote: > >>On Wed, Jul 24, 2013 at 1:41 PM, Hanumant Singh wrote: > > > >>As a general note on the patch, the pins and pin groups are defined by > >>the soc, I'm therefore not convinced that these should be configured > >>from the devicetree. It's at least not how it's done in other > >>platforms. > > > >Now we are three people sayin the same thing so it should > >be a good hint to the implementer :-) > > > > Ok i can switch to using pin groups defined in per soc files. > But in our case we have one soc going into different types of boards. > (atleast 3). In each of the boards the same external devices end up using > different pins. For ex camera on board 1 uses different pin group > then the same camera on board 2. Both having the same SOC. > So in this case the design would be to have all possible pin groups > for different boards enumerated in the same soc-pinctrl.c file? > > Also in this implementation I will have. > 1) pinctrl-msm.c => DT parsing and interface to framework. > 2) pinctrl-msm-tlmm.c => Register programming and pin types > supported by a particular TLMM pinmux version. It isn't clear to me what you are trying to separate out between 1) and 2). Seems like there should only be pinctrl-msm-tlmm.c. -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/