xref: /freebsd/sys/contrib/device-tree/Bindings/i2c/ti,omap4-i2c.yaml (revision 8bab661a3316d8bd9b9fbd11a3b4371b91507bd2)
15956d97fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
25956d97fSEmmanuel Vadot%YAML 1.2
35956d97fSEmmanuel Vadot---
45956d97fSEmmanuel Vadot$id: http://devicetree.org/schemas/i2c/ti,omap4-i2c.yaml#
55956d97fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
65956d97fSEmmanuel Vadot
7*8bab661aSEmmanuel Vadottitle: I2C controllers on TI's OMAP and K3 SoCs
85956d97fSEmmanuel Vadot
95956d97fSEmmanuel Vadotmaintainers:
105956d97fSEmmanuel Vadot  - Vignesh Raghavendra <vigneshr@ti.com>
115956d97fSEmmanuel Vadot
125956d97fSEmmanuel Vadotproperties:
135956d97fSEmmanuel Vadot  compatible:
145956d97fSEmmanuel Vadot    oneOf:
155956d97fSEmmanuel Vadot      - enum:
165956d97fSEmmanuel Vadot          - ti,omap2420-i2c
175956d97fSEmmanuel Vadot          - ti,omap2430-i2c
185956d97fSEmmanuel Vadot          - ti,omap3-i2c
195956d97fSEmmanuel Vadot          - ti,omap4-i2c
205956d97fSEmmanuel Vadot      - items:
215956d97fSEmmanuel Vadot          - enum:
225956d97fSEmmanuel Vadot              - ti,am4372-i2c
235956d97fSEmmanuel Vadot              - ti,am64-i2c
245956d97fSEmmanuel Vadot              - ti,am654-i2c
255956d97fSEmmanuel Vadot              - ti,j721e-i2c
265956d97fSEmmanuel Vadot          - const: ti,omap4-i2c
275956d97fSEmmanuel Vadot
285956d97fSEmmanuel Vadot  reg:
295956d97fSEmmanuel Vadot    maxItems: 1
305956d97fSEmmanuel Vadot
315956d97fSEmmanuel Vadot  interrupts:
325956d97fSEmmanuel Vadot    maxItems: 1
335956d97fSEmmanuel Vadot
345956d97fSEmmanuel Vadot  clocks:
355956d97fSEmmanuel Vadot    maxItems: 1
365956d97fSEmmanuel Vadot
375956d97fSEmmanuel Vadot  clock-names:
385956d97fSEmmanuel Vadot    const: fck
395956d97fSEmmanuel Vadot
405956d97fSEmmanuel Vadot  clock-frequency: true
415956d97fSEmmanuel Vadot
425956d97fSEmmanuel Vadot  power-domains: true
435956d97fSEmmanuel Vadot
445956d97fSEmmanuel Vadot  "#address-cells":
455956d97fSEmmanuel Vadot    const: 1
465956d97fSEmmanuel Vadot
475956d97fSEmmanuel Vadot  "#size-cells":
485956d97fSEmmanuel Vadot    const: 0
495956d97fSEmmanuel Vadot
505956d97fSEmmanuel Vadot  ti,hwmods:
515956d97fSEmmanuel Vadot    description:
525956d97fSEmmanuel Vadot      Must be "i2c<n>", n being the instance number (1-based).
535956d97fSEmmanuel Vadot      This property is applicable only on legacy platforms mainly omap2/3
545956d97fSEmmanuel Vadot      and ti81xx and should not be used on other platforms.
555956d97fSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/string
565956d97fSEmmanuel Vadot    deprecated: true
575956d97fSEmmanuel Vadot
585956d97fSEmmanuel Vadot# subnode's properties
595956d97fSEmmanuel VadotpatternProperties:
605956d97fSEmmanuel Vadot  "@[0-9a-f]+$":
615956d97fSEmmanuel Vadot    type: object
625956d97fSEmmanuel Vadot    description:
635956d97fSEmmanuel Vadot      Flash device uses the below defined properties in the subnode.
645956d97fSEmmanuel Vadot
655956d97fSEmmanuel Vadotrequired:
665956d97fSEmmanuel Vadot  - compatible
675956d97fSEmmanuel Vadot  - reg
685956d97fSEmmanuel Vadot  - interrupts
695956d97fSEmmanuel Vadot
705956d97fSEmmanuel VadotadditionalProperties: false
715956d97fSEmmanuel Vadot
725956d97fSEmmanuel Vadotif:
735956d97fSEmmanuel Vadot  properties:
745956d97fSEmmanuel Vadot    compatible:
75354d7675SEmmanuel Vadot      enum:
76354d7675SEmmanuel Vadot        - ti,omap2420-i2c
77354d7675SEmmanuel Vadot        - ti,omap2430-i2c
78354d7675SEmmanuel Vadot        - ti,omap3-i2c
79354d7675SEmmanuel Vadot        - ti,omap4-i2c
805956d97fSEmmanuel Vadot
815956d97fSEmmanuel Vadotthen:
825956d97fSEmmanuel Vadot  properties:
835956d97fSEmmanuel Vadot    ti,hwmods:
845956d97fSEmmanuel Vadot      items:
855956d97fSEmmanuel Vadot        - pattern: "^i2c([1-9])$"
865956d97fSEmmanuel Vadot
875956d97fSEmmanuel Vadotelse:
885956d97fSEmmanuel Vadot  properties:
895956d97fSEmmanuel Vadot    ti,hwmods: false
905956d97fSEmmanuel Vadot
915956d97fSEmmanuel Vadotexamples:
925956d97fSEmmanuel Vadot  - |
935956d97fSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
945956d97fSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
955956d97fSEmmanuel Vadot
965956d97fSEmmanuel Vadot    main_i2c0: i2c@2000000 {
975956d97fSEmmanuel Vadot            compatible = "ti,j721e-i2c", "ti,omap4-i2c";
985956d97fSEmmanuel Vadot            reg = <0x2000000 0x100>;
995956d97fSEmmanuel Vadot            interrupts = <GIC_SPI 200 IRQ_TYPE_LEVEL_HIGH>;
1005956d97fSEmmanuel Vadot            #address-cells = <1>;
1015956d97fSEmmanuel Vadot            #size-cells = <0>;
1025956d97fSEmmanuel Vadot         };
103