Path: blob/master/Documentation/devicetree/bindings/i2c/i2c-opal.txt
26307 views
Device-tree bindings for I2C OPAL driver1----------------------------------------23Most of the device node and properties layout is specific to the firmware and4used by the firmware itself for configuring the port. From the linux5perspective, the properties of use are "ibm,port-name" and "ibm,opal-id".67Required properties:89- reg: Port-id within a given master10- compatible: must be "ibm,opal-i2c"11- ibm,opal-id: Refers to a specific bus and used to identify it when calling12the relevant OPAL functions.13- bus-frequency: Operating frequency of the i2c bus (in HZ). Informational for14linux, used by the FW though.1516Optional properties:17- ibm,port-name: Firmware provides this name that uniquely identifies the i2c18port.1920The node contains a number of other properties that are used by the FW itself21and depend on the specific hardware implementation. The example below depicts22a P8 on-chip bus.2324Example:2526i2c-bus@0 {27reg = <0x0>;28bus-frequency = <0x61a80>;29compatible = "ibm,power8-i2c-port", "ibm,opal-i2c";30ibm,opal-id = <0x1>;31ibm,port-name = "p8_00000000_e1p0";32#address-cells = <0x1>;33phandle = <0x10000006>;34#size-cells = <0x0>;35linux,phandle = <0x10000006>;36};373839