这是我的设备树配置:
tlv320aic32x4_sound: tlv320aic32x4-sound {
status = "okay";
compatible = "simple-audio-card";
simple-audio-card,name = "rockchip,tlv320aic32x4-codec";
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 = <&tlv320aic32x4>;
};
};
vcc33_codec: vcc33-codec {
compatible = "regulator-fixed";
regulator-name = "vcc33_codec";
regulator-always-on;
regulator-boot-on;
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
};
vcc18_codec: vcc18-codec {
compatible = "regulator-fixed";
regulator-name = "vcc18_codec";
regulator-always-on;
regulator-boot-on;
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
};
&i2c8 {
status = "okay";
pinctrl-0 = <&i2c8m2_xfer>;
tlv320aic32x4: tlv320aic32x4@18 {
status = "okay";
#sound-dai-cells = <0>;
compatible = "ti,tlv320aic32x4";
reg = <0x18>;
clocks = <&mclkout_i2s1>;
clock-names = "mclk";
assigned-clocks = <&mclkout_i2s1>;
assigned-clock-rates = <12288000>;
pinctrl-names = "default";
pinctrl-0 = <&i2s1m0_mclk &codec_reset>;
ldoin-supply = <&vcc33_codec>;
iov-supply = <&vcc18_codec>;
reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>;
};
};
上电之后使用alsamixer进行配置,分别打开了LO DAC和LOL Output、LOR Output

然后通过i2c读取寄存器,发现并没有DAC power up




