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