Skip to content

Commit 43a38a0

Browse files
committed
ASoC: codecs: add support for ES8375
Merge series from Zhang Yi <zhangyi@everest-semi.com>: The driver is for codec ES8375 of everest-semi.
2 parents fe64462 + de2b311 commit 43a38a0

File tree

5 files changed

+994
-0
lines changed

5 files changed

+994
-0
lines changed
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/sound/everest,es8375.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Everest ES8375 audio CODEC
8+
9+
maintainers:
10+
- Michael Zhang <zhangyi@everest-semi.com>
11+
12+
allOf:
13+
- $ref: dai-common.yaml#
14+
15+
properties:
16+
compatible:
17+
const: everest,es8375
18+
19+
reg:
20+
maxItems: 1
21+
22+
clocks:
23+
items:
24+
- description: clock for master clock (MCLK)
25+
26+
clock-names:
27+
items:
28+
- const: mclk
29+
30+
vdda-supply:
31+
description:
32+
Analogue power supply.
33+
34+
vddd-supply:
35+
description:
36+
Interface power supply.
37+
38+
everest,mclk-src:
39+
$ref: /schemas/types.yaml#/definitions/uint8
40+
description: |
41+
Represents the MCLK/SCLK pair pins used as the internal clock.
42+
0 represents selecting MCLK.
43+
1 represents selecting SCLK.
44+
enum: [0, 1]
45+
default: 0
46+
47+
"#sound-dai-cells":
48+
const: 0
49+
50+
required:
51+
- compatible
52+
- reg
53+
- "#sound-dai-cells"
54+
- vdda-supply
55+
- vddd-supply
56+
57+
additionalProperties: false
58+
59+
examples:
60+
- |
61+
i2c {
62+
#address-cells = <1>;
63+
#size-cells = <0>;
64+
es8375: codec@18 {
65+
compatible = "everest,es8375";
66+
reg = <0x18>;
67+
vdda-supply = <&vdd3v3>;
68+
vddd-supply = <&vdd3v3>;
69+
#sound-dai-cells = <0>;
70+
};
71+
};

sound/soc/codecs/Kconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ config SND_SOC_ALL_CODECS
120120
imply SND_SOC_ES8326
121121
imply SND_SOC_ES8328_SPI
122122
imply SND_SOC_ES8328_I2C
123+
imply SND_SOC_ES8375
123124
imply SND_SOC_ES8389
124125
imply SND_SOC_ES7134
125126
imply SND_SOC_ES7241
@@ -1211,6 +1212,10 @@ config SND_SOC_ES8328_SPI
12111212
depends on SPI_MASTER
12121213
select SND_SOC_ES8328
12131214

1215+
config SND_SOC_ES8375
1216+
tristate "Everest Semi ES8375 CODEC"
1217+
depends on I2C
1218+
12141219
config SND_SOC_ES8389
12151220
tristate "Everest Semi ES8389 CODEC"
12161221
depends on I2C

sound/soc/codecs/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ snd-soc-es8326-y := es8326.o
134134
snd-soc-es8328-y := es8328.o
135135
snd-soc-es8328-i2c-y := es8328-i2c.o
136136
snd-soc-es8328-spi-y := es8328-spi.o
137+
snd-soc-es8375-y := es8375.o
137138
snd-soc-es8389-y := es8389.o
138139
snd-soc-framer-y := framer-codec.o
139140
snd-soc-gtm601-y := gtm601.o
@@ -556,6 +557,7 @@ obj-$(CONFIG_SND_SOC_ES8326) += snd-soc-es8326.o
556557
obj-$(CONFIG_SND_SOC_ES8328) += snd-soc-es8328.o
557558
obj-$(CONFIG_SND_SOC_ES8328_I2C)+= snd-soc-es8328-i2c.o
558559
obj-$(CONFIG_SND_SOC_ES8328_SPI)+= snd-soc-es8328-spi.o
560+
obj-$(CONFIG_SND_SOC_ES8375) += snd-soc-es8375.o
559561
obj-$(CONFIG_SND_SOC_ES8389) += snd-soc-es8389.o
560562
obj-$(CONFIG_SND_SOC_FRAMER) += snd-soc-framer.o
561563
obj-$(CONFIG_SND_SOC_GTM601) += snd-soc-gtm601.o

0 commit comments

Comments
 (0)