About Kernel Documentation Linux Kernel Contact Linux Resources Linux Blog

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




Custom Search

Based on kernel version 3.13. Page generated on 2014-01-20 22: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 "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	- location: Value to write to the ROUTE register's LOCATION bitfield to configure the pinmux for the device, see datasheet for values.
12	
13	Example:
14	
15	spi1: spi@0x4000c400 { /* USART1 */
16		#address-cells = <1>;
17		#size-cells = <0>;
18		compatible = "efm32,spi";
19		reg = <0x4000c400 0x400>;
20		interrupts = <15 16>;
21		clocks = <&cmu 20>;
22		cs-gpios = <&gpio 51 1>; // D3
23		location = <1>;
24		status = "ok";
25	
26		ks8851@0 {
27			compatible = "ks8851";
28			spi-max-frequency = <6000000>;
29			reg = <0>;
30			interrupt-parent = <&boardfpga>;
31			interrupts = <4>;
32			status = "ok";
33		};
34	};
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.