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    enum:
18      - fsl,imx7ulp-lpi2c
19      - fsl,imx8qxp-lpi2c
20      - fsl,imx8qm-lpi2c
21
22  reg:
23    maxItems: 1
24
25  interrupts:
26    maxItems: 1
27
28  assigned-clock-parents: true
29  assigned-clock-rates: true
30  assigned-clocks: true
31  clock-frequency: true
32
33  clock-names:
34    maxItems: 1
35
36  clocks:
37    maxItems: 1
38
39  power-domains:
40    maxItems: 1
41
42required:
43  - compatible
44  - reg
45  - interrupts
46  - clocks
47
48unevaluatedProperties: false
49
50examples:
51  - |
52    #include <dt-bindings/clock/imx7ulp-clock.h>
53    #include <dt-bindings/interrupt-controller/arm-gic.h>
54
55    i2c@40a50000 {
56        compatible = "fsl,imx7ulp-lpi2c";
57        reg = <0x40A50000 0x10000>;
58        interrupt-parent = <&intc>;
59        interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
60        clocks = <&clks IMX7ULP_CLK_LPI2C7>;
61    };
62