GPIO - documentation

  1. What is the current efficiency GPIO pins? (in mA)
  2. Is supported hardware PWM? (If so, which ones?)
  3. When will the service GPIO by WiringPi?



Ad 1) 8 mA

Ad 2) Well not yet. Actually the HW PWM in Armada 38x work like that you can either disable or enable it on a GPIO. All PWM-enabled GPIO pins have the same frequency and pulse width. And you can only turn off individual pins. The intended usage is to use is to dim LEDs, which explains why it has this type of limitations.

And kernel GPIO driver nor the Python library do not support it. Sorry. But you might try to hack it yourself into the library ( It should not be that complex - in HW it is only about setting GPIO blinkg registers and configuring GPIO bling counter ON duration and OFF duration registers.

Ad 3) Well, we have the above mentioned Python library. If you need C library you might want to look at source/c_gpio_omnia.c in the sources, which can be basically taken and used as the backend to access GPIOs over /dev/kmem.


Thanks for replay.

So, for what is in TurrisOS, since does not work.

cut: /sys/class/hwmon/hwmon2/temp1_input: No such file or directory
cut: /sys/class/hwmon/hwmon1/temp1_input: No such file or directory
cut: /sys/class/hwmon/hwmon1/temp2_input: No such file or directory

I want to control FAN PWM 4-pin.


OK, I’m install python-turris-gpio, and I have problem:

root@turris:/tmp# cat
#!/usr/bin/env python2

import sys
import warnings
import time
import turris_gpio as GPIO

print "GPIO56 is on"
root@turris:/tmp# ./
./ RuntimeWarning: No channels have been set up yet - nothing to clean up!  Try cleaning up at the end of your program instead!
Traceback (most recent call last):
  File "./", line 10, in <module>
RuntimeError: No access to /dev/mem.  Try running as root!

No exist /dev/mem

root@turris:/# ls /dev/m*
/dev/memory_bandwidth  /dev/mmcblk0p1         /dev/mtd1
/dev/mmcblk0           /dev/mmcblk0rpmb       /dev/mtd1ro
/dev/mmcblk0boot0      /dev/mtd0              /dev/mtdblock0
/dev/mmcblk0boot1      /dev/mtd0ro            /dev/mtdblock1


It was not simply to add support for software PWM Turris Omnia to the kernel?


Oh yes… It has been removed for security reasons early on. It will be re-inserted in next release. In the meantime you might try to use either my testing image or the nightly version - you might migrate to the version simply by means of updater using this:

uci set updater.override=override; uci set updater.override.branch=nightly; uci commit


I have problem:

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 83467  100 83467    0     0   120k      0 --:--:-- --:--:-- --:--:--  131k
WARN:Branch overriden to nightly
corruption: Signature validation failed (some keys are missing)

root@turris:~# uci show updater
updater.pkglists.lists='base' 'cacerts' 'luci-controls' 'lxc' 'nas' 'netutils' 'shell-utils' 'webcam'

What am I doing wrong?


Has anything changed in terms of operating PWM Turris Omnia?


closed #12