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.
在内核中参考 IPNC_RDK/Source/ti_tools/ipnc_psp_arago/kernel/arch/arm/mach-omap2/board-ti8168evm.c 中的代码
static int __init ti8168_evm_gpio_setup(void) { /* GPIO-20 should be low for NOR access beyond 4KiB */ gpio_request(20, "nor"); gpio_direction_output(20, 0x0); gpio_export(20, 0);
return 0; } /* GPIO setup should be as subsys_initcall() as gpio driver * is registered in arch_initcall() */ subsys_initcall(ti8168_evm_gpio_setup);
把这部分代码添加到 IPNC_RDK/Source/ti_tools/ipnc_psp_arago/kernel/arch/arm/mach-omap2/board-dm385ipnc.c 中
这样可以在开发板起来后的 /sys/devices/virtual/gpio 目录中看到对应gpio的用户接口;
可以在里面直接操作的value值了;
手册地址 :http://www.ti.com/lit/ds/symlink/dm385.pdf
hello
代码如下:
/* TVP5150 RST is GP1[21] */
#define TVP5150_RST 50
static void ti814x_tvp5150_reset()
{
int err;
printk(KERN_ERR "###yahui### enter into %s \n", __func__);
err = gpio_request(TVP5150_RST, "tvp5150_rst");
gpio_direction_output(TVP5150_RST, 1);
msleep(5000);
gpio_direction_output(TVP5150_RST, 0);
msleep(5000);
//gpio_direction_output(TVP5150_RST, 1);
gpio_export(TVP5150_RST, true);
}
没有反应啊,想确认下,GP1[21]是不是50啊,急
你好,
问题描述如下:
我们的板子用GP1【21】脚用来复位TVP5150芯片;
但是,我在kernel里面配置了复位信号以及寄存器的值,但是我量波形的时候,进入UBIFS后,总出现了矩形波,导致了TVP5150不能正常工作;
问题是:
我现在想把demo里面GP1【21】脚 用作PWM_VIDEO这部分代码去掉,我不知道在哪儿?
我用的版本是:IPNC_RDK_GA_Release3.8.0
谢谢
你好;
http://processors.wiki.ti.com/index.php/TI81XX_PSP_GPIO_Driver_User_Guide
这个手册你可以看一下;
我想,你应当是gpio的模式没有修改过来,引脚还是工作在pwm模式下面,这个你参考一下前面的相关回复,在uboot 中可以修改
你好:
按照你说的,我能在/sys/class/gpio/里面找到设备;
因为是配置GPIO的高低电平,我会去量信号,没有量到电平变动,这是第一个问题
第二个问题,由于我去量了,发现GP1[21]这个Pin 在demo板里,原本是用作PWM_VIDEO的功能;
所以会出现附件中的波形,这个波形导致了我的TVP5150不能正常工作,所以,这部分功能也要去掉,你知道怎么弄吗?谢谢
我明白你的意思
但是附件那个波形,正好给GP1[21]链接的TVP5150的复位脚,产生了复位
导致了我之前对他的配置都没有用了。所以我想把这个波形去掉