spi: efm32: correct namespacing of location property
[deliverable/linux.git] / Documentation / devicetree / bindings / spi / efm32-spi.txt
CommitLineData
86f8973c
UKK
1* Energy Micro EFM32 SPI
2
3Required properties:
4- #address-cells: see spi-bus.txt
5- #size-cells: see spi-bus.txt
12f6dd86 6- compatible: should be "energymicro,efm32-spi"
86f8973c
UKK
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
e2872090
AL
11
12Recommended properties :
10ed7e98
UKK
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.
86f8973c
UKK
19
20Example:
21
22spi1: spi@0x4000c400 { /* USART1 */
23 #address-cells = <1>;
24 #size-cells = <0>;
12f6dd86 25 compatible = "energymicro,efm32-spi";
86f8973c
UKK
26 reg = <0x4000c400 0x400>;
27 interrupts = <15 16>;
28 clocks = <&cmu 20>;
29 cs-gpios = <&gpio 51 1>; // D3
10ed7e98 30 energymicro,location = <1>;
86f8973c
UKK
31 status = "ok";
32
33 ks8851@0 {
34 compatible = "ks8851";
35 spi-max-frequency = <6000000>;
36 reg = <0>;
37 interrupt-parent = <&boardfpga>;
38 interrupts = <4>;
39 status = "ok";
40 };
41};
This page took 0.065227 seconds and 5 git commands to generate.