【i2s】Milk-V Duo添加speaker——max98357a解码器驱动

Hi emeb

【i2s】Milk-V Duo添加speaker——i2s2 - Duo - MilkV Community

You can check this topic.

Focus on i2s2

  1. cv180x-asic_qfn.dtsi
	/delete-node/ i2s@04110000;
	/delete-node/ sound_ext1;
	/delete-node/ sound_ext2;
	/delete-node/ sound_PDM;

The erasure of i2s@04120000 has been removed in the newest SDK.

  1. Add i2s2 dma
    build\boards\default\dts\cv180x\cv180x_base.dtsi
	i2s2: i2s@04120000 {
		compatible = "cvitek,cv1835-i2s";
		reg = <0x0 0x04120000 0x0 0x2000>;
		clocks = <&i2s_mclk 0>;
		clock-names = "i2sclk";
		dev-id = <2>;
		#sound-dai-cells = <0>;
		dmas = <&dmac 6 1 1 /* read channel */
			&dmac 1 1 1>; /* write channel */
		dma-names = "rx", "tx";
		capability = "txrx";
		mclk_out = "false";
	};

The failure to create the sound card may be due to the i2s node.

My audio topics flow:

  1. 【i2s】Milk-V Duo添加speaker——i2s2
  2. 【i2s】Milk-V Duo使用analog mic - #6 by emeb
  3. 【i2s】Milk-V Duo添加speaker——max98357a解码器驱动 - #8 by emeb
  4. 【I2S-未解决】Milk-V Duo添加tinyplay工具(i2s2 TX Reset失败) - #6 by Reset

Thanks~