ODROID-M1: arm64/dts: Support sound_card for odroid.

card0: rk817 codec sound.
card1: HDMI sound.

rk817 codec sound output enable cmd : (HP or SPK or SPK_HP)
amixer -c 0 sset "Playback Path" SPK_HP

Signed-off-by: ckkim <changkon12@gmail.com>
Signed-off-by: Steve Jeong <steve@how2flow.net>
Change-Id: I8f003ca4e632217113f6a8eda59dc6613c84c23b
This commit is contained in:
ckkim
2022-03-08 11:30:29 +09:00
committed by Dongjin Kim
parent 7d6420108a
commit 2b5cef8e3f
2 changed files with 48 additions and 0 deletions

View File

@@ -159,6 +159,11 @@
"", "", "", "", "", "", "", "";
};
&hdmi_sound {
simple-audio-card,name = "ODROID-M1-HDMI";
status = "okay";
};
&i2c3 {
status = "disabled";
pinctrl-names = "default";
@@ -191,6 +196,11 @@
};
};
&rk809_sound {
rockchip,card-name = "ODROID-M1-FRONT";
status = "okay";
};
&sata2 {
status = "okay";
};

View File

@@ -29,6 +29,13 @@
};
};
rk_headset: rk-headset {
compatible = "rockchip_headset";
headset_gpio = <&gpio0 RK_PB0 GPIO_ACTIVE_LOW>;
pinctrl-names = "default";
pinctrl-0 = <&hp_det>;
};
rk3568-gpiomem {
compatible = "rockchip,rk3568-gpiomem";
reg = <0x0 0xfd660000 0x0 0x1000>;
@@ -63,6 +70,11 @@
status = "okay";
};
&hdmi_sound {
/delete-property/ rockchip,jack-det;
status = "okay";
};
&i2c1 {
status = "disabled";
@@ -113,12 +125,30 @@
<1 RK_PD1 1 &pcfg_pull_none>;
};
};
headphone {
hp_det: hp-det {
rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_down>;
};
};
};
&pmu_io_domains {
vccio4-supply = <&vcc_1v8>;
};
&rk809_codec {
#sound-dai-cells = <0>;
hp-volume = <3>;
spk-volume = <3>;
status = "okay";
};
&rk809_sound {
hp-det-gpio = <&gpio0 RK_PB0 GPIO_ACTIVE_HIGH>;
status = "okay";
};
&rknpu_mmu {
status = "disabled";
};
@@ -139,6 +169,14 @@
cap-mmc-hw-reset;
};
&spdif_8ch {
status = "disabled";
};
&spdif_out {
status = "disabled";
};
&video_phy0 {
status = "okay";
};