^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) I2C for OMAP 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 : Must be
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) "ti,omap2420-i2c" for OMAP2420 SoCs
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) "ti,omap2430-i2c" for OMAP2430 SoCs
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) "ti,omap3-i2c" for OMAP3 SoCs
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) "ti,omap4-i2c" for OMAP4+ SoCs
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) "ti,am654-i2c", "ti,omap4-i2c" for AM654 SoCs
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) "ti,j721e-i2c", "ti,omap4-i2c" for J721E SoCs
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) - ti,hwmods : Must be "i2c<n>", n being the instance number (1-based)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) - #address-cells = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) - #size-cells = <0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) Recommended properties :
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) - clock-frequency : Desired I2C bus clock frequency in Hz. Otherwise
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) the default 100 kHz frequency will be used.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) Optional properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) - Child nodes conforming to i2c bus binding
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) Note: Current implementation will fetch base address, irq and dma
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) from omap hwmod data base during device registration.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) Future plan is to migrate hwmod data base contents into device tree
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) blob so that, all the required data will be used from device tree dts
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) file.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) Examples :
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) i2c1: i2c@0 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) compatible = "ti,omap3-i2c";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) #address-cells = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) #size-cells = <0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) ti,hwmods = "i2c1";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) clock-frequency = <400000>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) };