Debian Codegraph @

Documentation/devicetree/bindings/i2c/spacemit,k1-i2c.yaml

raw
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
7 title: I2C controller embedded in SpacemiT's K1 SoC
8
9 maintainers:
10 - Troy Mitchell <[email protected]>
11
12 allOf:
13 - $ref: /schemas/i2c/i2c-controller.yaml#
14
15 properties:
16 compatible:
17 const: spacemit,k1-i2c
18
19 reg:
20 maxItems: 1
21
22 interrupts:
23 maxItems: 1
24
25 clocks:
26 items:
27 - description: I2C Functional Clock
28 - description: APB Bus Clock
29
30 clock-names:
31 items:
32 - const: func
33 - const: bus
34
35 clock-frequency:
36 description: |
37 K1 support three different modes which running different frequencies
38 standard speed mode: up to 100000 (100Hz)
39 fast speed mode : up to 400000 (400Hz)
40 high speed mode : up to 3300000 (3.3Mhz)
41 default: 400000
42 maximum: 3300000
43
44 resets:
45 maxItems: 1
46
47 required:
48 - compatible
49 - reg
50 - interrupts
51 - clocks
52
53 unevaluatedProperties: false
54
55 examples:
56 - |
57 i2c@d4010800 {
58 compatible = "spacemit,k1-i2c";
59 reg = <0xd4010800 0x38>;
60 interrupt-parent = <&plic>;
61 interrupts = <36>;
62 clocks = <&ccu 32>, <&ccu 84>;
63 clock-names = "func", "bus";
64 clock-frequency = <100000>;
65 };
66
67 ...