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.
您好,TI,
我对TDA4VM PWM有以下问题:
我在DTS处添加设备树:
mypru_icssg0_pwm3_pins_default: mypru_icssg0_pwm3_pins_default { pinctrl-single,pins = < J721E_IOPAD(0xb0, PIN_OUTPUT, 3) /* (AF28) PRG0_PRU0_GPO0.PRG0_PWM3_A0 */ >; }; timer3: timer@2430000 { compatible = "ti,omap3430-timer"; reg = <0x2430000 0x400>; interrupts = <GIC_SPI 227 IRQ_TYPE_LEVEL_HIGH>; ti,hwmods = "timer3"; ti,timer-pwm; status = "okay"; }; pwm3: dmtimer-pwm@3 { compatible = "ti,omap-dmtimer-pwm"; ti,timers = <&timer3>; #pwm-cells = <3>; pinctrl-names = "default"; pinctrl-0 = <&mypru_icssg0_pwm3_pins_default>; status = "okay"; };
在 tisdk_J7-evm_defconfig:中嵌入相关宏
--- ../arch/arm64/configs/tisdk_j7-evm_defconfig +++ ../arch/arm64/configs/tisdk_j7-evm_defconfig @@ -6444,6 +6444,8 @@ # CONFIG_PWM_PCA9685 is not set CONFIG_PWM_TIECAP=y CONFIG_PWM_TIEHRPWM=y +CONFIG_OMAP_DM_TIMER=y +CONFIG_PWM_OMAP_DMTIMER=y
然后我收到了合规性错误:
函数的隐式声明‘__omap_dm_timer_init_regs';您的意思是'omap_dm_timer_write_reg'吗? [-Werror=implicit-function-declaration]
谢谢
谢谢
您好,
TDA4VM不支持DMTimer。
有关PWM支持,请查看此常见问题解答: https://e2e.ti.com/support/processors-group/processors/f/processors-forum/98.2074万/faq-tda4vm-dra829v-j721e-how-to-enable-ehrpwm-on-j7-evm-using-linux
此致,
Keerthy
您好,Keerthy:
感谢您的回复,在应用修补程序后,我遇到以下故障,您能为您提供帮助吗? 我使用的是SDK 8.0 ,我已仔细检查了DT
# dmesg | grep ti-syscon [ 0.57.1881万 ] ti-SYSCON-gate-clk interconnect@10万:clk0:未能找到父regmap [ 0.57.9896万 ] ti-SYSCON-gate-clk:互连的探测器@10万:clk0出现错误-22
您好,
5.10 内核需要在DT中进行一些更改:
https://e2e.ti.com/support/processors-group/processors/f/processors-forum/98.2074万/faq-tda4vm-dra829v-j721e-how-to-enable-ehrpwm-on-j7-evm-using-linux/4036779#4036779</s>403.6779万 403.6779万
我已在该常见问题解答中使用了修复程序进行了回复。
这样可以解决您所面临的问题。
关闭此线程。
——基尔西
您好,Keerthy:
此线程将会有所帮助,请您再确认一个问题,即我在5.10 内核DT中找到的问题,您将epwm0的device-id修改为40, 但是我检查J721E时钟标识符,epwm0的deivce-id应该是83而不是40,您是否可以帮助澄清此问题? 之后,可以关闭此线程。谢谢
在5.10 DT中:
ehrpwm0:pwm@3000000{ compatible="ti,am654-ehrpwm","ti,am3352-ehrpwm"; #pwm-cells=<3>; reg = <0x0 0x3000000 0x0 0x100>; power-domains = <&k3_pds 40 TI_SCI_PD_EXCLUSIVE>; clocks = <&ehrpwm_tbclk 0>, <&k3_clks 40 0>; clock-names = "tbclk", "fck"; };
在 J721E中,时钟标识符为:
这适用于AM65 SoC。 这是有关如何解决您所面临问题的参考。
[ 0.57.9896万 ] ti-SYSCON-gate-clk:互连探测器@10万:clk0失败,错误-22