From patchwork Mon Sep 5 06:20:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vijay Kumar X-Patchwork-Id: 665634 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 3sSKt3120Jz9sDG for ; Mon, 5 Sep 2016 16:42:51 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754842AbcIEGmr (ORCPT ); Mon, 5 Sep 2016 02:42:47 -0400 Received: from li2-213.members.linode.com ([69.56.173.213]:36301 "EHLO mail.zilogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754795AbcIEGmr (ORCPT ); Mon, 5 Sep 2016 02:42:47 -0400 X-Greylist: delayed 1310 seconds by postgrey-1.27 at vger.kernel.org; Mon, 05 Sep 2016 02:42:47 EDT Received: from [192.168.0.103] (unknown [183.83.48.159]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.zilogic.com (Postfix) with ESMTP id E20571057B; Mon, 5 Sep 2016 02:20:42 -0400 (EDT) Message-ID: <57CD0EB8.1030500@zilogic.com> Date: Mon, 05 Sep 2016 11:50:40 +0530 From: Vijay Kumar User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20110307 Icedove/3.0.11 MIME-Version: 1.0 To: Robert Jarzmik CC: linux-gpio@vger.kernel.org Subject: [PATCH] Fix no. of gpio cells in the pxa gpio binding doucmentation Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Fix the no. of gpio cells in pxa gpio binding documentation. The no. of gpio cells for the pxa gpio is actually 2. But is incorrectly specified as 1, in the binding documentation. From the driver code, the second cell specifies the standard flags as described in gpio.txt. Signed-off-by: Vijay Kumar B. --- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: linux-4.7.1/Documentation/devicetree/bindings/gpio/mrvl-gpio.txt =================================================================== --- linux-4.7.1.orig/Documentation/devicetree/bindings/gpio/mrvl-gpio.txt +++ linux-4.7.1/Documentation/devicetree/bindings/gpio/mrvl-gpio.txt @@ -17,7 +17,9 @@ Required properties: - #interrupt-cells: Specifies the number of cells needed to encode an interrupt source. - gpio-controller : Marks the device node as a gpio controller. -- #gpio-cells : Should be one. It is the pin number. +- #gpio-cells : Should be two. The first cell is the pin number and + the second cell is used to specify flags. See gpio.txt for possible + values. Example for a MMP platform: @@ -27,7 +29,7 @@ Example for a MMP platform: interrupts = <49>; interrupt-names = "gpio_mux"; gpio-controller; - #gpio-cells = <1>; + #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <1>; };