Can I ON/OFF control PF0100 power by procfs or sysfs?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Can I ON/OFF control PF0100 power by procfs or sysfs?

跳至解决方案
1,102 次查看
takayuki_ishii
Contributor IV

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.

标签 (3)
0 项奖励
回复
1 解答
994 次查看
igorpadykov
NXP Employee
NXP Employee

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

IMX6DQ6SDLHDG, Hardware Development Guide for i.MX 6Quad, 6Dual, 6DualLite, 6Solo Families of Applic...

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
2 回复数
995 次查看
igorpadykov
NXP Employee
NXP Employee

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

IMX6DQ6SDLHDG, Hardware Development Guide for i.MX 6Quad, 6Dual, 6DualLite, 6Solo Families of Applic...

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
994 次查看
takayuki_ishii
Contributor IV

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.

0 项奖励
回复