1. mk 配otg
KST_OTG_USB = yes
2. dws配中断脚和使能脚
(根据原理图中“09_POWER_MT6328”页中, "MARK"部分"PSC5425"充电ic中的【OTG】引脚所连接 - 使能脚64)
(根据原理图中“09_POWER_MT6328”页中, "MARK"部分"PSC5425"充电ic中的【STAT】引脚所连接 - 中断脚0)
v618_m5501为例
dws配置pin脚:
EintMode|Def.Mode M0|M1|M2|M3|M4|M5|M6|M7|InPull En|InPull SelHigh|Def.Dir|In|Out|OutHigh|VarName1
GPIO0 1 0:GPIO0 1 1 IN GPIO_OTG_IDDIG_EINT_PIN
GPIO64 0:GPIO64 1 1 1 1 1 1 1 1 1 1 OUT 0 1 0 GPIO_OTG_DRVVBUS_PIN
dws配置EINT:
EINTVar|Debounce Time(ms)|Polarity|Sensitive_Level|Debounce En
EINT0 OTG_IDDIG 0 Low Level Disable
3. dts:
/* USB GPIO Kernal Standardization start */
&pio {
usb_default: default {
};
gpio1_mode1_iddig: iddig_irq_init {
pins_cmd_dat {
pins = <PINMUX_GPIO0__FUNC_GPIO0>;
slew-rate = <0>;
bias-pull-up = <00>;
};
};
gpio64_mode2_drvvbus: drvvbus_init {
pins_cmd_dat {
28. OTG调试
最新推荐文章于 2021-06-22 09:51:53 发布
1. mk 配otg KST_OTG_USB = yes2. dws配中断脚和使能脚 (根据原理图中“09_POWER_MT6328”页中, "MARK"部分"PSC5425"充电ic中的【OTG】引脚所连接 - 使能脚64) (根据原理图中“09_POWER_MT6328”页中, "MARK"部分"PSC5425"充电ic中的【STAT】引脚所连接 - 中断脚0) v618_m550
摘要由CSDN通过智能技术生成