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.
工具与软件:
您好!
我已将您的主题分配给将为您提供帮助的专家工程师。 感谢您的耐心。
谢谢!
Neehar
您好!
您只需编辑 DTS 文件(如果要创建覆盖层、则需要编辑 dtso)。
您将需要设置相关引脚的引脚多路复用并 在设备树中创建一个 MCASP 节点。
引脚多路复用与此类似:
&main_pmx0 { mcasp1_pins_default: mcasp1-default-pins { pinctrl-single,pins = < J721E_IOPAD(0x110, PIN_INPUT, 12) /* (AD29) PRG0_PRU1_GPO4.MCASP1_AXR2 */ J721E_IOPAD(0x118, PIN_INPUT, 12) /* (AC26) PRG0_PRU1_GPO6.MCASP1_AXR3 */ J721E_IOPAD(0x128, PIN_INPUT, 12) /* (AA25) PRG0_PRU1_GPO10.MCASP1_AXR6 */ J721E_IOPAD(0x12c, PIN_INPUT, 12) /* (AG26) PRG0_PRU1_GPO11.MCASP1_AXR7 */ >; }; };
新的 MCASP 节点将与 k3-j721e-common-proc-board.dts 中的节点类似、但当然会涉及 McASP1。
&mcasp10 { status = "okay"; #sound-dai-cells = <0>; pinctrl-names = "default"; pinctrl-0 = <&mcasp10_pins_default>; op-mode = <0>; /* MCASP_IIS_MODE */ tdm-slots = <2>; auxclk-fs-ratio = <256>; serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */ 1 1 1 1 2 2 2 0 >; tx-num-evt = <0>; rx-num-evt = <0>; };
您还必须添加音频编解码器。 寻找灵感、请查看采用 MCASP 节点的各种 TI 器件树。
此致!
Jared