Grant Likely | 5de1540 | 2011-06-21 10:59:34 -0600 | [diff] [blame] | 1 | * ARM Primecell Peripherals |
| 2 | |
| 3 | ARM, Ltd. Primecell peripherals have a standard id register that can be used to |
| 4 | identify the peripheral type, vendor, and revision. This value can be used for |
| 5 | driver matching. |
| 6 | |
| 7 | Required properties: |
| 8 | |
Grant Likely | 2b0fce8 | 2011-10-24 11:09:14 +0200 | [diff] [blame] | 9 | - compatible : should be a specific name for the peripheral and |
| 10 | "arm,primecell". The specific name will match the ARM |
| 11 | engineering name for the logic block in the form: "arm,pl???" |
Grant Likely | 5de1540 | 2011-06-21 10:59:34 -0600 | [diff] [blame] | 12 | |
| 13 | Optional properties: |
| 14 | |
| 15 | - arm,primecell-periphid : Value to override the h/w value with |
Rob Herring | 260b6aa | 2012-04-14 20:30:29 -0500 | [diff] [blame] | 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. |
| 18 | - clock-names : From common clock binding. Shall be "apb_pclk" for first clock. |
Arnd Bergmann | 787b0c1 | 2013-01-28 16:24:37 +0000 | [diff] [blame] | 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 |
Grant Likely | 5de1540 | 2011-06-21 10:59:34 -0600 | [diff] [blame] | 27 | |
| 28 | Example: |
| 29 | |
| 30 | serial@fff36000 { |
| 31 | compatible = "arm,pl011", "arm,primecell"; |
| 32 | arm,primecell-periphid = <0x00341011>; |
Arnd Bergmann | 787b0c1 | 2013-01-28 16:24:37 +0000 | [diff] [blame] | 33 | |
Rob Herring | 260b6aa | 2012-04-14 20:30:29 -0500 | [diff] [blame] | 34 | clocks = <&pclk>; |
| 35 | clock-names = "apb_pclk"; |
Arnd Bergmann | 787b0c1 | 2013-01-28 16:24:37 +0000 | [diff] [blame] | 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>; |
Grant Likely | 5de1540 | 2011-06-21 10:59:34 -0600 | [diff] [blame] | 45 | }; |
| 46 | |