Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751737AbcD2IlD (ORCPT ); Fri, 29 Apr 2016 04:41:03 -0400 Received: from mail-oi0-f46.google.com ([209.85.218.46]:36599 "EHLO mail-oi0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751043AbcD2IlA (ORCPT ); Fri, 29 Apr 2016 04:41:00 -0400 MIME-Version: 1.0 In-Reply-To: References: Date: Fri, 29 Apr 2016 10:40:59 +0200 Message-ID: Subject: Re: [PATCH RESEND 1/2] pinctrl: ns2: add pinmux driver support for Broadcom NS2 SoC From: Linus Walleij To: Ray Jui Cc: Yendapally Reddy Dhananjaya Reddy , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Florian Fainelli , Ray Jui , Scott Branden , Catalin Marinas , Will Deacon , Pramod Kumar , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , bcm-kernel-feedback-list , "linux-arm-kernel@lists.infradead.org" , "linux-gpio@vger.kernel.org" , Paul Gortmaker Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1016 Lines: 33 On Mon, Apr 18, 2016 at 8:24 PM, Ray Jui wrote: > On 4/17/2016 8:34 PM, Yendapally Reddy Dhananjaya Reddy wrote: >>> >>> /* not all Iproc GPIO pins can be muxed individually */ >>> if (!chip->pinmux_is_supported) >>> return 0; > > > NS2 does not support GPIO pins to be muxed individually. The call to > iproc_gpio_request should be rejected for NS2 since > 'chip->pinmux_is_supported' is false. Aha, I see. > since NS2 can only support group based GPIO configuration, the > above functions will be rejected because "pinmux_is_supported" is false: > > chip->pinmux_is_supported = of_property_read_bool(dev->of_node, > "gpio-ranges"); > > Here, "gpio-ranges" should never be defined on NS2 DT files. Makes perfect sense. So for this hardware, muxing will always be done orthogonally (using some pinctrl hogs or similar for GPIO). I'm waiting for a version fixing the bool Kconfig issue, then I guess the driver is ready for inclusion. Yours, Linus Waleij