Merge existing fixes from spi/for-5.10
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / i2c / i2c-imx-lpi2c.yaml
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
7 title: Freescale Low Power Inter IC (LPI2C) for i.MX
8
9 maintainers:
10   - Anson Huang <Anson.Huang@nxp.com>
11
12 allOf:
13   - $ref: /schemas/i2c/i2c-controller.yaml#
14
15 properties:
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
45 required:
46   - compatible
47   - reg
48   - interrupts
49   - clocks
50
51 unevaluatedProperties: false
52
53 examples:
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     };