1 From 0a36540c6a3b383a554412bf65cc75d65f7b77f8 Mon Sep 17 00:00:00 2001
2 From: DigitalDreamtime <clive.messer@digitaldreamtime.co.uk>
3 Date: Thu, 14 Apr 2016 01:00:58 +0100
4 Subject: [PATCH] Add support for the Digital Dreamtime Akkordion music player.
6 Support the Digital Dreamtime Akkordion using the OEM IQAudIO DAC+ or
7 DACZero modules. Set ALSA card name, ("Akkordion"), from dt config.
9 Signed-off-by: DigitalDreamtime <clive.messer@digitaldreamtime.co.uk>
11 arch/arm/boot/dts/overlays/Makefile | 1 +
12 arch/arm/boot/dts/overlays/README | 20 ++++++++++
13 .../dts/overlays/akkordion-iqdacplus-overlay.dts | 46 ++++++++++++++++++++++
14 3 files changed, 67 insertions(+)
15 create mode 100644 arch/arm/boot/dts/overlays/akkordion-iqdacplus-overlay.dts
17 --- a/arch/arm/boot/dts/overlays/Makefile
18 +++ b/arch/arm/boot/dts/overlays/Makefile
19 @@ -13,6 +13,7 @@ ifeq ($(CONFIG_ARCH_BCM2835),y)
22 dtbo-$(RPI_DT_OVERLAYS) += ads7846.dtbo
23 +dtbo-$(RPI_DT_OVERLAYS) += akkordion-iqdacplus.dtbo
24 dtbo-$(RPI_DT_OVERLAYS) += at86rf233.dtbo
25 dtbo-$(RPI_DT_OVERLAYS) += bmp085_i2c-sensor.dtbo
26 dtbo-$(RPI_DT_OVERLAYS) += dpi24.dtbo
27 --- a/arch/arm/boot/dts/overlays/README
28 +++ b/arch/arm/boot/dts/overlays/README
29 @@ -186,6 +186,26 @@ Params: cs SPI bus
30 www.kernel.org/doc/Documentation/devicetree/bindings/input/ads7846.txt
33 +Name: akkordion-iqdacplus
34 +Info: Configures the Digital Dreamtime Akkordion Music Player (based on the
35 + OEM IQAudIO DAC+ or DAC Zero module).
36 +Load: dtoverlay=akkordion-iqdacplus,<param>=<val>
37 +Params: 24db_digital_gain Allow gain to be applied via the PCM512x codec
38 + Digital volume control. Enable with
39 + dtoverlay=akkordion-iqdacplus,24db_digital_gain
40 + (The default behaviour is that the Digital
41 + volume control is limited to a maximum of
42 + 0dB. ie. it can attenuate but not provide
43 + gain. For most users, this will be desired
44 + as it will prevent clipping. By appending
45 + the 24db_digital_gain parameter, the Digital
46 + volume control will allow up to 24dB of
47 + gain. If this parameter is enabled, it is the
48 + responsibility of the user to ensure that
49 + the Digital volume control is set to a value
50 + that does not result in clipping/distortion!)
54 Info: Configures the Atmel AT86RF233 802.15.4 low-power WPAN transceiver,
57 +++ b/arch/arm/boot/dts/overlays/akkordion-iqdacplus-overlay.dts
59 +// Definitions for Digital Dreamtime Akkordion using IQaudIO DAC+ or DACZero
64 + compatible = "brcm,bcm2708";
68 + frag0: __overlay__ {
69 + compatible = "iqaudio,iqaudio-dac";
70 + card_name = "Akkordion";
71 + dai_name = "IQaudIO DAC";
72 + dai_stream_name = "IQaudIO DAC HiFi";
73 + i2s-controller = <&i2s>;
88 + #address-cells = <1>;
93 + #sound-dai-cells = <0>;
94 + compatible = "ti,pcm5122";
102 + 24db_digital_gain = <&frag0>,"iqaudio,24db_digital_gain?";