From patchwork Sun May 1 12:18:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Lamparter X-Patchwork-Id: 617159 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 3qyRLz3wXsz9t4R for ; Sun, 1 May 2016 22:19:23 +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=MosCQxJs; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752614AbcEAMSx (ORCPT ); Sun, 1 May 2016 08:18:53 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:36694 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752436AbcEAMSu (ORCPT ); Sun, 1 May 2016 08:18:50 -0400 Received: by mail-wm0-f65.google.com with SMTP id w143so13193212wmw.3; Sun, 01 May 2016 05:18:49 -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=Iva0c/lHbX3NdUgNmOb7CsQ0cziczHrHQltw/7XbdsE=; b=MosCQxJsuNLcTk5tYrdpcv13GBhRzYeaBQBlU4prS2ORpam7leOlV3tVz/lqzdUdHJ wG4P6jWoe/HYEUjQl9w0HKE2dVI/uNiEWrLssCjxPwF91t6EiBEgX+WvVJrKIuNaC9+5 PNmqocmikdZi1IUjynY8+x5QlNRyHnMn1ZO8xS0mlDKJD9d4vVwosi8IPhdS2FwRQgqt kkR8k6hWztMhOs+rq4nxED9ImYAYMRZMwjuDGIfVvTuQ/Yvf82HPHxoexqW4TWhUvFaB +ht7d8sK/AvgoYbzQj+CNpwSpi6ySSvgf13ImTHXTHZQMco+y59bMvnmSjT0gFfrOG6N 1Baw== 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=Iva0c/lHbX3NdUgNmOb7CsQ0cziczHrHQltw/7XbdsE=; b=lJSk8BhhD/LkooI5OXb91VJI5xHMo+IzBFGBHT9qbPDfdHRhFHw1qat/pKOENvXPav nAicf9PAYBXIsKviqROUpfdRw32L88FO2jXdx5HgEWghJluVPEgePvPR3XiHJ5B7SyZz 8tIvCO/GnFjD5XibsH8wkP34IWOzzaTug/cbooLykr69FA40bswRkGyPVT5Mloor+dQf 7Wl++Y59RVskPhwexamMet4B20ia4uGebB8NDbS2pKyhdH35wn5MEIz2wdL8hc8lNnwM QlK2KqfM9RIG3YIogDBt+d0H9ju53rie0gS8JJSBaIvOgPev2rWnnGoU+VQq1bLtPhHZ +zMw== X-Gm-Message-State: AOPr4FUCHNsCvokf2ZeXCE4TpUDS7cgQTGWWGFtvnIYZ62yI4/lbOc1D6hOkQ/MIQJ+ibw== X-Received: by 10.28.90.65 with SMTP id o62mr13492165wmb.16.1462105128909; Sun, 01 May 2016 05:18:48 -0700 (PDT) Received: from debian64.daheim (p5B2E73D3.dip0.t-ipconnect.de. [91.46.115.211]) by smtp.googlemail.com with ESMTPSA id jp2sm24640811wjc.16.2016.05.01.05.18.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 01 May 2016 05:18:47 -0700 (PDT) Received: from chuck by debian64.daheim with local (Exim 4.87) (envelope-from ) id 1awqKj-00062K-Vl; Sun, 01 May 2016 14:18:46 +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: [RFC v6 1/3] gpio: dt-bindings: add wd,mbl-gpio bindings Date: Sun, 1 May 2016 14:18:37 +0200 Message-Id: <103bf8fceb426a9c3b09641ea989955e3ec1c7d4.1462104492.git.chunkeey@googlemail.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@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. Signed-off-by: Christian Lamparter Acked-by: Rob Herring --- .../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; + };