1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2%YAML 1.2 3--- 4$id: "http://devicetree.org/schemas/i2c/cdns,i2c-r1p10.yaml#" 5$schema: "http://devicetree.org/meta-schemas/core.yaml#" 6 7title: Cadence I2C controller 8 9maintainers: 10 - Michal Simek <michal.simek@xilinx.com> 11 12allOf: 13 - $ref: /schemas/i2c/i2c-controller.yaml# 14 15properties: 16 compatible: 17 enum: 18 - cdns,i2c-r1p10 # cadence i2c controller version 1.0 19 - cdns,i2c-r1p14 # cadence i2c controller version 1.4 20 21 reg: 22 maxItems: 1 23 24 clocks: 25 minItems: 1 26 27 interrupts: 28 maxItems: 1 29 30 clock-frequency: 31 minimum: 1 32 maximum: 400000 33 description: | 34 Desired operating frequency, in Hz, of the bus. 35 36 clock-name: 37 const: pclk 38 description: | 39 Input clock name. 40 41 fifo-depth: 42 description: 43 Size of the data FIFO in bytes. 44 $ref: /schemas/types.yaml#/definitions/uint32 45 default: 16 46 enum: [2, 4, 8, 16, 32, 64, 128, 256] 47 48required: 49 - compatible 50 - reg 51 - clocks 52 - interrupts 53 54unevaluatedProperties: false 55 56examples: 57 - | 58 #include <dt-bindings/interrupt-controller/arm-gic.h> 59 i2c@e0004000 { 60 compatible = "cdns,i2c-r1p10"; 61 clocks = <&clkc 38>; 62 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>; 63 reg = <0xe0004000 0x1000>; 64 clock-frequency = <400000>; 65 #address-cells = <1>; 66 #size-cells = <0>; 67 fifo-depth = <8>; 68 }; 69