About Kernel Documentation Linux Kernel Contact Linux Resources Linux Blog

Documentation / devicetree / bindings / spi / efm32-spi.txt




Custom Search

Based on kernel version 3.15.4. Page generated on 2014-07-07 09:01 EST.

1	* Energy Micro EFM32 SPI
2	
3	Required properties:
4	- #address-cells: see spi-bus.txt
5	- #size-cells: see spi-bus.txt
6	- compatible: should be "energymicro,efm32-spi"
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
11	
12	Recommended properties :
13	- efm32,location: Value to write to the ROUTE register's LOCATION bitfield to
14	                  configure the pinmux for the device, see datasheet for values.
15	                  If "efm32,location" property is not provided, keeping what is
16	                  already configured in the hardware, so its either the reset
17	                  default 0 or whatever the bootloader did.
18	
19	Example:
20	
21	spi1: spi@0x4000c400 { /* USART1 */
22		#address-cells = <1>;
23		#size-cells = <0>;
24		compatible = "energymicro,efm32-spi";
25		reg = <0x4000c400 0x400>;
26		interrupts = <15 16>;
27		clocks = <&cmu 20>;
28		cs-gpios = <&gpio 51 1>; // D3
29		efm32,location = <1>;
30		status = "ok";
31	
32		ks8851@0 {
33			compatible = "ks8851";
34			spi-max-frequency = <6000000>;
35			reg = <0>;
36			interrupt-parent = <&boardfpga>;
37			interrupts = <4>;
38			status = "ok";
39		};
40	};
Hide Line Numbers
About Kernel Documentation Linux Kernel Contact Linux Resources Linux Blog

Information is copyright its respective author. All material is available from the Linux Kernel Source distributed under a GPL License. This page is provided as a free service by mjmwired.net.