i2c-sunxi-p2wi.txt 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. * Allwinner P2WI (Push/Pull 2 Wire Interface) controller
  2. Required properties :
  3. - reg : Offset and length of the register set for the device.
  4. - compatible : Should one of the following:
  5. - "allwinner,sun6i-a31-p2wi"
  6. - interrupts : The interrupt line connected to the P2WI peripheral.
  7. - clocks : The gate clk connected to the P2WI peripheral.
  8. - resets : The reset line connected to the P2WI peripheral.
  9. Optional properties :
  10. - clock-frequency : Desired P2WI bus clock frequency in Hz. If not set the
  11. default frequency is 100kHz
  12. A P2WI may contain one child node encoding a P2WI slave device.
  13. Slave device properties:
  14. Required properties:
  15. - reg : the I2C slave address used during the initialization
  16. process to switch from I2C to P2WI mode
  17. Example:
  18. p2wi@01f03400 {
  19. compatible = "allwinner,sun6i-a31-p2wi";
  20. reg = <0x01f03400 0x400>;
  21. interrupts = <0 39 4>;
  22. clocks = <&apb0_gates 3>;
  23. clock-frequency = <6000000>;
  24. resets = <&apb0_rst 3>;
  25. axp221: pmic@68 {
  26. compatible = "x-powers,axp221";
  27. reg = <0x68>;
  28. /* ... */
  29. };
  30. };