Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754547Ab3FOUQV (ORCPT ); Sat, 15 Jun 2013 16:16:21 -0400 Received: from gloria.sntech.de ([95.129.55.99]:45893 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754226Ab3FOUQU (ORCPT ); Sat, 15 Jun 2013 16:16:20 -0400 From: Heiko =?iso-8859-1?q?St=FCbner?= To: Linus Walleij Subject: Re: [RFC] pinctrl: generic: Add DT bindings Date: Sat, 15 Jun 2013 22:16:13 +0200 User-Agent: KMail/1.13.7 (Linux/3.2.0-3-686-pae; KDE/4.8.4; i686; ; ) Cc: Laurent Pinchart , Grant Likely , Laurent Pinchart , "linux-kernel@vger.kernel.org" , "devicetree-discuss@lists.ozlabs.org" , James Hogan , "linux-sh@vger.kernel.org" References: <1370988237-30593-1-git-send-email-laurent.pinchart+renesas@ideasonboard.com> <2555796.PtkImJGaK8@avalon> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201306152216.14252.heiko@sntech.de> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1461 Lines: 51 Am Samstag, 15. Juni 2013, 21:56:05 schrieb Linus Walleij: > On Fri, Jun 14, 2013 at 12:39 AM, Laurent Pinchart > > wrote: > > mmcif_pins: mmcif { > > > > mux { > > > > renesas,groups = "mmc0_data8_0", "mmc0_ctrl_0"; > > renesas,function = "mmc0"; > > > > }; > > cfg { > > > > renesas,groups = "mmc0_data8_0"; > > renesas,pins = "PORT279"; > > bias-pull-up = <1>; > > If I understood your code correctly that last statement can *optionally* > be written like just: > > bias-pull-up; > > Without the parameter? > > I think that Heiko's implementation does this anyway. Yep, with the fixes-series from yesterday the bias-pull-* now have a better default value of <1>. so you can do bias-pull-up; which is then identical to the bias-pull-up = <1>; above (both are valid of course). Disable would the be either bias-disable; or bias-pull-up = <0>; A driver should probably handle both, as both are valid pinconf options or this. -- 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/