i2c-gate.txt 972 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. An i2c gate is useful to e.g. reduce the digital noise for RF tuners connected
  2. to the i2c bus. Gates are similar to arbitrators in that you need to perform
  3. some kind of operation to access the i2c bus past the arbitrator/gate, but
  4. there are no competing masters to consider for gates and therefore there is
  5. no arbitration happening for gates.
  6. Common i2c gate properties.
  7. - i2c-gate child node
  8. Required properties for the i2c-gate child node:
  9. - #address-cells = <1>;
  10. - #size-cells = <0>;
  11. Optional properties for i2c-gate child node:
  12. - Child nodes conforming to i2c bus binding
  13. Example :
  14. /*
  15. An Invensense mpu9150 at address 0x68 featuring an on-chip Asahi
  16. Kasei ak8975 compass behind a gate.
  17. */
  18. mpu9150@68 {
  19. compatible = "invensense,mpu9150";
  20. reg = <0x68>;
  21. interrupt-parent = <&gpio1>;
  22. interrupts = <18 1>;
  23. i2c-gate {
  24. #address-cells = <1>;
  25. #size-cells = <0>;
  26. ax8975@c {
  27. compatible = "ak,ak8975";
  28. reg = <0x0c>;
  29. };
  30. };
  31. };