Other Parts Discussed in Thread: TLV320AIC3104
我們參考了這片EVM 來開發我們的板子
硬件這邊更換了audio chip 為 TLV320AIC3104IRHBR
我的BSP 是參考這邊使用Yocto 編譯出來的
但是在kernel linux-ti-staging_6.1.bb
並沒有找到此晶片driver
可否提供該如何加入驅動以及dts的設定?
Thanks!
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
我們參考了這片EVM 來開發我們的板子
硬件這邊更換了audio chip 為 TLV320AIC3104IRHBR
我的BSP 是參考這邊使用Yocto 編譯出來的
但是在kernel linux-ti-staging_6.1.bb
並沒有找到此晶片driver
可否提供該如何加入驅動以及dts的設定?
Thanks!
抱歉, 看起來這隻driver 有存在 kernel source 裡
build/arago-tmp-default-glibc/work-shared/am62pxx-evm/kernel-source/Documentation/devicetree/bindings/sound/tlv320aic3x.txt
在這邊找到了文件
目前參考EVM 關於sound 的dts 如下.
/ {
tlv320_mclk: clk-0 {
#clock-cells = <0>;
compatible = "fixed-clock";
clock-frequency = <12288000>;
};
codec_audio: sound {
compatible = "simple-audio-card";
simple-audio-card,name = "AM62x-SKEVM";
simple-audio-card,widgets =
"Headphone", "Headphone Jack",
"Line", "Line In",
"Microphone", "Microphone Jack";
simple-audio-card,routing =
"Headphone Jack", "HPLOUT",
"Headphone Jack", "HPROUT",
"LINE1L", "Line In",
"LINE1R", "Line In",
"MIC3R", "Microphone Jack",
"Microphone Jack", "Mic Bias";
simple-audio-card,format = "dsp_b";
simple-audio-card,bitclock-master = <&sound_master>;
simple-audio-card,frame-master = <&sound_master>;
simple-audio-card,bitclock-inversion;
simple-audio-card,cpu {
sound-dai = <&mcasp1>;
};
sound_master: simple-audio-card,codec {
sound-dai = <&tlv320aic3106>;
clocks = <&tlv320_mclk>;
};
};
}
&main_i2c1 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&main_i2c1_pins_default>;
clock-frequency = <100000>;
bootph-all;
tlv320aic3106: audio-codec@1b {
#sound-dai-cells = <0>;
compatible = "ti,tlv320aic3106";
reg = <0x1b>;
ai3x-micbias-vg = <1>; /* 2.0V */
};
}
如果要改成支援 "TLV320AIC3104IRHBR"
有什麼需要注意的?