i2c-rk3x.txt 981 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. * Rockchip RK3xxx I2C controller
  2. This driver interfaces with the native I2C controller present in Rockchip
  3. RK3xxx SoCs.
  4. Required properties :
  5. - reg : Offset and length of the register set for the device
  6. - compatible : should be "rockchip,rk3066-i2c", "rockchip,rk3188-i2c" or
  7. "rockchip,rk3288-i2c".
  8. - interrupts : interrupt number
  9. - clocks : parent clock
  10. Required on RK3066, RK3188 :
  11. - rockchip,grf : the phandle of the syscon node for the general register
  12. file (GRF)
  13. - on those SoCs an alias with the correct I2C bus ID (bit offset in the GRF)
  14. is also required.
  15. Optional properties :
  16. - clock-frequency : SCL frequency to use (in Hz). If omitted, 100kHz is used.
  17. Example:
  18. aliases {
  19. i2c0 = &i2c0;
  20. }
  21. i2c0: i2c@2002d000 {
  22. compatible = "rockchip,rk3188-i2c";
  23. reg = <0x2002d000 0x1000>;
  24. interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
  25. #address-cells = <1>;
  26. #size-cells = <0>;
  27. rockchip,grf = <&grf>;
  28. clock-names = "i2c";
  29. clocks = <&cru PCLK_I2C0>;
  30. };