Skip to content

Commit 65512e9

Browse files
gmarullcarlescufi
authored andcommitted
boards: arm: nrf5340_audio_dk_nrf5340: add bindings for audio codec
The board embeds an audio codec IC, Cirrus CS42L73. While there is no in-tree driver for it, we need a binding to describe how it is wired in the board, e.g. for IRQ/RESET lines. Following Linux binding for the same IC, create one in dts/bindings/sound. Note that Linux binding is less complete/outdated. Ref. https://statics.cirrus.com/pubs/proDatasheet/CS47L63_DS1249F2.pdf Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent f76bfa5 commit 65512e9

File tree

2 files changed

+88
-0
lines changed

2 files changed

+88
-0
lines changed

boards/arm/nrf5340_audio_dk_nrf5340/nrf5340_audio_dk_nrf5340_cpuapp_common.dtsi

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,14 @@
184184

185185
spi-max-frequency = <8000000>;
186186
};
187+
187188
cs47l63: cs47l63@1 {
189+
compatible = "cirrus,cs47l63";
188190
reg = <1>;
191+
spi-max-frequency = <8000000>;
192+
irq-gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
193+
reset-gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
194+
gpio9-gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
189195
};
190196
};
191197

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
# Copyright (c) 2023 Nordic Semiconductor ASA
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
description: Cirrus Logic CS47L63 Low-Power Audio DSP
5+
6+
compatible: "cirrus,cs47l63"
7+
8+
include: spi-device.yaml
9+
10+
properties:
11+
reg:
12+
required: true
13+
14+
irq-gpios:
15+
type: phandle-array
16+
description:
17+
Interrupt request (IRQ) output.
18+
19+
reset-gpios:
20+
type: phandle-array
21+
description:
22+
Digital reset input.
23+
24+
gpio1-gpios:
25+
type: phandle-array
26+
description:
27+
GPIO1 input with bus-keeper
28+
29+
gpio2-gpios:
30+
type: phandle-array
31+
description:
32+
GPIO2 input with bus-keeper
33+
34+
gpio3-gpios:
35+
type: phandle-array
36+
description:
37+
GPIO3 input with bus-keeper
38+
39+
gpio4-gpios:
40+
type: phandle-array
41+
description:
42+
GPIO4 input with bus-keeper
43+
44+
gpio5-gpios:
45+
type: phandle-array
46+
description:
47+
GPIO5 input with bus-keeper
48+
49+
gpio6-gpios:
50+
type: phandle-array
51+
description:
52+
GPIO6 input with bus-keeper
53+
54+
gpio7-gpios:
55+
type: phandle-array
56+
description:
57+
GPIO7 input with bus-keeper
58+
59+
gpio8-gpios:
60+
type: phandle-array
61+
description:
62+
GPIO8 input with bus-keeper
63+
64+
gpio9-gpios:
65+
type: phandle-array
66+
description:
67+
GPIO9 input with bus-keeper
68+
69+
gpio10-gpios:
70+
type: phandle-array
71+
description:
72+
GPIO10 input with bus-keeper
73+
74+
gpio11-gpios:
75+
type: phandle-array
76+
description:
77+
GPIO11 input with bus-keeper
78+
79+
gpio12-gpios:
80+
type: phandle-array
81+
description:
82+
GPIO12 input with bus-keeper

0 commit comments

Comments
 (0)