mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 20:32:04 +09:00
arm64: dts: rockchip: rk3399-evb: use multicodecs instead simple card
Signed-off-by: Shunhua Lan <lsh@rock-chips.com> Change-Id: Idb6c8165afcbe8264a7b12a00c8e0f790a61210b
This commit is contained in:
@@ -10,23 +10,34 @@
|
|||||||
compatible = "rockchip,rk3399-sapphire-excavator", "rockchip,rk3399";
|
compatible = "rockchip,rk3399-sapphire-excavator", "rockchip,rk3399";
|
||||||
|
|
||||||
rt5651_sound: rt5651-sound {
|
rt5651_sound: rt5651-sound {
|
||||||
compatible = "simple-audio-card";
|
status = "okay";
|
||||||
simple-audio-card,format = "i2s";
|
compatible = "rockchip,multicodecs-card";
|
||||||
simple-audio-card,name = "realtek,rt5651-codec";
|
rockchip,card-name = "realtek,rt5651-codec";
|
||||||
simple-audio-card,mclk-fs = <256>;
|
keyup-threshold-microvolt = <1800000>;
|
||||||
simple-audio-card,widgets =
|
poll-interval = <100>;
|
||||||
"Microphone", "Mic Jack",
|
spk-con-gpio = <&gpio0 11 GPIO_ACTIVE_HIGH>;
|
||||||
"Headphone", "Headphone Jack";
|
hp-det-gpio = <&gpio4 28 GPIO_ACTIVE_HIGH>;
|
||||||
simple-audio-card,routing =
|
rockchip,format = "i2s";
|
||||||
"Mic Jack", "MICBIAS1",
|
rockchip,mclk-fs = <256>;
|
||||||
"IN1P", "Mic Jack",
|
rockchip,cpu = <&i2s0>;
|
||||||
"Headphone Jack", "HPOL",
|
rockchip,codec = <&rt5651>;
|
||||||
"Headphone Jack", "HPOR";
|
rockchip,audio-routing =
|
||||||
simple-audio-card,cpu {
|
"Headphone", "HPOL",
|
||||||
sound-dai = <&i2s0>;
|
"Headphone", "HPOR",
|
||||||
};
|
"Speaker", "HPOL",
|
||||||
simple-audio-card,codec {
|
"Speaker", "HPOR",
|
||||||
sound-dai = <&rt5651>;
|
"Headphone", "Headphone Power",
|
||||||
|
"Headphone", "Headphone Power",
|
||||||
|
"Speaker", "Speaker Power",
|
||||||
|
"Speaker", "Speaker Power",
|
||||||
|
"IN1P", "Main Mic",
|
||||||
|
"IN2P", "Headset Mic",
|
||||||
|
"IN2N", "Headset Mic";
|
||||||
|
"Headset Mic", "micbias1";
|
||||||
|
play-pause-key {
|
||||||
|
label = "playpause";
|
||||||
|
linux,code = <KEY_PLAYPAUSE>;
|
||||||
|
press-threshold-microvolt = <2000>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -152,8 +163,6 @@
|
|||||||
clock-names = "mclk";
|
clock-names = "mclk";
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&i2s_8ch_mclk>;
|
pinctrl-0 = <&i2s_8ch_mclk>;
|
||||||
spk-con-gpio = <&gpio0 11 GPIO_ACTIVE_HIGH>;
|
|
||||||
hp-det-gpio = <&gpio4 28 GPIO_ACTIVE_LOW>;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user