samsung-i2c.txt 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. * Samsung's I2C controller
  2. The Samsung's I2C controller is used to interface with I2C devices.
  3. Required properties:
  4. - compatible: value should be either of the following.
  5. (a) "samsung, s3c2410-i2c", for i2c compatible with s3c2410 i2c.
  6. (b) "samsung, s3c2440-i2c", for i2c compatible with s3c2440 i2c.
  7. - reg: physical base address of the controller and length of memory mapped
  8. region.
  9. - interrupts: interrupt number to the cpu.
  10. - samsung,i2c-sda-delay: Delay (in ns) applied to data line (SDA) edges.
  11. - gpios: The order of the gpios should be the following: <SDA, SCL>.
  12. The gpio specifier depends on the gpio controller.
  13. Optional properties:
  14. - samsung,i2c-slave-addr: Slave address in multi-master enviroment. If not
  15. specified, default value is 0.
  16. - samsung,i2c-max-bus-freq: Desired frequency in Hz of the bus. If not
  17. specified, the default value in Hz is 100000.
  18. Example:
  19. i2c@13870000 {
  20. compatible = "samsung,s3c2440-i2c";
  21. reg = <0x13870000 0x100>;
  22. interrupts = <345>;
  23. samsung,i2c-sda-delay = <100>;
  24. samsung,i2c-max-bus-freq = <100000>;
  25. gpios = <&gpd1 2 0 /* SDA */
  26. &gpd1 3 0 /* SCL */>;
  27. #address-cells = <1>;
  28. #size-cells = <0>;
  29. wm8994@1a {
  30. compatible = "wlf,wm8994";
  31. reg = <0x1a>;
  32. };
  33. };