1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/i2c/xlnx,xps-iic-2.00.a.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Xilinx IIC controller
8
9maintainers:
10  - info@mocean-labs.com
11
12allOf:
13  - $ref: /schemas/i2c/i2c-controller.yaml#
14
15properties:
16  compatible:
17    enum:
18      - xlnx,axi-iic-2.1
19      - xlnx,xps-iic-2.00.a
20
21  reg:
22    maxItems: 1
23
24  interrupts:
25    maxItems: 1
26
27  clocks:
28    minItems: 1
29
30  clock-name:
31    const: pclk
32    description: |
33      Input clock name.
34
35  clock-frequency:
36    description:
37      Optional I2C SCL clock frequency. If not specified, do not configure
38      in software, rely only on hardware design value.
39    default: 100000
40    enum: [ 100000, 400000, 1000000 ]
41
42required:
43  - compatible
44  - reg
45  - interrupts
46  - clocks
47
48unevaluatedProperties: false
49
50examples:
51  - |
52    axi_iic_0: i2c@40800000 {
53      compatible = "xlnx,xps-iic-2.00.a";
54      clocks = <&clkc 15>;
55      interrupts = < 1 2 >;
56      reg = < 0x40800000 0x10000 >;
57
58      #size-cells = <0>;
59      #address-cells = <1>;
60    };
61