From patchwork Sun May 8 13:08:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Lamparter X-Patchwork-Id: 9038931 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 1BF839F6FA for ; Sun, 8 May 2016 13:10:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 371312011B for ; Sun, 8 May 2016 13:10:36 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6342C20120 for ; Sun, 8 May 2016 13:10:35 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1azOS6-0002yH-W4; Sun, 08 May 2016 13:08:55 +0000 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1azOS3-0002wB-DL for linux-arm-kernel@lists.infradead.org; Sun, 08 May 2016 13:08:52 +0000 Received: by mail-wm0-x244.google.com with SMTP id n129so16290689wmn.1 for ; Sun, 08 May 2016 06:08:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=d4B/tXUNsH6qhyiZoW4k5BdUDFX42h7KZRtEnazWwAU=; b=0GHEu8Pbrw6BYGK0B5Ul8odSkcak/ygyTHrmlRUWX4SZPGNfCn1pK6DL+ghj7rwf56 pSihTHKbQgHSjpeuIfAiuIrtpD9K10weVZc4PfLO+1S2MrjiwkU8mwhnpRUtBy8E7gMT 1JZ137mvdJ7KgKjV5zfJw8u+YVGTlvB/eJ3B/XrQeeE8iI8haQABuu3v6hALrOBQ++Vf 1SXsU3IgUorwuTxYChqvsvnBDcDivI2bM/ZxZbw/RBbShbdu7bYRayJC19MULytqaHg3 W5NgtJOyhFga4U4ymfZNaIuA77wOaQbzW6hOHBb5XN4AzHOv4EI7d/anWcUZAUABCFYM P/DQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=d4B/tXUNsH6qhyiZoW4k5BdUDFX42h7KZRtEnazWwAU=; b=P5h+LfwRhhAyVOa702RuXeZ+Nnmzxnai0AvEjlCkDVt8podKtc8Itc4jS0sj4S4E69 5d8Tp6bR5k1dg8L8o63RJryxkE/4PcNBVeGUlnNERgD5opCcycI58kwXa+vQezCRDyLA 2cyfbVavaaheN+TzXXYt+n343usgfMriGLue4ZLwuwy/nU4YrCD8e3E9Pm17LzeekWpp OrM0lkvNfhuabcrSUL5YhKzsEehAQKgggzIbJCciBd7StVqd8/w8NOeB3s7kJhHN/kFv XjFueyTNFi+FFuVaKFcrzCRLhAlPkppZZzoHHypAsdj9fV2P0Qhhzl6DL31Nkfk2NJlM dI6w== X-Gm-Message-State: AOPr4FUUZ5UKICZaICIFzVjLtUG92+hl1yM36T72bIMHkz76hC8rigm6zLAg71gsL7/Ayg== X-Received: by 10.195.17.166 with SMTP id gf6mr28605495wjd.124.1462712910115; Sun, 08 May 2016 06:08:30 -0700 (PDT) Received: from debian64.daheim (pD9F880DD.dip0.t-ipconnect.de. [217.248.128.221]) by smtp.googlemail.com with ESMTPSA id g197sm18917333wme.15.2016.05.08.06.08.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 08 May 2016 06:08:29 -0700 (PDT) Received: from chuck by debian64.daheim with local (Exim 4.87) (envelope-from ) id 1azORf-0003kv-1Y; Sun, 08 May 2016 15:08:27 +0200 From: Christian Lamparter To: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v8 1/3] gpio: dt-bindings: add wd,mbl-gpio bindings Date: Sun, 8 May 2016 15:08:22 +0200 Message-Id: <9bc9349d6e13d81c6200b0cd8fa20c76263043f6.1462543458.git.chunkeey@googlemail.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: References: In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160508_060851_637204_53FA1F78 X-CRM114-Status: GOOD ( 16.96 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Alexandre Courbot , =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= , Pawel Moll , Alexander Shiyan , Ian Campbell , Linus Walleij , Andy Shevchenko , Rob Herring , Kumar Gala , Christian Lamparter MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-6.2 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds the device tree bindings for the Western Digital's MyBook Live memory-mapped GPIO controllers. The gpios will be supported by gpio-mmio code of the GPIO generic library. Acked-by: Rob Herring Signed-off-by: Christian Lamparter --- .../devicetree/bindings/gpio/wd,mbl-gpio.txt | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/wd,mbl-gpio.txt diff --git a/Documentation/devicetree/bindings/gpio/wd,mbl-gpio.txt b/Documentation/devicetree/bindings/gpio/wd,mbl-gpio.txt new file mode 100644 index 0000000..038c3a6 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/wd,mbl-gpio.txt @@ -0,0 +1,38 @@ +Bindings for the Western Digital's MyBook Live memory-mapped GPIO controllers. + +The Western Digital MyBook Live has two memory-mapped GPIO controllers. +Both GPIO controller only have a single 8-bit data register, where GPIO +state can be read and/or written. + +Required properties: + - compatible: should be "wd,mbl-gpio" + - reg-names: must contain + "dat" - data register + - reg: address + size pairs describing the GPIO register sets; + order must correspond with the order of entries in reg-names + - #gpio-cells: must be set to 2. The first cell is the pin number and + the second cell is used to specify the gpio polarity: + 0 = active high + 1 = active low + - gpio-controller: Marks the device node as a gpio controller. + +Optional properties: + - no-output: GPIOs are read-only. + +Examples: + gpio0: gpio0@e0000000 { + compatible = "wd,mbl-gpio"; + reg-names = "dat"; + reg = <0xe0000000 0x1>; + #gpio-cells = <2>; + gpio-controller; + }; + + gpio1: gpio1@e0100000 { + compatible = "wd,mbl-gpio"; + reg-names = "dat"; + reg = <0xe0100000 0x1>; + #gpio-cells = <2>; + gpio-controller; + no-output; + };