Skip to content

Commit 4feac1e

Browse files
ES9023: i-sabre-dac-es9023-audio overlay
Add i-sabre-dac-es9023-audio overlay for Audiophonics I-Sabre DAC. ## ## Audiophonics I-Sabre DAC ## ## card_name = "ISabre" ## dai_name = "ISabre DAC" ## dai_stream_name = "ISabre DAC HiFi" ## # dtoverlay=i-sabre-dac-es9023-audio # dtoverlay=i-sabre-dac-es9023-audio,bclk_ratio_int_div # dtoverlay=i-sabre-dac-es9023-audio,bclk_ratio_int_div,384k Signed-off-by: DigitalDreamtime <[email protected]>
1 parent d0637c8 commit 4feac1e

File tree

3 files changed

+76
-0
lines changed

3 files changed

+76
-0
lines changed

arch/arm/boot/dts/overlays/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ dtbo-$(RPI_DT_OVERLAYS) += hifiberry-digi.dtbo
3636
dtbo-$(RPI_DT_OVERLAYS) += hifiberry-digi-pro.dtbo
3737
dtbo-$(RPI_DT_OVERLAYS) += hy28a.dtbo
3838
dtbo-$(RPI_DT_OVERLAYS) += hy28b.dtbo
39+
dtbo-$(RPI_DT_OVERLAYS) += i-sabre-dac-es9023-audio.dtbo
3940
dtbo-$(RPI_DT_OVERLAYS) += i2c-gpio.dtbo
4041
dtbo-$(RPI_DT_OVERLAYS) += i2c-mux.dtbo
4142
dtbo-$(RPI_DT_OVERLAYS) += i2c-pwm-pca9685a.dtbo

arch/arm/boot/dts/overlays/README

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,24 @@ Params: speed Display SPI bus speed
464464
ledgpio GPIO used to control backlight
465465

466466

467+
Name: i-sabre-dac-es9023-audio
468+
Info: Configures the Audiophonics I-Sabre DAC
469+
Load: dtoverlay=i-sabre-dac-es9023-audio,<param>
470+
Params: 384k Instructs the es9023 codec driver to support
471+
352k8 and 384k sample rates.
472+
bclk_ratio_int_div Use bclk_ratio=50 for 16/24bps and
473+
bclk_ratio=100 for 32bps media when sample
474+
rate is a multiple of 8kHz and less than
475+
192kHz. Which causes the selection of the 19M2
476+
OSC as the parent for the PCM clock with an
477+
integer divider, rather than PLLD with
478+
fractional divider and MASH noise shaping.
479+
card_name Override the default, "ISabre", card name.
480+
dai_name Override the default, "ISabre DAC", dai name.
481+
dai_stream_name Override the default, "ISabre DAC HiFi",
482+
dai stream name.
483+
484+
467485
Name: i2c-gpio
468486
Info: Adds support for software i2c controller on gpio pins
469487
Load: dtoverlay=i2c-gpio,<param>=<val>
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
// Definitions for Audiophonics I-Sabre DAC using ESS Sabre ES9023 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-path = "/";
17+
__overlay__ {
18+
es9023_codec: es9023-codec {
19+
#sound-dai-cells = <0>;
20+
compatible = "ess,es9023";
21+
status = "okay";
22+
};
23+
};
24+
};
25+
26+
fragment@2 {
27+
target = <&sound>;
28+
es9023_dac: __overlay__ {
29+
compatible = "audiphonics,es9023-i-sabre-dac";
30+
/*
31+
* These are the default names that will be
32+
* applied by the es9023-dac machine driver
33+
* based on the compatible parameter.
34+
*
35+
* es9023-dac,card-name = "ISabre";
36+
* es9023-dac,dai-name = "ISabre DAC";
37+
* es9023-dac,dai-stream-name = "ISabre DAC HiFi";
38+
*/
39+
status = "okay";
40+
es9023-dac,cpu {
41+
sound-dai = <&i2s>;
42+
};
43+
es9023-dac,codec {
44+
sound-dai = <&es9023_codec>;
45+
};
46+
};
47+
};
48+
49+
__overrides__ {
50+
384k = <&es9023_codec>,"es9023,384k?";
51+
bclk_ratio_int_div =
52+
<&es9023_dac>,"es9023-dac,bclk-ratio-int-div?";
53+
card_name = <&es9023_dac>,"es9023-dac,card-name";
54+
dai_name = <&es9023_dac>,"es9023-dac,dai-name";
55+
dai_stream_name = <&es9023_dac>,"es9023-dac,dai-stream-name";
56+
};
57+
};

0 commit comments

Comments
 (0)