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@amd.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 resets: 28 maxItems: 1 29 30 interrupts: 31 maxItems: 1 32 33 clock-frequency: 34 minimum: 1 35 maximum: 400000 36 description: | 37 Desired operating frequency, in Hz, of the bus. 38 39 clock-name: 40 const: pclk 41 description: | 42 Input clock name. 43 44 fifo-depth: 45 description: 46 Size of the data FIFO in bytes. 47 $ref: /schemas/types.yaml#/definitions/uint32 48 default: 16 49 enum: [2, 4, 8, 16, 32, 64, 128, 256] 50 51required: 52 - compatible 53 - reg 54 - clocks 55 - interrupts 56 57unevaluatedProperties: false 58 59examples: 60 - | 61 #include <dt-bindings/interrupt-controller/arm-gic.h> 62 i2c@e0004000 { 63 compatible = "cdns,i2c-r1p10"; 64 clocks = <&clkc 38>; 65 resets = <&rstc 288>; 66 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>; 67 reg = <0xe0004000 0x1000>; 68 clock-frequency = <400000>; 69 #address-cells = <1>; 70 #size-cells = <0>; 71 fifo-depth = <8>; 72 }; 73