赞
踩
- &i2s1_8ch {
- #sound-dai-cells = <0>;
- pinctrl-0 = <&i2s1m0_lrck
- &i2s1m0_sclk
- &i2s1m0_mclk
- &i2s1m0_sdo0>;
- status = "okay";
- };
-
- dummy_codec: dummy-codec {
- compatible = "rockchip,dummy-codec";
- #sound-dai-cells = <0>;
- //clocks = <&cru SCLK_I2S1_8CH_TX_OUT>;
- clock-names = "mclk";
- assigned-clocks = <&cru I2S1_8CH_MCLKOUT>;
- assigned-clock-rates = <12288000>;
- pinctrl-names = "default";
- };
-
- i2s1_sound: i2s1-sound {
- compatible = "simple-audio-card";
- simple-audio-card,name = "rockchip-i2s-sound";
- status = "okay";
- simple-audio-card,format = "i2s";
- simple-audio-card,mclk-fs = <256>;
- simple-audio-card,cpu {
- sound-dai = <&i2s1_8ch>;
- };
- simple-audio-card,codec {
- sound-dai = <&dummy_codec>;
- };
- };
- lkes7243 {
- compatible = "rockchip,lkes7243";
- pinctrl-0 = <&lkencodeic_pins>;
- es_sda = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>;
- es_scl = <&gpio0 RK_PD0 GPIO_ACTIVE_HIGH>;
- status = "okay";
- };
-
- &i2s0_8ch {
- status = "okay";
- pinctrl-0 = <&i2s0_lrck
- &i2s0_sclk
- &i2s0_sdi0
- &i2s0_mclk>;
- };
-
- es7243e_codec: es7243e-codec {
- compatible = "rockchip,dummy-codec";
- #sound-dai-cells = <0>;
- clock-names = "mclk";
- assigned-clocks = <&cru I2S0_8CH_MCLKOUT>;
- assigned-clock-rates = <12288000>;
- pinctrl-names = "default";
- };
-
- es7243e_i2s0_sound: es7243e-i2s0-sound {
- status = "okay";
- compatible = "simple-audio-card";
- simple-audio-card,format = "i2s";
- simple-audio-card,mclk-fs = <256>;
- simple-audio-card,name = "rockchip,es7243e";
- simple-audio-card,dai-link@0 {
- format = "i2s";
- cpu {
- sound-dai = <&i2s0_8ch>;
- };
- codec {
- sound-dai = <&es7243e_codec>;
- };
- };
- };
audio in和 audio out的i2s都是直连的,所以本质上配置i2s并无区别,使用的是模拟的iic,es7243初始化一次之后就不用了
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。