diff options
Diffstat (limited to 'Documentation')
5 files changed, 122 insertions, 1 deletions
diff --git a/Documentation/devicetree/bindings/arm/primecell.txt b/Documentation/devicetree/bindings/arm/primecell.txt index 64fc82bc8928..0df6acacfaea 100644 --- a/Documentation/devicetree/bindings/arm/primecell.txt +++ b/Documentation/devicetree/bindings/arm/primecell.txt | |||
@@ -16,14 +16,31 @@ Optional properties: | |||
16 | - clocks : From common clock binding. First clock is phandle to clock for apb | 16 | - clocks : From common clock binding. First clock is phandle to clock for apb |
17 | pclk. Additional clocks are optional and specific to those peripherals. | 17 | pclk. Additional clocks are optional and specific to those peripherals. |
18 | - clock-names : From common clock binding. Shall be "apb_pclk" for first clock. | 18 | - clock-names : From common clock binding. Shall be "apb_pclk" for first clock. |
19 | - dmas : From common DMA binding. If present, refers to one or more dma channels. | ||
20 | - dma-names : From common DMA binding, needs to match the 'dmas' property. | ||
21 | Devices with exactly one receive and transmit channel shall name | ||
22 | these "rx" and "tx", respectively. | ||
23 | - pinctrl-<n> : Pinctrl states as described in bindings/pinctrl/pinctrl-bindings.txt | ||
24 | - pinctrl-names : Names corresponding to the numbered pinctrl states | ||
25 | - interrupts : one or more interrupt specifiers | ||
26 | - interrupt-names : names corresponding to the interrupts properties | ||
19 | 27 | ||
20 | Example: | 28 | Example: |
21 | 29 | ||
22 | serial@fff36000 { | 30 | serial@fff36000 { |
23 | compatible = "arm,pl011", "arm,primecell"; | 31 | compatible = "arm,pl011", "arm,primecell"; |
24 | arm,primecell-periphid = <0x00341011>; | 32 | arm,primecell-periphid = <0x00341011>; |
33 | |||
25 | clocks = <&pclk>; | 34 | clocks = <&pclk>; |
26 | clock-names = "apb_pclk"; | 35 | clock-names = "apb_pclk"; |
27 | 36 | ||
37 | dmas = <&dma-controller 4>, <&dma-controller 5>; | ||
38 | dma-names = "rx", "tx"; | ||
39 | |||
40 | pinctrl-0 = <&uart0_default_mux>, <&uart0_default_mode>; | ||
41 | pinctrl-1 = <&uart0_sleep_mode>; | ||
42 | pinctrl-names = "default","sleep"; | ||
43 | |||
44 | interrupts = <0 11 0x4>; | ||
28 | }; | 45 | }; |
29 | 46 | ||
diff --git a/Documentation/devicetree/bindings/ata/pata-arasan.txt b/Documentation/devicetree/bindings/ata/pata-arasan.txt index 95ec7f825ede..2aff154be84e 100644 --- a/Documentation/devicetree/bindings/ata/pata-arasan.txt +++ b/Documentation/devicetree/bindings/ata/pata-arasan.txt | |||
@@ -6,6 +6,26 @@ Required properties: | |||
6 | - interrupt-parent: Should be the phandle for the interrupt controller | 6 | - interrupt-parent: Should be the phandle for the interrupt controller |
7 | that services interrupts for this device | 7 | that services interrupts for this device |
8 | - interrupt: Should contain the CF interrupt number | 8 | - interrupt: Should contain the CF interrupt number |
9 | - clock-frequency: Interface clock rate, in Hz, one of | ||
10 | 25000000 | ||
11 | 33000000 | ||
12 | 40000000 | ||
13 | 50000000 | ||
14 | 66000000 | ||
15 | 75000000 | ||
16 | 100000000 | ||
17 | 125000000 | ||
18 | 150000000 | ||
19 | 166000000 | ||
20 | 200000000 | ||
21 | |||
22 | Optional properties: | ||
23 | - arasan,broken-udma: if present, UDMA mode is unusable | ||
24 | - arasan,broken-mwdma: if present, MWDMA mode is unusable | ||
25 | - arasan,broken-pio: if present, PIO mode is unusable | ||
26 | - dmas: one DMA channel, as described in bindings/dma/dma.txt | ||
27 | required unless both UDMA and MWDMA mode are broken | ||
28 | - dma-names: the corresponding channel name, must be "data" | ||
9 | 29 | ||
10 | Example: | 30 | Example: |
11 | 31 | ||
@@ -14,4 +34,6 @@ Example: | |||
14 | reg = <0xfc000000 0x1000>; | 34 | reg = <0xfc000000 0x1000>; |
15 | interrupt-parent = <&vic1>; | 35 | interrupt-parent = <&vic1>; |
16 | interrupts = <12>; | 36 | interrupts = <12>; |
37 | dmas = <&dma-controller 23>; | ||
38 | dma-names = "data"; | ||
17 | }; | 39 | }; |
diff --git a/Documentation/devicetree/bindings/serial/pl011.txt b/Documentation/devicetree/bindings/serial/pl011.txt new file mode 100644 index 000000000000..5d2e840ae65c --- /dev/null +++ b/Documentation/devicetree/bindings/serial/pl011.txt | |||
@@ -0,0 +1,17 @@ | |||
1 | * ARM AMBA Primecell PL011 serial UART | ||
2 | |||
3 | Required properties: | ||
4 | - compatible: must be "arm,primecell", "arm,pl011" | ||
5 | - reg: exactly one register range with length 0x1000 | ||
6 | - interrupts: exactly one interrupt specifier | ||
7 | |||
8 | Optional properties: | ||
9 | - pinctrl: When present, must have one state named "sleep" | ||
10 | and one state named "default" | ||
11 | - clocks: When present, must refer to exactly one clock named | ||
12 | "apb_pclk" | ||
13 | - dmas: When present, may have one or two dma channels. | ||
14 | The first one must be named "rx", the second one | ||
15 | must be named "tx". | ||
16 | |||
17 | See also bindings/arm/primecell.txt | ||
diff --git a/Documentation/devicetree/bindings/spi/spi_pl022.txt b/Documentation/devicetree/bindings/spi/spi_pl022.txt index f158fd31cfda..22ed6797216d 100644 --- a/Documentation/devicetree/bindings/spi/spi_pl022.txt +++ b/Documentation/devicetree/bindings/spi/spi_pl022.txt | |||
@@ -16,6 +16,11 @@ Optional properties: | |||
16 | device will be suspended immediately | 16 | device will be suspended immediately |
17 | - pl022,rt : indicates the controller should run the message pump with realtime | 17 | - pl022,rt : indicates the controller should run the message pump with realtime |
18 | priority to minimise the transfer latency on the bus (boolean) | 18 | priority to minimise the transfer latency on the bus (boolean) |
19 | - dmas : Two or more DMA channel specifiers following the convention outlined | ||
20 | in bindings/dma/dma.txt | ||
21 | - dma-names: Names for the dma channels, if present. There must be at | ||
22 | least one channel named "tx" for transmit and named "rx" for | ||
23 | receive. | ||
19 | 24 | ||
20 | 25 | ||
21 | SPI slave nodes must be children of the SPI master node and can | 26 | SPI slave nodes must be children of the SPI master node and can |
@@ -32,3 +37,34 @@ contain the following properties. | |||
32 | - pl022,wait-state : Microwire interface: Wait state | 37 | - pl022,wait-state : Microwire interface: Wait state |
33 | - pl022,duplex : Microwire interface: Full/Half duplex | 38 | - pl022,duplex : Microwire interface: Full/Half duplex |
34 | 39 | ||
40 | |||
41 | Example: | ||
42 | |||
43 | spi@e0100000 { | ||
44 | compatible = "arm,pl022", "arm,primecell"; | ||
45 | reg = <0xe0100000 0x1000>; | ||
46 | #address-cells = <1>; | ||
47 | #size-cells = <0>; | ||
48 | interrupts = <0 31 0x4>; | ||
49 | dmas = <&dma-controller 23 1>, | ||
50 | <&dma-controller 24 0>; | ||
51 | dma-names = "rx", "tx"; | ||
52 | |||
53 | m25p80@1 { | ||
54 | compatible = "st,m25p80"; | ||
55 | reg = <1>; | ||
56 | spi-max-frequency = <12000000>; | ||
57 | spi-cpol; | ||
58 | spi-cpha; | ||
59 | pl022,hierarchy = <0>; | ||
60 | pl022,interface = <0>; | ||
61 | pl022,slave-tx-disable; | ||
62 | pl022,com-mode = <0x2>; | ||
63 | pl022,rx-level-trig = <0>; | ||
64 | pl022,tx-level-trig = <0>; | ||
65 | pl022,ctrl-len = <0x11>; | ||
66 | pl022,wait-state = <0>; | ||
67 | pl022,duplex = <0>; | ||
68 | }; | ||
69 | }; | ||
70 | |||
diff --git a/Documentation/devicetree/bindings/timer/arm,sp804.txt b/Documentation/devicetree/bindings/timer/arm,sp804.txt new file mode 100644 index 000000000000..5cd8eee74af1 --- /dev/null +++ b/Documentation/devicetree/bindings/timer/arm,sp804.txt | |||
@@ -0,0 +1,29 @@ | |||
1 | ARM sp804 Dual Timers | ||
2 | --------------------------------------- | ||
3 | |||
4 | Required properties: | ||
5 | - compatible: Should be "arm,sp804" & "arm,primecell" | ||
6 | - interrupts: Should contain the list of Dual Timer interrupts. This is the | ||
7 | interrupt for timer 1 and timer 2. In the case of a single entry, it is | ||
8 | the combined interrupt or if "arm,sp804-has-irq" is present that | ||
9 | specifies which timer interrupt is connected. | ||
10 | - reg: Should contain location and length for dual timer register. | ||
11 | - clocks: clocks driving the dual timer hardware. This list should be 1 or 3 | ||
12 | clocks. With 3 clocks, the order is timer0 clock, timer1 clock, | ||
13 | apb_pclk. A single clock can also be specified if the same clock is | ||
14 | used for all clock inputs. | ||
15 | |||
16 | Optional properties: | ||
17 | - arm,sp804-has-irq = <#>: In the case of only 1 timer irq line connected, this | ||
18 | specifies if the irq connection is for timer 1 or timer 2. A value of 1 | ||
19 | or 2 should be used. | ||
20 | |||
21 | Example: | ||
22 | |||
23 | timer0: timer@fc800000 { | ||
24 | compatible = "arm,sp804", "arm,primecell"; | ||
25 | reg = <0xfc800000 0x1000>; | ||
26 | interrupts = <0 0 4>, <0 1 4>; | ||
27 | clocks = <&timclk1 &timclk2 &pclk>; | ||
28 | clock-names = "timer1", "timer2", "apb_pclk"; | ||
29 | }; | ||