我正在尝试将 ADAU1761 编解码器与 Beaglebone Black 集成。我需要配置声卡才能通过编解码器播放音频。我尝试编写设备树覆盖但没有成功。然后我尝试直接在设备树中进行更改。现在 PIN 的模式已更改,但声卡未配置。我会朝着正确的方向前进吗?请帮忙。以下是我在设备树中所做的更改:
引脚模式更改 i2c:
pinmux_i2c2_pins {
pinctrl-single,pins = <0x178 0x0b 0x17c 0x0b>;
linux,phandle = <0x30>;
phandle = <0x30>;
引脚模式更改 i2s:
mcasp0_pins {
pinctrl-single,pins = <0x1ac 0x08 0x19c 0x2 0x194 0x08 0x190 0x08
0x6c 0x7 0x198 0x08>;
linux,phandle = <0x47>;
phandle = <0x47>;
};
驱动加载:
i2c@4819c000 {
compatible = "ti,omap4-i2c";
#address-cells = <0x1>;
#size-cells = <0x0>;
ti,hwmods = "i2c3";
reg = <0x4819c000 0x1000>;
interrupts = <0x1e>;
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <0x30>;
clock-frequency = <0x186a0>;
linux,phandle = <0x9d>;
phandle = <0x9d>;
adau1761: adau1361@38 {
compatible = "adi,adau1761";
reg = <0x38>;
};
声卡:
sound {
compatible = "adi,adau1761-evm-audio";
ti,model = "ADI ADAU1761";
ti,audio-codec = <&adau1761>;
ti,mcasp-controller = <0x52>;
ti,audio-routing =
"Headphone Jack", "LOUT",
"Headphone Jack", "ROUT",
"LINE1L", "LAUX",
"LINE1R", "RAUX";
clocks = <0x53>;
clock-names = "mclk";
};