beaglebone GPIO3_13(aka GPIO109)没有在P8或P9上公开吗? [英] beaglebone GPIO3_13 (aka GPIO109) not exposed on P8 or P9?

查看:122
本文介绍了beaglebone GPIO3_13(aka GPIO109)没有在P8或P9上公开吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在控制USB1的电源时遇到了一些问题.正如我从 " https://e2e.ti.com/support/arm/sitara_arm/f/791/t/270060 它告诉我GPIO3_13控制usb1_drvvbus引脚,该引脚控制USB电源.

I have run into some problem controlling usb1' power. as I investigated from "https://e2e.ti.com/support/arm/sitara_arm/f/791/t/270060" It tells me that GPIO3_13 controls usb1_drvvbus pin, which controls the usb power.

我知道有更改此引脚电压的软件方法. 我的问题是,GPIO3_13在P8或P9扩展托架上位于何处?我在任何图上都找不到.是不是故意在任何地方都不暴露?

I understand that there is software method to change the voltage of this pin. My question is that where is GPIO3_13 located on P8 or P9 expansion bays? I cannot find it on any diagrams. Is it purposefully not exposed anywhere?

推荐答案

如果您使用的是最新的elinux.org Debian映像,则可以通过beaglebone上的软件控制USB1的电源(必要的设备树覆盖已在2015年6月进行了合并) ).这样会利用黑客手段将usb1_drvvbus信号暴露为伪造的LED,然后可以使用/sys中的文件进行控制.

You can control USB1 power from software on the beaglebone, if you are using a recent elinux.org Debian image (the necessary device tree overlay was merged in June 2015). This uses a hack to expose the usb1_drvvbus signal as a fake LED, which can then be controlled using the files in /sys.

首先,加载dev-USB-PWR-CTL-00A1.dtbo设备树覆盖图.对于最新的设置(所有dtbos都由uboot加载,然后在引导时传递给内核),可以通过在/boot/uEnv.txt中添加dtb_overlay=/lib/firmware/dev-USB-PWR-CTL-00A1.dtbo并重新引导来完成(较早的内核/uboots将需要使用较早的配置机制). (如/boot/uEnv.txt中所述).

Firstly, load the dev-USB-PWR-CTL-00A1.dtbo device tree overlay. For recent setups (where all dtbos are loaded by uboot and then passed to the kernel at boot time), this could be done by adding dtb_overlay=/lib/firmware/dev-USB-PWR-CTL-00A1.dtbo to /boot/uEnv.txt and rebooting (older kernels/uboots will need to use the older config mechanisms as described in /boot/uEnv.txt).

然后您可以执行以下操作:

You can then do this:

echo 'usb1' > /sys/bus/usb/drivers/usb/unbind
echo 0 > /sys/devices/platform/leds/leds/usb_hub_power/brightness
sleep 1
echo 255 > /sys/devices/platform/leds/leds/usb_hub_power/brightness
echo 'usb1' > /sys/bus/usb/drivers/usb/bind

这篇关于beaglebone GPIO3_13(aka GPIO109)没有在P8或P9上公开吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆