Hello community,
I hope to test enable/disable each PMIC power channel from command line.
Does it have some method to enable/disable each PMIC power channel?
Especially, I hope to enable/disable PMIC_5V to on/off USB_OTG_VBUS power.
So, it is ok to control USB_OTG_PWR_EN signal in SABRE-SD board.
Best regards,
Ishii.
Solved! Go to Solution.
Hi Ishii
>Can I ON/OFF control PF0100 power by procfs or sysfs?
it can not, sorry. In general it is necessary to write special driver for that, please look on
linux - Writing a Sysfs module - Stack Overflow
As example one can look at i.mx busfreq driver
busfreq-imx.c\mach-imx\arm\arch - linux-imx - i.MX Linux kernel
described in sect.2.5.4 Dynamic Bus Frequency attached Linux Manual.
>Does it have some method to enable/disable each PMIC power channel?
no such method, sorry. Please note that it is not allowed to switch off some processor power supplies.
All processor power supplies should be applied, exceptions are given in sect.2.8 Unused analog interfaces
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Ishii
>Can I ON/OFF control PF0100 power by procfs or sysfs?
it can not, sorry. In general it is necessary to write special driver for that, please look on
linux - Writing a Sysfs module - Stack Overflow
As example one can look at i.mx busfreq driver
busfreq-imx.c\mach-imx\arm\arch - linux-imx - i.MX Linux kernel
described in sect.2.5.4 Dynamic Bus Frequency attached Linux Manual.
>Does it have some method to enable/disable each PMIC power channel?
no such method, sorry. Please note that it is not allowed to switch off some processor power supplies.
All processor power supplies should be applied, exceptions are given in sect.2.8 Unused analog interfaces
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello Igor,
Thank you for your quick response.
I understand that it have no method to use sysfs/procfs in current BSP.
So I try to use GPIO3.DR bit to control USB_OTG_PWR_EN signal.
Best regards,
Ishii.