xref: /freebsd-src/sys/contrib/device-tree/Bindings/i2c/i2c-efm32.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot* Energymicro efm32 i2c controller
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotRequired properties :
4*c66ec88fSEmmanuel Vadot
5*c66ec88fSEmmanuel Vadot - reg : Offset and length of the register set for the device
6*c66ec88fSEmmanuel Vadot - compatible : should be "energymicro,efm32-i2c"
7*c66ec88fSEmmanuel Vadot - interrupts : the interrupt number
8*c66ec88fSEmmanuel Vadot - clocks : reference to the module clock
9*c66ec88fSEmmanuel Vadot
10*c66ec88fSEmmanuel VadotRecommended properties :
11*c66ec88fSEmmanuel Vadot
12*c66ec88fSEmmanuel Vadot - clock-frequency : maximal I2C bus clock frequency in Hz.
13*c66ec88fSEmmanuel Vadot - energymicro,location : Decides the location of the USART I/O pins.
14*c66ec88fSEmmanuel Vadot   Allowed range : [0 .. 6]
15*c66ec88fSEmmanuel Vadot
16*c66ec88fSEmmanuel VadotExample:
17*c66ec88fSEmmanuel Vadot	i2c0: i2c@4000a000 {
18*c66ec88fSEmmanuel Vadot		#address-cells = <1>;
19*c66ec88fSEmmanuel Vadot		#size-cells = <0>;
20*c66ec88fSEmmanuel Vadot		compatible = "energymicro,efm32-i2c";
21*c66ec88fSEmmanuel Vadot		reg = <0x4000a000 0x400>;
22*c66ec88fSEmmanuel Vadot		interrupts = <9>;
23*c66ec88fSEmmanuel Vadot		clocks = <&cmu clk_HFPERCLKI2C0>;
24*c66ec88fSEmmanuel Vadot		clock-frequency = <100000>;
25*c66ec88fSEmmanuel Vadot		energymicro,location = <3>;
26*c66ec88fSEmmanuel Vadot
27*c66ec88fSEmmanuel Vadot		eeprom@50 {
28*c66ec88fSEmmanuel Vadot			compatible = "microchip,24c02";
29*c66ec88fSEmmanuel Vadot			reg = <0x50>;
30*c66ec88fSEmmanuel Vadot			pagesize = <16>;
31*c66ec88fSEmmanuel Vadot		};
32*c66ec88fSEmmanuel Vadot	};
33*c66ec88fSEmmanuel Vadot
34