From patchwork Wed Sep 5 13:26:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Whitchurch X-Patchwork-Id: 966391 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=axis.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 4254Gy64Pjz9sCt for ; Wed, 5 Sep 2018 23:26:34 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727621AbeIER4s (ORCPT ); Wed, 5 Sep 2018 13:56:48 -0400 Received: from bastet.se.axis.com ([195.60.68.11]:49711 "EHLO bastet.se.axis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726046AbeIER4s (ORCPT ); Wed, 5 Sep 2018 13:56:48 -0400 Received: from localhost (localhost [127.0.0.1]) by bastet.se.axis.com (Postfix) with ESMTP id C6ADB1844F; Wed, 5 Sep 2018 15:26:30 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at bastet.se.axis.com Received: from bastet.se.axis.com ([IPv6:::ffff:127.0.0.1]) by localhost (bastet.se.axis.com [::ffff:127.0.0.1]) (amavisd-new, port 10024) with LMTP id dnBWRS-cz9xd; Wed, 5 Sep 2018 15:26:30 +0200 (CEST) Received: from boulder03.se.axis.com (boulder03.se.axis.com [10.0.8.17]) by bastet.se.axis.com (Postfix) with ESMTPS id 2AF2618446; Wed, 5 Sep 2018 15:26:30 +0200 (CEST) Received: from boulder03.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 160131E084; Wed, 5 Sep 2018 15:26:30 +0200 (CEST) Received: from boulder03.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0A5B31E083; Wed, 5 Sep 2018 15:26:30 +0200 (CEST) Received: from seth.se.axis.com (unknown [10.0.2.172]) by boulder03.se.axis.com (Postfix) with ESMTP; Wed, 5 Sep 2018 15:26:30 +0200 (CEST) Received: from lnxartpec.se.axis.com (lnxartpec.se.axis.com [10.88.4.9]) by seth.se.axis.com (Postfix) with ESMTP id F1E752711; Wed, 5 Sep 2018 15:26:29 +0200 (CEST) Received: by lnxartpec.se.axis.com (Postfix, from userid 10564) id EB79D80926; Wed, 5 Sep 2018 15:26:29 +0200 (CEST) From: Vincent Whitchurch To: linus.walleij@linaro.org Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, Vincent Whitchurch Subject: [PATCH 2/2] dt-bindings: gpio: Add binding for gpio-mockup Date: Wed, 5 Sep 2018 15:26:18 +0200 Message-Id: <20180905132618.31274-2-vincent.whitchurch@axis.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180905132618.31274-1-vincent.whitchurch@axis.com> References: <20180905132618.31274-1-vincent.whitchurch@axis.com> X-TM-AS-GCONF: 00 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This is a dummy GPIO controller which can be used in place of the real hardware GPIO controller (for example, an external GPIO expander) before actual hardware is available. Signed-off-by: Vincent Whitchurch --- .../devicetree/bindings/gpio/gpio-mockup.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/gpio-mockup.txt diff --git a/Documentation/devicetree/bindings/gpio/gpio-mockup.txt b/Documentation/devicetree/bindings/gpio/gpio-mockup.txt new file mode 100644 index 000000000000..585f04e356fc --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/gpio-mockup.txt @@ -0,0 +1,22 @@ +Mockup GPIO controller bindings + +This creates a dummy GPIO controller which can be used for testing higher level +drivers or userspace before actual hardware is available. + +Required properties: +- compatible: Should contain "gpio-mockup" +- gpio-controller : Marks the device node as a gpio controller. +- #gpio-cells : Should be two. The first cell is the pin number and + the second cell is used to specify the gpio polarity: + 0 = active high + 1 = active low +- nr-gpios: The number of dummy GPIOs + +Example: + + gpio-mockup0 { + compatible = "gpio-mockup"; + nr-gpios = <32>; + gpio-controller; + #gpio-cells = <2>; + };