I’m using Adafruit_BBIO python library for GPIO Input. Cape Universal.dtb is disabled.
Output works fine but INput throws the error. ValueError: Set gpio mode failed, missing file or invalid permissions.
Below is dts for the gpio input
On Wed, 20 Mar 2019 05:07:32 -0700 (PDT), gupta niks
<gupta.nikhil0126@gmail.com> declaimed the
following:
I'm using Adafruit_BBIO python library for GPIO Input. Cape Universal.dtb
is disabled.
Output works fine but INput throws the error. *ValueError: Set gpio mode
failed, missing file or invalid permissions.*
Below is dts for the gpio input
The library (based upon source) relies upon using sysfs access to the
pins. I would presume (I don't read device trees; they are mysteries to me)
cape-universal creates all the needed entries for all sysfs manipulation.
If your custom DT doesn't provide the same, anything could happen.
line 117 through 151 (the actual error is one of the calls in 142/144/146
-- but note the other operations that may be needed)
is the actual code for setting the mode, and expects something in
/sys/devices/platform/ocp/<something_pinmux>/state
into which the mode is written.