mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
arm64: dts: rockchip: modify sound device properties for rk3588 evbs
use multicodecs instead of simple-audio-card set es7202 power-supply to 1v8 Signed-off-by: Shunhua Lan <lsh@rock-chips.com> Change-Id: I781a0444a05b783f2fc21277160a71c70b2c75a3
This commit is contained in:
@@ -28,18 +28,38 @@
|
||||
|
||||
es8388_sound: es8388-sound {
|
||||
status = "okay";
|
||||
compatible = "simple-audio-card";
|
||||
simple-audio-card,format = "i2s";
|
||||
simple-audio-card,mclk-fs = <256>;
|
||||
simple-audio-card,name = "rockchip,es8388-codec";
|
||||
simple-audio-card,dai-link@0 {
|
||||
format = "i2s";
|
||||
cpu {
|
||||
sound-dai = <&i2s0_8ch>;
|
||||
};
|
||||
codec {
|
||||
sound-dai = <&es8388>;
|
||||
};
|
||||
compatible = "rockchip,multicodecs-card";
|
||||
rockchip,card-name = "rockchip-es8388";
|
||||
hp-det-gpio = <&gpio1 RK_PA4 GPIO_ACTIVE_LOW>;
|
||||
io-channels = <&saradc 3>;
|
||||
io-channel-names = "adc-detect";
|
||||
keyup-threshold-microvolt = <1800000>;
|
||||
poll-interval = <100>;
|
||||
spk-con-gpio = <&gpio1 RK_PD3 GPIO_ACTIVE_HIGH>;
|
||||
hp-con-gpio = <&gpio1 RK_PD2 GPIO_ACTIVE_HIGH>;
|
||||
rockchip,format = "i2s";
|
||||
rockchip,mclk-fs = <256>;
|
||||
rockchip,cpu = <&i2s0_8ch>;
|
||||
rockchip,codec = <&es8388>;
|
||||
rockchip,audio-routing =
|
||||
"Headphone", "LOUT1",
|
||||
"Headphone", "ROUT1",
|
||||
"Speaker", "LOUT2",
|
||||
"Speaker", "ROUT2",
|
||||
"Headphone", "Headphone Power",
|
||||
"Headphone", "Headphone Power",
|
||||
"Speaker", "Speaker Power",
|
||||
"Speaker", "Speaker Power",
|
||||
"LINPUT1", "Main Mic",
|
||||
"LINPUT2", "Main Mic",
|
||||
"RINPUT1", "Headset Mic",
|
||||
"RINPUT2", "Headset Mic";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&hp_det>;
|
||||
play-pause-key {
|
||||
label = "playpause";
|
||||
linux,code = <KEY_PLAYPAUSE>;
|
||||
press-threshold-microvolt = <2000>;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -89,15 +109,6 @@
|
||||
vin-supply = <&avcc_1v8_s0>;
|
||||
};
|
||||
|
||||
rk_headset: rk-headset {
|
||||
status = "okay";
|
||||
compatible = "rockchip_headset";
|
||||
headset_gpio = <&gpio1 RK_PA4 GPIO_ACTIVE_LOW>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&hp_det>;
|
||||
io-channels = <&saradc 3>;
|
||||
};
|
||||
|
||||
sdio_pwrseq: sdio-pwrseq {
|
||||
compatible = "mmc-pwrseq-simple";
|
||||
clocks = <&hym8563>;
|
||||
@@ -318,15 +329,13 @@
|
||||
assigned-clock-rates = <12288000>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&i2s0_mclk>;
|
||||
spk-con-gpio = <&gpio1 RK_PD3 GPIO_ACTIVE_HIGH>;
|
||||
hp-con-gpio = <&gpio1 RK_PD2 GPIO_ACTIVE_HIGH>;
|
||||
extcon = <&rk_headset>;
|
||||
};
|
||||
|
||||
es7202: es7202@32 {
|
||||
status = "okay";
|
||||
#sound-dai-cells = <0>;
|
||||
compatible = "ES7202_PDM_ADC_1";
|
||||
power-supply = <&vcc_1v8_s0>; /* only 1v8 or 3v3, default is 3v3 */
|
||||
reg = <0x32>;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -29,18 +29,38 @@
|
||||
|
||||
es8388_sound: es8388-sound {
|
||||
status = "okay";
|
||||
compatible = "simple-audio-card";
|
||||
simple-audio-card,format = "i2s";
|
||||
simple-audio-card,mclk-fs = <256>;
|
||||
simple-audio-card,name = "rockchip,es8388-codec";
|
||||
simple-audio-card,dai-link@0 {
|
||||
format = "i2s";
|
||||
cpu {
|
||||
sound-dai = <&i2s0_8ch>;
|
||||
};
|
||||
codec {
|
||||
sound-dai = <&es8388>;
|
||||
};
|
||||
compatible = "rockchip,multicodecs-card";
|
||||
rockchip,card-name = "rockchip-es8388";
|
||||
hp-det-gpio = <&gpio1 RK_PA4 GPIO_ACTIVE_LOW>;
|
||||
io-channels = <&saradc 3>;
|
||||
io-channel-names = "adc-detect";
|
||||
keyup-threshold-microvolt = <1800000>;
|
||||
poll-interval = <100>;
|
||||
spk-con-gpio = <&gpio1 RK_PD3 GPIO_ACTIVE_HIGH>;
|
||||
hp-con-gpio = <&gpio1 RK_PD2 GPIO_ACTIVE_HIGH>;
|
||||
rockchip,format = "i2s";
|
||||
rockchip,mclk-fs = <256>;
|
||||
rockchip,cpu = <&i2s0_8ch>;
|
||||
rockchip,codec = <&es8388>;
|
||||
rockchip,audio-routing =
|
||||
"Headphone", "LOUT1",
|
||||
"Headphone", "ROUT1",
|
||||
"Speaker", "LOUT2",
|
||||
"Speaker", "ROUT2",
|
||||
"Headphone", "Headphone Power",
|
||||
"Headphone", "Headphone Power",
|
||||
"Speaker", "Speaker Power",
|
||||
"Speaker", "Speaker Power",
|
||||
"LINPUT1", "Main Mic",
|
||||
"LINPUT2", "Main Mic",
|
||||
"RINPUT1", "Headset Mic",
|
||||
"RINPUT2", "Headset Mic";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&hp_det>;
|
||||
play-pause-key {
|
||||
label = "playpause";
|
||||
linux,code = <KEY_PLAYPAUSE>;
|
||||
press-threshold-microvolt = <2000>;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -99,15 +119,6 @@
|
||||
vin-supply = <&avcc_1v8_s0>;
|
||||
};
|
||||
|
||||
rk_headset: rk-headset {
|
||||
status = "okay";
|
||||
compatible = "rockchip_headset";
|
||||
headset_gpio = <&gpio1 RK_PA4 GPIO_ACTIVE_LOW>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&hp_det>;
|
||||
io-channels = <&saradc 3>;
|
||||
};
|
||||
|
||||
vbus5v0_typec: vbus5v0-typec {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vbus5v0_typec";
|
||||
@@ -976,15 +987,13 @@
|
||||
assigned-clock-rates = <12288000>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&i2s0_mclk>;
|
||||
spk-con-gpio = <&gpio1 RK_PD3 GPIO_ACTIVE_HIGH>;
|
||||
hp-con-gpio = <&gpio1 RK_PD2 GPIO_ACTIVE_HIGH>;
|
||||
extcon = <&rk_headset>;
|
||||
};
|
||||
|
||||
es7202: es7202@32 {
|
||||
status = "okay";
|
||||
#sound-dai-cells = <0>;
|
||||
compatible = "ES7202_PDM_ADC_1";
|
||||
power-supply = <&vcc_1v8_s0>; /* only 1v8 or 3v3, default is 3v3 */
|
||||
reg = <0x32>;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -49,18 +49,38 @@
|
||||
|
||||
es8388_sound: es8388-sound {
|
||||
status = "okay";
|
||||
compatible = "simple-audio-card";
|
||||
simple-audio-card,format = "i2s";
|
||||
simple-audio-card,mclk-fs = <256>;
|
||||
simple-audio-card,name = "rockchip,es8388-codec";
|
||||
simple-audio-card,dai-link@0 {
|
||||
format = "i2s";
|
||||
cpu {
|
||||
sound-dai = <&i2s0_8ch>;
|
||||
};
|
||||
codec {
|
||||
sound-dai = <&es8388>;
|
||||
};
|
||||
compatible = "rockchip,multicodecs-card";
|
||||
rockchip,card-name = "rockchip-es8388";
|
||||
hp-det-gpio = <&gpio1 RK_PD0 GPIO_ACTIVE_LOW>;
|
||||
io-channels = <&saradc 3>;
|
||||
io-channel-names = "adc-detect";
|
||||
keyup-threshold-microvolt = <1800000>;
|
||||
poll-interval = <100>;
|
||||
spk-con-gpio = <&gpio4 RK_PA5 GPIO_ACTIVE_HIGH>;
|
||||
hp-con-gpio = <&gpio4 RK_PA4 GPIO_ACTIVE_HIGH>;
|
||||
rockchip,format = "i2s";
|
||||
rockchip,mclk-fs = <256>;
|
||||
rockchip,cpu = <&i2s0_8ch>;
|
||||
rockchip,codec = <&es8388>;
|
||||
rockchip,audio-routing =
|
||||
"Headphone", "LOUT1",
|
||||
"Headphone", "ROUT1",
|
||||
"Speaker", "LOUT2",
|
||||
"Speaker", "ROUT2",
|
||||
"Headphone", "Headphone Power",
|
||||
"Headphone", "Headphone Power",
|
||||
"Speaker", "Speaker Power",
|
||||
"Speaker", "Speaker Power",
|
||||
"LINPUT1", "Main Mic",
|
||||
"LINPUT2", "Main Mic",
|
||||
"RINPUT1", "Headset Mic",
|
||||
"RINPUT2", "Headset Mic";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&hp_det>;
|
||||
play-pause-key {
|
||||
label = "playpause";
|
||||
linux,code = <KEY_PLAYPAUSE>;
|
||||
press-threshold-microvolt = <2000>;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -113,15 +133,6 @@
|
||||
};
|
||||
};
|
||||
|
||||
rk_headset: rk-headset {
|
||||
status = "okay";
|
||||
compatible = "rockchip_headset";
|
||||
headset_gpio = <&gpio1 RK_PD0 GPIO_ACTIVE_LOW>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&hp_det>;
|
||||
io-channels = <&saradc 3>;
|
||||
};
|
||||
|
||||
vbus5v0_typec: vbus5v0-typec {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vbus5v0_typec";
|
||||
@@ -248,15 +259,13 @@
|
||||
assigned-clock-rates = <12288000>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&i2s0_mclk>;
|
||||
spk-con-gpio = <&gpio4 RK_PA5 GPIO_ACTIVE_HIGH>;
|
||||
hp-con-gpio = <&gpio4 RK_PA4 GPIO_ACTIVE_HIGH>;
|
||||
extcon = <&rk_headset>;
|
||||
};
|
||||
|
||||
es7202: es7202@32 {
|
||||
status = "okay";
|
||||
#sound-dai-cells = <0>;
|
||||
compatible = "ES7202_PDM_ADC_1";
|
||||
power-supply = <&vcc_1v8_s0>; /* only 1v8 or 3v3, default is 3v3 */
|
||||
reg = <0x32>;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -28,28 +28,39 @@
|
||||
|
||||
es8388_sound: es8388-sound {
|
||||
status = "okay";
|
||||
compatible = "simple-audio-card";
|
||||
simple-audio-card,format = "i2s";
|
||||
simple-audio-card,mclk-fs = <256>;
|
||||
simple-audio-card,name = "rockchip,es8388-codec";
|
||||
simple-audio-card,dai-link@0 {
|
||||
format = "i2s";
|
||||
cpu {
|
||||
sound-dai = <&i2s0_8ch>;
|
||||
};
|
||||
codec {
|
||||
sound-dai = <&es8388>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
rk_headset: rk-headset {
|
||||
status = "okay";
|
||||
compatible = "rockchip_headset";
|
||||
headset_gpio = <&gpio1 RK_PD0 GPIO_ACTIVE_LOW>;
|
||||
compatible = "rockchip,multicodecs-card";
|
||||
rockchip,card-name = "rockchip-es8388";
|
||||
hp-det-gpio = <&gpio1 RK_PD0 GPIO_ACTIVE_LOW>;
|
||||
io-channels = <&saradc 3>;
|
||||
io-channel-names = "adc-detect";
|
||||
keyup-threshold-microvolt = <1800000>;
|
||||
poll-interval = <100>;
|
||||
spk-con-gpio = <&gpio4 RK_PA5 GPIO_ACTIVE_HIGH>;
|
||||
hp-con-gpio = <&gpio4 RK_PA4 GPIO_ACTIVE_HIGH>;
|
||||
rockchip,format = "i2s";
|
||||
rockchip,mclk-fs = <256>;
|
||||
rockchip,cpu = <&i2s0_8ch>;
|
||||
rockchip,codec = <&es8388>;
|
||||
rockchip,audio-routing =
|
||||
"Headphone", "LOUT1",
|
||||
"Headphone", "ROUT1",
|
||||
"Speaker", "LOUT2",
|
||||
"Speaker", "ROUT2",
|
||||
"Headphone", "Headphone Power",
|
||||
"Headphone", "Headphone Power",
|
||||
"Speaker", "Speaker Power",
|
||||
"Speaker", "Speaker Power",
|
||||
"LINPUT1", "Main Mic",
|
||||
"LINPUT2", "Main Mic",
|
||||
"RINPUT1", "Headset Mic",
|
||||
"RINPUT2", "Headset Mic";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&hp_det>;
|
||||
io-channels = <&saradc 3>;
|
||||
play-pause-key {
|
||||
label = "playpause";
|
||||
linux,code = <KEY_PLAYPAUSE>;
|
||||
press-threshold-microvolt = <2000>;
|
||||
};
|
||||
};
|
||||
|
||||
vbus5v0_typec: vbus5v0-typec {
|
||||
@@ -817,15 +828,13 @@
|
||||
assigned-clock-rates = <12288000>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&i2s0_mclk>;
|
||||
spk-con-gpio = <&gpio4 RK_PA5 GPIO_ACTIVE_HIGH>;
|
||||
hp-con-gpio = <&gpio4 RK_PA4 GPIO_ACTIVE_HIGH>;
|
||||
extcon = <&rk_headset>;
|
||||
};
|
||||
|
||||
es7202: es7202@32 {
|
||||
status = "okay";
|
||||
#sound-dai-cells = <0>;
|
||||
compatible = "ES7202_PDM_ADC_1";
|
||||
power-supply = <&vcc_1v8_s0>; /* only 1v8 or 3v3, default is 3v3 */
|
||||
reg = <0x32>;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -49,18 +49,38 @@
|
||||
|
||||
es8388_sound: es8388-sound {
|
||||
status = "okay";
|
||||
compatible = "simple-audio-card";
|
||||
simple-audio-card,format = "i2s";
|
||||
simple-audio-card,mclk-fs = <256>;
|
||||
simple-audio-card,name = "rockchip,es8388-codec";
|
||||
simple-audio-card,dai-link@0 {
|
||||
format = "i2s";
|
||||
cpu {
|
||||
sound-dai = <&i2s0_8ch>;
|
||||
};
|
||||
codec {
|
||||
sound-dai = <&es8388>;
|
||||
};
|
||||
compatible = "rockchip,multicodecs-card";
|
||||
rockchip,card-name = "rockchip-es8388";
|
||||
hp-det-gpio = <&gpio1 RK_PD0 GPIO_ACTIVE_LOW>;
|
||||
io-channels = <&saradc 3>;
|
||||
io-channel-names = "adc-detect";
|
||||
keyup-threshold-microvolt = <1800000>;
|
||||
poll-interval = <100>;
|
||||
spk-con-gpio = <&gpio4 RK_PA5 GPIO_ACTIVE_HIGH>;
|
||||
hp-con-gpio = <&gpio4 RK_PA4 GPIO_ACTIVE_HIGH>;
|
||||
rockchip,format = "i2s";
|
||||
rockchip,mclk-fs = <256>;
|
||||
rockchip,cpu = <&i2s0_8ch>;
|
||||
rockchip,codec = <&es8388>;
|
||||
rockchip,audio-routing =
|
||||
"Headphone", "LOUT1",
|
||||
"Headphone", "ROUT1",
|
||||
"Speaker", "LOUT2",
|
||||
"Speaker", "ROUT2",
|
||||
"Headphone", "Headphone Power",
|
||||
"Headphone", "Headphone Power",
|
||||
"Speaker", "Speaker Power",
|
||||
"Speaker", "Speaker Power",
|
||||
"LINPUT1", "Main Mic",
|
||||
"LINPUT2", "Main Mic",
|
||||
"RINPUT1", "Headset Mic",
|
||||
"RINPUT2", "Headset Mic";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&hp_det>;
|
||||
play-pause-key {
|
||||
label = "playpause";
|
||||
linux,code = <KEY_PLAYPAUSE>;
|
||||
press-threshold-microvolt = <2000>;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -70,15 +90,6 @@
|
||||
pwms = <&pwm11 0 50000 0>;
|
||||
};
|
||||
|
||||
rk_headset: rk-headset {
|
||||
status = "okay";
|
||||
compatible = "rockchip_headset";
|
||||
headset_gpio = <&gpio1 RK_PD0 GPIO_ACTIVE_LOW>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&hp_det>;
|
||||
io-channels = <&saradc 3>;
|
||||
};
|
||||
|
||||
vbus5v0_typec: vbus5v0-typec {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vbus5v0_typec";
|
||||
@@ -394,13 +405,13 @@
|
||||
clock-names = "mclk";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&i2s0_mclk>;
|
||||
spk-con-gpio = <&gpio4 RK_PA5 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
es7202: es7202@32 {
|
||||
status = "okay";
|
||||
#sound-dai-cells = <0>;
|
||||
compatible = "ES7202_PDM_ADC_1";
|
||||
power-supply = <&vcc_1v8_s0>; /* only 1v8 or 3v3, default is 3v3 */
|
||||
reg = <0x32>;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user