1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/i2c/i2c-imx-lpi2c.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Freescale Low Power Inter IC (LPI2C) for i.MX
8
9maintainers:
10  - Anson Huang <Anson.Huang@nxp.com>
11
12allOf:
13  - $ref: /schemas/i2c/i2c-controller.yaml#
14
15properties:
16  compatible:
17    oneOf:
18      - enum:
19          - fsl,imx7ulp-lpi2c
20          - fsl,imx8qm-lpi2c
21      - items:
22          - const: fsl,imx8qxp-lpi2c
23          - const: fsl,imx7ulp-lpi2c
24
25  reg:
26    maxItems: 1
27
28  interrupts:
29    maxItems: 1
30
31  assigned-clock-parents: true
32  assigned-clock-rates: true
33  assigned-clocks: true
34  clock-frequency: true
35
36  clock-names:
37    maxItems: 1
38
39  clocks:
40    maxItems: 1
41
42  power-domains:
43    maxItems: 1
44
45required:
46  - compatible
47  - reg
48  - interrupts
49  - clocks
50
51unevaluatedProperties: false
52
53examples:
54  - |
55    #include <dt-bindings/clock/imx7ulp-clock.h>
56    #include <dt-bindings/interrupt-controller/arm-gic.h>
57
58    i2c@40a50000 {
59        compatible = "fsl,imx7ulp-lpi2c";
60        reg = <0x40A50000 0x10000>;
61        interrupt-parent = <&intc>;
62        interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
63        clocks = <&clks IMX7ULP_CLK_LPI2C7>;
64    };
65