i2c - gpioiic driver

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

i2c - gpioiic driver

Stephen Graf
I have set up i2c bit banging (bashing) on my Orange Pi one - not without
difficulty,  There are three issues I would like to explore:
- existing drivers, gpioiic
- nanosleep
- input/output on same gpio pin

Gpioiic driver

Is this driver working?  I tried to set it up in rc.securelevel:

echo "Set up i2c"
/usr/sbin/gpioctl /dev/gpio0 attach gpioiic 11 0x03

With the following results:

Set up i2c
gpioiic0 at gpio0: SDA[11], SCL[12]
iic0 at gpioiic0

However there is no /dev/gpioiic even after I try to make it:

# cd /dev
# ./MAKEDEV gpioiic0
# ./MAKEDEV gpioiic

# ls -al /dev/g*
crw-------  1 root  wheel   13,   0 Sep  2 11:11 /dev/gpio0
crw-------  1 root  wheel   13,   1 Aug 30 22:53 /dev/gpio1
crw-------  1 root  wheel   13,   2 Aug 30 22:53 /dev/gpio2
crw-------  1 root  wheel   13,   3 Aug 30 22:53 /dev/gpio3
crw-------  1 root  wheel   13,   4 Aug 30 22:53 /dev/gpio4
crw-------  1 root  wheel   13,   5 Aug 30 22:53 /dev/gpio5
crw-------  1 root  wheel   13,   6 Aug 30 22:53 /dev/gpio6
crw-------  1 root  wheel   13,   7 Aug 30 22:53 /dev/gpio7
crw-------  1 root  wheel   13,   8 Aug 30 22:53 /dev/gpio8