diff options
author | Haojian Zhuang <haojian.zhuang@gmail.com> | 2012-04-27 04:21:08 -0400 |
---|---|---|
committer | Haojian Zhuang <haojian.zhuang@gmail.com> | 2012-05-05 04:40:08 -0400 |
commit | ace1297f7222ec5d6a33f41e792a21e999551924 (patch) | |
tree | f7323c16a448dbd3b9e5b1e8ffb1b16da0c6b9b0 /Documentation/devicetree/bindings/i2c/mrvl-i2c.txt | |
parent | ff290fc3ed7c4f451ea029190624cff692f028a5 (diff) |
Documentation: update docs for mmp dt
Append interrupt controller and timer document for mmp. Updates
documents for gpio and i2c.
Signed-off-by: Haojian Zhuang <haojian.zhuang@gmail.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'Documentation/devicetree/bindings/i2c/mrvl-i2c.txt')
-rw-r--r-- | Documentation/devicetree/bindings/i2c/mrvl-i2c.txt | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/Documentation/devicetree/bindings/i2c/mrvl-i2c.txt b/Documentation/devicetree/bindings/i2c/mrvl-i2c.txt index 071eb3caae91..b891ee218354 100644 --- a/Documentation/devicetree/bindings/i2c/mrvl-i2c.txt +++ b/Documentation/devicetree/bindings/i2c/mrvl-i2c.txt | |||
@@ -3,34 +3,31 @@ | |||
3 | Required properties : | 3 | Required properties : |
4 | 4 | ||
5 | - reg : Offset and length of the register set for the device | 5 | - reg : Offset and length of the register set for the device |
6 | - compatible : should be "mrvl,mmp-twsi" where CHIP is the name of a | 6 | - compatible : should be "mrvl,mmp-twsi" where mmp is the name of a |
7 | compatible processor, e.g. pxa168, pxa910, mmp2, mmp3. | 7 | compatible processor, e.g. pxa168, pxa910, mmp2, mmp3. |
8 | For the pxa2xx/pxa3xx, an additional node "mrvl,pxa-i2c" is required | 8 | For the pxa2xx/pxa3xx, an additional node "mrvl,pxa-i2c" is required |
9 | as shown in the example below. | 9 | as shown in the example below. |
10 | 10 | ||
11 | Recommended properties : | 11 | Recommended properties : |
12 | 12 | ||
13 | - interrupts : <a b> where a is the interrupt number and b is a | 13 | - interrupts : the interrupt number |
14 | field that represents an encoding of the sense and level | ||
15 | information for the interrupt. This should be encoded based on | ||
16 | the information in section 2) depending on the type of interrupt | ||
17 | controller you have. | ||
18 | - interrupt-parent : the phandle for the interrupt controller that | 14 | - interrupt-parent : the phandle for the interrupt controller that |
19 | services interrupts for this device. | 15 | services interrupts for this device. If the parent is the default |
16 | interrupt controller in device tree, it could be ignored. | ||
20 | - mrvl,i2c-polling : Disable interrupt of i2c controller. Polling | 17 | - mrvl,i2c-polling : Disable interrupt of i2c controller. Polling |
21 | status register of i2c controller instead. | 18 | status register of i2c controller instead. |
22 | - mrvl,i2c-fast-mode : Enable fast mode of i2c controller. | 19 | - mrvl,i2c-fast-mode : Enable fast mode of i2c controller. |
23 | 20 | ||
24 | Examples: | 21 | Examples: |
25 | twsi1: i2c@d4011000 { | 22 | twsi1: i2c@d4011000 { |
26 | compatible = "mrvl,mmp-twsi", "mrvl,pxa-i2c"; | 23 | compatible = "mrvl,mmp-twsi"; |
27 | reg = <0xd4011000 0x1000>; | 24 | reg = <0xd4011000 0x1000>; |
28 | interrupts = <7>; | 25 | interrupts = <7>; |
29 | mrvl,i2c-fast-mode; | 26 | mrvl,i2c-fast-mode; |
30 | }; | 27 | }; |
31 | 28 | ||
32 | twsi2: i2c@d4025000 { | 29 | twsi2: i2c@d4025000 { |
33 | compatible = "mrvl,mmp-twsi", "mrvl,pxa-i2c"; | 30 | compatible = "mrvl,mmp-twsi"; |
34 | reg = <0xd4025000 0x1000>; | 31 | reg = <0xd4025000 0x1000>; |
35 | interrupts = <58>; | 32 | interrupts = <58>; |
36 | }; | 33 | }; |