xref: /freebsd/sys/contrib/device-tree/Bindings/i2c/i2c-exynos5.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot* Samsung's High Speed I2C controller
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotThe Samsung's High Speed I2C controller is used to interface with I2C devices
4*c66ec88fSEmmanuel Vadotat various speeds ranging from 100khz to 3.4Mhz.
5*c66ec88fSEmmanuel Vadot
6*c66ec88fSEmmanuel VadotRequired properties:
7*c66ec88fSEmmanuel Vadot  - compatible: value should be.
8*c66ec88fSEmmanuel Vadot	-> "samsung,exynos5-hsi2c", (DEPRECATED)
9*c66ec88fSEmmanuel Vadot				for i2c compatible with HSI2C available
10*c66ec88fSEmmanuel Vadot				on Exynos5250 and Exynos5420 SoCs.
11*c66ec88fSEmmanuel Vadot	-> "samsung,exynos5250-hsi2c", for i2c compatible with HSI2C available
12*c66ec88fSEmmanuel Vadot				on Exynos5250 and Exynos5420 SoCs.
13*c66ec88fSEmmanuel Vadot	-> "samsung,exynos5260-hsi2c", for i2c compatible with HSI2C available
14*c66ec88fSEmmanuel Vadot				on Exynos5260 SoCs.
15*c66ec88fSEmmanuel Vadot	-> "samsung,exynos7-hsi2c", for i2c compatible with HSI2C available
16*c66ec88fSEmmanuel Vadot				on Exynos7 SoCs.
17*c66ec88fSEmmanuel Vadot
18*c66ec88fSEmmanuel Vadot  - reg: physical base address of the controller and length of memory mapped
19*c66ec88fSEmmanuel Vadot    region.
20*c66ec88fSEmmanuel Vadot  - interrupts: interrupt number to the cpu.
21*c66ec88fSEmmanuel Vadot  - #address-cells: always 1 (for i2c addresses)
22*c66ec88fSEmmanuel Vadot  - #size-cells: always 0
23*c66ec88fSEmmanuel Vadot
24*c66ec88fSEmmanuel Vadot  - Pinctrl:
25*c66ec88fSEmmanuel Vadot    - pinctrl-0: Pin control group to be used for this controller.
26*c66ec88fSEmmanuel Vadot    - pinctrl-names: Should contain only one value - "default".
27*c66ec88fSEmmanuel Vadot
28*c66ec88fSEmmanuel VadotOptional properties:
29*c66ec88fSEmmanuel Vadot  - clock-frequency: Desired operating frequency in Hz of the bus.
30*c66ec88fSEmmanuel Vadot    -> If not specified, the bus operates in fast-speed mode at
31*c66ec88fSEmmanuel Vadot       at 100khz.
32*c66ec88fSEmmanuel Vadot    -> If specified, the bus operates in high-speed mode only if the
33*c66ec88fSEmmanuel Vadot       clock-frequency is >= 1Mhz.
34*c66ec88fSEmmanuel Vadot
35*c66ec88fSEmmanuel VadotExample:
36*c66ec88fSEmmanuel Vadot
37*c66ec88fSEmmanuel Vadothsi2c@12ca0000 {
38*c66ec88fSEmmanuel Vadot	compatible = "samsung,exynos5250-hsi2c";
39*c66ec88fSEmmanuel Vadot	reg = <0x12ca0000 0x100>;
40*c66ec88fSEmmanuel Vadot	interrupts = <56>;
41*c66ec88fSEmmanuel Vadot	clock-frequency = <100000>;
42*c66ec88fSEmmanuel Vadot
43*c66ec88fSEmmanuel Vadot	pinctrl-0 = <&i2c4_bus>;
44*c66ec88fSEmmanuel Vadot	pinctrl-names = "default";
45*c66ec88fSEmmanuel Vadot
46*c66ec88fSEmmanuel Vadot	#address-cells = <1>;
47*c66ec88fSEmmanuel Vadot	#size-cells = <0>;
48*c66ec88fSEmmanuel Vadot
49*c66ec88fSEmmanuel Vadot	s2mps11_pmic@66 {
50*c66ec88fSEmmanuel Vadot		compatible = "samsung,s2mps11-pmic";
51*c66ec88fSEmmanuel Vadot		reg = <0x66>;
52*c66ec88fSEmmanuel Vadot	};
53*c66ec88fSEmmanuel Vadot};
54