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