From patchwork Thu Sep 17 01:33:58 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Martinez Canillas X-Patchwork-Id: 518671 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 04BBA14017E for ; Thu, 17 Sep 2015 11:34:34 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753017AbbIQBeQ (ORCPT ); Wed, 16 Sep 2015 21:34:16 -0400 Received: from lists.s-osg.org ([54.187.51.154]:37902 "EHLO lists.s-osg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752813AbbIQBeP (ORCPT ); Wed, 16 Sep 2015 21:34:15 -0400 Received: from localhost.localdomain (209.51.23.95.dynamic.jazztel.es [95.23.51.209]) by lists.s-osg.org (Postfix) with ESMTPSA id 063E0462A0; Wed, 16 Sep 2015 18:34:12 -0700 (PDT) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Cc: linux-gpio@vger.kernel.org, Linus Walleij , Alexandre Courbot , devicetree@vger.kernel.org, Javier Martinez Canillas Subject: [PATCH] gpio: mention in DT binding doc that -gpio is also supported Date: Thu, 17 Sep 2015 03:33:58 +0200 Message-Id: <1442453638-14246-1-git-send-email-javier@osg.samsung.com> X-Mailer: git-send-email 2.4.3 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org The GPIO DT binding doc mentions that GPIO are mapped by defining a -gpios property in the consumer device's node but a -gpio sufix is also supported after commit: dd34c37aa3e8 ("gpio: of: Allow -gpio suffix for property names") Update the DT binding documentation to match the implementation. Signed-off-by: Javier Martinez Canillas --- Hello, The GPIO documentation was updated to mention that the -gpio sufix is also supported in patch https://lkml.org/lkml/2015/9/1/117 that already landed in Torvalds tree. I now noticed that the DT binding also only mentions -gpios so I'm posting this patch that adds -gpio to the DT binding documentation. Best regards, Javier Documentation/devicetree/bindings/gpio/gpio.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/gpio/gpio.txt b/Documentation/devicetree/bindings/gpio/gpio.txt index 5788d5cf1252..8db8c7bb96c1 100644 --- a/Documentation/devicetree/bindings/gpio/gpio.txt +++ b/Documentation/devicetree/bindings/gpio/gpio.txt @@ -13,10 +13,10 @@ properties, each containing a 'gpio-list': gpio-specifier : Array of #gpio-cells specifying specific gpio (controller specific) -GPIO properties should be named "[-]gpios", with being the purpose -of this GPIO for the device. While a non-existent is considered valid -for compatibility reasons (resolving to the "gpios" property), it is not allowed -for new bindings. +GPIO properties should be named "[-]gpios" or "[-]gpio" with +being the purpose of this GPIO for the device. While a non-existent is +considered valid for compatibility reasons (resolving to the "gpios" property), +it is not allowed for new bindings. GPIO properties can contain one or more GPIO phandles, but only in exceptional cases should they contain more than one. If your device uses several GPIOs with