1 * Texas Instruments Davinci/Keystone I2C 1 * Texas Instruments Davinci/Keystone I2C 2 2 3 This file provides information, what the devic 3 This file provides information, what the device node for the 4 davinci/keystone i2c interface contains. 4 davinci/keystone i2c interface contains. 5 5 6 Required properties: 6 Required properties: 7 - compatible: "ti,davinci-i2c" or "ti,keystone 7 - compatible: "ti,davinci-i2c" or "ti,keystone-i2c"; 8 - reg : Offset and length of the register set 8 - reg : Offset and length of the register set for the device 9 - clocks: I2C functional clock phandle. 9 - clocks: I2C functional clock phandle. 10 For 66AK2G this property should be s 10 For 66AK2G this property should be set per binding, 11 Documentation/devicetree/bindings/cl 11 Documentation/devicetree/bindings/clock/ti,sci-clk.yaml 12 12 13 SoC-specific Required Properties: 13 SoC-specific Required Properties: 14 14 15 The following are mandatory properties for Key 15 The following are mandatory properties for Keystone 2 66AK2G SoCs only: 16 16 17 - power-domains: Should contain a phand 17 - power-domains: Should contain a phandle to a PM domain provider node 18 and an args specifier 18 and an args specifier containing the I2C device id 19 value. This property i 19 value. This property is as per the binding, 20 Documentation/devicetr 20 Documentation/devicetree/bindings/soc/ti/sci-pm-domain.yaml 21 21 22 Recommended properties : 22 Recommended properties : 23 - interrupts : standard interrupt property. 23 - interrupts : standard interrupt property. 24 - clock-frequency : desired I2C bus clock freq 24 - clock-frequency : desired I2C bus clock frequency in Hz. 25 - ti,has-pfunc: boolean; if defined, it indica 25 - ti,has-pfunc: boolean; if defined, it indicates that SoC supports PFUNC 26 registers. PFUNC registers allow to sw 26 registers. PFUNC registers allow to switch I2C pins to function as 27 GPIOs, so they can be toggled manually 27 GPIOs, so they can be toggled manually. 28 28 29 Example (enbw_cmc board): 29 Example (enbw_cmc board): 30 i2c@1c22000 { 30 i2c@1c22000 { 31 compatible = "ti,davinci-i2c"; 31 compatible = "ti,davinci-i2c"; 32 reg = <0x22000 0x1000>; 32 reg = <0x22000 0x1000>; 33 clock-frequency = <100000>; 33 clock-frequency = <100000>; 34 interrupts = <15>; 34 interrupts = <15>; 35 interrupt-parent = <&intc>; 35 interrupt-parent = <&intc>; 36 #address-cells = <1>; 36 #address-cells = <1>; 37 #size-cells = <0>; 37 #size-cells = <0>; 38 38 39 dtt@48 { 39 dtt@48 { 40 compatible = "national 40 compatible = "national,lm75"; 41 reg = <0x48>; 41 reg = <0x48>; 42 }; 42 }; 43 }; 43 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.