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: 619648 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3r2m6f367gz9snm for ; Sun, 8 May 2016 23:08:42 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=googlemail.com header.i=@googlemail.com header.b=0GHEu8Pb; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750823AbcEHNId (ORCPT ); Sun, 8 May 2016 09:08:33 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:35378 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750744AbcEHNIb (ORCPT ); Sun, 8 May 2016 09:08:31 -0400 Received: by mail-wm0-f68.google.com with SMTP id e201so16341912wme.2; Sun, 08 May 2016 06:08:30 -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=UUpMeNT/C3g6oBX4HFsY9SV5wu759Ru98gPvCO3xRrROsfRqV2Z+vjamNz+/5q/4BN edXjFuzjrEDdyFB3gh2Y3OoNhBgG/eVPEZ+6MhZLT/Yg2EHY2+/cgwbdJuULZlhKPPuS GyuWzW3pYARkdT4CuCpSBBt7gRaFCEnpcTXjBjHbNMPMiN1bXlKG99PsTQhrilJtLWHh Fj41v7p3hS5JI9tAvxR9HJGejok5QrUV04qzreVFYlHmeKoy5H+2xl+fkWlh5L0OJ10r PludUzOhe/A+qAs4o9ntwcJmIOAdBJIaNlolXTGXN9qR5KoVu1UvVQNrWRymCUswkbQ8 jf/g== X-Gm-Message-State: AOPr4FUrpnSuVr0SxbX9d4c+9DPGWx0YCrKad0qzhcTYbOOsW4ieCi0QSBr8G2P/ddXc6A== 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 Cc: Christian Lamparter , =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= , Kumar Gala , Alexander Shiyan , Ian Campbell , Mark Rutland , Pawel Moll , Rob Herring , Alexandre Courbot , Linus Walleij , Andy Shevchenko 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: Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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; + };