GUF-Yocto-jethro-9.0-r7707-0
i.MX6
User Manual
root@santaro:~# hwclock --show
Fri Jun
1 14:51:12 UTC 2012
The RTC time cannot be adjusted directly in one command because only the current system time can be trans-
ferred to the RTC. Thus, the system time has to be set first, using the
date
command, and can then be written to
the RTC:
root@santaro:~# date -s "2010-09-09 16:50:00"
Thu Sep
9 16:50:00 CEST 2010
root@santaro:~# hwclock --systohc
6.5
Keypad connector
The so called keypad connector is a general purpose connector. It can be used in different modes. The mode is
selected using the kernel command line. See
[
I
how it can be modified.
The actual pin mapping is described in the hardware guide for your device.
There are three available functions.
GPIO:
keypad=gpio
All pins are available as gpios. You can access them in usermode using the sysfs entries:
/sys/class/gpio/keypad_pin<3-18>
See
[
I
for usage.
I2C:
keypad=i2c
The i2c 1 interface is mapped to the keypad connector pins 11 and 12. It is available in usermode as:
/dev/i2c-1
See
[
I
for usage.
SPI:
keypad=spi
The spi interface is mapped to the pins 12 till 18. The interface is available in usermode as:
/dev/spidev0.0
/dev/spidev0.1
/dev/spidev0.2
See
[
I
for usage.
Combination:
The options can be combined to use multiple functions at the same time, for example:
keypad=gpio,i2c,spi
will enable all three functions. This leads to the following mapping:
pins 3-10 are used as gpios
11 and 12 are used for i2c
38