brcm2708: update linux 4.4 patches to latest version
[openwrt/openwrt.git] / target / linux / brcm2708 / patches-4.4 / 0240-Add-support-for-the-Digital-Dreamtime-Akkordion-musi.patch
1 From 00fa941a2c5be22d7ab5034458b1275d108c18bb 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.
5
6 Support the Digital Dreamtime Akkordion using the OEM IQAudIO DAC+ or
7 DACZero modules. Set ALSA card name, ("Akkordion"), from dt config.
8
9 Signed-off-by: DigitalDreamtime <clive.messer@digitaldreamtime.co.uk>
10 ---
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
16
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)
20 endif
21
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
31
32
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!)
51 +
52 +
53 Name: at86rf233
54 Info: Configures the Atmel AT86RF233 802.15.4 low-power WPAN transceiver,
55 connected to spi0.0
56 --- /dev/null
57 +++ b/arch/arm/boot/dts/overlays/akkordion-iqdacplus-overlay.dts
58 @@ -0,0 +1,46 @@
59 +// Definitions for Digital Dreamtime Akkordion using IQaudIO DAC+ or DACZero
60 +/dts-v1/;
61 +/plugin/;
62 +
63 +/ {
64 + compatible = "brcm,bcm2708";
65 +
66 + fragment@0 {
67 + target = <&sound>;
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>;
74 + status = "okay";
75 + };
76 + };
77 +
78 + fragment@1 {
79 + target = <&i2s>;
80 + __overlay__ {
81 + status = "okay";
82 + };
83 + };
84 +
85 + fragment@2 {
86 + target = <&i2c1>;
87 + __overlay__ {
88 + #address-cells = <1>;
89 + #size-cells = <0>;
90 + status = "okay";
91 +
92 + pcm5122@4c {
93 + #sound-dai-cells = <0>;
94 + compatible = "ti,pcm5122";
95 + reg = <0x4c>;
96 + status = "okay";
97 + };
98 + };
99 + };
100 +
101 + __overrides__ {
102 + 24db_digital_gain = <&frag0>,"iqaudio,24db_digital_gain?";
103 + };
104 +};