0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/i2c/ti,omap4-i2c.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Bindings for I2C controllers on TI's OMAP and K3 SoCs
0008
0009 maintainers:
0010 - Vignesh Raghavendra <vigneshr@ti.com>
0011
0012 properties:
0013 compatible:
0014 oneOf:
0015 - enum:
0016 - ti,omap2420-i2c
0017 - ti,omap2430-i2c
0018 - ti,omap3-i2c
0019 - ti,omap4-i2c
0020 - items:
0021 - enum:
0022 - ti,am4372-i2c
0023 - ti,am64-i2c
0024 - ti,am654-i2c
0025 - ti,j721e-i2c
0026 - const: ti,omap4-i2c
0027
0028 reg:
0029 maxItems: 1
0030
0031 interrupts:
0032 maxItems: 1
0033
0034 clocks:
0035 maxItems: 1
0036
0037 clock-names:
0038 const: fck
0039
0040 clock-frequency: true
0041
0042 power-domains: true
0043
0044 "#address-cells":
0045 const: 1
0046
0047 "#size-cells":
0048 const: 0
0049
0050 ti,hwmods:
0051 description:
0052 Must be "i2c<n>", n being the instance number (1-based).
0053 This property is applicable only on legacy platforms mainly omap2/3
0054 and ti81xx and should not be used on other platforms.
0055 $ref: /schemas/types.yaml#/definitions/string
0056 deprecated: true
0057
0058 # subnode's properties
0059 patternProperties:
0060 "@[0-9a-f]+$":
0061 type: object
0062 description:
0063 Flash device uses the below defined properties in the subnode.
0064
0065 required:
0066 - compatible
0067 - reg
0068 - interrupts
0069
0070 additionalProperties: false
0071
0072 if:
0073 properties:
0074 compatible:
0075 enum:
0076 - ti,omap2420-i2c
0077 - ti,omap2430-i2c
0078 - ti,omap3-i2c
0079 - ti,omap4-i2c
0080
0081 then:
0082 properties:
0083 ti,hwmods:
0084 items:
0085 - pattern: "^i2c([1-9])$"
0086
0087 else:
0088 properties:
0089 ti,hwmods: false
0090
0091 examples:
0092 - |
0093 #include <dt-bindings/interrupt-controller/irq.h>
0094 #include <dt-bindings/interrupt-controller/arm-gic.h>
0095
0096 main_i2c0: i2c@2000000 {
0097 compatible = "ti,j721e-i2c", "ti,omap4-i2c";
0098 reg = <0x2000000 0x100>;
0099 interrupts = <GIC_SPI 200 IRQ_TYPE_LEVEL_HIGH>;
0100 #address-cells = <1>;
0101 #size-cells = <0>;
0102 };