xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/i2c/i2c-img-scb.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunIMG Serial Control Bus (SCB) I2C Controller
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired Properties:
4*4882a593Smuzhiyun- compatible: "img,scb-i2c"
5*4882a593Smuzhiyun- reg: Physical base address and length of controller registers
6*4882a593Smuzhiyun- interrupts: Interrupt number used by the controller
7*4882a593Smuzhiyun- clocks : Should contain a clock specifier for each entry in clock-names
8*4882a593Smuzhiyun- clock-names : Should contain the following entries:
9*4882a593Smuzhiyun                "scb", for the SCB core clock.
10*4882a593Smuzhiyun                "sys", for the system clock.
11*4882a593Smuzhiyun- clock-frequency: The I2C bus frequency in Hz
12*4882a593Smuzhiyun- #address-cells: Should be <1>
13*4882a593Smuzhiyun- #size-cells: Should be <0>
14*4882a593Smuzhiyun
15*4882a593SmuzhiyunExample:
16*4882a593Smuzhiyun
17*4882a593Smuzhiyuni2c@18100000 {
18*4882a593Smuzhiyun	compatible = "img,scb-i2c";
19*4882a593Smuzhiyun	reg = <0x18100000 0x200>;
20*4882a593Smuzhiyun	interrupts = <GIC_SHARED 2 IRQ_TYPE_LEVEL_HIGH>;
21*4882a593Smuzhiyun	clocks = <&i2c0_clk>, <&system_clk>;
22*4882a593Smuzhiyun	clock-names = "scb", "sys";
23*4882a593Smuzhiyun	clock-frequency = <400000>;
24*4882a593Smuzhiyun	#address-cells = <1>;
25*4882a593Smuzhiyun	#size-cells = <0>;
26*4882a593Smuzhiyun};
27