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