Skip to content

Commit 76fe9ac

Browse files
TroyMitchell911Andi Shyti
authored andcommitted
dt-bindings: i2c: spacemit: add support for K1 SoC
The I2C of K1 supports fast-speed-mode and high-speed-mode, and supports FIFO transmission. Signed-off-by: Troy Mitchell <troymitchell988@gmail.com> Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Andi Shyti <andi.shyti@kernel.org> Link: https://lore.kernel.org/r/20250319-k1-i2c-master-v8-1-013e2df2b78d@gmail.com
1 parent b6ef830 commit 76fe9ac

1 file changed

Lines changed: 61 additions & 0 deletions

File tree

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
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 <troymitchell988@gmail.com>
11+
12+
properties:
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+
41+
required:
42+
- compatible
43+
- reg
44+
- interrupts
45+
- clocks
46+
47+
unevaluatedProperties: false
48+
49+
examples:
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+
...

0 commit comments

Comments
 (0)