Back to home page

OSCL-LXR

 
 

    


0001 * Texas Instruments Davinci/Keystone I2C
0002 
0003 This file provides information, what the device node for the
0004 davinci/keystone i2c interface contains.
0005 
0006 Required properties:
0007 - compatible: "ti,davinci-i2c" or "ti,keystone-i2c";
0008 - reg : Offset and length of the register set for the device
0009 - clocks: I2C functional clock phandle.
0010           For 66AK2G this property should be set per binding,
0011           Documentation/devicetree/bindings/clock/ti,sci-clk.yaml
0012 
0013 SoC-specific Required Properties:
0014 
0015 The following are mandatory properties for Keystone 2 66AK2G SoCs only:
0016 
0017 - power-domains:        Should contain a phandle to a PM domain provider node
0018                         and an args specifier containing the I2C device id
0019                         value. This property is as per the binding,
0020                         Documentation/devicetree/bindings/soc/ti/sci-pm-domain.yaml
0021 
0022 Recommended properties :
0023 - interrupts : standard interrupt property.
0024 - clock-frequency : desired I2C bus clock frequency in Hz.
0025 - ti,has-pfunc: boolean; if defined, it indicates that SoC supports PFUNC
0026         registers. PFUNC registers allow to switch I2C pins to function as
0027         GPIOs, so they can be toggled manually.
0028 
0029 Example (enbw_cmc board):
0030         i2c@1c22000 {
0031                 compatible = "ti,davinci-i2c";
0032                 reg = <0x22000 0x1000>;
0033                 clock-frequency = <100000>;
0034                 interrupts = <15>;
0035                 interrupt-parent = <&intc>;
0036                 #address-cells = <1>;
0037                 #size-cells = <0>;
0038 
0039                 dtt@48 {
0040                         compatible = "national,lm75";
0041                         reg = <0x48>;
0042                 };
0043         };