From patchwork Thu Oct 2 07:44:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 38269 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3AEA220BF9 for ; Thu, 2 Oct 2014 07:44:24 +0000 (UTC) Received: by mail-la0-f69.google.com with SMTP id q1sf820138lam.0 for ; Thu, 02 Oct 2014 00:44:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=nNk822XMcNIQ8JslMw0Cb5NCZnTNqKjMBOyO6QGZo3k=; b=ELtj2h7wZ/KuNU9ES25F6c3cxJTEdhvho1jZVO6RHTpRSLNukeMP2MpvVVZTwkfuIM jJ9UaCw2QqcD74du7eifIqd/fN/GJdT6tUipurIXiqXxYuYuwArU1dnZRDa/AL+uhEK7 WEULaesIEZuQGKa370pGwToIYiblvjk0RS2mbasaj8p06YxethOw+KpSpgZoZJ6jzJGC mwY+Hx+Sie6sUknQcP75ovwdVa01Nlpk/YWVFiLb6wvt4LP/FaoQRI/JJXdfVHwoPd6M VUAgoQ98l8+aIM7tdM6CROv1JjlMvOkCZzlNki6fvcb5Bl2IHCOYsqY4vU7UGlpP0Mpk IVEw== X-Gm-Message-State: ALoCoQk1DNbaCSfobA7OreqPHozOp/NhjG25kbsUk6zY6MeM0fVoK+tPeQ6cODVvrgu3Vd8AhJXa X-Received: by 10.180.76.230 with SMTP id n6mr306552wiw.0.1412235862976; Thu, 02 Oct 2014 00:44:22 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.42.171 with SMTP id p11ls210782lal.68.gmail; Thu, 02 Oct 2014 00:44:22 -0700 (PDT) X-Received: by 10.152.29.129 with SMTP id k1mr61556214lah.81.1412235862786; Thu, 02 Oct 2014 00:44:22 -0700 (PDT) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com [209.85.217.171]) by mx.google.com with ESMTPS id zu10si5232946lbb.80.2014.10.02.00.44.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 02 Oct 2014 00:44:22 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) client-ip=209.85.217.171; Received: by mail-lb0-f171.google.com with SMTP id z12so1775564lbi.16 for ; Thu, 02 Oct 2014 00:44:22 -0700 (PDT) X-Received: by 10.152.204.231 with SMTP id lb7mr60278920lac.44.1412235862593; Thu, 02 Oct 2014 00:44:22 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.130.169 with SMTP id of9csp10929lbb; Thu, 2 Oct 2014 00:44:21 -0700 (PDT) X-Received: by 10.68.197.65 with SMTP id is1mr83779848pbc.125.1412235861166; Thu, 02 Oct 2014 00:44:21 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id pa3si3166125pbc.59.2014.10.02.00.44.20 for ; Thu, 02 Oct 2014 00:44:21 -0700 (PDT) Received-SPF: none (google.com: devicetree-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751662AbaJBHoU (ORCPT + 5 others); Thu, 2 Oct 2014 03:44:20 -0400 Received: from mail-wi0-f173.google.com ([209.85.212.173]:35570 "EHLO mail-wi0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751448AbaJBHoT (ORCPT ); Thu, 2 Oct 2014 03:44:19 -0400 Received: by mail-wi0-f173.google.com with SMTP id bs8so3030438wib.0 for ; Thu, 02 Oct 2014 00:44:18 -0700 (PDT) X-Received: by 10.194.63.205 with SMTP id i13mr71022058wjs.74.1412235858396; Thu, 02 Oct 2014 00:44:18 -0700 (PDT) Received: from localhost.localdomain ([85.235.11.236]) by mx.google.com with ESMTPSA id ka3sm3664745wjc.3.2014.10.02.00.44.16 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Oct 2014 00:44:17 -0700 (PDT) From: Linus Walleij To: devicetree@vger.kernel.org, Grant Likely , Rob Herring Cc: linux-arm-kernel@lists.infradead.org, Linus Walleij Subject: [PATCH] pinctrl: specify bindings for pins and groups Date: Thu, 2 Oct 2014 09:44:15 +0200 Message-Id: <1412235855-19418-1-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 1.9.3 Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: linus.walleij@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Pin configurations can be per-pin or per-group. Make sure that the per-group case is covered by the bindings. Signed-off-by: Linus Walleij --- .../devicetree/bindings/pinctrl/pinctrl-bindings.txt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt b/Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt index 4f5a0c3af8b9..98eb94d91a1c 100644 --- a/Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt +++ b/Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt @@ -157,7 +157,12 @@ structure of the DT nodes that contain these properties. Supported generic properties are: pins - the list of pins that properties in the node - apply to + apply to (either this or "group" has to be + specified) +group - the group to apply the properties to, if the driver + supports configuration of whole groups rather than + individual pins (either this or "pins" has to be + specified) bias-disable - disable any pin bias bias-high-impedance - high impedance mode ("third-state", "floating") bias-bus-hold - latch weakly @@ -190,6 +195,10 @@ state_1_node_a { pins = "GPIO1_AJ3", "GPIO3_AH3"; /* RTS+TXD */ output-high; }; +state_2_node_a { + group = "foo-group"; + bias-pull-up; +}; Some of the generic properties take arguments. For those that do, the arguments are described below.