xref: /freebsd-src/sys/contrib/device-tree/Bindings/i2c/i2c-octeon.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot* Two Wire Serial Interface (TWSI) / I2C
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel Vadot- compatible: "cavium,octeon-3860-twsi"
4*c66ec88fSEmmanuel Vadot
5*c66ec88fSEmmanuel Vadot  Compatibility with all cn3XXX, cn5XXX and cn6XXX SOCs.
6*c66ec88fSEmmanuel Vadot
7*c66ec88fSEmmanuel Vadot  or
8*c66ec88fSEmmanuel Vadot
9*c66ec88fSEmmanuel Vadot  compatible: "cavium,octeon-7890-twsi"
10*c66ec88fSEmmanuel Vadot
11*c66ec88fSEmmanuel Vadot  Compatibility with cn78XX SOCs.
12*c66ec88fSEmmanuel Vadot
13*c66ec88fSEmmanuel Vadot- reg: The base address of the TWSI/I2C bus controller register bank.
14*c66ec88fSEmmanuel Vadot
15*c66ec88fSEmmanuel Vadot- #address-cells: Must be <1>.
16*c66ec88fSEmmanuel Vadot
17*c66ec88fSEmmanuel Vadot- #size-cells: Must be <0>.  I2C addresses have no size component.
18*c66ec88fSEmmanuel Vadot
19*c66ec88fSEmmanuel Vadot- interrupts: A single interrupt specifier.
20*c66ec88fSEmmanuel Vadot
21*c66ec88fSEmmanuel Vadot- clock-frequency: The I2C bus clock rate in Hz.
22*c66ec88fSEmmanuel Vadot
23*c66ec88fSEmmanuel VadotExample:
24*c66ec88fSEmmanuel Vadot	twsi0: i2c@1180000001000 {
25*c66ec88fSEmmanuel Vadot		#address-cells = <1>;
26*c66ec88fSEmmanuel Vadot		#size-cells = <0>;
27*c66ec88fSEmmanuel Vadot		compatible = "cavium,octeon-3860-twsi";
28*c66ec88fSEmmanuel Vadot		reg = <0x11800 0x00001000 0x0 0x200>;
29*c66ec88fSEmmanuel Vadot		interrupts = <0 45>;
30*c66ec88fSEmmanuel Vadot		clock-frequency = <100000>;
31*c66ec88fSEmmanuel Vadot
32*c66ec88fSEmmanuel Vadot		rtc@68 {
33*c66ec88fSEmmanuel Vadot			compatible = "dallas,ds1337";
34*c66ec88fSEmmanuel Vadot			reg = <0x68>;
35*c66ec88fSEmmanuel Vadot		};
36*c66ec88fSEmmanuel Vadot		tmp@4c {
37*c66ec88fSEmmanuel Vadot			compatible = "ti,tmp421";
38*c66ec88fSEmmanuel Vadot			reg = <0x4c>;
39*c66ec88fSEmmanuel Vadot		};
40*c66ec88fSEmmanuel Vadot	};
41