Forums - SAR2130P GPIO Access

1 post / 0 new
SAR2130P GPIO Access
pvkadam
Join Date: 14 Sep 23
Posts: 1
Posted: Wed, 2024-02-14 11:28

I am trying to access the GPIOs on SAR2130P. These are the permissions and gpiochip*:

/ # ls -l /dev/gpio*

crw-rw----    1 root     gpio      254,   0 Jan  1 00:00 /dev/gpiochip0
crw-rw----    1 root     gpio      254,   1 Jan  1 00:00 /dev/gpiochip1
crw-rw----    1 root     gpio      254,   2 Jan  1 00:00 /dev/gpiochip2
 
As for gpio:
/sys/kernel/debug # cat gpio
gpiochip0: GPIOs 356-511, parent: platform/f000000.pinctrl, f000000.pinctrl:
gpio0   : in  low  func0 2mA pull down
 
Adding the base address, gpio0  becomes 357. I cannot export the gpio:
/sys/kernel/debug # echo  357 > export
/bin/sh: can't create export: Permission denied
 
 ls -l does not list export.
Could you please let me know how I could set permissions. Thank you.
 
 

 

  • Up0
  • Down0

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.