Linuxdebugfs use the sharing software to view the gpio status

Source: Internet
Author: User
Linuxdebugfs you can use the sharing software to view the gpio status. adding debugfs to debugging can sometimes get twice the result with half the effort: adbshellmkdirdatadebugmount-tdebugfsdebugfsdatadebugcddatadebug check gpio status root @ android linux debugfs use sharing software to view gpio status add debugfs in debugging sometimes get twice the result with half the effort: adb shell # mkdir/data/debug # mount-t debugfs/data/debug # cd/data/debug view gpio status root @ android: /data/debugfs # cat gpioGPIOs 0-15: gpio-0 (front_camera_rst) out lo GPIOs 16-42: gpio-17 (tsl2771_int) in hi gpio-26 (ctp_reset) out hi gpio-29 (front_camera_pwd) out hi gpio-31 (gpio_kp_out) out lo gpio-32 (gpio_kp_out) out lo gpio-35 (GPIO_E186_POWER) in lo gpio-36 (gpio_kp_in) in hi gpio-37 (gpio_kp_in) in hi gpio-42 (hs_sw) in hi GPIOs 43-67: gpio-48 (ctp_irq) in hi gpio-60 (qup_scl) in hi gpio-61 (qup_sda) in hi GPIOs 68-94: gpio-76 (lis3dh_acc_int) in lo gpio-82 ([auto]) out hi gpio-85 (bahamsys_rst_n) in lo gpio-94 ([auto]) out hi GPIOs 95-106: gpio-97 (MDP_VSYNC) in lo GPIOs 107-132: gpio-107 (ctp_power) in hi gpio-115 (GPIO_E186_WAKEUP) in lo gpio-131 (qup_scl) in hi gpio-132 (qup_sda) in hi view regulatorroot @ android: /data/logs # Logs/dummy/ldo03/ldo06/logs/ldo12/ldo15/ldo18/smps1/smps4/logs/ldo04/ldo07/ldo10/ldo13/ldo16/ldo19/smps2 /ldo02/ldo05/ldo08/ldo11/ldo14/ldo17/ncp/smps3/root @ android: /data/debugfs # catregulator/ldo10/voltage 3000000 view clkroot @ android: /# cat/data/debugfs/clk/adm_clk/keys/adsp_clk/keys/ecodec_clk/keys/Secrets/gp_clk/sdc3_clk/cam_m_clk/kg_3d_clk/keys/ keys/kg_3d_p_clk/sdc4_clk/keys/csi1_clk/keys/csi1_p_clk/keys/uart1_clk/keys/debug_suspend tables/keys /empty/imem_clk/empty/dsi_clk/mdp_clk/empty/ebi1_clk/empty/usb_phy_clk/ebi2_clk/pbus_clk /vdc_clk/release/pcm_clk/vfe_clk/ebi_adm_clk/pmdh_clk/vfe_mdc_clk/release/sdac_clk/ebi_lcdc_clk/sdc1_clk/root @ android: /# cat/data/debugfs/clk/mdp_clk/rate 200000000
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.