Skip to content

Commit 7d08abb

Browse files
kirgenepelwell
authored andcommitted
Added support for mbed AudioCODEC (TLV320AIC23B)
Signed-off-by: Yevhen Kyriukha <[email protected]>
1 parent 7b488e1 commit 7d08abb

File tree

3 files changed

+71
-0
lines changed

3 files changed

+71
-0
lines changed

arch/arm/boot/dts/overlays/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
5757
justboom-dac.dtbo \
5858
justboom-digi.dtbo \
5959
lirc-rpi.dtbo \
60+
mbed-dac.dtbo \
6061
mcp23017.dtbo \
6162
mcp23s17.dtbo \
6263
mcp2515-can0.dtbo \

arch/arm/boot/dts/overlays/README

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -954,6 +954,12 @@ Params: gpio_out_pin GPIO for output (default "17")
954954
(default "off")
955955

956956

957+
Name: mbed-dac
958+
Info: Configures the mbed AudioCODEC (TLV320AIC23B)
959+
Load: dtoverlay=mbed-dac
960+
Params: <None>
961+
962+
957963
Name: mcp23017
958964
Info: Configures the MCP23017 I2C GPIO expander
959965
Load: dtoverlay=mcp23017,<param>=<val>
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
// Definitions for mbed DAC
2+
/dts-v1/;
3+
/plugin/;
4+
5+
/ {
6+
compatible = "brcm,bcm2708";
7+
8+
fragment@0 {
9+
target = <&i2s>;
10+
__overlay__ {
11+
status = "okay";
12+
};
13+
};
14+
15+
fragment@1 {
16+
target = <&i2c1>;
17+
__overlay__ {
18+
#address-cells = <1>;
19+
#size-cells = <0>;
20+
status = "okay";
21+
22+
tlv320aic23: codec@1a {
23+
#sound-dai-cells = <0>;
24+
reg = <0x1a>;
25+
compatible = "ti,tlv320aic23";
26+
status = "okay";
27+
};
28+
};
29+
};
30+
31+
fragment@2 {
32+
target = <&sound>;
33+
__overlay__ {
34+
compatible = "simple-audio-card";
35+
i2s-controller = <&i2s>;
36+
status = "okay";
37+
38+
simple-audio-card,name = "mbed-DAC";
39+
40+
simple-audio-card,widgets =
41+
"Microphone", "Mic Jack",
42+
"Line", "Line In",
43+
"Headphone", "Headphone Jack";
44+
45+
simple-audio-card,routing =
46+
"Headphone Jack", "LHPOUT",
47+
"Headphone Jack", "RHPOUT",
48+
"LLINEIN", "Line In",
49+
"RLINEIN", "Line In",
50+
"MICIN", "Mic Jack";
51+
52+
simple-audio-card,format = "i2s";
53+
54+
simple-audio-card,cpu {
55+
sound-dai = <&i2s>;
56+
};
57+
58+
sound_master: simple-audio-card,codec {
59+
sound-dai = <&tlv320aic23>;
60+
system-clock-frequency = <12288000>;
61+
};
62+
};
63+
};
64+
};

0 commit comments

Comments
 (0)