码迷,mamicode.com
首页 > 其他好文 > 详细

sys目录下常用文件汇总

时间:2018-12-28 19:24:26      阅读:304      评论:0      收藏:0      [点我收藏+]

标签:form   backlight   ipo   反馈   pow   ever   ack   nbsp   debug   

1. /sys/kernel/debug/gpio

可以实时反馈系统中感兴趣的gpio引脚的状态

root@g6s:/sys/kernel/debug# cat gpio
gpiochip7: GPIOs 356-359, parent: platform/e6055800.gpio, e6055800.gpio:
 gpio-359 (                    |IPOD.Reset          ) out hi    

gpiochip6: GPIOs 360-391, parent: platform/e6055400.gpio, e6055400.gpio:
 gpio-364 (                    |pdn                 ) out hi    
 gpio-366 (                    |stb                 ) out hi    
 gpio-367 (                    |reverse detect      ) in  lo IRQ
 gpio-381 (                    |pwdn                ) out hi    
 gpio-384 (                    |USB20_VBUS0         ) out hi    
 gpio-386 (                    |USB20_VBUS1         ) out hi    
 gpio-388 (                    |max9281-powerdown   ) out hi    
 gpio-389 (                    |?                   ) in  hi IRQ
 gpio-390 (                    |max9275-powerdown   ) out hi    

gpiochip5: GPIOs 392-417, parent: platform/e6055000.gpio, e6055000.gpio:
 gpio-399 (                    |GPIO Key Power Low  ) in  hi IRQ
 gpio-400 (                    |mcu-irq             ) in  hi IRQ
 gpio-411 (                    |mcu-cs              ) out hi    

gpiochip4: GPIOs 418-435, parent: platform/e6054000.gpio, e6054000.gpio:
 gpio-434 (                    |backlight_main      ) out hi    
 gpio-435 (                    |backlight_vice      ) out hi    

gpiochip3: GPIOs 436-451, parent: platform/e6053000.gpio, e6053000.gpio:
 gpio-442 (                    |tuner_switch        ) out hi    
 gpio-448 (                    |cd                  ) in  hi IRQ
 gpio-450 (                    |BT.Reset            ) out hi    

gpiochip2: GPIOs 452-466, parent: platform/e6052000.gpio, e6052000.gpio:
 gpio-455 (                    |clipping            ) in  hi    
 gpio-458 (                    |sv-watchdog         ) out lo    
 gpio-462 (                    |reset               ) out hi    

gpiochip1: GPIOs 467-495, parent: platform/e6051000.gpio, e6051000.gpio:
 gpio-476 (                    |camera lock         ) in  hi IRQ
 gpio-493 (                    |cs                  ) out hi    

 

sys目录下常用文件汇总

标签:form   backlight   ipo   反馈   pow   ever   ack   nbsp   debug   

原文地址:https://www.cnblogs.com/hellokitty2/p/10192280.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!