samsung-i2c.txt 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. (c) "samsung, s3c2440-hdmiphy-i2c", for s3c2440-like i2c used
  8. inside HDMIPHY block found on several samsung SoCs
  9. - reg: physical base address of the controller and length of memory mapped
  10. region.
  11. - interrupts: interrupt number to the cpu.
  12. - samsung,i2c-sda-delay: Delay (in ns) applied to data line (SDA) edges.
  13. Optional properties:
  14. - gpios: The order of the gpios should be the following: <SDA, SCL>.
  15. The gpio specifier depends on the gpio controller. Required in all
  16. cases except for "samsung,s3c2440-hdmiphy-i2c" whose input/output
  17. lines are permanently wired to the respective client
  18. - samsung,i2c-slave-addr: Slave address in multi-master enviroment. If not
  19. specified, default value is 0.
  20. - samsung,i2c-max-bus-freq: Desired frequency in Hz of the bus. If not
  21. specified, the default value in Hz is 100000.
  22. Example:
  23. i2c@13870000 {
  24. compatible = "samsung,s3c2440-i2c";
  25. reg = <0x13870000 0x100>;
  26. interrupts = <345>;
  27. samsung,i2c-sda-delay = <100>;
  28. samsung,i2c-max-bus-freq = <100000>;
  29. gpios = <&gpd1 2 0 /* SDA */
  30. &gpd1 3 0 /* SCL */>;
  31. #address-cells = <1>;
  32. #size-cells = <0>;
  33. wm8994@1a {
  34. compatible = "wlf,wm8994";
  35. reg = <0x1a>;
  36. };
  37. };