Path: blob/main/sys/contrib/device-tree/Bindings/i2c/i2c-cros-ec-tunnel.txt
48375 views
I2C bus that tunnels through the ChromeOS EC (cros-ec)1======================================================2On some ChromeOS board designs we've got a connection to the EC (embedded3controller) but no direct connection to some devices on the other side of4the EC (like a battery and PMIC). To get access to those devices we need5to tunnel our i2c commands through the EC.67The node for this device should be under a cros-ec node like google,cros-ec-spi8or google,cros-ec-i2c.91011Required properties:12- compatible: google,cros-ec-i2c-tunnel13- google,remote-bus: The EC bus we'd like to talk to.1415Optional child nodes:16- One node per I2C device connected to the tunnelled I2C bus.171819Example:20cros-ec@0 {21compatible = "google,cros-ec-spi";2223...2425i2c-tunnel {26compatible = "google,cros-ec-i2c-tunnel";27#address-cells = <1>;28#size-cells = <0>;2930google,remote-bus = <0>;3132battery: sbs-battery@b {33compatible = "sbs,sbs-battery";34reg = <0xb>;35sbs,poll-retry-count = <1>;36};37};38}394041