From patchwork Fri May 6 11:10:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Lamparter X-Patchwork-Id: 9032291 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 A455F9F39D for ; Fri, 6 May 2016 11:13:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D04B82037F for ; Fri, 6 May 2016 11:13:23 +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 E5452202EB for ; Fri, 6 May 2016 11:13:22 +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 1aydeq-0004Pk-F7; Fri, 06 May 2016 11:10:56 +0000 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aydeh-0004Kz-Qr for linux-arm-kernel@lists.infradead.org; Fri, 06 May 2016 11:10:48 +0000 Received: by mail-wm0-x241.google.com with SMTP id e201so8323089wme.2 for ; Fri, 06 May 2016 04:10:27 -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=NfkYaN90PG3K1whXKmjIxFsijrDNrQROB/gZZv89kJQ=; b=sZyX7LSAPb40IQYt70NmdLCV4/sjIcL1zlcBJlDKTsCsCQai5HBT9QCqHTttU7r1Rj ALkbhS8xD3gCKf+41EGFL1Qqbwy2k2g2fFKZvI9ABrKtlamKCgTjbQpO2yzE9KapimVI C6eTYuyrNeCcxT5Z6hRu3IC7Mm0+GCOO2RylSshQmGzRgNrjzf/u/5IHTuWXcYjH0moe 0soB1neHrISa/B3OFiE6dGyK2aSlrQ4dv1iSFi7o9reaJcMoRyEBM7+DD2fvd0RklSEc /KvPS7a2030uSXekISl5TWFghs6WpCqBpTesJahJmTdRAOMORSGI34wrZzbgUiPenI8p VX6Q== 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=NfkYaN90PG3K1whXKmjIxFsijrDNrQROB/gZZv89kJQ=; b=AYsurYpTxzjtvEA/43Na1wNJyozTvPRSgzJjA90y6atywLJ/391ZdxVyTLaiVKhcp0 N0RPgQDPE5oGNSRFdw+MPfaGzt47eN3un5VweL1uCFONVAd+8O4aw1FKVkJdU7szPVrq 8uWHksABcy/d2SPqOB5G8fGlMTj46rO6VvqZaL6DN3yQ54Y3s5NaEXViR3IafFIZBvgd hh0OSN4/iAOzK8hIm5PFWDPMaacx/w5z4N3cVLHLUnhDJrXSsez75zDnZ1CWsTKMwoyf kaYR9sXaIg3kVu50X8BA4l6WCg8xlTlaY/sy9Oa/UBqctr+UaJOF5msBdLMIfBfR5FU6 MEXw== X-Gm-Message-State: AOPr4FVW3FA4RfFgCpOapWCjq2tgJMNVQwqTbMVUuPC2/bTLFk00iiKHNtM3OMqeba+Bww== X-Received: by 10.194.163.229 with SMTP id yl5mr19522608wjb.6.1462533026061; Fri, 06 May 2016 04:10:26 -0700 (PDT) Received: from debian64.daheim (p5B2E6184.dip0.t-ipconnect.de. [91.46.97.132]) by smtp.googlemail.com with ESMTPSA id w9sm6146449wme.19.2016.05.06.04.10.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 06 May 2016 04:10:24 -0700 (PDT) Received: from chuck by debian64.daheim with local (Exim 4.87) (envelope-from ) id 1aydeJ-0006Cg-FR; Fri, 06 May 2016 13:10:23 +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 v7 1/3] gpio: dt-bindings: add wd,mbl-gpio bindings Date: Fri, 6 May 2016 13:10:19 +0200 Message-Id: <9bc9349d6e13d81c6200b0cd8fa20c76263043f6.1462372360.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-20160506_041048_027942_008A9D69 X-CRM114-Status: GOOD ( 17.20 ) 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; + };