i2c-s3c2410.txt 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. (d) "samsung, exynos5440-i2c", for s3c2440-like i2c used
  10. on EXYNOS5440 which does not need GPIO configuration.
  11. - reg: physical base address of the controller and length of memory mapped
  12. region.
  13. - interrupts: interrupt number to the cpu.
  14. - samsung,i2c-sda-delay: Delay (in ns) applied to data line (SDA) edges.
  15. Required for all cases except "samsung,s3c2440-hdmiphy-i2c":
  16. - Samsung GPIO variant (deprecated):
  17. - gpios: The order of the gpios should be the following: <SDA, SCL>.
  18. The gpio specifier depends on the gpio controller. Required in all
  19. cases except for "samsung,s3c2440-hdmiphy-i2c" whose input/output
  20. lines are permanently wired to the respective clienta
  21. - Pinctrl variant (preferred, if available):
  22. - pinctrl-0: Pin control group to be used for this controller.
  23. - pinctrl-names: Should contain only one value - "default".
  24. Optional properties:
  25. - samsung,i2c-slave-addr: Slave address in multi-master enviroment. If not
  26. specified, default value is 0.
  27. - samsung,i2c-max-bus-freq: Desired frequency in Hz of the bus. If not
  28. specified, the default value in Hz is 100000.
  29. Example:
  30. i2c@13870000 {
  31. compatible = "samsung,s3c2440-i2c";
  32. reg = <0x13870000 0x100>;
  33. interrupts = <345>;
  34. samsung,i2c-sda-delay = <100>;
  35. samsung,i2c-max-bus-freq = <100000>;
  36. /* Samsung GPIO variant begins here */
  37. gpios = <&gpd1 2 0 /* SDA */
  38. &gpd1 3 0 /* SCL */>;
  39. /* Samsung GPIO variant ends here */
  40. /* Pinctrl variant begins here */
  41. pinctrl-0 = <&i2c3_bus>;
  42. pinctrl-names = "default";
  43. /* Pinctrl variant ends here */
  44. #address-cells = <1>;
  45. #size-cells = <0>;
  46. wm8994@1a {
  47. compatible = "wlf,wm8994";
  48. reg = <0x1a>;
  49. };
  50. };