From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko =?iso-8859-1?q?St=FCbner?= Subject: Re: [RFC] pinctrl: generic: Add DT bindings Date: Sat, 15 Jun 2013 22:16:13 +0200 Message-ID: <201306152216.14252.heiko@sntech.de> References: <1370988237-30593-1-git-send-email-laurent.pinchart+renesas@ideasonboard.com> <2555796.PtkImJGaK8@avalon> Mime-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-sh-owner@vger.kernel.org To: Linus Walleij Cc: Laurent Pinchart , Grant Likely , Laurent Pinchart , "linux-kernel@vger.kernel.org" , "devicetree-discuss@lists.ozlabs.org" , James Hogan , "linux-sh@vger.kernel.org" List-Id: devicetree@vger.kernel.org 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.