1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/i2c/spacemit,k1-i2c.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: I2C controller embedded in SpacemiT's K1 SoC 8 9maintainers: 10 - Troy Mitchell <troymitchell988@gmail.com> 11 12properties: 13 compatible: 14 const: spacemit,k1-i2c 15 16 reg: 17 maxItems: 1 18 19 interrupts: 20 maxItems: 1 21 22 clocks: 23 items: 24 - description: I2C Functional Clock 25 - description: APB Bus Clock 26 27 clock-names: 28 items: 29 - const: func 30 - const: bus 31 32 clock-frequency: 33 description: | 34 K1 support three different modes which running different frequencies 35 standard speed mode: up to 100000 (100Hz) 36 fast speed mode : up to 400000 (400Hz) 37 high speed mode : up to 3300000 (3.3Mhz) 38 default: 400000 39 maximum: 3300000 40 41required: 42 - compatible 43 - reg 44 - interrupts 45 - clocks 46 47unevaluatedProperties: false 48 49examples: 50 - | 51 i2c@d4010800 { 52 compatible = "spacemit,k1-i2c"; 53 reg = <0xd4010800 0x38>; 54 interrupt-parent = <&plic>; 55 interrupts = <36>; 56 clocks =<&ccu 32>, <&ccu 84>; 57 clock-names = "func", "bus"; 58 clock-frequency = <100000>; 59 }; 60 61... 62