Skip to content

Commit 210f735

Browse files
Angus_Wangjamess-huang
authored andcommitted
Porting HiFiBerry/IQAudIO digi HATs and correct some settings.
Change-Id: I77f9342ae086c7c2c48d9521c60da639711996cf Reviewed-on: https://tp-biosrd-v02/gerrit/81611 Reviewed-by: Jamess Huang(黃以民) <Jamess_Huang@asus.com> Tested-by: Jamess Huang(黃以民) <Jamess_Huang@asus.com>
1 parent c482a07 commit 210f735

15 files changed

+671
-75
lines changed

arch/arm/boot/dts/overlays/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ dtbo-$(CONFIG_ARCH_ROCKCHIP) += \
44
hifiberry-amp.dtbo \
55
hifiberry-dac.dtbo \
66
hifiberry-dacplus.dtbo \
7+
hifiberry-digi.dtbo \
78
iqaudio-dacplus.dtbo \
9+
iqaudio-digi-wm8804-audio.dtbo \
810
waveshare35a-tinker.dtbo \
911
waveshare32b-tinker.dtbo \
1012
pps-gpio.dtbo \

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

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,12 @@
1212
};
1313

1414
fragment@1 {
15-
target = <&i2s>;
16-
__overlay__ {
17-
rockchip,xfer-mode = <1>;
18-
};
19-
};
20-
21-
fragment@2 {
2215
target = <&i2c1>;
2316
__overlay__ {
17+
#address-cells = <1>;
18+
#size-cells = <0>;
19+
status = "okay";
20+
2421
tas5713@1b {
2522
#sound-dai-cells = <0>;
2623
compatible = "ti,tas5713";
@@ -30,7 +27,7 @@
3027
};
3128
};
3229

33-
fragment@3 {
30+
fragment@2 {
3431
target-path = "/sound-ext-card";
3532
__overlay__ {
3633
compatible = "hifiberry,hifiberry-amp";

arch/arm/boot/dts/overlays/hifiberry-dac-amp-overlay.dts

Lines changed: 0 additions & 37 deletions
This file was deleted.

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

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,6 @@
1212
};
1313

1414
fragment@1 {
15-
target = <&i2s>;
16-
__overlay__ {
17-
rockchip,xfer-mode = <1>;
18-
};
19-
};
20-
21-
fragment@2 {
2215
target-path = "/";
2316
__overlay__ {
2417
pcm5102a-codec {
@@ -29,7 +22,7 @@
2922
};
3023
};
3124

32-
fragment@3 {
25+
fragment@2 {
3326
target-path = "/sound-ext-card";
3427
__overlay__ {
3528
compatible = "hifiberry,hifiberry-dac";

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,25 @@
1212
};
1313

1414
fragment@1 {
15-
target = <&i2s>;
16-
__overlay__ {
17-
rockchip,xfer-mode = <1>;
18-
};
19-
};
20-
21-
fragment@2 {
2215
target = <&i2c1>;
2316
__overlay__ {
17+
#address-cells = <1>;
18+
#size-cells = <0>;
19+
status = "okay";
20+
2421
pcm5122@4d {
2522
#sound-dai-cells = <0>;
2623
compatible = "ti,pcm5122";
2724
reg = <0x4d>;
25+
AVDD-supply = <&vdd_3v3_reg>;
26+
DVDD-supply = <&vdd_3v3_reg>;
27+
CPVDD-supply = <&vdd_3v3_reg>;
2828
status = "okay";
2929
};
3030
};
3131
};
3232

33-
fragment@3 {
33+
fragment@2 {
3434
target-path = "/sound-ext-card";
3535
hifiberry_dacplus: __overlay__ {
3636
compatible = "hifiberry,hifiberry-dacplus";
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/dts-v1/;
2+
/plugin/;
3+
4+
/ {
5+
compatible = "rockchip,rk3288";
6+
7+
fragment@0 {
8+
target-path ="/sound-simple-card";
9+
__overlay__ {
10+
status = "disabled";
11+
};
12+
};
13+
14+
fragment@1 {
15+
target = <&i2c1>;
16+
__overlay__ {
17+
#address-cells = <1>;
18+
#size-cells = <0>;
19+
status = "okay";
20+
21+
wm8804@3b {
22+
#sound-dai-cells = <0>;
23+
compatible = "wlf,wm8804";
24+
reg = <0x3b>;
25+
PVDD-supply = <&vdd_3v3_reg>;
26+
DVDD-supply = <&vdd_3v3_reg>;
27+
status = "okay";
28+
};
29+
};
30+
};
31+
32+
fragment@2 {
33+
target-path = "/sound-ext-card";
34+
__overlay__ {
35+
compatible = "hifiberry,hifiberry-digi";
36+
i2s-controller = <&i2s>;
37+
status = "okay";
38+
};
39+
};
40+
};

arch/arm/boot/dts/overlays/iqaudio-dacplus-overlay.dts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,25 @@
1212
};
1313

1414
fragment@1 {
15-
target = <&i2s>;
16-
__overlay__ {
17-
rockchip,xfer-mode = <1>;
18-
};
19-
};
20-
21-
fragment@2 {
2215
target = <&i2c1>;
2316
__overlay__ {
17+
#address-cells = <1>;
18+
#size-cells = <0>;
19+
status = "okay";
20+
2421
pcm5122@4c {
2522
#sound-dai-cells = <0>;
2623
compatible = "ti,pcm5122";
2724
reg = <0x4c>;
25+
AVDD-supply = <&vdd_3v3_reg>;
26+
DVDD-supply = <&vdd_3v3_reg>;
27+
CPVDD-supply = <&vdd_3v3_reg>;
2828
status = "okay";
2929
};
3030
};
3131
};
3232

33-
fragment@3 {
33+
fragment@2 {
3434
target-path = "/sound-ext-card";
3535
iqaudio_dac: __overlay__ {
3636
compatible = "iqaudio,iqaudio-dac";
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
/dts-v1/;
2+
/plugin/;
3+
4+
/ {
5+
compatible = "rockchip,rk3288";
6+
7+
fragment@0 {
8+
target-path ="/sound-simple-card";
9+
__overlay__ {
10+
status = "disabled";
11+
};
12+
};
13+
14+
fragment@1 {
15+
target = <&i2c1>;
16+
__overlay__ {
17+
#address-cells = <1>;
18+
#size-cells = <0>;
19+
status = "okay";
20+
21+
wm8804@3b {
22+
#sound-dai-cells = <0>;
23+
compatible = "wlf,wm8804";
24+
reg = <0x3b>;
25+
status = "okay";
26+
DVDD-supply = <&vdd_3v3_reg>;
27+
PVDD-supply = <&vdd_3v3_reg>;
28+
};
29+
};
30+
};
31+
32+
fragment@2 {
33+
target-path = "/sound-ext-card";
34+
wm8804_digi: __overlay__ {
35+
compatible = "iqaudio,wm8804-digi";
36+
i2s-controller = <&i2s>;
37+
status = "okay";
38+
};
39+
};
40+
41+
__overrides__ {
42+
card_name = <&wm8804_digi>,"wm8804-digi,card-name";
43+
dai_name = <&wm8804_digi>,"wm8804-digi,dai-name";
44+
dai_stream_name = <&wm8804_digi>,"wm8804-digi,dai-stream-name";
45+
};
46+
};

arch/arm/boot/dts/rk3288-miniarm.dts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,14 @@
196196
status = "disabled";
197197
};
198198

199+
vdd_3v3_reg: fixedregulator_3v3 {
200+
compatible = "regulator-fixed";
201+
regulator-name = "3v3";
202+
regulator-min-microvolt = <3300000>;
203+
regulator-max-microvolt = <3300000>;
204+
regulator-always-on;
205+
};
206+
199207
vcc_sys: vsys-regulator {
200208
compatible = "regulator-fixed";
201209
regulator-name = "vcc_sys";

arch/arm/configs/miniarm-rk3288_defconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,9 @@ CONFIG_SND_SOC=y
554554
CONFIG_SND_SOC_HIFIBERRY_AMP=y
555555
CONFIG_SND_SOC_HIFIBERRY_DAC=y
556556
CONFIG_SND_SOC_HIFIBERRY_DACPLUS=y
557+
CONFIG_SND_SOC_HIFIBERRY_DIGI=y
557558
CONFIG_SND_SOC_IQAUDIO_DAC=y
559+
CONFIG_SND_SOC_IQAUDIO_DIGI=y
558560
CONFIG_SND_SOC_ROCKCHIP=y
559561
CONFIG_SND_SOC_ROCKCHIP_SPDIF=y
560562
CONFIG_SND_SOC_ROCKCHIP_MAX98090=y

0 commit comments

Comments
 (0)