Skip to content

Commit 7f01184

Browse files
nfrapradombgg
authored andcommitted
arm64: dts: mediatek: Remove asurada-audio dtsi files
There aren't enough users of the common asurada-audio dtsi files to justify having them. It is simpler to just have the audio nodes directly on the board files. Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Link: https://lore.kernel.org/r/20230721201705.387426-4-nfraprado@collabora.com Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
1 parent 3993c86 commit 7f01184

6 files changed

Lines changed: 64 additions & 68 deletions

arch/arm64/boot/dts/mediatek/mt8192-asurada-audio-rt1015p-rt5682.dtsi

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

arch/arm64/boot/dts/mediatek/mt8192-asurada-audio-rt1015p.dtsi

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

arch/arm64/boot/dts/mediatek/mt8192-asurada-audio-rt5682.dtsi

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

arch/arm64/boot/dts/mediatek/mt8192-asurada-hayato-r1.dts

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
*/
55
/dts-v1/;
66
#include "mt8192-asurada.dtsi"
7-
#include "mt8192-asurada-audio-rt1015p-rt5682.dtsi"
87

98
/ {
109
model = "Google Hayato rev1";
@@ -101,6 +100,24 @@
101100
};
102101
};
103102

103+
&rt5682 {
104+
compatible = "realtek,rt5682i";
105+
realtek,btndet-delay = <16>;
106+
VBAT-supply = <&pp3300_ldo_z>;
107+
};
108+
109+
&sound {
110+
compatible = "mediatek,mt8192_mt6359_rt1015p_rt5682";
111+
112+
speaker-codecs {
113+
sound-dai = <&rt1015p>;
114+
};
115+
116+
headset-codec {
117+
sound-dai = <&rt5682 0>;
118+
};
119+
};
120+
104121
&touchscreen {
105122
compatible = "hid-over-i2c";
106123
post-power-on-delay-ms = <10>;

arch/arm64/boot/dts/mediatek/mt8192-asurada-spherion-r0.dts

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
*/
55
/dts-v1/;
66
#include "mt8192-asurada.dtsi"
7-
#include "mt8192-asurada-audio-rt1015p-rt5682.dtsi"
87
#include <dt-bindings/leds/common.h>
98

109
/ {
@@ -58,6 +57,24 @@
5857
>;
5958
};
6059

60+
&rt5682 {
61+
compatible = "realtek,rt5682i";
62+
realtek,btndet-delay = <16>;
63+
VBAT-supply = <&pp3300_ldo_z>;
64+
};
65+
66+
&sound {
67+
compatible = "mediatek,mt8192_mt6359_rt1015p_rt5682";
68+
69+
speaker-codecs {
70+
sound-dai = <&rt1015p>;
71+
};
72+
73+
headset-codec {
74+
sound-dai = <&rt5682 0>;
75+
};
76+
};
77+
6178
&touchscreen {
6279
compatible = "elan,ekth3500";
6380
};

arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,14 @@
210210
};
211211
};
212212

213+
rt1015p: audio-codec {
214+
compatible = "realtek,rt1015p";
215+
pinctrl-names = "default";
216+
pinctrl-0 = <&rt1015p_pins>;
217+
sdb-gpios = <&pio 147 GPIO_ACTIVE_HIGH>;
218+
#sound-dai-cells = <0>;
219+
};
220+
213221
sound: sound {
214222
mediatek,platform = <&afe>;
215223
pinctrl-names = "aud_clk_mosi_off",
@@ -305,6 +313,19 @@
305313
clock-frequency = <400000>;
306314
pinctrl-names = "default";
307315
pinctrl-0 = <&i2c1_pins>;
316+
317+
rt5682: audio-codec@1a {
318+
/* Realtek RT5682i or RT5682s, sharing the same configuration */
319+
reg = <0x1a>;
320+
interrupts-extended = <&pio 18 IRQ_TYPE_LEVEL_LOW>;
321+
realtek,jd-src = <1>;
322+
#sound-dai-cells = <1>;
323+
324+
AVDD-supply = <&mt6359_vio18_ldo_reg>;
325+
DBVDD-supply = <&mt6359_vio18_ldo_reg>;
326+
LDO1-IN-supply = <&mt6359_vio18_ldo_reg>;
327+
MICVDD-supply = <&pp3300_g>;
328+
};
308329
};
309330

310331
&i2c2 {
@@ -1184,6 +1205,13 @@
11841205
};
11851206
};
11861207

1208+
rt1015p_pins: rt1015p-default-pins {
1209+
pins {
1210+
pinmux = <PINMUX_GPIO147__FUNC_GPIO147>;
1211+
output-low;
1212+
};
1213+
};
1214+
11871215
scp_pins: scp-pins {
11881216
pins-vreq-vao {
11891217
pinmux = <PINMUX_GPIO195__FUNC_SCP_VREQ_VAO>;

0 commit comments

Comments
 (0)