Uwe Kleine-König | 86f8973 | 2013-08-08 16:09:50 +0200 | [diff] [blame] | 1 | * Energy Micro EFM32 SPI |
| 2 | |
| 3 | Required properties: |
| 4 | - #address-cells: see spi-bus.txt |
| 5 | - #size-cells: see spi-bus.txt |
Uwe Kleine-König | 12f6dd8 | 2014-03-25 15:51:50 +0100 | [diff] [blame] | 6 | - compatible: should be "energymicro,efm32-spi" |
Uwe Kleine-König | 86f8973 | 2013-08-08 16:09:50 +0200 | [diff] [blame] | 7 | - reg: Offset and length of the register set for the controller |
| 8 | - interrupts: pair specifying rx and tx irq |
| 9 | - clocks: phandle to the spi clock |
| 10 | - cs-gpios: see spi-bus.txt |
Axel Lin | e287209 | 2014-04-07 15:11:46 +0800 | [diff] [blame] | 11 | |
| 12 | Recommended properties : |
Uwe Kleine-König | 10ed7e9 | 2014-07-11 10:17:57 +0200 | [diff] [blame] | 13 | - energymicro,location: Value to write to the ROUTE register's LOCATION |
| 14 | bitfield to configure the pinmux for the device, see |
| 15 | datasheet for values. |
| 16 | If this property is not provided, keeping what is |
| 17 | already configured in the hardware, so its either the |
| 18 | reset default 0 or whatever the bootloader did. |
Uwe Kleine-König | 86f8973 | 2013-08-08 16:09:50 +0200 | [diff] [blame] | 19 | |
| 20 | Example: |
| 21 | |
| 22 | spi1: spi@0x4000c400 { /* USART1 */ |
| 23 | #address-cells = <1>; |
| 24 | #size-cells = <0>; |
Uwe Kleine-König | 12f6dd8 | 2014-03-25 15:51:50 +0100 | [diff] [blame] | 25 | compatible = "energymicro,efm32-spi"; |
Uwe Kleine-König | 86f8973 | 2013-08-08 16:09:50 +0200 | [diff] [blame] | 26 | reg = <0x4000c400 0x400>; |
| 27 | interrupts = <15 16>; |
| 28 | clocks = <&cmu 20>; |
| 29 | cs-gpios = <&gpio 51 1>; // D3 |
Uwe Kleine-König | 10ed7e9 | 2014-07-11 10:17:57 +0200 | [diff] [blame] | 30 | energymicro,location = <1>; |
Uwe Kleine-König | 86f8973 | 2013-08-08 16:09:50 +0200 | [diff] [blame] | 31 | |
| 32 | ks8851@0 { |
| 33 | compatible = "ks8851"; |
| 34 | spi-max-frequency = <6000000>; |
| 35 | reg = <0>; |
| 36 | interrupt-parent = <&boardfpga>; |
| 37 | interrupts = <4>; |
Uwe Kleine-König | 86f8973 | 2013-08-08 16:09:50 +0200 | [diff] [blame] | 38 | }; |
| 39 | }; |