R36.2, I have config the TEGRA234_MAIN_GPIO(P, 4),but it can not control output ,the TEGRA234_MAIN_GPIO(Q, 4) is ok. The same config on R35.1 is ok
#define DSER_TDA0 TEGRA234_MAIN_GPIO(Q, 4)
#define DSER_TDA1 TEGRA234_MAIN_GPIO(P, 4)
#define DSER0_INDEX0 TEGRA234_MAIN_GPIO(Y, 0)
#define DSER0_INDEX1 TEGRA234_MAIN_GPIO(Y, 3)
#define DSER1_INDEX0 TEGRA234_MAIN_GPIO(Y, 1)
#define DSER1_INDEX1 TEGRA234_MAIN_GPIO(Y, 2)
/* set camera gpio direction to output */
gpio@2200000 {
camera-control-output-low {
gpio-hog;
output-low;
gpios = <DSER_TDA0 0 DSER_TDA1 0 SER0_INDEX0 0 DSER0_INDEX1 0 DSER1_INDEX0 0 DSER1_INDEX1 0>;
label = "cam0-tda", "cam1-tda", "cam0_index0", "cam0_index1", "cam1_index0", "cam1_index1";
};
};
gpio-444 (PP.04 |camera-control-outpu) out lo
gpio-445 (PP.05 )
gpio-446 (PP.06 )
gpio-447 (PP.07 )
gpio-448 (PQ.00 )
gpio-449 (PQ.01 )
gpio-450 (PQ.02 )
gpio-451 (PQ.03 )
gpio-452 (PQ.04 |camera-control-outpu) out lo
你可不可以把你的問題描述得清楚一點…
還有貼code的時候麻煩用
code
code
code
這個格式
I need to control the high and low levels of GPIO3.pp.04 output now, but external measurements show that it has been consistently low.On orin R35.1, it is ok to control the output high level.
現在這根pin就已經被camera driver佔用了 你是要調什麼東西…
看不懂你到底要問什麼
这个就是我camera驱动里配置的我会在驱动里对他拉高拉低下,就是给一个脉冲输出出去通知另一个主控,但现在识别不到这个脉冲
你給的那一段是device tree?完整的driver code長怎樣?
int max96712_reset_streamphy(struct device *dev, int nport)
{
struct max96712 *priv = dev_get_drvdata(dev);
dev_info(dev,"%s.\n",__func__);
if(mutex_trylock(&priv->streamphy_lock)){
if((priv->index_gpio0>=0)&&(priv->index_gpio0>=0)){
gpio_set_value(priv->index_gpio0, nport&0x01);
gpio_set_value(priv->index_gpio1, nport>>1);
}
gpio_set_value(priv->tda_gpio, 1);
msleep(20);
gpio_set_value(priv->tda_gpio, 0);
mutex_unlock(&priv->streamphy_lock);
return 0;
}
return -1;
}
我会在设备树里配置gpio@22000000这里配置输出,然后我们板子上接了两个解串器,第一个解串器的priv->tda_gpio用的是gpio3.pq.04这个是能正常控制输入输出的,但第二个解串器用的gpio3.pp.04这个捕捉不到这个脉冲,这段代码还有设备树的配置在R35.1上是正常的,现在我是要切到R36.2出现这样的问题
你在driver code裡控制跟用sysfs node控制基本上是一樣意思
GPIO3_PP.04這根pin在pinmux裡預設是input 所以你對它做output操作是沒有用的
因為JetPack 5上還有開GPIO sysfs 但是JetPack 6上我們把它關掉了 沒辦法動態改input/output方向
GPIO3_PQ.04預設是output所以你才能操作
https://docs.nvidia.com/jetson/archives/r36.3/DeveloperGuide/HR/JetsonModuleAdaptationAndBringUp/JetsonAgxOrinSeries.html#mb1-configuration-changes
麻煩照上面文件上說的改完pinmux再重燒
system
Closed
June 4, 2024, 8:31am
11
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.