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