Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1391800
| From | Christian Lamparter <chunkeey@googlemail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [RFC v6 1/3] gpio: dt-bindings: add wd,mbl-gpio bindings |
| Date | 2016-05-01 14:20 +0200 |
| Message-ID | <rtYvU-YB-15@gated-at.bofh.it> (permalink) |
| References | <rtYvU-YB-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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 <chunkeey@googlemail.com>
---
.../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;
+ };
--
2.8.1
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[RFC v6 0/3] gpio: add DT support for memory-mapped GPIOs Christian Lamparter <chunkeey@googlemail.com> - 2016-05-01 14:20 +0200
[RFC v6 1/3] gpio: dt-bindings: add wd,mbl-gpio bindings Christian Lamparter <chunkeey@googlemail.com> - 2016-05-01 14:20 +0200
Re: [RFC v6 1/3] gpio: dt-bindings: add wd,mbl-gpio bindings Rob Herring <robh@kernel.org> - 2016-05-04 04:30 +0200
Re: [RFC v6 1/3] gpio: dt-bindings: add wd,mbl-gpio bindings Christian Lamparter <chunkeey@googlemail.com> - 2016-05-04 07:00 +0200
Re: [RFC v6 1/3] gpio: dt-bindings: add wd,mbl-gpio bindings Rob Herring <robh@kernel.org> - 2016-05-04 14:40 +0200
[RFC v6 3/3] gpio: move clps711x, moxart, ts4800 and gpio-ge into gpio-mmio Christian Lamparter <chunkeey@googlemail.com> - 2016-05-01 14:20 +0200
csiph-web