0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: "http://devicetree.org/schemas/i2c/cdns,i2c-r1p10.yaml#"
0005 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
0006
0007 title: Cadence I2C controller Device Tree Bindings
0008
0009 maintainers:
0010 - Michal Simek <michal.simek@xilinx.com>
0011
0012 allOf:
0013 - $ref: /schemas/i2c/i2c-controller.yaml#
0014
0015 properties:
0016 compatible:
0017 enum:
0018 - cdns,i2c-r1p10 # cadence i2c controller version 1.0
0019 - cdns,i2c-r1p14 # cadence i2c controller version 1.4
0020
0021 reg:
0022 maxItems: 1
0023
0024 clocks:
0025 minItems: 1
0026
0027 interrupts:
0028 maxItems: 1
0029
0030 clock-frequency:
0031 minimum: 1
0032 maximum: 400000
0033 description: |
0034 Desired operating frequency, in Hz, of the bus.
0035
0036 clock-name:
0037 const: pclk
0038 description: |
0039 Input clock name.
0040
0041 required:
0042 - compatible
0043 - reg
0044 - clocks
0045 - interrupts
0046
0047 unevaluatedProperties: false
0048
0049 examples:
0050 - |
0051 #include <dt-bindings/interrupt-controller/arm-gic.h>
0052 i2c@e0004000 {
0053 compatible = "cdns,i2c-r1p10";
0054 clocks = <&clkc 38>;
0055 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
0056 reg = <0xe0004000 0x1000>;
0057 clock-frequency = <400000>;
0058 #address-cells = <1>;
0059 #size-cells = <0>;
0060 };