Skip to content

Commit 6bc6b28

Browse files
TroyMitchell911broonie
authored andcommitted
ASoC: dt-bindings: add SpacemiT K3 SoC compatible
Add the spacemit,k3-i2s compatible string for the K3 SoC I2S controller. The K3 I2S IP is the same as K1 but requires additional clocks: a dedicated sysclk_div clock, along with common_sysclk and common_bclk which are shared across multiple I2S controllers on K3. Acked-by: Rob Herring (Arm) <robh@kernel.org> Signed-off-by: Troy Mitchell <troy.mitchell@linux.spacemit.com> Link: https://patch.msgid.link/20260522-k3-i2s-v3-1-08e3eb811d93@linux.spacemit.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent e43ffb6 commit 6bc6b28

1 file changed

Lines changed: 29 additions & 2 deletions

File tree

Documentation/devicetree/bindings/sound/spacemit,k1-i2s.yaml

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
$id: http://devicetree.org/schemas/sound/spacemit,k1-i2s.yaml#
55
$schema: http://devicetree.org/meta-schemas/core.yaml#
66

7-
title: K1 I2S controller
7+
title: SpacemiT K1/K3 I2S controller
88

99
description:
1010
The I2S bus (Inter-IC sound bus) is a serial link for digital
@@ -15,27 +15,54 @@ maintainers:
1515

1616
allOf:
1717
- $ref: dai-common.yaml#
18+
- if:
19+
properties:
20+
compatible:
21+
contains:
22+
const: spacemit,k3-i2s
23+
then:
24+
properties:
25+
clocks:
26+
minItems: 7
27+
clock-names:
28+
minItems: 7
29+
else:
30+
properties:
31+
clocks:
32+
maxItems: 4
33+
clock-names:
34+
maxItems: 4
1835

1936
properties:
2037
compatible:
21-
const: spacemit,k1-i2s
38+
enum:
39+
- spacemit,k1-i2s
40+
- spacemit,k3-i2s
2241

2342
reg:
2443
maxItems: 1
2544

2645
clocks:
46+
minItems: 4
2747
items:
2848
- description: clock for I2S sysclk
2949
- description: clock for I2S bclk
3050
- description: clock for I2S bus
3151
- description: clock for I2S controller
52+
- description: clock for I2S sysclk divider
53+
- description: clock for I2S common sysclk
54+
- description: clock for I2S common bclk
3255

3356
clock-names:
57+
minItems: 4
3458
items:
3559
- const: sysclk
3660
- const: bclk
3761
- const: bus
3862
- const: func
63+
- const: sysclk_div
64+
- const: c_sysclk
65+
- const: c_bclk
3966

4067
dmas:
4168
minItems: 1

0 commit comments

Comments
 (0)