Thomas Petazzoni | f7d12ef | 2012-11-15 16:47:58 +0100 | [diff] [blame] | 1 | * Marvell XOR engines |
| 2 | |
| 3 | Required properties: |
Marcin Wojtas | ac5f0f3 | 2016-04-29 09:49:07 +0200 | [diff] [blame] | 4 | - compatible: Should be one of the following: |
| 5 | - "marvell,orion-xor" |
| 6 | - "marvell,armada-380-xor" |
| 7 | - "marvell,armada-3700-xor". |
Thomas Petazzoni | f7d12ef | 2012-11-15 16:47:58 +0100 | [diff] [blame] | 8 | - reg: Should contain registers location and length (two sets) |
| 9 | the first set is the low registers, the second set the high |
| 10 | registers for the XOR engine. |
| 11 | - clocks: pointer to the reference clock |
| 12 | |
| 13 | The DT node must also contains sub-nodes for each XOR channel that the |
| 14 | XOR engine has. Those sub-nodes have the following required |
| 15 | properties: |
| 16 | - interrupts: interrupt of the XOR channel |
| 17 | |
Thomas Petazzoni | 6d8f7ab | 2015-07-08 16:28:16 +0200 | [diff] [blame] | 18 | The sub-nodes used to contain one or several of the following |
| 19 | properties, but they are now deprecated: |
Thomas Petazzoni | f7d12ef | 2012-11-15 16:47:58 +0100 | [diff] [blame] | 20 | - dmacap,memcpy to indicate that the XOR channel is capable of memcpy operations |
| 21 | - dmacap,memset to indicate that the XOR channel is capable of memset operations |
| 22 | - dmacap,xor to indicate that the XOR channel is capable of xor operations |
Thomas Petazzoni | 6d8f7ab | 2015-07-08 16:28:16 +0200 | [diff] [blame] | 23 | - dmacap,interrupt to indicate that the XOR channel is capable of |
| 24 | generating interrupts |
Thomas Petazzoni | f7d12ef | 2012-11-15 16:47:58 +0100 | [diff] [blame] | 25 | |
| 26 | Example: |
| 27 | |
| 28 | xor@d0060900 { |
| 29 | compatible = "marvell,orion-xor"; |
| 30 | reg = <0xd0060900 0x100 |
| 31 | 0xd0060b00 0x100>; |
| 32 | clocks = <&coreclk 0>; |
| 33 | status = "okay"; |
| 34 | |
| 35 | xor00 { |
| 36 | interrupts = <51>; |
Thomas Petazzoni | f7d12ef | 2012-11-15 16:47:58 +0100 | [diff] [blame] | 37 | }; |
| 38 | xor01 { |
| 39 | interrupts = <52>; |
Thomas Petazzoni | f7d12ef | 2012-11-15 16:47:58 +0100 | [diff] [blame] | 40 | }; |
| 41 | }; |