Merge remote-tracking branches 'asoc/fix/intel', 'asoc/fix/topology' and 'asoc/fix...
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / i2c / i2c-stm32.txt
1 * I2C controller embedded in STMicroelectronics STM32 I2C platform
2
3 Required properties :
4 - compatible : Must be "st,stm32f4-i2c"
5 - reg : Offset and length of the register set for the device
6 - interrupts : Must contain the interrupt id for I2C event and then the
7   interrupt id for I2C error.
8 - resets: Must contain the phandle to the reset controller.
9 - clocks: Must contain the input clock of the I2C instance.
10 - A pinctrl state named "default" must be defined to set pins in mode of
11   operation for I2C transfer
12 - #address-cells = <1>;
13 - #size-cells = <0>;
14
15 Optional properties :
16 - clock-frequency : Desired I2C bus clock frequency in Hz. If not specified,
17   the default 100 kHz frequency will be used. As only Normal and Fast modes
18   are supported, possible values are 100000 and 400000.
19
20 Example :
21
22         i2c@40005400 {
23                 compatible = "st,stm32f4-i2c";
24                 #address-cells = <1>;
25                 #size-cells = <0>;
26                 reg = <0x40005400 0x400>;
27                 interrupts = <31>,
28                              <32>;
29                 resets = <&rcc 277>;
30                 clocks = <&rcc 0 149>;
31                 pinctrl-0 = <&i2c1_sda_pin>, <&i2c1_scl_pin>;
32                 pinctrl-names = "default";
33         };