xref: /freebsd/sys/contrib/device-tree/Bindings/i2c/spacemit,k1-i2c.yaml (revision 833e5d42ab135b0238e61c5b3c19b8619677cbfa)
18ccc0d23SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
28ccc0d23SEmmanuel Vadot%YAML 1.2
38ccc0d23SEmmanuel Vadot---
48ccc0d23SEmmanuel Vadot$id: http://devicetree.org/schemas/i2c/spacemit,k1-i2c.yaml#
58ccc0d23SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
68ccc0d23SEmmanuel Vadot
78ccc0d23SEmmanuel Vadottitle: I2C controller embedded in SpacemiT's K1 SoC
88ccc0d23SEmmanuel Vadot
98ccc0d23SEmmanuel Vadotmaintainers:
108ccc0d23SEmmanuel Vadot  - Troy Mitchell <troymitchell988@gmail.com>
118ccc0d23SEmmanuel Vadot
12*833e5d42SEmmanuel VadotallOf:
13*833e5d42SEmmanuel Vadot  - $ref: /schemas/i2c/i2c-controller.yaml#
14*833e5d42SEmmanuel Vadot
158ccc0d23SEmmanuel Vadotproperties:
168ccc0d23SEmmanuel Vadot  compatible:
178ccc0d23SEmmanuel Vadot    const: spacemit,k1-i2c
188ccc0d23SEmmanuel Vadot
198ccc0d23SEmmanuel Vadot  reg:
208ccc0d23SEmmanuel Vadot    maxItems: 1
218ccc0d23SEmmanuel Vadot
228ccc0d23SEmmanuel Vadot  interrupts:
238ccc0d23SEmmanuel Vadot    maxItems: 1
248ccc0d23SEmmanuel Vadot
258ccc0d23SEmmanuel Vadot  clocks:
268ccc0d23SEmmanuel Vadot    items:
278ccc0d23SEmmanuel Vadot      - description: I2C Functional Clock
288ccc0d23SEmmanuel Vadot      - description: APB Bus Clock
298ccc0d23SEmmanuel Vadot
308ccc0d23SEmmanuel Vadot  clock-names:
318ccc0d23SEmmanuel Vadot    items:
328ccc0d23SEmmanuel Vadot      - const: func
338ccc0d23SEmmanuel Vadot      - const: bus
348ccc0d23SEmmanuel Vadot
358ccc0d23SEmmanuel Vadot  clock-frequency:
368ccc0d23SEmmanuel Vadot    description: |
378ccc0d23SEmmanuel Vadot      K1 support three different modes which running different frequencies
388ccc0d23SEmmanuel Vadot      standard speed mode: up to 100000 (100Hz)
398ccc0d23SEmmanuel Vadot      fast speed mode    : up to 400000 (400Hz)
408ccc0d23SEmmanuel Vadot      high speed mode    : up to 3300000 (3.3Mhz)
418ccc0d23SEmmanuel Vadot    default: 400000
428ccc0d23SEmmanuel Vadot    maximum: 3300000
438ccc0d23SEmmanuel Vadot
448ccc0d23SEmmanuel Vadotrequired:
458ccc0d23SEmmanuel Vadot  - compatible
468ccc0d23SEmmanuel Vadot  - reg
478ccc0d23SEmmanuel Vadot  - interrupts
488ccc0d23SEmmanuel Vadot  - clocks
498ccc0d23SEmmanuel Vadot
508ccc0d23SEmmanuel VadotunevaluatedProperties: false
518ccc0d23SEmmanuel Vadot
528ccc0d23SEmmanuel Vadotexamples:
538ccc0d23SEmmanuel Vadot  - |
548ccc0d23SEmmanuel Vadot    i2c@d4010800 {
558ccc0d23SEmmanuel Vadot        compatible = "spacemit,k1-i2c";
568ccc0d23SEmmanuel Vadot        reg = <0xd4010800 0x38>;
578ccc0d23SEmmanuel Vadot        interrupt-parent = <&plic>;
588ccc0d23SEmmanuel Vadot        interrupts = <36>;
598ccc0d23SEmmanuel Vadot        clocks =<&ccu 32>, <&ccu 84>;
608ccc0d23SEmmanuel Vadot        clock-names = "func", "bus";
618ccc0d23SEmmanuel Vadot        clock-frequency = <100000>;
628ccc0d23SEmmanuel Vadot    };
638ccc0d23SEmmanuel Vadot
648ccc0d23SEmmanuel Vadot...
65