summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/i2c/i2c-jz4780.txt
blob: d229eff5ca1b74543436dcc1fe5335d1c32202b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
* Ingenic JZ4780 I2C Bus controller

Required properties:
- compatible: should be one of the following:
  - "ingenic,jz4780-i2c" for the JZ4780
  - "ingenic,x1000-i2c" for the X1000
- reg: Should contain the address & size of the I2C controller registers.
- interrupts: Should specify the interrupt provided by parent.
- clocks: Should contain a single clock specifier for the JZ4780 I2C clock.
- clock-frequency: desired I2C bus clock frequency in Hz.

Recommended properties:
- pinctrl-names: should be "default";
- pinctrl-0: phandle to pinctrl function

Example

/ {
	i2c4: i2c4@10054000 {
		compatible = "ingenic,jz4780-i2c";
		reg = <0x10054000 0x1000>;

		interrupt-parent = <&intc>;
		interrupts = <56>;

		clocks = <&cgu JZ4780_CLK_SMB4>;
		clock-frequency = <100000>;
		pinctrl-names = "default";
		pinctrl-0 = <&pins_i2c4_data>;

	};
};