hc
2023-10-25 6c2073b7aa40e29d0eca7d571dd7bc590c7ecaa7
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
* Ingenic JZ4780 I2C Bus controller
 
Required properties:
- compatible: should be "ingenic,jz4780-i2c"
- 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>;
 
   };
};