mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
arm64: dts: rockchip: adjust sound cards for rk3588-evbx and rk3588s-evbx
Signed-off-by: Shunhua Lan <lsh@rock-chips.com> Change-Id: Ibd874890ae7124b3337ce9817710c657bd1bc6ed
This commit is contained in:
@@ -56,30 +56,6 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
rk_headset {
|
|
||||||
status = "disabled";
|
|
||||||
compatible = "rockchip_headset";
|
|
||||||
headset_gpio = <&gpio1 RK_PD5 GPIO_ACTIVE_LOW>;
|
|
||||||
pinctrl-names = "default";
|
|
||||||
pinctrl-0 = <&hp_det>;
|
|
||||||
io-channels = <&saradc 3>;
|
|
||||||
};
|
|
||||||
|
|
||||||
es8388_sound: es8388-sound {
|
|
||||||
status = "okay";
|
|
||||||
simple-audio-card,format = "i2s";
|
|
||||||
simple-audio-card,name = "rockchip,es8388-codec";
|
|
||||||
simple-audio-card,dai-link@0 {
|
|
||||||
format = "i2s";
|
|
||||||
cpu {
|
|
||||||
sound-dai = <&i2s0_8ch>;
|
|
||||||
};
|
|
||||||
codec {
|
|
||||||
sound-dai = <&es8388>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
vcc12v_dcin: vcc12v-dcin {
|
vcc12v_dcin: vcc12v-dcin {
|
||||||
compatible = "regulator-fixed";
|
compatible = "regulator-fixed";
|
||||||
regulator-name = "vcc12v_dcin";
|
regulator-name = "vcc12v_dcin";
|
||||||
@@ -122,6 +98,7 @@
|
|||||||
|
|
||||||
&i2s0_8ch {
|
&i2s0_8ch {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
rockchip,clk-trcm = <1>;
|
||||||
pinctrl-0 = <&i2s0_lrck_tx
|
pinctrl-0 = <&i2s0_lrck_tx
|
||||||
&i2s0_sclk_tx
|
&i2s0_sclk_tx
|
||||||
&i2s0_sdi0
|
&i2s0_sdi0
|
||||||
|
|||||||
@@ -10,6 +10,30 @@
|
|||||||
#include "rk806-double.dtsi"
|
#include "rk806-double.dtsi"
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
|
es8388_sound: es8388-sound {
|
||||||
|
status = "okay";
|
||||||
|
simple-audio-card,format = "i2s";
|
||||||
|
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 {
|
||||||
|
status = "disabled";
|
||||||
|
compatible = "rockchip_headset";
|
||||||
|
headset_gpio = <&gpio1 RK_PD5 GPIO_ACTIVE_LOW>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&hp_det>;
|
||||||
|
io-channels = <&saradc 3>;
|
||||||
|
};
|
||||||
|
|
||||||
vbus5v0_typec: vbus-typec-regulator {
|
vbus5v0_typec: vbus-typec-regulator {
|
||||||
compatible = "regulator-fixed";
|
compatible = "regulator-fixed";
|
||||||
regulator-name = "vbus5v0_typec";
|
regulator-name = "vbus5v0_typec";
|
||||||
@@ -103,11 +127,11 @@
|
|||||||
|
|
||||||
&i2c7 {
|
&i2c7 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
es8388: es8388@10 {
|
es8388: es8388@11 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
#sound-dai-cells = <0>;
|
#sound-dai-cells = <0>;
|
||||||
compatible = "everest,es8388";
|
compatible = "everest,es8388", "everest,es8323";
|
||||||
reg = <0x10>;
|
reg = <0x11>;
|
||||||
clocks = <&cru I2S0_8CH_MCLKOUT>;
|
clocks = <&cru I2S0_8CH_MCLKOUT>;
|
||||||
clock-names = "mclk";
|
clock-names = "mclk";
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
|
|||||||
@@ -9,6 +9,47 @@
|
|||||||
#include "rk806-double.dtsi"
|
#include "rk806-double.dtsi"
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
|
es7202_sound_micarray: es7202-sound-micarray {
|
||||||
|
status = "okay";
|
||||||
|
compatible = "simple-audio-card";
|
||||||
|
simple-audio-card,format = "i2s";
|
||||||
|
simple-audio-card,name = "rockchip,sound-micarray";
|
||||||
|
simple-audio-card,mclk-fs = <256>;
|
||||||
|
simple-audio-card,dai-link@0 {
|
||||||
|
format = "pdm";
|
||||||
|
cpu {
|
||||||
|
sound-dai = <&pdm0>;
|
||||||
|
};
|
||||||
|
codec {
|
||||||
|
sound-dai = <&es7202>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
es8388_sound: es8388-sound {
|
||||||
|
status = "okay";
|
||||||
|
simple-audio-card,format = "i2s";
|
||||||
|
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 {
|
||||||
|
status = "disabled";
|
||||||
|
compatible = "rockchip_headset";
|
||||||
|
headset_gpio = <&gpio1 RK_PA4 GPIO_ACTIVE_LOW>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&hp_det>;
|
||||||
|
io-channels = <&saradc 3>;
|
||||||
|
};
|
||||||
|
|
||||||
vcc5v0_host: vcc5v0-host-regulator {
|
vcc5v0_host: vcc5v0-host-regulator {
|
||||||
compatible = "regulator-fixed";
|
compatible = "regulator-fixed";
|
||||||
regulator-name = "vcc5v0_host";
|
regulator-name = "vcc5v0_host";
|
||||||
@@ -38,17 +79,29 @@
|
|||||||
|
|
||||||
&i2c7 {
|
&i2c7 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
es8388: es8388@10 {
|
|
||||||
|
es8388: es8388@11 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
#sound-dai-cells = <0>;
|
#sound-dai-cells = <0>;
|
||||||
compatible = "everest,es8388";
|
compatible = "everest,es8388", "everest,es8323";
|
||||||
reg = <0x10>;
|
reg = <0x11>;
|
||||||
clocks = <&cru I2S0_8CH_MCLKOUT>;
|
clocks = <&cru I2S0_8CH_MCLKOUT>;
|
||||||
clock-names = "mclk";
|
clock-names = "mclk";
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&i2s0_mclk>;
|
pinctrl-0 = <&i2s0_mclk>;
|
||||||
spk-con-gpio = <&gpio1 RK_PD3 GPIO_ACTIVE_HIGH>;
|
spk-con-gpio = <&gpio1 RK_PD3 GPIO_ACTIVE_HIGH>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
es7202: es7202@32 {
|
||||||
|
status = "okay";
|
||||||
|
#sound-dai-cells = <0>;
|
||||||
|
compatible = "ES7202_PDM_ADC_1";
|
||||||
|
reg = <0x32>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&pdm0 {
|
||||||
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
&pinctrl {
|
&pinctrl {
|
||||||
|
|||||||
@@ -10,6 +10,47 @@
|
|||||||
#include "rk806-double.dtsi"
|
#include "rk806-double.dtsi"
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
|
es7202_sound_micarray: es7202-sound-micarray {
|
||||||
|
status = "okay";
|
||||||
|
compatible = "simple-audio-card";
|
||||||
|
simple-audio-card,format = "i2s";
|
||||||
|
simple-audio-card,name = "rockchip,sound-micarray";
|
||||||
|
simple-audio-card,mclk-fs = <256>;
|
||||||
|
simple-audio-card,dai-link@0 {
|
||||||
|
format = "pdm";
|
||||||
|
cpu {
|
||||||
|
sound-dai = <&pdm0>;
|
||||||
|
};
|
||||||
|
codec {
|
||||||
|
sound-dai = <&es7202>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
es8388_sound: es8388-sound {
|
||||||
|
status = "okay";
|
||||||
|
simple-audio-card,format = "i2s";
|
||||||
|
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 {
|
||||||
|
status = "disabled";
|
||||||
|
compatible = "rockchip_headset";
|
||||||
|
headset_gpio = <&gpio1 RK_PD2 GPIO_ACTIVE_LOW>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&hp_det>;
|
||||||
|
io-channels = <&saradc 3>;
|
||||||
|
};
|
||||||
|
|
||||||
vbus5v0_typec: vbus-typec-regulator {
|
vbus5v0_typec: vbus-typec-regulator {
|
||||||
compatible = "regulator-fixed";
|
compatible = "regulator-fixed";
|
||||||
regulator-name = "vbus5v0_typec";
|
regulator-name = "vbus5v0_typec";
|
||||||
@@ -106,17 +147,29 @@
|
|||||||
|
|
||||||
&i2c7 {
|
&i2c7 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
es8388: es8388@10 {
|
|
||||||
|
es8388: es8388@11 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
#sound-dai-cells = <0>;
|
#sound-dai-cells = <0>;
|
||||||
compatible = "everest,es8388";
|
compatible = "everest,es8388", "everest,es8323";
|
||||||
reg = <0x10>;
|
reg = <0x11>;
|
||||||
clocks = <&cru I2S0_8CH_MCLKOUT>;
|
clocks = <&cru I2S0_8CH_MCLKOUT>;
|
||||||
clock-names = "mclk";
|
clock-names = "mclk";
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&i2s0_mclk>;
|
pinctrl-0 = <&i2s0_mclk>;
|
||||||
spk-con-gpio = <&gpio1 RK_PD3 GPIO_ACTIVE_HIGH>;
|
spk-con-gpio = <&gpio1 RK_PD3 GPIO_ACTIVE_HIGH>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
es7202: es7202@32 {
|
||||||
|
status = "okay";
|
||||||
|
#sound-dai-cells = <0>;
|
||||||
|
compatible = "ES7202_PDM_ADC_1";
|
||||||
|
reg = <0x32>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&pdm0 {
|
||||||
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
&pinctrl {
|
&pinctrl {
|
||||||
|
|||||||
@@ -49,21 +49,6 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&i2c7 {
|
|
||||||
status = "okay";
|
|
||||||
es8388: es8388@10 {
|
|
||||||
status = "okay";
|
|
||||||
#sound-dai-cells = <0>;
|
|
||||||
compatible = "everest,es8388";
|
|
||||||
reg = <0x10>;
|
|
||||||
clocks = <&cru I2S0_8CH_MCLKOUT>;
|
|
||||||
clock-names = "mclk";
|
|
||||||
pinctrl-names = "default";
|
|
||||||
pinctrl-0 = <&i2s0_mclk>;
|
|
||||||
spk-con-gpio = <&gpio1 RK_PD3 GPIO_ACTIVE_HIGH>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
&i2c8 {
|
&i2c8 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
|
|||||||
@@ -20,21 +20,6 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&i2c7 {
|
|
||||||
status = "okay";
|
|
||||||
es8388: es8388@10 {
|
|
||||||
status = "okay";
|
|
||||||
#sound-dai-cells = <0>;
|
|
||||||
compatible = "everest,es8388";
|
|
||||||
reg = <0x10>;
|
|
||||||
clocks = <&cru I2S0_8CH_MCLKOUT>;
|
|
||||||
clock-names = "mclk";
|
|
||||||
pinctrl-names = "default";
|
|
||||||
pinctrl-0 = <&i2s0_mclk>;
|
|
||||||
spk-con-gpio = <&gpio1 RK_PD3 GPIO_ACTIVE_HIGH>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
&pinctrl {
|
&pinctrl {
|
||||||
touch {
|
touch {
|
||||||
touch_gpio: touch-gpio {
|
touch_gpio: touch-gpio {
|
||||||
|
|||||||
@@ -8,6 +8,32 @@
|
|||||||
#include "rk3588-evb.dtsi"
|
#include "rk3588-evb.dtsi"
|
||||||
#include "rk806-double.dtsi"
|
#include "rk806-double.dtsi"
|
||||||
|
|
||||||
|
/ {
|
||||||
|
es8388_sound: es8388-sound {
|
||||||
|
status = "okay";
|
||||||
|
simple-audio-card,format = "i2s";
|
||||||
|
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 {
|
||||||
|
status = "disabled";
|
||||||
|
compatible = "rockchip_headset";
|
||||||
|
headset_gpio = <&gpio1 RK_PD2 GPIO_ACTIVE_LOW>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&hp_det>;
|
||||||
|
io-channels = <&saradc 3>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&i2c6 {
|
&i2c6 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
gt1x: gt1x@14 {
|
gt1x: gt1x@14 {
|
||||||
@@ -22,11 +48,11 @@
|
|||||||
|
|
||||||
&i2c7 {
|
&i2c7 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
es8388: es8388@10 {
|
es8388: es8388@11 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
#sound-dai-cells = <0>;
|
#sound-dai-cells = <0>;
|
||||||
compatible = "everest,es8388";
|
compatible = "everest,es8388", "everest,es8323";
|
||||||
reg = <0x10>;
|
reg = <0x11>;
|
||||||
clocks = <&cru I2S0_8CH_MCLKOUT>;
|
clocks = <&cru I2S0_8CH_MCLKOUT>;
|
||||||
clock-names = "mclk";
|
clock-names = "mclk";
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
|
|||||||
@@ -56,30 +56,6 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
rk_headset {
|
|
||||||
status = "disabled";
|
|
||||||
compatible = "rockchip_headset";
|
|
||||||
headset_gpio = <&gpio1 RK_PD5 GPIO_ACTIVE_LOW>;
|
|
||||||
pinctrl-names = "default";
|
|
||||||
pinctrl-0 = <&hp_det>;
|
|
||||||
io-channels = <&saradc 3>;
|
|
||||||
};
|
|
||||||
|
|
||||||
es8388_sound: es8388-sound {
|
|
||||||
status = "okay";
|
|
||||||
simple-audio-card,format = "i2s";
|
|
||||||
simple-audio-card,name = "rockchip,es8388-codec";
|
|
||||||
simple-audio-card,dai-link@0 {
|
|
||||||
format = "i2s";
|
|
||||||
cpu {
|
|
||||||
sound-dai = <&i2s0_8ch>;
|
|
||||||
};
|
|
||||||
codec {
|
|
||||||
sound-dai = <&es8388>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
vcc12v_dcin: vcc12v-dcin {
|
vcc12v_dcin: vcc12v-dcin {
|
||||||
compatible = "regulator-fixed";
|
compatible = "regulator-fixed";
|
||||||
regulator-name = "vcc12v_dcin";
|
regulator-name = "vcc12v_dcin";
|
||||||
@@ -122,6 +98,7 @@
|
|||||||
|
|
||||||
&i2s0_8ch {
|
&i2s0_8ch {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
rockchip,clk-trcm = <1>;
|
||||||
pinctrl-0 = <&i2s0_lrck_tx
|
pinctrl-0 = <&i2s0_lrck_tx
|
||||||
&i2s0_sclk_tx
|
&i2s0_sclk_tx
|
||||||
&i2s0_sdi0
|
&i2s0_sdi0
|
||||||
|
|||||||
@@ -10,6 +10,47 @@
|
|||||||
#include "rk806-double.dtsi"
|
#include "rk806-double.dtsi"
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
|
es7202_sound_micarray: es7202-sound-micarray {
|
||||||
|
status = "okay";
|
||||||
|
compatible = "simple-audio-card";
|
||||||
|
simple-audio-card,format = "i2s";
|
||||||
|
simple-audio-card,name = "rockchip,sound-micarray";
|
||||||
|
simple-audio-card,mclk-fs = <256>;
|
||||||
|
simple-audio-card,dai-link@0 {
|
||||||
|
format = "pdm";
|
||||||
|
cpu {
|
||||||
|
sound-dai = <&pdm0>;
|
||||||
|
};
|
||||||
|
codec {
|
||||||
|
sound-dai = <&es7202>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
es8388_sound: es8388-sound {
|
||||||
|
status = "okay";
|
||||||
|
simple-audio-card,format = "i2s";
|
||||||
|
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 {
|
||||||
|
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: vbus-typec-regulator {
|
vbus5v0_typec: vbus-typec-regulator {
|
||||||
compatible = "regulator-fixed";
|
compatible = "regulator-fixed";
|
||||||
regulator-name = "vbus5v0_typec";
|
regulator-name = "vbus5v0_typec";
|
||||||
@@ -39,16 +80,24 @@
|
|||||||
|
|
||||||
&i2c3 {
|
&i2c3 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
es8388: es8388@10 {
|
|
||||||
|
es8388: es8388@11 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
#sound-dai-cells = <0>;
|
#sound-dai-cells = <0>;
|
||||||
compatible = "everest,es8388";
|
compatible = "everest,es8388", "everest,es8323";
|
||||||
reg = <0x10>;
|
reg = <0x11>;
|
||||||
clocks = <&cru I2S0_8CH_MCLKOUT>;
|
clocks = <&cru I2S0_8CH_MCLKOUT>;
|
||||||
clock-names = "mclk";
|
clock-names = "mclk";
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&i2s0_mclk>;
|
pinctrl-0 = <&i2s0_mclk>;
|
||||||
spk-con-gpio = <&gpio1 RK_PD3 GPIO_ACTIVE_HIGH>;
|
spk-con-gpio = <&gpio4 RK_PA5 GPIO_ACTIVE_HIGH>;
|
||||||
|
};
|
||||||
|
|
||||||
|
es7202: es7202@32 {
|
||||||
|
status = "okay";
|
||||||
|
#sound-dai-cells = <0>;
|
||||||
|
compatible = "ES7202_PDM_ADC_1";
|
||||||
|
reg = <0x32>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -159,6 +208,10 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&pdm0 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
&pinctrl {
|
&pinctrl {
|
||||||
mpu6500 {
|
mpu6500 {
|
||||||
mpu6500_irq_gpio: mpu6500-irq-gpio {
|
mpu6500_irq_gpio: mpu6500-irq-gpio {
|
||||||
|
|||||||
@@ -9,6 +9,47 @@
|
|||||||
#include "rk806-double.dtsi"
|
#include "rk806-double.dtsi"
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
|
es7202_sound_micarray: es7202-sound-micarray {
|
||||||
|
status = "okay";
|
||||||
|
compatible = "simple-audio-card";
|
||||||
|
simple-audio-card,format = "i2s";
|
||||||
|
simple-audio-card,name = "rockchip,sound-micarray";
|
||||||
|
simple-audio-card,mclk-fs = <256>;
|
||||||
|
simple-audio-card,dai-link@0 {
|
||||||
|
format = "pdm";
|
||||||
|
cpu {
|
||||||
|
sound-dai = <&pdm0>;
|
||||||
|
};
|
||||||
|
codec {
|
||||||
|
sound-dai = <&es7202>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
es8388_sound: es8388-sound {
|
||||||
|
status = "okay";
|
||||||
|
simple-audio-card,format = "i2s";
|
||||||
|
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 {
|
||||||
|
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: vbus-typec-regulator {
|
vbus5v0_typec: vbus-typec-regulator {
|
||||||
compatible = "regulator-fixed";
|
compatible = "regulator-fixed";
|
||||||
regulator-name = "vbus5v0_typec";
|
regulator-name = "vbus5v0_typec";
|
||||||
@@ -65,18 +106,26 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&i2c7 {
|
&i2c3 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
es8388: es8388@10 {
|
|
||||||
|
es8388: es8388@11 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
#sound-dai-cells = <0>;
|
#sound-dai-cells = <0>;
|
||||||
compatible = "everest,es8388";
|
compatible = "everest,es8388", "everest,es8323";
|
||||||
reg = <0x10>;
|
reg = <0x11>;
|
||||||
clocks = <&cru I2S0_8CH_MCLKOUT>;
|
clocks = <&cru I2S0_8CH_MCLKOUT>;
|
||||||
clock-names = "mclk";
|
clock-names = "mclk";
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&i2s0_mclk>;
|
pinctrl-0 = <&i2s0_mclk>;
|
||||||
spk-con-gpio = <&gpio1 RK_PD3 GPIO_ACTIVE_HIGH>;
|
spk-con-gpio = <&gpio4 RK_PA5 GPIO_ACTIVE_HIGH>;
|
||||||
|
};
|
||||||
|
|
||||||
|
es7202: es7202@32 {
|
||||||
|
status = "okay";
|
||||||
|
#sound-dai-cells = <0>;
|
||||||
|
compatible = "ES7202_PDM_ADC_1";
|
||||||
|
reg = <0x32>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -84,6 +133,10 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&pdm0 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
&pinctrl {
|
&pinctrl {
|
||||||
touch {
|
touch {
|
||||||
touch_gpio: touch-gpio {
|
touch_gpio: touch-gpio {
|
||||||
|
|||||||
@@ -38,21 +38,6 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&i2c7 {
|
|
||||||
status = "okay";
|
|
||||||
es8388: es8388@10 {
|
|
||||||
status = "okay";
|
|
||||||
#sound-dai-cells = <0>;
|
|
||||||
compatible = "everest,es8388";
|
|
||||||
reg = <0x10>;
|
|
||||||
clocks = <&cru I2S0_8CH_MCLKOUT>;
|
|
||||||
clock-names = "mclk";
|
|
||||||
pinctrl-names = "default";
|
|
||||||
pinctrl-0 = <&i2s0_mclk>;
|
|
||||||
spk-con-gpio = <&gpio1 RK_PD3 GPIO_ACTIVE_HIGH>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
&i2c8 {
|
&i2c8 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
|
|||||||
@@ -10,6 +10,47 @@
|
|||||||
#include "rk806-single.dtsi"
|
#include "rk806-single.dtsi"
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
|
es7202_sound_micarray: es7202-sound-micarray {
|
||||||
|
status = "okay";
|
||||||
|
compatible = "simple-audio-card";
|
||||||
|
simple-audio-card,format = "i2s";
|
||||||
|
simple-audio-card,name = "rockchip,sound-micarray";
|
||||||
|
simple-audio-card,mclk-fs = <256>;
|
||||||
|
simple-audio-card,dai-link@0 {
|
||||||
|
format = "pdm";
|
||||||
|
cpu {
|
||||||
|
sound-dai = <&pdm0>;
|
||||||
|
};
|
||||||
|
codec {
|
||||||
|
sound-dai = <&es7202>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
es8388_sound: es8388-sound {
|
||||||
|
status = "okay";
|
||||||
|
simple-audio-card,format = "i2s";
|
||||||
|
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 {
|
||||||
|
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: vbus-typec-regulator {
|
vbus5v0_typec: vbus-typec-regulator {
|
||||||
compatible = "regulator-fixed";
|
compatible = "regulator-fixed";
|
||||||
regulator-name = "vbus5v0_typec";
|
regulator-name = "vbus5v0_typec";
|
||||||
@@ -52,18 +93,26 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&i2c7 {
|
&i2c3 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
es8388: es8388@10 {
|
|
||||||
|
es8388: es8388@11 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
#sound-dai-cells = <0>;
|
#sound-dai-cells = <0>;
|
||||||
compatible = "everest,es8388";
|
compatible = "everest,es8388", "everest,es8323";
|
||||||
reg = <0x10>;
|
reg = <0x11>;
|
||||||
clocks = <&cru I2S0_8CH_MCLKOUT>;
|
clocks = <&cru I2S0_8CH_MCLKOUT>;
|
||||||
clock-names = "mclk";
|
clock-names = "mclk";
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&i2s0_mclk>;
|
pinctrl-0 = <&i2s0_mclk>;
|
||||||
spk-con-gpio = <&gpio1 RK_PD3 GPIO_ACTIVE_HIGH>;
|
spk-con-gpio = <&gpio4 RK_PA5 GPIO_ACTIVE_HIGH>;
|
||||||
|
};
|
||||||
|
|
||||||
|
es7202: es7202@32 {
|
||||||
|
status = "okay";
|
||||||
|
#sound-dai-cells = <0>;
|
||||||
|
compatible = "ES7202_PDM_ADC_1";
|
||||||
|
reg = <0x32>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -125,6 +174,10 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&pdm0 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
&pinctrl {
|
&pinctrl {
|
||||||
touch {
|
touch {
|
||||||
touch_gpio: touch-gpio {
|
touch_gpio: touch-gpio {
|
||||||
|
|||||||
Reference in New Issue
Block a user