Commit 1994d792 authored by Raashid Muhammed's avatar Raashid Muhammed Committed by Phil Elwell
Browse files

Add support for Allo Piano DAC 2.1 plus add-on board for Raspberry Pi.



The Piano DAC 2.1 has support for 4 channels with subwoofer.

Signed-off-by: default avatarBaswaraj K <jaikumar@cem-solutions.net>
Reviewed-by: default avatarVijay Kumar B. <vijaykumar@zilogic.com>
Reviewed-by: default avatarRaashid Muhammed <raashidmuhammed@zilogic.com>
parent e62d0170
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
	ads7846.dtbo \
	akkordion-iqdacplus.dtbo \
	allo-piano-dac-pcm512x-audio.dtbo \
	allo-piano-dac-plus-pcm512x-audio.dtbo \
	at86rf233.dtbo \
	audioinjector-addons.dtbo \
	audioinjector-wm8731-audio.dtbo \
+18 −0
Original line number Diff line number Diff line
@@ -283,6 +283,24 @@ Params: 24db_digital_gain Allow gain to be applied via the PCM512x codec
                                that does not result in clipping/distortion!)


Name:   allo-piano-dac-plus-pcm512x-audio
Info:   Configures the Allo Piano DAC (2.1) audio cards.
Load:   dtoverlay=allo-piano-dac-plus-pcm512x-audio,<param>
Params: 24db_digital_gain       Allow gain to be applied via the PCM512x codec
                                Digital volume control.
                                (The default behaviour is that the Digital
                                volume control is limited to a maximum of
                                0dB. ie. it can attenuate but not provide
                                gain. For most users, this will be desired
                                as it will prevent clipping. By appending
                                the 24db_digital_gain parameter, the Digital
                                volume control will allow up to 24dB of
                                gain. If this parameter is enabled, it is the
                                responsibility of the user to ensure that
                                the Digital volume control is set to a value
                                that does not result in clipping/distortion!)


Name:   at86rf233
Info:   Configures the Atmel AT86RF233 802.15.4 low-power WPAN transceiver,
        connected to spi0.0
+51 −0
Original line number Diff line number Diff line
// Definitions for Piano DAC
/dts-v1/;
/plugin/;

/ {
	compatible = "brcm,bcm2708";

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

	fragment@1 {
		target = <&i2c1>;
		__overlay__ {
			#address-cells = <1>;
			#size-cells = <0>;
			status = "okay";

			pcm5122_4c: pcm5122@4c {
				#sound-dai-cells = <0>;
				compatible = "ti,pcm5122";
				reg = <0x4c>;
				status = "okay";
			};
			pcm5122_4d: pcm5122@4d {
				#sound-dai-cells = <0>;
				compatible = "ti,pcm5122";
				reg = <0x4d>;
				status = "okay";
			};
		};
	};

	fragment@2 {
		target = <&sound>;
		piano_dac: __overlay__ {
			compatible = "allo,piano-dac-plus";
			audio-codec = <&pcm5122_4c &pcm5122_4d>;
			i2s-controller = <&i2s>;
			status = "okay";
		};
	};

	__overrides__ {
		24db_digital_gain =
			<&piano_dac>,"piano,24db_digital_gain?";
	};
};
+7 −0
Original line number Diff line number Diff line
@@ -161,6 +161,13 @@ config SND_BCM2708_SOC_ALLO_PIANO_DAC
	help
	  Say Y or M if you want to add support for Allo Piano DAC.

config SND_BCM2708_SOC_ALLO_PIANO_DAC_PLUS
	tristate "Support for Allo Piano DAC Plus"
	depends on SND_BCM2708_SOC_I2S || SND_BCM2835_SOC_I2S
	select SND_SOC_PCM512x_I2C
	help
	  Say Y or M if you want to add support for Allo Piano DAC Plus.

config SND_BCM2708_SOC_FE_PI_AUDIO
	tristate "Support for Fe-Pi-Audio"
	depends on SND_BCM2708_SOC_I2S || SND_BCM2835_SOC_I2S
+2 −0
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@ snd-soc-digidac1-soundcard-objs := digidac1-soundcard.o
snd-soc-dionaudio-loco-objs := dionaudio_loco.o
snd-soc-dionaudio-loco-v2-objs := dionaudio_loco-v2.o
snd-soc-allo-piano-dac-objs := allo-piano-dac.o
snd-soc-allo-piano-dac-plus-objs := allo-piano-dac-plus.o
snd-soc-pisound-objs := pisound.o
snd-soc-fe-pi-audio-objs := fe-pi-audio.o

@@ -56,5 +57,6 @@ obj-$(CONFIG_SND_DIGIDAC1_SOUNDCARD) += snd-soc-digidac1-soundcard.o
obj-$(CONFIG_SND_BCM2708_SOC_DIONAUDIO_LOCO) += snd-soc-dionaudio-loco.o
obj-$(CONFIG_SND_BCM2708_SOC_DIONAUDIO_LOCO_V2) += snd-soc-dionaudio-loco-v2.o
obj-$(CONFIG_SND_BCM2708_SOC_ALLO_PIANO_DAC) += snd-soc-allo-piano-dac.o
obj-$(CONFIG_SND_BCM2708_SOC_ALLO_PIANO_DAC_PLUS) += snd-soc-allo-piano-dac-plus.o
obj-$(CONFIG_SND_PISOUND) += snd-soc-pisound.o
obj-$(CONFIG_SND_BCM2708_SOC_FE_PI_AUDIO) += snd-soc-fe-pi-audio.o
Loading