Path: blob/main/sys/contrib/device-tree/Bindings/i2c/i2c-gate.txt
48375 views
An i2c gate is useful to e.g. reduce the digital noise for RF tuners connected1to the i2c bus. Gates are similar to arbitrators in that you need to perform2some kind of operation to access the i2c bus past the arbitrator/gate, but3there are no competing masters to consider for gates and therefore there is4no arbitration happening for gates.56Common i2c gate properties.78- i2c-gate child node910Required properties for the i2c-gate child node:11- #address-cells = <1>;12- #size-cells = <0>;1314Optional properties for i2c-gate child node:15- Child nodes conforming to i2c bus binding161718Example :1920/*21An Invensense mpu9150 at address 0x68 featuring an on-chip Asahi22Kasei ak8975 compass behind a gate.23*/2425mpu9150@68 {26compatible = "invensense,mpu9150";27reg = <0x68>;28interrupt-parent = <&gpio1>;29interrupts = <18 1>;3031i2c-gate {32#address-cells = <1>;33#size-cells = <0>;3435ax8975@c {36compatible = "ak,ak8975";37reg = <0x0c>;38};39};40};414243