i2c-stm32.txt 984 B

123456789101112131415161718192021222324252627282930
  1. * I2C controller embedded in STMicroelectronis STM32 platforms
  2. Required properties :
  3. - compatible : Must be "st,stm32f7-i2c"
  4. - reg : Offset and length of the register set for the device
  5. - resets: Must contain the phandle to the reset controller
  6. - clocks: Must contain the input clock of the I2C instance
  7. - A pinctrl state named "default" must be defined to set pins in mode of
  8. operation for I2C transfer
  9. - #address-cells = <1>;
  10. - #size-cells = <0>;
  11. Optional properties :
  12. - clock-frequency : Desired I2C bus clock frequency in Hz. If not specified,
  13. the default 100 kHz frequency will be used. As only Normal, Fast and Fast+
  14. modes are implemented, possible values are 100000, 400000 and 1000000.
  15. Example :
  16. i2c1: i2c@40005400 {
  17. compatible = "st,stm32f7-i2c";
  18. reg = <0x40005400 0x400>;
  19. resets = <&rcc 181>;
  20. clocks = <&clk_pclk1>;
  21. pinctrl-names = "default";
  22. pinctrl-0 = <&pinctrl_i2c1>;
  23. clock-frequency = <400000>;
  24. #address-cells = <1>;
  25. #size-cells = <0>;
  26. };