2015-09-14 16:03:50 +07:00
|
|
|
* Texas Instruments Davinci/Keystone I2C
|
2012-07-30 14:21:12 +07:00
|
|
|
|
|
|
|
This file provides information, what the device node for the
|
2015-09-14 16:03:50 +07:00
|
|
|
davinci/keystone i2c interface contains.
|
2012-07-30 14:21:12 +07:00
|
|
|
|
|
|
|
Required properties:
|
2015-09-14 16:03:50 +07:00
|
|
|
- compatible: "ti,davinci-i2c" or "ti,keystone-i2c";
|
2012-07-30 14:21:12 +07:00
|
|
|
- reg : Offset and length of the register set for the device
|
2017-09-12 03:11:45 +07:00
|
|
|
- clocks: I2C functional clock phandle.
|
|
|
|
For 66AK2G this property should be set per binding,
|
|
|
|
Documentation/devicetree/bindings/clock/ti,sci-clk.txt
|
|
|
|
|
|
|
|
SoC-specific Required Properties:
|
|
|
|
|
|
|
|
The following are mandatory properties for Keystone 2 66AK2G SoCs only:
|
|
|
|
|
|
|
|
- power-domains: Should contain a phandle to a PM domain provider node
|
|
|
|
and an args specifier containing the I2C device id
|
|
|
|
value. This property is as per the binding,
|
|
|
|
Documentation/devicetree/bindings/soc/ti/sci-pm-domain.txt
|
2012-07-30 14:21:12 +07:00
|
|
|
|
|
|
|
Recommended properties :
|
|
|
|
- interrupts : standard interrupt property.
|
|
|
|
- clock-frequency : desired I2C bus clock frequency in Hz.
|
2015-04-06 19:38:41 +07:00
|
|
|
- ti,has-pfunc: boolean; if defined, it indicates that SoC supports PFUNC
|
|
|
|
registers. PFUNC registers allow to switch I2C pins to function as
|
2018-05-06 18:23:45 +07:00
|
|
|
GPIOs, so they can be toggled manually.
|
2012-07-30 14:21:12 +07:00
|
|
|
|
|
|
|
Example (enbw_cmc board):
|
|
|
|
i2c@1c22000 {
|
|
|
|
compatible = "ti,davinci-i2c";
|
|
|
|
reg = <0x22000 0x1000>;
|
|
|
|
clock-frequency = <100000>;
|
|
|
|
interrupts = <15>;
|
|
|
|
interrupt-parent = <&intc>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
|
|
|
dtt@48 {
|
|
|
|
compatible = "national,lm75";
|
|
|
|
reg = <0x48>;
|
|
|
|
};
|
|
|
|
};
|