From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761853AbcJ1Uxp (ORCPT ); Fri, 28 Oct 2016 16:53:45 -0400 Received: from mail-pf0-f170.google.com ([209.85.192.170]:36840 "EHLO mail-pf0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755922AbcJ1Uxn (ORCPT ); Fri, 28 Oct 2016 16:53:43 -0400 From: Kevin Hilman To: David Lechner Cc: Sekhar Nori , Rob Herring , Mark Rutland , Axel Haslam , Sergei Shtylyov , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 4/5] ARM: DTS: da850: Add cfgchip syscon node Organization: BayLibre References: <1477451211-31979-1-git-send-email-david@lechnology.com> <1477451211-31979-5-git-send-email-david@lechnology.com> <09eb61b9-d66e-838e-2411-d787fda65096@ti.com> <8f57109a-a6c6-1559-7195-2a1bc5ad66c3@lechnology.com> Date: Fri, 28 Oct 2016 13:53:40 -0700 In-Reply-To: <8f57109a-a6c6-1559-7195-2a1bc5ad66c3@lechnology.com> (David Lechner's message of "Fri, 28 Oct 2016 12:24:06 -0500") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org David Lechner writes: > On 10/28/2016 12:08 PM, Kevin Hilman wrote: >> Sekhar Nori writes: >> >>> On Wednesday 26 October 2016 09:38 PM, David Lechner wrote: >>>> On 10/25/2016 10:06 PM, David Lechner wrote: >>>>> Add a syscon node for the SoC CFGCHIPn registers. This is needed for >>>>> the new usb phy driver. >>>>> >>>>> Signed-off-by: David Lechner >>>>> --- >>>>> arch/arm/boot/dts/da850.dtsi | 4 ++++ >>>>> 1 file changed, 4 insertions(+) >>>>> >>>>> diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi >>>>> index f79e1b9..6bbf20d 100644 >>>>> --- a/arch/arm/boot/dts/da850.dtsi >>>>> +++ b/arch/arm/boot/dts/da850.dtsi >>>>> @@ -188,6 +188,10 @@ >>>>> }; >>>>> >>>>> }; >>>>> + cfgchip: cfgchip@1417c { >>>> >>>> I wonder if there is a more generic name instead of cfgchip@. Is there a >>>> preferred generic name for syscon nodes? >>> >>> I did not find anything in ePAPR, but chip-controller might be more >>> appropriate. >>> >>>> >>>>> + compatible = "ti,da830-cfgchip", "syscon"; >>> >>> Looks like we need "simple-mfd" too in the compatible list? >>> >>> I think we can also fold patch 5/5 into this patch and add the cfgchip >>> along with USB phy child node included. >>> >>> If you respin the patch, I can drop 4/5 and 5/5 that I have queued and >>> included the updated patch instead. >> >> Sekhar, what's your opinion of having this syscon just for CFGCHIP* vs >> a single syscon for the whole SYSCFG0 region. >> >> The drivers/bus driver from Bartosz is also using SYSCFG0 registers, and >> proposing a sysconf ro this region, but it will need to exclude the >> CFGCHIPn registers if we also have this syscon. > > What about the pinmux registers, which are already being used > separately too? I guess I/we need to have a closer look at how these are actually shared and decide if there are really overlapping users. here are several different registers packed into this region, but it may be the case that there really isn't any overlapping usage (e.g. pinmux vs. PHY vs bus priorities, etc.) >> >> I tend to think we should just have one for the whole SYSCFG0 which >> this series could use. >> >> Unfortunately, the PHY driver is already merged and it references the >> syscon by compatible. The PHY driver should probably be fixed to find >> its syscon by phandle, and then maybe we could move to a single syscon >> for SYSCFG0? > > I agree that this should be change, but I was thinking we should use > syscon_node_to_regmap(np->parent) since the phy node should be a child > of the syscon node. Even better. Kevin From mboxrd@z Thu Jan 1 00:00:00 1970 From: khilman@baylibre.com (Kevin Hilman) Date: Fri, 28 Oct 2016 13:53:40 -0700 Subject: [PATCH v6 4/5] ARM: DTS: da850: Add cfgchip syscon node In-Reply-To: <8f57109a-a6c6-1559-7195-2a1bc5ad66c3@lechnology.com> (David Lechner's message of "Fri, 28 Oct 2016 12:24:06 -0500") References: <1477451211-31979-1-git-send-email-david@lechnology.com> <1477451211-31979-5-git-send-email-david@lechnology.com> <09eb61b9-d66e-838e-2411-d787fda65096@ti.com> <8f57109a-a6c6-1559-7195-2a1bc5ad66c3@lechnology.com> Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org David Lechner writes: > On 10/28/2016 12:08 PM, Kevin Hilman wrote: >> Sekhar Nori writes: >> >>> On Wednesday 26 October 2016 09:38 PM, David Lechner wrote: >>>> On 10/25/2016 10:06 PM, David Lechner wrote: >>>>> Add a syscon node for the SoC CFGCHIPn registers. This is needed for >>>>> the new usb phy driver. >>>>> >>>>> Signed-off-by: David Lechner >>>>> --- >>>>> arch/arm/boot/dts/da850.dtsi | 4 ++++ >>>>> 1 file changed, 4 insertions(+) >>>>> >>>>> diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi >>>>> index f79e1b9..6bbf20d 100644 >>>>> --- a/arch/arm/boot/dts/da850.dtsi >>>>> +++ b/arch/arm/boot/dts/da850.dtsi >>>>> @@ -188,6 +188,10 @@ >>>>> }; >>>>> >>>>> }; >>>>> + cfgchip: cfgchip at 1417c { >>>> >>>> I wonder if there is a more generic name instead of cfgchip at . Is there a >>>> preferred generic name for syscon nodes? >>> >>> I did not find anything in ePAPR, but chip-controller might be more >>> appropriate. >>> >>>> >>>>> + compatible = "ti,da830-cfgchip", "syscon"; >>> >>> Looks like we need "simple-mfd" too in the compatible list? >>> >>> I think we can also fold patch 5/5 into this patch and add the cfgchip >>> along with USB phy child node included. >>> >>> If you respin the patch, I can drop 4/5 and 5/5 that I have queued and >>> included the updated patch instead. >> >> Sekhar, what's your opinion of having this syscon just for CFGCHIP* vs >> a single syscon for the whole SYSCFG0 region. >> >> The drivers/bus driver from Bartosz is also using SYSCFG0 registers, and >> proposing a sysconf ro this region, but it will need to exclude the >> CFGCHIPn registers if we also have this syscon. > > What about the pinmux registers, which are already being used > separately too? I guess I/we need to have a closer look at how these are actually shared and decide if there are really overlapping users. here are several different registers packed into this region, but it may be the case that there really isn't any overlapping usage (e.g. pinmux vs. PHY vs bus priorities, etc.) >> >> I tend to think we should just have one for the whole SYSCFG0 which >> this series could use. >> >> Unfortunately, the PHY driver is already merged and it references the >> syscon by compatible. The PHY driver should probably be fixed to find >> its syscon by phandle, and then maybe we could move to a single syscon >> for SYSCFG0? > > I agree that this should be change, but I was thinking we should use > syscon_node_to_regmap(np->parent) since the phy node should be a child > of the syscon node. Even better. Kevin