i2c-lpc2k.txt 751 B

123456789101112131415161718192021222324252627282930313233
  1. NXP I2C controller for LPC2xxx/178x/18xx/43xx
  2. Required properties:
  3. - compatible: must be "nxp,lpc1788-i2c"
  4. - reg: physical address and length of the device registers
  5. - interrupts: a single interrupt specifier
  6. - clocks: clock for the device
  7. - #address-cells: should be <1>
  8. - #size-cells: should be <0>
  9. Optional properties:
  10. - clock-frequency: the desired I2C bus clock frequency in Hz; in
  11. absence of this property the default value is used (100 kHz).
  12. Example:
  13. i2c0: i2c@400a1000 {
  14. compatible = "nxp,lpc1788-i2c";
  15. reg = <0x400a1000 0x1000>;
  16. interrupts = <18>;
  17. clocks = <&ccu1 CLK_APB1_I2C0>;
  18. #address-cells = <1>;
  19. #size-cells = <0>;
  20. };
  21. &i2c0 {
  22. clock-frequency = <400000>;
  23. lm75@48 {
  24. compatible = "nxp,lm75";
  25. reg = <0x48>;
  26. };
  27. };