From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753556Ab3KEAEW (ORCPT ); Mon, 4 Nov 2013 19:04:22 -0500 Received: from avon.wwwdotorg.org ([70.85.31.133]:54827 "EHLO avon.wwwdotorg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753167Ab3KEAEU (ORCPT ); Mon, 4 Nov 2013 19:04:20 -0500 Message-ID: <527835FE.2030102@wwwdotorg.org> Date: Mon, 04 Nov 2013 17:04:14 -0700 From: Stephen Warren User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: =?ISO-8859-1?Q?Heiko_St=FCbner?= , Linus Walleij CC: Sherman Yin , Laxman Dewangan , Mark Rutland , "devicetree@vger.kernel.org" , Christian Daudt , Russell King , Pawel Moll , Ian Campbell , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Rob Herring , bcm-kernel-feedback-list , Rob Landley , Grant Likely , Matt Porter , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCH 3/4] ARM: pinctrl: Add Broadcom Capri pinctrl driver References: <1380846199-12829-1-git-send-email-syin@broadcom.com> <051069C10411E24D9749790C498526FA1BE0B7D7@SJEXCHMB12.corp.ad.broadcom.com> <201311050026.56321.heiko@sntech.de> In-Reply-To: <201311050026.56321.heiko@sntech.de> X-Enigmail-Version: 1.5.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/04/2013 04:26 PM, Heiko Stübner wrote: > I remember we had a discussion about how things like bias-disable explicitly > shouldn't have a value, when they are represented in the list-format: > > pcfg_pull_none: pcfg_pull_none { > bias-disable; > }; > > so a bias-disable = <1> was explicitly "forbidden" [for a lack of a better > word]. And it was similar for other options, the parameter not meant to be > indicating if they are active but really only setting the "strength" or so. Pure Boolean values should be represented as a valueless property. If the property is present, the value is true, otherwise false. However, pinctrl bindings often don't represent Boolean values, but rather tri-states, with the following values: * Don't touch this configuration option at all (missing) * Enable the option (<1>) * Disable the option (<0>) The reason for using tri-states being that you might want to write: xxx1 { pins = , , ; function = <...>; // this node doesn't affect pullup } xxx2 { pins = , ; // this node doesn't affect function pull-up = <1>; // change, and enable } xxx3 { pins = ; // this node doesn't affect function pull-up = <0>; // change, and disable }