Skip to content

Commit 35ebf70

Browse files
j-schambacherpopcornmix
authored andcommitted
dtoverlays: adds support for Hifiberry ADC8x to the DAC8x
Allows the usage of ADC8x stacked on top of the DAC8x. Activates all I2S pins and uses now the dummy-dai instead of the formerly used pcm5102 to allow the use of a capture device, too. The simple card driver will probe for the ADC8x and may activate the 8 channel capture. Uses GPIO5 for detection. Signed-off-by: j-schambacher <joerg@hifiberry.com>
1 parent 459fc87 commit 35ebf70

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

arch/arm/boot/dts/overlays/README

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1900,6 +1900,9 @@ Params: <None>
19001900

19011901
Name: hifiberry-dac8x
19021902
Info: Configures the HifiBerry DAC8X audio cards (only on Pi5)
1903+
This driver also detects a stacked ADC8x and activates the
1904+
capture capabilities.
1905+
Note: for standalone use of the ADC8x activate the ADC8x module.
19031906
Load: dtoverlay=hifiberry-dac8x
19041907
Params: <None>
19051908

arch/arm/boot/dts/overlays/hifiberry-dac8x-overlay.dts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
// SPDX-License-Identifier: GPL-2.0
12
// Definitions for HiFiBerry DAC8x
23
/dts-v1/;
34
/plugin/;
45

6+
#include <dt-bindings/gpio/gpio.h>
7+
58
/ {
69
compatible = "brcm,bcm2712";
710

@@ -10,8 +13,10 @@
1013
__overlay__ {
1114
rp1_i2s0_dac8x: rp1_i2s0_dac8x {
1215
function = "i2s0";
13-
pins = "gpio18", "gpio19", "gpio21",
14-
"gpio23", "gpio25", "gpio27";
16+
pins = "gpio18", "gpio19", "gpio20",
17+
"gpio21", "gpio22", "gpio23",
18+
"gpio24", "gpio25", "gpio26",
19+
"gpio27";
1520
bias-disable;
1621
status = "okay";
1722
};
@@ -30,9 +35,9 @@
3035
fragment@2 {
3136
target-path = "/";
3237
__overlay__ {
33-
pcm5102a-codec {
38+
dummy-codec {
3439
#sound-dai-cells = <0>;
35-
compatible = "ti,pcm5102a";
40+
compatible = "snd-soc-dummy";
3641
status = "okay";
3742
};
3843
};
@@ -43,6 +48,7 @@
4348
__overlay__ {
4449
compatible = "hifiberry,hifiberry-dac8x";
4550
i2s-controller = <&i2s_clk_producer>;
51+
hasadc-gpio = <&gpio 5 GPIO_ACTIVE_LOW>;
4652
status = "okay";
4753
};
4854
};

0 commit comments

Comments
 (0)