<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.28.1">
</HEAD>
<BODY BGCOLOR="#ffffff">
Just another stupid question. Can you help me to read a switch value On/OFF?<BR>
<BR>
<BR>
<BR>
El lun, 07-06-2010 a las 15:27 +0800, Michael Fung escribió:<BR>
<BLOCKQUOTE TYPE=CITE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<FONT SIZE="2">Perhaps these can help:</FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<FONT SIZE="2">voyage:~# modprobe cs5535_gpio</FONT><BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<FONT SIZE="2">voyage:~# dmesg | grep gpio</FONT><BR>
<FONT SIZE="2">[ 14.847516] cs5535_gpio: base=0x6100 mask=0xb003c66 major=253</FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<FONT SIZE="2">voyage:~# lsmod | grep gpio</FONT><BR>
<FONT SIZE="2">cs5535_gpio 3744 0</FONT><BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<FONT SIZE="2">voyage:~# ls -l /dev/cs5535*</FONT><BR>
<FONT SIZE="2">crw-rw---- 1 root root 253, 1 Jun 6 21:37 /dev/cs5535_gpio1</FONT><BR>
<FONT SIZE="2">crw-rw---- 1 root root 253, 10 Jun 6 21:37 /dev/cs5535_gpio10</FONT><BR>
<FONT SIZE="2">crw-rw---- 1 root root 253, 11 Jun 6 21:37 /dev/cs5535_gpio11</FONT><BR>
<FONT SIZE="2">crw-rw---- 1 root root 253, 12 Jun 6 21:37 /dev/cs5535_gpio12</FONT><BR>
<FONT SIZE="2">crw-rw---- 1 root root 253, 13 Jun 6 21:37 /dev/cs5535_gpio13</FONT><BR>
<FONT SIZE="2">crw-rw---- 1 root root 253, 2 Jun 6 21:37 /dev/cs5535_gpio2</FONT><BR>
<FONT SIZE="2">crw-rw---- 1 root root 253, 24 Jun 6 21:37 /dev/cs5535_gpio24</FONT><BR>
<FONT SIZE="2">crw-rw---- 1 root root 253, 25 Jun 6 21:37 /dev/cs5535_gpio25</FONT><BR>
<FONT SIZE="2">crw-rw---- 1 root root 253, 27 Jun 6 21:37 /dev/cs5535_gpio27</FONT><BR>
<FONT SIZE="2">crw-rw---- 1 root root 253, 5 Jun 6 21:37 /dev/cs5535_gpio5</FONT><BR>
<FONT SIZE="2">crw-rw---- 1 root root 253, 6 Jun 6 21:37 /dev/cs5535_gpio6</FONT><BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<FONT SIZE="2">Rgds,</FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<FONT SIZE="2">Michael</FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<FONT SIZE="2"> </FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BLOCKQUOTE>
----- Original Message -----
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BLOCKQUOTE>
<B>From:</B> <A HREF="mailto:sti@soportec.com">Yago Fernandez Hansen</A>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BLOCKQUOTE>
<B>To:</B> <A HREF="mailto:voyage-linux@voyage.hk">voyage-linux</A>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BLOCKQUOTE>
<B>Sent:</B> Monday, 07 June, 2010 2:22 PM
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BLOCKQUOTE>
<B>Subject:</B> [Voyage-linux] [Fwd: What about GPIO support for ALIX.3D3?]
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BLOCKQUOTE>
<BR>
<BR>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BLOCKQUOTE>
Dear developers:<BR>
<BR>
<BR>
I am designing a new project using voyage Linux 0.6.5 and Alix 3D3<BR>
motherboard. I think I have readed everything in your wiki, mailing list<BR>
and Google. Your OS is very very stable and very well done I have to <BR>
say. Thank you for your work.<BR>
<BR>
<BR>
<BR>
I need to implement minimun a switch and some more sensors. For the <BR>
sensors I will try to develop them using I2C. I have not tested it yet. <BR>
But I am working now with the switch.<BR>
<BR>
<BR>
<BR>
I have readed this very good article:<BR>
<BR>
http://www.twam.info/linux/gpio-on-alix3d3 about it. But I do not know <BR>
enough yet for patching or recompiling the kernel. Is it necessary? Do <BR>
you haven't made it? I do not find in /sys this GPIO 24 port. <BR>
<BR>
<BR>
Can you help me?<BR>
<BR>
<BR>
Thank you <BR>
<BR>
<HR>
<BR>
<BR>
_______________________________________________<BR>
Voyage-linux mailing list<BR>
Voyage-linux@list.voyage.hk<BR>
http://list.voyage.hk/mailman/listinfo/voyage-linux<BR>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BR>
</BODY>
</HTML>