Other Parts Discussed in Thread: AM6528,
We use am6528 + tlv320aic23, now it can work in I2S mode, but only left channel output sound normally, there is no output with RHPOUT, we measure the signal of FS and AXR0 with oscilloscope: no right channel data on AXR0 line when FS signal stay high.
FS: blue color AXR0: green color

related configure in dts list as follow:
sound {
compatible = "simple-audio-card";
simple-audio-card,name = "AM65x-GHMI+";
simple-audio-card,widgets =
"Headphone", "Headphone Jack";
simple-audio-card,routing =
"Headphone Jack", "LHPOUT",
"Headphone Jack", "RHPOUT";
simple-audio-card,format = "i2s";
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 = <&tlv320aic23>;
system-clock-frequency = <12000000>;
};
};
.........
mcasp1_pins: mcasp1-pins {
pinctrl-single,pins = <
AM65X_IOPAD(0x0244, PIN_INPUT_PULLDOWN, 5) /* (AB28) PRG0_PRU1_GPO0.MCASP1_ACLKX */
AM65X_IOPAD(0x0248, PIN_INPUT_PULLDOWN, 5) /* (AC28) PRG0_PRU1_GPO1.MCASP1_AFSX */
AM65X_IOPAD(0x0254, PIN_INPUT_PULLDOWN, 5) /* (AA25) PRG0_PRU1_GPO4.MCASP1_AXR0 */
>;
};
.........
tlv320aic23: tlv320aic23@1b {
#sound-dai-cells = <0>;
compatible = "ti,tlv320aic23";
reg = <0x1b>;
status = "okay";
/* Regulators
AVDD-supply = <&codec_vcc_3v3>;
IOVDD-supply = <&gp_vcc_1v8>;
DRVDD-supply = <&codec_vcc_3v3>;
DVDD-supply = <&gp_vcc_1v8>;*/
};
........
&mcasp1 {
#sound-dai-cells = <0>;
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&mcasp1_pins>;
op-mode = <0>; /* MCASP_IIS_MODE */
tdm-slots = <2>;
/* 16 serializers */
/* num-serializer = <10>;*/
serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */
1 0 0 0
0 0 0 0
0 0
>;
tx-num-evt = <32>;
rx-num-evt = <32>;
};
are there anything wrong about the configuration of simple-audio-card or mcasp1?
Thanks
Kenn














