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  - Shawn Guo <shawnguo@kernel.org>
11  - Sascha Hauer <s.hauer@pengutronix.de>
12  - Fabio Estevam <festevam@gmail.com>
13
14allOf:
15  - $ref: /schemas/i2c/i2c-controller.yaml#
16
17properties:
18  compatible:
19    oneOf:
20      - enum:
21          - fsl,imx7ulp-lpi2c
22      - items:
23          - enum:
24              - fsl,imx8qxp-lpi2c
25              - fsl,imx8dxl-lpi2c
26              - fsl,imx8qm-lpi2c
27              - fsl,imx8ulp-lpi2c
28              - fsl,imx93-lpi2c
29              - fsl,imx94-lpi2c
30              - fsl,imx95-lpi2c
31          - const: fsl,imx7ulp-lpi2c
32
33  reg:
34    maxItems: 1
35
36  interrupts:
37    maxItems: 1
38
39  assigned-clock-parents: true
40  assigned-clock-rates: true
41  assigned-clocks: true
42  clock-frequency: true
43
44  clock-names:
45    items:
46      - const: per
47      - const: ipg
48
49  clocks:
50    maxItems: 2
51
52  dmas:
53    items:
54      - description: DMA controller phandle and request line for TX
55      - description: DMA controller phandle and request line for RX
56
57  dma-names:
58    items:
59      - const: tx
60      - const: rx
61
62  power-domains:
63    maxItems: 1
64
65required:
66  - compatible
67  - reg
68  - interrupts
69  - clocks
70
71unevaluatedProperties: false
72
73examples:
74  - |
75    #include <dt-bindings/clock/imx7ulp-clock.h>
76    #include <dt-bindings/interrupt-controller/arm-gic.h>
77
78    i2c@40a50000 {
79        compatible = "fsl,imx7ulp-lpi2c";
80        reg = <0x40A50000 0x10000>;
81        interrupt-parent = <&intc>;
82        interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
83        clocks = <&clks IMX7ULP_CLK_LPI2C7>,
84                 <&clks IMX7ULP_CLK_NIC1_BUS_DIV>;
85    };
86