xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/i2c/i2c-sprd.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunI2C for Spreadtrum platforms
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun- compatible: Should be "sprd,sc9860-i2c".
5*4882a593Smuzhiyun- reg: Specify the physical base address of the controller and length
6*4882a593Smuzhiyun  of memory mapped region.
7*4882a593Smuzhiyun- interrupts: Should contain I2C interrupt.
8*4882a593Smuzhiyun- clock-names: Should contain following entries:
9*4882a593Smuzhiyun  "i2c" for I2C clock,
10*4882a593Smuzhiyun  "source" for I2C source (parent) clock,
11*4882a593Smuzhiyun  "enable" for I2C module enable clock.
12*4882a593Smuzhiyun- clocks: Should contain a clock specifier for each entry in clock-names.
13*4882a593Smuzhiyun- clock-frequency: Constains desired I2C bus clock frequency in Hz.
14*4882a593Smuzhiyun- #address-cells: Should be 1 to describe address cells for I2C device address.
15*4882a593Smuzhiyun- #size-cells: Should be 0 means no size cell for I2C device address.
16*4882a593Smuzhiyun
17*4882a593SmuzhiyunOptional properties:
18*4882a593Smuzhiyun- Child nodes conforming to I2C bus binding
19*4882a593Smuzhiyun
20*4882a593SmuzhiyunExamples:
21*4882a593Smuzhiyuni2c0: i2c@70500000 {
22*4882a593Smuzhiyun	compatible = "sprd,sc9860-i2c";
23*4882a593Smuzhiyun	reg = <0 0x70500000 0 0x1000>;
24*4882a593Smuzhiyun	interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
25*4882a593Smuzhiyun	clock-names = "i2c", "source", "enable";
26*4882a593Smuzhiyun	clocks = <&clk_i2c3>, <&ext_26m>, <&clk_ap_apb_gates 11>;
27*4882a593Smuzhiyun	clock-frequency = <400000>;
28*4882a593Smuzhiyun	#address-cells = <1>;
29*4882a593Smuzhiyun	#size-cells = <0>;
30*4882a593Smuzhiyun};
31*4882a593Smuzhiyun
32