Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | I2C for Spreadtrum platforms |
| 2 | |
| 3 | Required 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 | |
| 17 | Optional properties: |
| 18 | - Child nodes conforming to I2C bus binding |
| 19 | |
| 20 | Examples: |
| 21 | i2c0: 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 | |