From patchwork Sun Jan 21 12:38:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 10176959 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5A943600F5 for ; Sun, 21 Jan 2018 12:38:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4CD6B260CD for ; Sun, 21 Jan 2018 12:38:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 40FA326E3A; Sun, 21 Jan 2018 12:38:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B664D260CD for ; Sun, 21 Jan 2018 12:38:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751216AbeAUMi2 (ORCPT ); Sun, 21 Jan 2018 07:38:28 -0500 Received: from sauhun.de ([88.99.104.3]:40873 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751019AbeAUMi1 (ORCPT ); Sun, 21 Jan 2018 07:38:27 -0500 Received: from localhost (p54B33A7B.dip0.t-ipconnect.de [84.179.58.123]) by pokefinder.org (Postfix) with ESMTPSA id 6DF9A2C6D7B; Sun, 21 Jan 2018 13:38:26 +0100 (CET) From: Wolfram Sang To: linux-gpio@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, Geert Uytterhoeven , Wolfram Sang Subject: [PATCH v2] gpio: pca953x: add required properties to example in bindings Date: Sun, 21 Jan 2018 13:38:22 +0100 Message-Id: <20180121123822.3059-1-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.11.0 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The binding documentation was missing two required properties in the example. Fix it and add them also to the list of required properties. Signed-off-by: Wolfram Sang --- Changes since V1: * reworded text about the second cell Documentation/devicetree/bindings/gpio/gpio-pca953x.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/gpio/gpio-pca953x.txt b/Documentation/devicetree/bindings/gpio/gpio-pca953x.txt index 0d0158728f897b..9c60bfb2053c4c 100644 --- a/Documentation/devicetree/bindings/gpio/gpio-pca953x.txt +++ b/Documentation/devicetree/bindings/gpio/gpio-pca953x.txt @@ -30,6 +30,11 @@ Required properties: onnn,pca9654 exar,xra1202 +- gpio-controller: Marks the device node as a GPIO controller +- #gpio-cells: Must be 2. The first cell is the GPIO number and the second + cell specifies GPIO flags, as defined in . Note + that not all flags may be supported by the hardware or the driver. + Optional properties: - reset-gpios: GPIO specification for the RESET input. This is an active low signal to the PCA953x. @@ -44,4 +49,6 @@ Example: pinctrl-0 = <&pinctrl_pca9505>; interrupt-parent = <&gpio3>; interrupts = <23 IRQ_TYPE_LEVEL_LOW>; + gpio-controller; + #gpio-cells = <2>; };