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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

ソリューションへジャンプ
1,099件の閲覧回数
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 解決策
991件の閲覧回数
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 返答(返信)
992件の閲覧回数
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 件の賞賛
返信
991件の閲覧回数
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 件の賞賛
返信