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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
761 Views
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.

Labels (3)
0 Kudos
1 Solution
653 Views
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!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
2 Replies
654 Views
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 Kudos
653 Views
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 Kudos