https://e2e.ti.com/support/audio-group/audio/f/audio-forum/1482306/tas5825m-driver
器件型号:TAS5825M主题中讨论的其他器件: TAS5802、TAS5805M
工具与软件:
尊敬的专家:
我们是否有 TAS5825M 和 TAS5802驱动器可以与客户共享?
谢谢!
解决了
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.
https://e2e.ti.com/support/audio-group/audio/f/audio-forum/1482306/tas5825m-driver
器件型号:TAS5825M工具与软件:
尊敬的专家:
我们是否有 TAS5825M 和 TAS5802驱动器可以与客户共享?
谢谢!
解决了
有两个不同的版本。
一个是 https://git.ti.com/cgit/lpaa-android-drivers/tasdevice-linux-driver/
另一个版本已在内核上行、并随内核一起发布。 此代码位于 sound/ soc /编解码器内
驱动程序文件是 tas5805m.c
您可以使用其中任何一个。
如果您有任何关于软件的问题、请随时通过 E2E 提交您的主题。
对于其他芯片、我建议您使用此代码
https://git.ti.com/cgit/lpaa-android-drivers/tasdevice-linux-driver/
尊敬的 Shenghao:
抱歉、我不熟悉 TI 驱动程序代码、您能否说明一下您提到的"其他芯片"是什么? 我尝试集成的芯片是 tas5802和 tas5825m。 tas5805m.c 是否也涵盖了这两个? 如果没有、它包含哪些芯片(tas5805m 除外)? 从您的第一次回复中、我想您的意思是 tas5805m.c 还可以与 tas5802和 tas5825m 配合使用?
如果首选 tasdevice 方法、我想我还有其他问题:
1.固件槽是否是驱动程序正常工作所必需的?
2.我没有 Windows PC、这是运行 Regbin 工具的唯一方法吗?
3.是否有更多的文档如何生成 reg bin? 或者是否有 tas5802和 tas5825m 的现有 bin 文件? 抱歉、如果这是一个愚蠢的问题、但我不确定应该添加哪些配置/块/命令(在 regbin 工具中)来生成 bin 文件。
(更新-我获得了#1和#3的答案)
非常感谢。
实际上、tasdevice 驱动程序代码可以支持 所有 tas58xx 芯片、并可轻松 更改新固件。 在 tas5805m.c 中、固件是代码中的硬代码。 如果要更改固件、则必须手动将新固件集成到代码中并对其进行重新编译。 虽然 tasdevice 无法正常工作,但您要做的是将 cfg 文件导入 jsn 文件并生成新的 regbin 文件,然后替换系统中的旧文件。 第33页~ Regbin 文件中的第46页用户指南 介绍了此类功能。
抱歉、Regbin 工具仅支持 Windows 工具。 如果您的团队正在调谐音频、另一个用于调谐音频的工具-- PPC3也会在 Windows 中运行。
因此、windows 机器是您的项目所必需的。
请告诉我您的案例中有多少块 tas5825m?
如果只有一个、则可以使用 tas5805-1amp-reg.json (json - lpaa-android-drivers/tasdevice-linux-driver - Unnamed repository;编辑此文件"destination "以命名存储库。) 作为默认设置。
有两种解决方案。 将两者放入一个 reg.bin 文件中。
解决方案 I
Suppose 7-bit i2c addr of tas5802 is 0x4f, and the one of tas5825m is 0x4c.
i2c {
/* example for three devices with interrupt support */
#address-cells = <1>;
#size-cells = <0>;
two: tasdevice@4f {
compatible = "ti,tas5802"; /*or "ti,tas5825m" */
/* The device order in reg is also the order in reg.bin file*/
reg = <0x4f>, /* dev 1: TAS5802 */
<0x4c>; /* dev 2: TAS5825M */
#sound-dai-cells = <0>;
reset-gpios = < &gpio1 10 GPIO_ACTIVE_HIGH >;
interrupt-parent = <&gpio1>;
interrupts = <15>;
};
};
This solution only work in case that both chips are connected on the same i2c bus.
Solution II
P39 ~ P41 in this document (What is Degreed?) describe solution II.
There's no same i2c bus limitation in this solution
您好!
TAS5825m 和 TAS5802位于同一条 i2c 总线中。 因此我认为"解决方案 I"对我们来说很好! 然而,我想确认一下,当你说"一个是放在一个 reg.bin 文件。",我们仍然可以使用 tas5805-1amp-reg.json 吗? 名称有"1amp"、我不确定我们是否需要使用其他 JSON 连接器?
此外、在 Regbin 工具的字段"Select Number of Devices"中、我们是否必须选择2个? 或1?
谢谢!
方案2更好。 它易于调试。 您不会准备额外的 jsn 文件。 您可以 直接从 json - lpaa-androids-drivers/tasdevice-linux-driver -未命名的存储库中使用 TAS5825m 和 TAS5802的 jsn 文件;编辑此文件"description"以命名存储库。