Skip to content

Commit

Permalink
ES9023: i-sabre-dac overlay
Browse files Browse the repository at this point in the history
Add i-sabre-dac overlay for Audiophonics I-Sabre DAC.

Signed-off-by: DigitalDreamtime <clive.messer@digitaldreamtime.co.uk>
  • Loading branch information
DigitalDreamtime committed May 8, 2016
1 parent f6b39e7 commit be0708d
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm/boot/dts/overlays/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ dtbo-$(RPI_DT_OVERLAYS) += hifiberry-dacplus.dtbo
dtbo-$(RPI_DT_OVERLAYS) += hifiberry-digi.dtbo
dtbo-$(RPI_DT_OVERLAYS) += hy28a.dtbo
dtbo-$(RPI_DT_OVERLAYS) += hy28b.dtbo
dtbo-$(RPI_DT_OVERLAYS) += i-sabre-dac.dtbo
dtbo-$(RPI_DT_OVERLAYS) += i2c-rtc.dtbo
dtbo-$(RPI_DT_OVERLAYS) += i2c-gpio.dtbo
dtbo-$(RPI_DT_OVERLAYS) += i2c-mux-pca9548a.dtbo
Expand Down
16 changes: 16 additions & 0 deletions arch/arm/boot/dts/overlays/README
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,22 @@ Params: speed Display SPI bus speed
ledgpio GPIO used to control backlight


Name: i-sabre-dac
Info: Configures the Audiophonics I-Sabre DAC
Load: dtoverlay=i-sabre-dac,<param>
Params: bclk_ratio_integer_div Use bclk_ratio=50 for 16 and 24 bps and
bclk_ratio=100 for 32 bps media when sample rate
is a multiple of 8000 and less than 192kHz,
which allows the use of the OSC with integer
divider rather than PLL with fractional (MASH)
divider. Enable with
"dtoverlay=akkordion-dac,bclk_ratio_integer_div"
max_rate Instructs the es9023 codec driver to support
352k8 and 384k sample rates, assuming the kernel
has been compiled with support for these sample
rates.


Name: i2c-gpio
Info: Adds support for software i2c controller on gpio pins
Load: dtoverlay=i2c-gpio,<param>=<val>
Expand Down
42 changes: 42 additions & 0 deletions arch/arm/boot/dts/overlays/i-sabre-dac-overlay.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
// Definitions for Audiophonics I-Sabre DAC
/dts-v1/;
/plugin/;

/ {
compatible = "brcm,bcm2708";

fragment@0 {
target = <&i2s>;
__overlay__ {
status = "okay";
};
};

fragment@1 {
target-path = "/";
__overlay__ {
es9023: es9023-codec {
#sound-dai-cells = <0>;
compatible = "ess,es9023";
status = "okay";
};
};
};

fragment@2 {
target = <&sound>;
frag2: __overlay__ {
compatible = "audiphonics,i-sabre-dac";
card_name = "ISabre";
dai_name = "ISabre DAC";
dai_stream_name = "ISabre DAC HiFi";
i2s-controller = <&i2s>;
status = "okay";
};
};

__overrides__ {
max_rate = <&es9023>,"es9023,max_rate?";
bclk_ratio_integer_div = <&frag2>,"es9023,bclk_ratio_integer_div?";
};
};

0 comments on commit be0708d

Please sign in to comment.