arm64: dts: rockchip: rk3568-nvr-demo-v10: add codec es8311

Signed-off-by: Huang zhibao <hzb@rock-chips.com>
Change-Id: I35cddf6f94745b1c86a00a9b9c6c207a762018f3
This commit is contained in:
Huang zhibao
2020-12-01 19:55:53 +08:00
committed by Tao Huang
parent d2c937325e
commit 7e97f02b88

View File

@@ -29,6 +29,20 @@
};
};
i2s1_sound: i2s1-sound {
status = "okay";
compatible = "simple-audio-card";
simple-audio-card,format = "i2s";
simple-audio-card,mclk-fs = <256>;
simple-audio-card,name = "rockchip,i2s1-sound";
simple-audio-card,cpu {
sound-dai = <&i2s1_8ch>;
};
simple-audio-card,codec {
sound-dai = <&es8311>;
};
};
vcc2v5_sys: vcc2v5-ddr {
compatible = "regulator-fixed";
regulator-name = "vcc2v5-sys";
@@ -148,6 +162,28 @@
};
};
&i2c3 {
status = "okay";
clock-frequency = <400000>;
es8311: es8311@18 {
compatible = "everest,es8311";
reg = <0x18>;
clocks = <&cru I2S1_MCLKOUT_TX>;
clock-names = "mclk";
adc-pga-gain = <6>; /* 18dB */
adc-volume = <0xbf>; /* 0dB */
dac-volume = <0xbf>; /* 0dB */
aec-mode = "dac left, adc right";
pinctrl-names = "default";
pinctrl-0 = <&i2s1m0_mclk>;
assigned-clocks = <&cru I2S1_MCLKOUT_TX>;
assigned-clock-parents = <&cru CLK_I2S1_8CH_TX>;
spk-ctl-gpios = <&gpio2 RK_PA5 GPIO_ACTIVE_HIGH>;
#sound-dai-cells = <0>;
};
};
&mdio0 {
rgmii_phy0: phy@0 {
compatible = "ethernet-phy-ieee802.3-c22";