I2C controllers on TI's OMAP and K3 SoCs

Schema identifier ($id): "http://devicetree.org/schemas/i2c/ti,omap4-i2c.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Vignesh Raghavendra <vigneshr@ti.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "ti,omap2420-i2c", "ti,omap2430-i2c", "ti,omap3-i2c", "ti,omap4-i2c"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "ti,am4372-i2c", "ti,am64-i2c", "ti,am654-i2c", "ti,j721e-i2c"

Item 2

Exact value (const): "ti,omap4-i2c"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 1

clock-names — not listed as required here #

Exact value (const): "fck"

power-domains — not listed as required here #

true — No constraints added by this property rule.

ti,hwmods — not listed as required here #

Must be "i2c<n>", n being the instance number (1-based). This property is applicable only on legacy platforms mainly omap2/3 and ti81xx and should not be used on other platforms.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string

Deprecated (deprecated): true

mux-states — not listed as required here #

mux controller node to route the I2C signals from SoC to clients.

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "interrupts"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "ti,omap2420-i2c", "ti,omap2430-i2c", "ti,omap3-i2c", "ti,omap4-i2c"

When the condition matches (then) #

Properties and child nodes (properties)

ti,hwmods — not listed as required here

Array item rules (items)

Item 1

String pattern (pattern): "^i2c([1-9])$"

When the condition does not match (else) #

Properties and child nodes (properties)

ti,hwmods — not listed as required here

false — Not permitted by this property rule.

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

main_i2c0: i2c@2000000 {
    compatible = "ti,j721e-i2c", "ti,omap4-i2c";
    reg = <0x2000000 0x100>;
    interrupts = <GIC_SPI 200 IRQ_TYPE_LEVEL_HIGH>;
    #address-cells = <1>;
    #size-cells = <0>;
    mux-states = <&i2c_mux 1>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page