About Kernel Documentation Linux Kernel Contact Linux Resources Linux Blog

Documentation / devicetree / bindings / i2c / i2c-ocores.txt




Custom Search

Based on kernel version 3.16. Page generated on 2014-08-06 21:37 EST.

1	Device tree configuration for i2c-ocores
2	
3	Required properties:
4	- compatible      : "opencores,i2c-ocores" or "aeroflexgaisler,i2cmst"
5	- reg             : bus address start and address range size of device
6	- interrupts      : interrupt number
7	- clock-frequency : frequency of bus clock in Hz
8	- #address-cells  : should be <1>
9	- #size-cells     : should be <0>
10	
11	Optional properties:
12	- reg-shift       : device register offsets are shifted by this value
13	- reg-io-width    : io register width in bytes (1, 2 or 4)
14	- regstep         : deprecated, use reg-shift above
15	
16	Example:
17	
18		i2c0: ocores@a0000000 {
19			#address-cells = <1>;
20			#size-cells = <0>;
21			compatible = "opencores,i2c-ocores";
22			reg = <0xa0000000 0x8>;
23			interrupts = <10>;
24			clock-frequency = <20000000>;
25	
26			reg-shift = <0>;	/* 8 bit registers */
27			reg-io-width = <1>;	/* 8 bit read/write */
28	
29			dummy@60 {
30				compatible = "dummy";
31				reg = <0x60>;
32			};
33		};
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.