blob: 7b6b3b8d0d116c3e0d335e20716a04a30663d33e [file] [log] [blame]
Tom Rini53633a82024-02-29 12:33:36 -05001I2C for Spreadtrum platforms
2
3Required properties:
4- compatible: Should be "sprd,sc9860-i2c".
5- reg: Specify the physical base address of the controller and length
6 of memory mapped region.
7- interrupts: Should contain I2C interrupt.
8- clock-names: Should contain following entries:
9 "i2c" for I2C clock,
10 "source" for I2C source (parent) clock,
11 "enable" for I2C module enable clock.
12- clocks: Should contain a clock specifier for each entry in clock-names.
13- clock-frequency: Contains desired I2C bus clock frequency in Hz.
14- #address-cells: Should be 1 to describe address cells for I2C device address.
15- #size-cells: Should be 0 means no size cell for I2C device address.
16
17Optional properties:
18- Child nodes conforming to I2C bus binding
19
20Examples:
21i2c0: i2c@70500000 {
22 compatible = "sprd,sc9860-i2c";
23 reg = <0 0x70500000 0 0x1000>;
24 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
25 clock-names = "i2c", "source", "enable";
26 clocks = <&clk_i2c3>, <&ext_26m>, <&clk_ap_apb_gates 11>;
27 clock-frequency = <400000>;
28 #address-cells = <1>;
29 #size-cells = <0>;
30};
31