Jean-Christophe PLAGNIOL-VILLARD | 850a5b6 | 2012-11-23 13:44:39 +0100 | [diff] [blame] | 1 | Atmel SPI device |
| 2 | |
| 3 | Required properties: |
| 4 | - compatible : should be "atmel,at91rm9200-spi". |
| 5 | - reg: Address and length of the register set for the device |
| 6 | - interrupts: Should contain spi interrupt |
| 7 | - cs-gpios: chipselects |
Boris BREZILLON | bdb90b6 | 2013-12-17 12:01:34 +0100 | [diff] [blame] | 8 | - clock-names: tuple listing input clock names. |
| 9 | Required elements: "spi_clk" |
| 10 | - clocks: phandles to input clocks. |
Jean-Christophe PLAGNIOL-VILLARD | 850a5b6 | 2012-11-23 13:44:39 +0100 | [diff] [blame] | 11 | |
| 12 | Example: |
| 13 | |
| 14 | spi1: spi@fffcc000 { |
| 15 | compatible = "atmel,at91rm9200-spi"; |
| 16 | reg = <0xfffcc000 0x4000>; |
| 17 | interrupts = <13 4 5>; |
| 18 | #address-cells = <1>; |
| 19 | #size-cells = <0>; |
Boris BREZILLON | bdb90b6 | 2013-12-17 12:01:34 +0100 | [diff] [blame] | 20 | clocks = <&spi1_clk>; |
| 21 | clock-names = "spi_clk"; |
Jean-Christophe PLAGNIOL-VILLARD | 850a5b6 | 2012-11-23 13:44:39 +0100 | [diff] [blame] | 22 | cs-gpios = <&pioB 3 0>; |
| 23 | status = "okay"; |
| 24 | |
| 25 | mmc-slot@0 { |
| 26 | compatible = "mmc-spi-slot"; |
| 27 | reg = <0>; |
| 28 | gpios = <&pioC 4 0>; /* CD */ |
| 29 | spi-max-frequency = <25000000>; |
| 30 | }; |
| 31 | }; |