i2c-aspeed.txt 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. Device tree configuration for the I2C busses on the AST24XX and AST25XX SoCs.
  2. Required Properties:
  3. - #address-cells : should be 1
  4. - #size-cells : should be 0
  5. - reg : address offset and range of bus
  6. - compatible : should be "aspeed,ast2400-i2c-bus"
  7. or "aspeed,ast2500-i2c-bus"
  8. - clocks : root clock of bus, should reference the APB
  9. clock in the second cell
  10. - resets : phandle to reset controller with the reset number in
  11. the second cell
  12. - interrupts : interrupt number
  13. Optional Properties:
  14. - bus-frequency : frequency of the bus clock in Hz defaults to 100 kHz when not
  15. specified
  16. - multi-master : states that there is another master active on this bus.
  17. Example:
  18. i2c {
  19. compatible = "simple-bus";
  20. #address-cells = <1>;
  21. #size-cells = <1>;
  22. ranges = <0 0x1e78a000 0x1000>;
  23. i2c_ic: interrupt-controller@0 {
  24. #interrupt-cells = <1>;
  25. compatible = "aspeed,ast2400-i2c-ic";
  26. reg = <0x0 0x40>;
  27. interrupts = <12>;
  28. interrupt-controller;
  29. };
  30. i2c0: i2c-bus@40 {
  31. #address-cells = <1>;
  32. #size-cells = <0>;
  33. #interrupt-cells = <1>;
  34. reg = <0x40 0x40>;
  35. compatible = "aspeed,ast2400-i2c-bus";
  36. clocks = <&syscon ASPEED_CLK_APB>;
  37. resets = <&syscon ASPEED_RESET_I2C>;
  38. bus-frequency = <100000>;
  39. interrupts = <0>;
  40. interrupt-parent = <&i2c_ic>;
  41. };
  42. };