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: 8988691 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 872269F372 for ; Sun, 1 May 2016 12:20:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B105220295 for ; Sun, 1 May 2016 12:20:57 +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 CC987202A1 for ; Sun, 1 May 2016 12:20:56 +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 1awqLB-0000pw-5V; Sun, 01 May 2016 12:19:13 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1awqL8-0000n4-73 for linux-arm-kernel@lists.infradead.org; Sun, 01 May 2016 12:19:10 +0000 Received: by mail-wm0-x243.google.com with SMTP id w143so13193209wmw.3 for ; Sun, 01 May 2016 05:18:50 -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=RwlONFAe7rB83RwXY6TMUCtcjituYwHSk8KD1r9QYC61PcVokb44cmbK50A+8km5Cr DUHG4Et4++KmTizkbPuS7j/wIpDcnh00ykhXuZbr/vF7z1AVYiQKjnMP+hZnMThNPb4o 1Q9FgTo68LcLUAUZK4GV1a9xZ7RzaLbl+jjUAgdRAl6D9e4hpIXDG4cTPbNZm3WygRJ5 3GDNuIaXUi8oRKYK9JctDkt6zhTbGuAkUWZKtgtLx+ZuOCxMVqyy8RlShhJHesI7moAH z3rsB67GdyS/Y0+3XZmJRv4SrIqZb9RWBOZJbK94L3mkEGgsyLdfdt6Z4Hg8vh+CIbnU I0gA== X-Gm-Message-State: AOPr4FWg9duk+rkbnq2Cw7/oRer1aLl7DStYUhE9K6vp578UnrisBN2RabrnOUktWww4jg== 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 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: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160501_051910_411881_EE490AA6 X-CRM114-Status: GOOD ( 16.76 ) 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=-5.1 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. 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; + };