xref: /linux/Documentation/devicetree/bindings/i2c/microchip,corei2c.yaml (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
1f1bd6661SConor Dooley# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2f1bd6661SConor Dooley%YAML 1.2
3f1bd6661SConor Dooley---
4f1bd6661SConor Dooley$id: http://devicetree.org/schemas/i2c/microchip,corei2c.yaml#
5f1bd6661SConor Dooley$schema: http://devicetree.org/meta-schemas/core.yaml#
6f1bd6661SConor Dooley
7*dd3cb467SAndrew Lunntitle: Microchip MPFS I2C Controller
8f1bd6661SConor Dooley
9f1bd6661SConor Dooleymaintainers:
10f1bd6661SConor Dooley  - Daire McNamara <daire.mcnamara@microchip.com>
11f1bd6661SConor Dooley
12f1bd6661SConor DooleyallOf:
13f1bd6661SConor Dooley  - $ref: /schemas/i2c/i2c-controller.yaml#
14f1bd6661SConor Dooley
15f1bd6661SConor Dooleyproperties:
16f1bd6661SConor Dooley  compatible:
17f1bd6661SConor Dooley    oneOf:
18f1bd6661SConor Dooley      - items:
19f1bd6661SConor Dooley          - const: microchip,mpfs-i2c # Microchip PolarFire SoC compatible SoCs
20f1bd6661SConor Dooley          - const: microchip,corei2c-rtl-v7 # Microchip Fabric based i2c IP core
21f1bd6661SConor Dooley      - const: microchip,corei2c-rtl-v7 # Microchip Fabric based i2c IP core
22f1bd6661SConor Dooley
23f1bd6661SConor Dooley  reg:
24f1bd6661SConor Dooley    maxItems: 1
25f1bd6661SConor Dooley
26f1bd6661SConor Dooley  interrupts:
27f1bd6661SConor Dooley    maxItems: 1
28f1bd6661SConor Dooley
29f1bd6661SConor Dooley  clocks:
30f1bd6661SConor Dooley    maxItems: 1
31f1bd6661SConor Dooley
32f1bd6661SConor Dooley  clock-frequency:
33f1bd6661SConor Dooley    description: |
34f1bd6661SConor Dooley      Desired I2C bus clock frequency in Hz. As only Standard and Fast
35f1bd6661SConor Dooley      modes are supported, possible values are 100000 and 400000.
36f1bd6661SConor Dooley    enum: [100000, 400000]
37f1bd6661SConor Dooley
38f1bd6661SConor Dooleyrequired:
39f1bd6661SConor Dooley  - compatible
40f1bd6661SConor Dooley  - reg
41f1bd6661SConor Dooley  - interrupts
42f1bd6661SConor Dooley  - clocks
43f1bd6661SConor Dooley
44f1bd6661SConor DooleyunevaluatedProperties: false
45f1bd6661SConor Dooley
46f1bd6661SConor Dooleyexamples:
47f1bd6661SConor Dooley  - |
48f1bd6661SConor Dooley    i2c@2010a000 {
49f1bd6661SConor Dooley      compatible = "microchip,mpfs-i2c", "microchip,corei2c-rtl-v7";
50f1bd6661SConor Dooley      reg = <0x2010a000 0x1000>;
51f1bd6661SConor Dooley      clocks = <&clkcfg 15>;
52f1bd6661SConor Dooley      interrupt-parent = <&plic>;
53f1bd6661SConor Dooley      interrupts = <58>;
54f1bd6661SConor Dooley      clock-frequency = <100000>;
55f1bd6661SConor Dooley    };
56f1bd6661SConor Dooley...
57